/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --british-red: #C8102E;
    --british-blue: #012169;
    --navy-blue: #001f3f;
    --royal-gold: #D4AF37;
    --cream: #F5F5DC;
    --burgundy: #800020;
    --forest-green: #0B6623;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --gray: #6C757D;
    --dark: #212529;

    --font-primary: 'Georgia', 'Times New Roman', serif;
    --font-secondary: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body {
    font-family: var(--font-secondary);
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--british-red), var(--burgundy));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--british-blue);
    border: 2px solid var(--british-blue);
}

.btn-secondary:hover {
    background: var(--british-blue);
    color: var(--white);
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 33, 105, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.age-modal {
    text-align: center;
}

.age-modal-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.age-modal h2 {
    color: var(--british-blue);
    margin-bottom: 16px;
    font-size: 28px;
}

.age-modal p {
    color: var(--gray);
    margin-bottom: 12px;
}

.age-disclaimer {
    font-size: 14px;
    margin-bottom: 24px;
}

.age-checkbox {
    margin: 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.age-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.age-checkbox label {
    cursor: pointer;
    user-select: none;
}

#ageSubmit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--british-blue);
    color: var(--white);
    padding: 20px;
    z-index: 9999;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    flex: 1;
    margin: 0;
}

.cookie-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.cookie-link {
    color: var(--royal-gold);
}

.cookie-link:hover {
    text-decoration: underline;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    color: var(--british-blue);
}

.logo-icon {
    font-size: 32px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--british-blue);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    color: var(--dark);
    font-weight: 500;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--british-red);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--british-blue), var(--navy-blue));
    color: var(--white);
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(212, 175, 55, 0.03) 10px,
            rgba(212, 175, 55, 0.03) 20px
        );
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(28px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

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

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-features {
    display: flex;
    gap: 40px;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hero-feature-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.hero-feature span {
    font-size: 16px;
    font-weight: 500;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    color: var(--british-blue);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--gray);
}

/* Games Section */
.games-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.game-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.game-card-image {
    background: linear-gradient(135deg, var(--british-blue), var(--navy-blue));
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-icon {
    font-size: 80px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.game-card-content {
    padding: 32px;
}

.game-card-content h3 {
    color: var(--british-blue);
    font-size: 24px;
    margin-bottom: 16px;
}

.game-card-content p {
    color: var(--gray);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Benefits Section */
.benefits-section {
    padding: 80px 0;
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.benefit-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: 12px;
    transition: var(--transition);
}

.benefit-card:hover {
    background: var(--light-gray);
    transform: translateY(-4px);
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.benefit-card h3 {
    color: var(--british-blue);
    font-size: 22px;
    margin-bottom: 12px;
}

.benefit-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--british-blue);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: var(--royal-gold);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px 0;
    margin-bottom: 30px;
}

.footer-disclaimer p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.help-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.help-links a {
    color: var(--royal-gold);
    font-weight: 500;
}

.help-links a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.7);
}

/* Content Pages */
.page-header {
    background: linear-gradient(135deg, var(--british-blue), var(--navy-blue));
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 20px;
    opacity: 0.9;
}

.page-content {
    padding: 80px 0;
    max-width: 900px;
    margin: 0 auto;
}

.page-content h2 {
    color: var(--british-blue);
    font-size: 32px;
    margin: 40px 0 20px;
}

.page-content h3 {
    color: var(--british-blue);
    font-size: 24px;
    margin: 30px 0 16px;
}

.page-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--dark);
}

.page-content ul, .page-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.page-content li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.contact-form {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 16px;
    margin-top: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--british-blue);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Game Pages */
.game-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.game-header {
    text-align: center;
    margin-bottom: 40px;
}

.game-header h1 {
    color: var(--british-blue);
    font-size: 36px;
    margin-bottom: 16px;
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    padding: 24px;
    background: var(--light-gray);
    border-radius: 12px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    display: block;
    color: var(--british-blue);
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-primary);
}

.game-board {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
}

.game-controls {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-features {
        flex-direction: column;
        gap: 24px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }

    .game-stats {
        flex-direction: column;
        gap: 20px;
    }

    .game-board {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 24px;
    }

    .age-modal h2 {
        font-size: 22px;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .help-links {
        flex-direction: column;
        gap: 12px;
    }
}
/* Utility class for hiding elements */
.hidden {
    display: none !important;
}

/* Footer Contact Info */
.footer-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-contact-label {
    font-weight: 600;
    color: var(--royal-gold);
}
