.footer-spacer {
    height: 80px; 
    width: 100%;
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #000;
    color: #fff;
    background-image: linear-gradient(to bottom, #000, #1a1a1a);
}

.container {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    overflow: visible;
    background-image: url('/images/body-bg.png'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
}

header {
    background: linear-gradient(to right, #8B0000, #FF8C00);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #FFF;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.logo span {
    color: #FFD700;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-selector {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #FFD700;
}

.hamburger {
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.slideshow-container {
    position: relative;
    margin: 0 auto;
    padding: 10px;
}

.slideshow {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.slide {
    display: none;
    width: 100%;
    animation: fade 1s ease-in-out;
}

.slide.active {
    display: block;
}

.slide-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@keyframes fade {
    from {opacity: 0.7}
    to {opacity: 1}
}

@keyframes scrollText {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

.lottery-title {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lottery-title h2 {
    font-size: 22px;
    color: #FF6347;
    text-shadow: 1px 1px 2px #000;
}

.lottery-title span {
    font-size: 26px;
    font-weight: bold;
    color: #FFD700;
}

.odds-table {
    background: rgba(0,0,0,0.6);
    border: 2px solid #FFD700;
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    width: 100%;
    color: #FFD700;
}

.odds-table table {
    width: 100%;
    border-collapse: collapse;
}

.odds-table th, .odds-table td {
    padding: 5px;
    text-align: center;
}

.odds-table th {
    color: #FF6347;
}

.pagination {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.pagination-dot {
    width: 8px;
    height: 8px;
    background-color: #555;
    border-radius: 50%;
    margin: 0 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pagination-dot.active {
    background-color: #fff;
}

.balance-bar {
    background-color: #111;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.balance-display {
    display: flex;
    align-items: center;
    gap: 5px;
}

.coin-icon {
    color: #FFD700;
    font-size: 16px;
}

.action-buttons {
    display: flex;
    justify-content: space-around;
    background-color: #1a1a1a;
    padding: 10px 0;
}

.action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #FFD700;
    font-size: 12px;
    gap: 5px;
    text-decoration: none;
    width: 30%;
    padding: 8px 0;
    border-radius: 5px;
    background-color: #222;
}

.notification {
    background-color: #222;
    padding: 8px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.notification-content {
    display: inline-block;
    color: #ccc;
    font-size: 14px;
    animation: scrollText 15s linear infinite;
    padding-right: 50px; /* Space after text before it repeats */
}

.category-nav-container {
    position: relative;
    background-color: #111;
}

.category-nav {
    display: flex;
    overflow-x: auto;
    background-color: #111;
    padding: 10px;
    scrollbar-width: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-snap-type: none;
    justify-content: flex-start; /* Changed from center to flex-start */
    gap: 8px;
    cursor: grab;
}

.category-nav:active {
    cursor: grabbing;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ccc;
    text-decoration: none;
    padding: 10px 0;
    min-width: 80px;
    font-size: 12px;
    user-select: none;
    background-color: #222;
    border-radius: 8px;
    border: 1px solid #333;
    position: relative;
    height: 60px;
    transition: all 0.2s ease;
    flex-shrink: 0; /* Prevent boxes from shrinking */
}

.category-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(255,255,255,0.05), rgba(255,255,255,0.2), rgba(255,255,255,0.05));
}

.category-button.active {
    color: #FFD700;
    border-color: #FF8C00;
    background-color: #2b2b2b;
    box-shadow: 0 0 5px rgba(255,140,0,0.5);
}

.category-button:hover {
    color: #FFD700;
}

.category-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #FFD700;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    user-select: none;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background-color: rgba(255, 215, 0, 0.2);
}

.nav-arrow-left {
    left: 5px;
}

.nav-arrow-right {
    right: 5px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px;
}

.game-card {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
    background: #222;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.game-image {
    width: 100%;
    height: 100%;  /* Changed from 75% to 100% */
    object-fit: cover;
    background-size: contain;
    background-position: center;
    transition: all 0.3s ease;
}

.game-card:hover .game-image {
    filter: brightness(1.1);
}

.game-provider {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 10px;
    color: #fff;
    background: rgba(0,0,0,0.5);
    padding: 2px 4px;
    border-radius: 3px;
    z-index: 2;
}

.game-type {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2px 5px;
    text-align: center;
    background: #111;
    color: #FFD700;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    z-index: 9999;
    display: flex;
    justify-content: space-around;
    align-items: center; 
    padding: 10px 0;
    background-image: url('/images/footer-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.footer-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* ✅ center content vertically */
    width: 60px; /* ✅ equal width for all */
    color: #fff;
    text-decoration: none;
    font-size: 12px;
}

.footer-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-button {
    position: fixed;
    bottom: 70px;
    right: 10px;
    width: 40px;
    height: 40px;
    background-color: #FFD700;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #111;
    font-size: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.5);
    z-index: 100;
}

@media (max-width: 480px) {
    .lottery-title h2 {
        font-size: 18px;
    }
    
    .lottery-title span {
        font-size: 20px;
    }
    
    .games-grid {
        gap: 8px;
        padding: 8px;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.chat-button {
    position: fixed;
    bottom: 70px;
    right: 10px;
    width: 40px;
    height: 40px;
    background-color: #FFD700;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #111;
    font-size: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.5);
    z-index: 100;
    animation: pulse 1.2s ease-in-out infinite;
}

.register-button {
    padding: 6px 12px;
    border: 2px solid #FFD700;
    background-color: transparent;
    color: #FFD700;
    font-size: 14px;
    font-weight: bold;
    border-radius: 20px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    animation: pulse-scale 1.5s infinite ease-in-out;
}

/* Animation: scale up and down */
@keyframes pulse-scale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* On hover: grow slightly bigger and glow */
.register-button:hover {
    transform: scale(1.2);
    background-color: #FFD700;
    color: #111;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.7);
}

.logo-footer {
    width: 24px;
    height: 24px; /* match icon height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.logo-footer img {
    height: 24px;
    width: auto;
    transform: scale(1.8); /* visually bigger, but in same container */
    transition: transform 0.3s ease;
}
