* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f0f0f0;
    padding-bottom: 70px; /* Add padding to prevent footer overlap */
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #00a0e9;
    padding: 10px 15px;
    color: white;
}

.logo {
    height: 30px;
    width: auto;
}

.navbar-icons {
    display: flex;
    gap: 20px;
}

.navbar-icon {
    font-size: 20px;
    color: white;
}

/* Banner and Slideshow */
.banner-container {
    width: 100%;
    height: 180px;
    padding: 10px;
    box-sizing: border-box;
}

.banner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #7b4397, #dc2430);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: gold;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.slideshow {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
}

.slide:nth-child(1) {
    /* Replace with URL to your 1st banner image */
    background-image: url('/images/banner/f8194a65172c4d818225c8054d423ed7_Image_20250325140905.jpg');
    opacity: 1;
}

.slide:nth-child(2) {
    /* Replace with URL to your 2nd banner image */
    background-image: url('/images/banner/62685f7fb79c4dfbb53a0f8e1b5b7324_Image_20240426170631.jpg');
}

.slide:nth-child(3) {
    /* Replace with URL to your 3rd banner image */
    background-image: url('/images/banner/d26347e02179491ea9a6029ac80363bc_1000011636.jpg');
}

.slide:nth-child(4) {
    /* Replace with URL to your 4th banner image */
    background-image: url('/images/banner/c682cf177c4a4989b99b4b75519ac67e_993x360__1___1___1_.png');
}

@keyframes slideshow {
    0%, 15% {
        opacity: 0;
    }
    20%, 35% {
        opacity: 1;
    }
    40%, 100% {
        opacity: 0;
    }
}

.slide:nth-child(2) { animation: slideshow 25s infinite 0s; }
.slide:nth-child(3) { animation: slideshow 25s infinite 5s; }
.slide:nth-child(4) { animation: slideshow 25s infinite 10s; }
.slide:nth-child(5) { animation: slideshow 25s infinite 15s; }

.banner-content {
    position: relative;
    z-index: 10;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.banner h1 {
    font-size: 40px;
    font-weight: bold;
    margin-top: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner p {
    font-size: 14px;
    color: white;
    text-align: center;
    margin: 2px 0;
}

/* User Panel */
.user-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.balance-panel {
    display: flex;
    align-items: center;
    background-color: transparent;
    color: #333;
    padding: 8px 0;
    border-radius: 20px;
    font-size: 14px;
    gap: 5px;
}

.balance-item {
    padding: 5px 8px;
    border: 1px solid #00a0e9;
    border-radius: 15px;
    background-color: white;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.balance-label {
    font-weight: bold;
    color: #00a0e9;
}

.balance-value {
    color: #333;
    margin-left: 5px;
}

.coin-icon {
    width: 20px;
    height: 20px;
    background-color: gold;
    border-radius: 50%;
    margin: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-weight: bold;
    font-size: 12px;
    border: 1px solid #e0b000;
}

/* Game Categories */
.category-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px;
}

.category-item {
    background-color: #00a0e9;
    color: white;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.category-item.active {
    background-color: #0078b4;
    box-shadow: 0 0 10px rgba(0, 160, 233, 0.5);
}

.category-icon {
    font-size: 18px;
}

/* Game Sections */
.games-section {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    margin-bottom: 60px; /* Add margin to prevent footer overlap */
    max-height: calc(100vh - 280px); /* Set maximum height based on viewport height minus header elements */
    overflow-y: auto; /* Enable vertical scrolling */
}

/* Customize scrollbar for better appearance */
.games-section::-webkit-scrollbar {
    width: 6px;
}

.games-section::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.games-section::-webkit-scrollbar-thumb {
    background: #00a0e9;
    border-radius: 10px;
}

.games-section::-webkit-scrollbar-thumb:hover {
    background: #0078b4;
}

.game-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 10px;
    width: 100%;
}

.game-card {
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.game-card a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: white;
    position: relative;
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Footer Navigation */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px; /* same as .app-wrapper */
    display: flex;
    justify-content: space-around;
    background-color: #00a0e9;
    padding: 10px 0;
    z-index: 100;
    border-top: 1px solid #ccc;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}


.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 5px 0;
    width: 25%;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    position: relative;
}

.footer-item:hover, .footer-item:active {
    background-color: transparent;
}

.footer-item:focus {
    outline: none;
}

.footer-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

/* Responsive styles */
@media (min-width: 768px) {
    .game-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .game-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.app-wrapper {
    max-width: 480px; /* or 500px to match Everwin's frame */
    margin: 0 auto;    /* center horizontally */
    min-height: 100vh;
}

.language-selector {
    position: relative;
    margin-left: auto; /* Push to the right side */
}

.register-btn {
    background: none;
    border: 1px solid white;
    color: white;
    font-size: 16px;
    padding: 6px 12px;
    border-radius: 8px; /* soft square radius */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.register-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#lang-options {
    position: absolute;
    top: 45px;
    right: 0;
    background-color: #00a0e9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    flex-direction: column;
    align-items: flex-start;
    padding: 5px 0;
    animation: zoomIn 0.3s ease;
    z-index: 999;
}

.lang-option {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    padding: 8px 15px;
    text-align: left;
    width: 100%;
    cursor: pointer;
}

.lang-option:hover {
    background-color: #0078b4;
}

/* Animation */
@keyframes zoomIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Hide flags by default */
.hidden {
    display: none;
}

@keyframes zoomBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.register-btn.animate {
    animation: zoomBounce 0.4s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.register-btn {
    background: none;
    border: 1px solid white;
    color: white;
    font-size: 16px;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    animation: pulse 1.5s infinite; /* ✅ always pulsing */
}

.register-btn.clicked {
    animation: none ; /* ✅ stop animation when clicked */
}

.flag-icon {
    width: 18px;
    height: 12px;
    margin-right: 8px;
    vertical-align: middle;
}


