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:auto;
    background-color: #000000;
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.logo {
    font-size: 1.5em;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.login-panel {
    right:0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    width: 100%;
    padding: 0 15px;
}

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

.login-button, .logout-button {
    background-color: #ffd700;
    color: #000000;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

.logout-button {
    background-color: #ff4444;
}

.nav-menu {
    background-color: #333;
    padding: 10px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    display: flex;
    justify-content: space-between; /* Aligns left and right arrows */
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9em;
    padding: 8px 12px;
    display: inline-block;
}

.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 */
    }
}

.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;
    }

    .login-panel {
        flex-direction: row;
        width: auto;
        padding: 0;
    }

    .login-input {
        width: 150px;
    }

    .login-button, .logout-button {
        width: auto;
    }

    .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;
        
    }
}

@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;
    }
}
.user-balance{
    color: #ffd700;
    font-size: 1.2em;
    margin-bottom: 10px;
}
/* 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);
}