body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    width: 100%;
    background: linear-gradient(135deg, #000000, #1a1a1a);
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    box-sizing: border-box;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .header-content {
        gap: 10px;
    }
    
    .login-panel {
        padding: 10px;
        max-width: 100%;
    }
    
    .login-input {
        padding: 12px;
        font-size: 14px;
    }
    
    .login-button, .logout-button {
        padding: 12px;
        font-size: 14px;
    }
    
    .clear-credentials-button {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .remember-me-container {
        font-size: 12px;
    }
    
    .remember-me-checkbox {
        width: 16px;
        height: 16px;
    }
    
    .login-buttons-row {
        flex-direction: column;
        gap: 8px;
    }
}

@media (min-width: 768px) {
    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        text-align: left;
        padding: 20px;
    }
    
    .header-content {
        flex-wrap: nowrap;
        max-width: 1200px;
        padding: 0 20px;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    width: 100%;
    animation: fadeIn 0.5s ease-in;
    animation-fill-mode: both;
    animation-delay: 0.1s;
}

@media (max-width: 480px) {
    .logo-container {
        gap: 10px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .logo-subtext {
        font-size: 0.7rem;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
    }
}

@media (min-width: 768px) {
    .logo-container {
        justify-content: flex-start;
        flex: 1;
        min-width: 300px;
    }
}

.logo-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    animation: pulse 2s infinite;
    object-fit: contain;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
    }
    100% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    }
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, #ffd700, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: default;
}

.logo-text:hover {
    background: linear-gradient(135deg, #ffffff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: scale(1.05);
}

.logo-subtext {
    font-size: 0.9rem;
    color: #cccccc;
    letter-spacing: 1px;
    margin-top: 5px;
}

.login-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 15px;
    background: rgba(30, 30, 40, 0.7);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    max-width: 350px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    animation: panelAppear 0.8s ease-out;
    margin-top: 10px;
    box-sizing: border-box;
}

.login-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    .login-panel {
        margin-top: 0;
        flex: 0 0 auto;
    }
}

@keyframes panelAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-input {
    padding: 14px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    background: rgba(240, 248, 255, 0.8); /* aliceblue with slight transparency */
    color: #333; /* Dark text for better visibility */
    width: 100%;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    animation: fadeIn 0.5s ease-in;
    animation-fill-mode: both;
}

#usernameInput {
    animation-delay: 0.1s;
}

#passwordInput {
    animation-delay: 0.2s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.remember-me-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: flex-start;
    margin-top: 5px;
    animation: fadeIn 0.5s ease-in;
    animation-fill-mode: both;
    animation-delay: 0.3s;
}

.login-buttons-row {
    display: flex;
    gap: 10px;
    width: 100%;
    animation: fadeIn 0.5s ease-in;
    animation-fill-mode: both;
    animation-delay: 0.4s;
}

.clear-credentials-button {
    background: linear-gradient(135deg, #666666, #444444);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
    animation: fadeIn 0.5s ease-in;
    animation-fill-mode: both;
    animation-delay: 0.5s;
}

.login-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.login-input::placeholder {
    color: #666666; /* Darker placeholder for better visibility */
}

.login-button, .logout-button {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000000;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
    animation: fadeIn 0.5s ease-in;
    animation-fill-mode: both;
}

.login-button {
    animation-delay: 0.4s;
}

.logout-button {
    animation-delay: 0.4s;
}

.login-button:hover, .logout-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

.login-button:active, .logout-button:active {
    transform: translateY(0);
}

.logout-button {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 68, 68, 0.3);
}

.logout-button:hover {
    box-shadow: 0 6px 15px rgba(255, 68, 68, 0.4);
}

.clear-credentials-button {
    background: linear-gradient(135deg, #666666, #444444);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
}

.clear-credentials-button:hover {
    background: linear-gradient(135deg, #777777, #555555);
    transform: translateY(-1px);
}

.login-buttons-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.remember-me-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: flex-start;
    margin-top: 5px;
}

.remember-me-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #ffd700;
}

