@font-face {
    font-family: 'ChailceNogginRegular';
    src: url('./Fonts/ChailceNogginRegular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.hamburger {
    display: inline-block;
    cursor: pointer;
    width: 24px;
    height: 20px;
    position: relative;
}

    .hamburger span {
        background-color: #fff;
        height: 3px;
        width: 100%;
        position: absolute;
        left: 0;
        transition: all 0.3s ease;
    }

        .hamburger span:nth-child(1) {
            top: 0;
        }

        .hamburger span:nth-child(2) {
            top: 8px;
        }

        .hamburger span:nth-child(3) {
            top: 16px;
        }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 8px;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg);
        top: 8px;
    }

.nav-menu {
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 75%;
        height: 100%;
        background-color: #1f2937;
        flex-direction: column;
        padding: 20px;
        z-index: 50;
    }

        .nav-menu.active {
            left: 0;
        }
}

@media (min-width: 769px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #1f2937;
        flex-direction: column;
        width: 200px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }

        .nav-menu.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
}

.modal, .deposit-modal, .withdraw-modal, .game-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

    .modal.hidden, .deposit-modal.hidden, .withdraw-modal.hidden, .game-modal.hidden {
        display: none !important; /* Ensure high specificity */
    }

.deposit-modal-content, .withdraw-modal-content, .game-modal-content {
    background: #1f2937;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    position: relative;
}

.deposit-modal-content, .withdraw-modal-content {
    max-width: 400px;
}

.game-modal-content {
    max-width: 600px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.deposit-modal-content input, .deposit-modal-content select,
.withdraw-modal-content input, .withdraw-modal-content select {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    background: #4b5563;
    color: #fff;
    border: none;
    border-radius: 5px;
}

.deposit-modal-content button, .withdraw-modal-content button, .game-modal-content .modal-play-button {
    margin-top: 10px;
    background-color: #2563eb;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
    font-family: 'ChailceNogginRegular', sans-serif;
}

    .deposit-modal-content button:hover, .withdraw-modal-content button:hover, .game-modal-content .modal-play-button:hover {
        background-color: #1d4ed8;
    }

.game-modal-content img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

.game-modal-content h3 {
    font-family: 'ChailceNogginRegular', sans-serif;
    color: #fff;
    margin-bottom: 10px;
}

.game-modal-content p {
    color: #e5e7eb;
    margin-bottom: 20px;
}

.game-modal-content .modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

    .game-modal-content .modal-close:hover {
        color: #f87171;
    }

.game-modal-content .modal-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.game-modal-content .modal-play-button {
    flex: 0 0 auto;
    width: auto; /* Override width: 100% to allow button to size naturally */
}

.game-modal-content .modal-extra-text {
    color: #e5e7eb;
    font-family: 'ChailceNogginRegular', sans-serif;
    font-size: 1rem;
}

.spinner {
    display: none;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 10px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.processing {
    opacity: 0.7;
    pointer-events: none;
}

    .processing .close-deposit, .processing .close-withdraw {
        cursor: not-allowed;
    }

.processing-message {
    text-align: center;
    margin-top: 10px;
    color: #e5e7eb;
}