body {
    background-image: url('/images/Background 1-blur.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    min-height: 100vh;
    color: white;
    /* ensure text is visible */
}

.legal-footer {
    margin-top: auto;
    padding: 1rem 2rem 2rem 2rem;
    text-align: center;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.legal-links a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
}


/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .legal-content-card {
        padding: 1.5rem;
    }

    .legal-page-title {
        font-size: 1.5rem;
    }

    .legal-section-title {
        font-size: 1.3rem;
    }

    .legal-content-text {
        font-size: 0.95rem;
    }
}

/* Mobile responsive adjustments for legal footer */
@media (max-width: 576px) {
    .legal-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .legal-footer {
        padding: 1rem 1rem 1.5rem 1rem;
    }

    .legal-content-container {
        padding: 0 1rem;
    }
}

.toast {
    max-width: 100%;
    /* Override Bootstrap's default max-width for toasts */
    width: 100%;
    /* Ensure it tries to fill the available space */
    /* You might also want to adjust padding here if you want edge-to-edge content */
    /* padding: 1rem; */
}

#game-wrapper {
    height: calc(100vh - 100px);
    /* Fallback */
    height: calc(100dvh - 15dvh);
    /* Modern browsers */
    width: 100vw;
    background-color: black;
}

#game-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: center;
}

canvas.game_canvas {
    width: 100%;
    height: 100%;
    display: block;
}

#ad-banner {
    height: 10dvh;
    background-color: #222;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: sans-serif;
    font-size: 1rem;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    box-sizing: content-box;
}

@media (orientation: portrait) {
    #game-wrapper {
        height: 85dvh;
    }

    #ad-banner {
        height: 15dvh;
    }
}

@media (orientation: landscape) {
    #game-wrapper {
        height: 85dvh;
    }

    #ad-banner {
        height: 15dvh;
    }
}


.landing-page {
    /* background-image: url('/images/Background 1-blur.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: white;
    align-items: center;
}

.legal-page {
    /* background-image: url('/images/Background 1-blur.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: white;
    align-items: center;
}

.menu-option {
    background: transparent;
    border: none;
    padding: 5px 20px;
    margin: 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: left;
    justify-content: left;
    font-size: 2.0rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.menu-option:hover {
    transform: translateY(-2px);
    text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.3);
}

.menu-option i {
    margin-right: 15px;
    font-size: 2rem;
}

.menu-option[href] {
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}


.logo-container {
    text-align: center;
    color: transparent;
    padding: 3rem 2rem 1rem 2rem;
}

.logo {
    max-width: 100%;
    height: auto;
    max-height: 200px;
}

.legal-logo-container {
    text-align: center;
    padding: 2rem 2rem 1rem 2rem;
}

.legal-logo {
    max-width: 200px;
    height: auto;
    max-height: 120px;
}

.legal-content-container {
    flex: 1;
    width: 100%;
    max-width: 800px;
    padding: 0 2rem;
    margin-bottom: 2rem;
}

.legal-content-card {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-back-button {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.legal-back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.legal-back-button i {
    margin-right: 0.5rem;
}


.legal-page-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.legal-section-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.legal-content-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.legal-content-text ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content-text li {
    margin-bottom: 0.5rem;
}

.legal-links a.current {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
}


.menu-container {
    display: flex;
    justify-content: center;
    /* margin-left: 10rem; */
    /* padding: 1rem 2rem 2rem 2rem; */
}

.menu-options {
    max-width: 400px;
    width: 100%;
}

.hidden {
    display: none !important;
}

.loading-screen {
    background-color: rgba(0, 0, 0, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 1.2rem;
    text-align: center;
}

body {
    margin: 0;
    padding: 0;
    /* overflow: hidden; */
    background-color: black;
}

html {
    background-color: black;
}

/* Handle mobile viewport and status bar areas */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: env(safe-area-inset-top, 0px);
    background-color: black;
    z-index: 9999;
}