.remember-me-label {
    cursor: pointer;
    user-select: none;
    color: #dddddd;
    font-size: 14px;
}

.nav-menu {
    background-color: #333;
    padding: 8px 0;
    position: relative;
    top: 0;
    z-index: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.7);
    backdrop-filter: saturate(180%) blur(10px);
    transition: background-color 0.3s ease;
}

.nav-menu:hover {
    background-color: rgba(51, 51, 51, 0.95);
}

.scroll-container {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    padding: 0 40px; /* Space for scroll indicators */
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1em;
    padding: 10px 16px;
    display: inline-block;
    margin: 0 6px;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
    z-index: 1001;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: #ffd700;
    background-color: rgba(255, 255, 255, 0.15);
    outline: none;
}

.nav-menu a.active {
    color: #ffd700;
    background-color: rgba(255, 215, 0, 0.3);
    font-weight: bold;
}

.scroll-indicator {
    position: absolute;
    top: 0;
    background-color: rgba(0,0,0,0.5);
    color: #ffd700;
    font-weight: bold;
    font-size: 1.5em;
    padding: 0 12px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: background-color 0.3s ease;
    z-index: 1002;
}

.scroll-indicator.left {
    left: 0;
    border-radius: 0 6px 6px 0;
    box-shadow: 2px 0 4px rgba(0,0,0,0.3);
}

.scroll-indicator.right {
    right: 0;
    border-radius: 6px 0 0 6px;
    box-shadow: -2px 0 4px rgba(0,0,0,0.3);
}

.scroll-indicator:hover {
    background-color: rgba(255, 215, 0, 0.8);
    color: #000;
}

@media (max-width: 768px) {
    .nav-menu {
        padding: 8px 10px;
    }

    .nav-menu a {
        font-size: 0.9em;
        padding: 8px 12px;
        margin: 0 4px;
    }

    .scroll-indicator.left,
    .scroll-indicator.right {
        font-size: 1.2em;
        padding: 0 8px;
    }
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
}

