/* Define CSS custom properties for reusable values */
:root {
    --primary-color: #f0a500;
    --primary-hover: #f39c12;
    --dark-bg: #2b2b2b;
    --card-bg: #444;
    --section-bg: #333;
    --text-color: #d1d1d1;
    --text-muted: #bbb;
    --white: #fff;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

/* Reset and base styles */
body {
    font-family: Tahoma, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6; /* Improve readability */
}

/* Navbar */
.navbar {
    background-color: var(--section-bg);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-link {
    color: var(--text-color);
    font-size: 1.1rem;
}

.nav-link:hover {
    color: var(--primary-hover);
}

/* Banner */
.banner {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1rem 2rem;
    border-radius: 10px;
}

.banner-content h2 {
    font-size: 2.5rem;
    margin: 0.5rem 0;
    text-shadow: 1px 1px 3px #000;
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    font-size: 1.2rem;
    display: inline-block; /* Ensure consistent rendering */
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

/* Sections */
.main-content, .about, .disclaimer, .features, .contact {
    padding: 2rem 0;
    background-color: var(--section-bg);
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-shadow: 1px 1px 3px #000;
}

/* Game Card */
.game-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: center;
    padding: 1rem;
    margin-bottom: 2rem;
    transition: var(--transition);
    position: relative;
}

.game-card:hover {
    transform: translateY(-8px);
}

.game-card img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #666;
    margin-bottom: 1rem;
}

.game-card h3 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    color: var(--primary-color);
}

.game-card p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.game-label {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--white);
    text-transform: uppercase;
}

.game-label.new {
    background-color: #81c784;
}

.game-label.top {
    background-color: #e57373;
}

/* Section content */
.about p, .disclaimer p, .features p, .contact p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.about i, .disclaimer i, .features i, .contact i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.features .feature {
    text-align: center;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background-color: var(--section-bg);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer .social-links {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.footer .social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
}

.footer .social-links a:hover {
    color: var(--primary-hover);
}

.footer .policies {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer .policies a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer .policies a:hover {
    color: var(--white);
}

.footer p {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.footer .logos {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer .logos img {
    max-height: 50px;
}

/* Modal */
.modal-content {
    background-color: var(--card-bg);
    color: var(--white);
    border-radius: 10px;
    overflow: hidden;
}

.modal-header, .modal-footer {
    border: none;
}

.modal-header .btn-close {
    color: var(--white);
    opacity: 1;
}

.modal-body {
    padding: 0;
}

.game-iframe {
    width: 100%;
    height: 500px;
    border: none;
}

/* Splash Screen */
.splash-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    inset: 0; /* Shorthand for top: 0, left: 0, etc. */
    z-index: 9999;
    color: var(--white);
    flex-direction: column;
    text-align: center;
    padding: 1rem; /* Prevent content clipping on small screens */
}

.question {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.explanation {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.answers button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 5px;
    transition: var(--transition);
}

.answers button:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

.error {
    color: #e57373;
    margin-bottom: 1rem;
}

/* Media Queries */
@media (max-width: 768px) {
    .game-card {
        width: calc(50% - 1rem);
        margin: 0.5rem;
    }

    .game-iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .game-card {
        width: 100%;
        margin: 1rem 0;
    }
}