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

body {
    font-family: 'Rye', serif;
    background-color: #f0e6d2;
    color: #5d4037;
    line-height: 1.6;
    padding-top: 100px; /* Account for fixed header */
}

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

/* Header Styles */
.header {
    background: linear-gradient(to right, #8b4513, #a0522d);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('img/header.png');
    background-size: cover;
    background-position: center;
    opacity: 0.9;
    z-index: 1;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-family: 'Alfa Slab One', cursive;
    font-size: 2rem;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.navigation a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.navigation a:hover {
    background-color: rgba(255, 215, 0, 0.3);
}

/* Hero Section */
.hero {
    height: 70vh;
    background-image: linear-gradient(rgba(139, 69, 19, 0.2), rgba(160, 82, 45, 0.4)), 
                      url('img/hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: -100px; /* Compensate for body padding */
    padding-top: 100px; /* Ensure content is visible */
}

.hero h1 {
    font-family: 'Alfa Slab One', cursive;
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-family: 'Rye', serif;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Section Styles */
section {
    padding: 60px 0;
}

section h1 {
    font-family: 'Alfa Slab One', cursive;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    color: #8b4513;
}

section h2 {
    font-family: 'Alfa Slab One', cursive;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #8b4513;
}

section h3 {
    font-family: 'Alfa Slab One', cursive;
    color: #8b4513;
}

/* About Us Section */
.about-us {
    background-color: #fff;
}

.about-us p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 15px;
    font-size: 1.1rem;
}

/* Game Description Section */
.game-description {
    background-color: #f5f5dc;
}

.game-description-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.game-text {
    flex: 1;
}

.game-text h2 {
    text-align: left;
    margin-bottom: 20px;
}

.game-text p {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
}

.button-container {
    text-align: center;
}

.game-image {
    flex: 1;
}

.game-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Game Section */
.game-section {
    background-color: #fff;
    text-align: center;
}

.game-section p {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 1.1rem;
}

.game-container {
    margin: 30px 0;
    border: 3px solid #8b4513;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f0e6d2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.game-info {
    margin-top: 40px;
    text-align: left;
}

.game-info h2 {
    text-align: center;
}

.game-info p {
    margin-bottom: 15px;
    text-align: center;
}

/* Contact Section */
.contact-section {
    background-color: #fff;
    text-align: center;
}

.contact-section p {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 1.1rem;
}

.contact-form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: #f5f5dc;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #8b4513;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #d2b48c;
    border-radius: 5px;
    font-family: 'Rye', serif;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b4513;
    box-shadow: 0 0 5px rgba(139, 69, 19, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #f5f5dc;
    margin: 15% auto;
    padding: 30px;
    border: 3px solid #8b4513;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close {
    color: #8b4513;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
}

.close:hover {
    color: #5d4037;
}

.modal-content h2 {
    color: #8b4513;
    margin-bottom: 20px;
}

.modal-content p {
    margin-bottom: 20px;
}

.play-button {
    display: inline-block;
    background: linear-gradient(to bottom, #ffd700, #daa520);
    color: #8b4513;
    padding: 15px 40px;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid #8b4513;
    font-family: 'Alfa Slab One', cursive;
}

.play-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.faq {
    background-color: #fff;
    background-image: url('img/faq.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.faq-item {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(245, 245, 220, 0.9);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    color: #8b4513;
    margin-bottom: 10px;
}

/* Policy Section */
.policy-section {
    background-color: #fff;
    padding: 40px 0;
}

.policy-section h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #8b4513;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.policy-content h2 {
    color: #8b4513;
    margin: 25px 0 15px;
    text-align: left;
}

.policy-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.policy-content ul {
    margin: 15px 0 15px 30px;
}

.policy-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* Footer Styles */
.footer {
    background: linear-gradient(to bottom, #5d4037, #3e2723);
    color: #f0e6d2;
    padding: 40px 0 20px;
    text-align: center;
}

.disclaimer {
    font-family: 'Rye', serif;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    animation: pulse 2s infinite;
    text-align: center;
    background-color: rgba(93, 64, 55, 0.3);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #ffd700;
}

.disclaimer p {
    margin: 10px 0;
}

@keyframes pulse {
    0% { text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    50% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
    100% { text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
}

.partner-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.partner-logos img {
    height: 40px;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #ffd700;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.copyright {
    border-top: 1px solid #8b4513;
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* Cookie Consent Popup */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: rgba(93, 64, 55, 0.95);
    color: #f0e6d2;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: none;
    border: 2px solid #d4af37;
    font-family: 'Rye', serif;
}

.cookie-consent.show {
    display: block;
}

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

.cookie-content p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.cookie-content a {
    color: #ffd700;
    text-decoration: underline;
}

.cookie-content a:hover {
    color: #fff;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

#acceptCookies {
    margin: 0;
    padding: 10px 20px;
    font-size: 1rem;
}

#declineCookies {
    margin: 0;
    padding: 10px 20px;
    font-size: 1rem;
    background: linear-gradient(to bottom, #8b4513, #5d2e0a);
    border: 2px solid #5d2e0a;
    color: wheat;
}

#declineCookies:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .navigation a {
        margin: 5px 10px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .game-description-content {
        flex-direction: column;
    }
    
    .partner-logos {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links a {
        display: block;
        margin: 10px 0;
    }
    
    .cookie-consent {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 15px;
    }
}