.nav-menu a:hover {
    color: #ffd700;
    background-color: rgba(255,255,255,0.1);
}
.left{
    position: absolute;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.right{
    right: 0;
    position: absolute;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.hero-section {
    text-align: center;
    padding: 20px 15px;
    background: url('aviator2.webp') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    gap: 20px;
}

.jackpots-container {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 95%;
    max-width: 800px;
    padding: 0 5px;
}

.jackpot-box {
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #ffd700;
    min-width: auto;
}

.jackpot-title {
    color: #ffd700;
    font-size: 0.8em;
    margin-bottom: 3px;
}

.jackpot-amount {
    font-size: 1em;
    font-weight: bold;
    color: #ffffff;
}

.welcome-bonus {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    margin: 2px auto 0; /* Updated margin for mobile */
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .welcome-bonus {
        position: absolute;
        margin-top: 2px; /* Ensure margin-top is set for mobile */
    }
    
    .logo-container {
        flex-direction: column;
        text-align: center;
    }
    
    .login-buttons-row {
        flex-direction: column;
    }
}

.welcome-bonus h1 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

.welcome-bonus h2 {
    font-size: 1.2em;
    margin-bottom: 8px;
}

.welcome-bonus h3 {
    font-size: 1em;
    margin-bottom: 15px;
}

.cta-button {
    background-color: #ffd700;
    color: #000000;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    display: block;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

.game-card {
    background-color: #333;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.game-card img {
    width: 100%;
    border-radius: 5px;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.game-image:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
    cursor: pointer;
}
.game-button:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
    cursor: pointer;
}
.game-card h3 {
    font-size: 0.9em;
    margin: 8px 0;
    flex-grow: 1;
}

.footer {
    background-color: #000000;
    padding: 15px;
    text-align: center;
    font-size: 0.8em;
    margin-top: auto;
}

.notification-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s;
}

.notification-overlay.show {
    visibility: visible;
    opacity: 1;
}

.login-notification {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #ffd700;
    z-index: 1000;
    text-align: center;
    width: 90%;
    max-width: 300px;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s;
}

.login-notification.show {
    visibility: visible;
    opacity: 1;
}
.close-notification {
    background-color: #ffd700;
    color: #000000;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    display: block;
}

.games-container {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.search-container {
    padding: 15px;
    text-align: center;
}

.search-input {
    padding: 10px;
    border: 1px solid #ffd700;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 100%;
    max-width: 300px;
    font-size: 16px;
}

.payment-portal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #ffd700;
    z-index: 1001;
    width: 90%;
    max-width: 400px;
}

.payment-portal.show {
    display: block;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.payment-method {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s;
}

.payment-method:hover {
    background: rgba(255, 215, 0, 0.2);
}

.payment-amount {
    margin: 15px 0;
}

.amount-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ffd700;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    margin: 5px 0;
}

@media (min-width: 768px) {
    .header {
        flex-direction: row;
        justify-content: space-between;
        padding: 20px;
        align-items: center;
        flex-wrap: nowrap;
    }

    .logo-container {
        flex-direction: row;
        gap: 20px;
        text-align: left;
        flex: 1;
        min-width: 300px;
    }

    .user-balance {
        flex: 0 0 auto;
        text-align: center;
        margin: 0 20px;
    }

    .login-panel {
        flex-direction: column;
        width: auto;
        padding: 20px;
        max-width: 350px;
        flex: 0 0 auto;
    }

    .login-input {
        width: 100%;
    }

    .login-button, .logout-button {
        width: 100%;
    }

    .login-buttons-row {
        flex-direction: row;
        gap: 10px;
    }

    .nav-menu {
        padding: 15px;
        overflow-x: visible;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        padding: 20px;
        max-width: 1200px;
    }

    .welcome-bonus {
        padding: 40px;
        width: 80%;
    }

    .hero-section {
        min-height: 400px;
    }

    .jackpots-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        padding: 0;
    }

    .jackpot-box {
        padding: 15px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .jackpot-title {
        font-size: 0.9em;
        margin-bottom: 5px;
    }

    .jackpot-amount {
        font-size: 1.2em;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .header-content {
        flex-wrap: nowrap;
        max-width: 1200px;
        padding: 0 20px;
    }
}

@media (min-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .welcome-bonus {
        padding: 50px;
        width: 70%;
    }

    .hero-section {
        min-height: 500px;
    }
    
    .header {
        flex-wrap: nowrap;
    }
    
    .logo-container {
        flex: 1;
        min-width: 300px;
    }
    
    .user-balance {
        flex: 1;
        text-align: center;
    }
    
    .login-panel {
        flex: 0 0 auto;
    }
}
.user-balance{
    color: #ffd700;
    font-size: 1.2em;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
    font-weight: bold;
    animation: fadeIn 0.5s ease-in;
    animation-fill-mode: both;
    animation-delay: 0.2s;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1em;
}

@media (max-width: 480px) {
    .user-balance {
        font-size: 0.9em;
        padding: 8px 10px;
    }
}

@media (min-width: 768px) {
    .user-balance {
        margin: 0 20px;
        flex: 0 0 auto;
        width: auto;
        padding: 10px 20px;
    }
}
/* Add this to your existing style.css */
.connection-warning {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255, 200, 0, 0.9);
    color: #000;
    padding: 15px;
    border-radius: 5px;
    z-index: 1000;
    max-width: 300px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }
  
  .warning-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
  }
  
  .warning-content button {
    background-color: #333;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 10px;
  }
  
  .warning-content button:hover {
    background-color: #555;
  }
  #yocoPopup{
    width: 300px;
        height: 200px;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: black;
        color: white;
        padding: 20px;
        border-radius: 5px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        z-index: 1001;
        display: none;
  }
.install-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.install-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.install-button:active {
    transform: translateY(0);
}