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

body {
    font-family: 'Puritan', sans-serif;
    background-color: #40e0d0; /* Turquoise background as per user preference */
    color: #333;
    line-height: 1.6;
}

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

/* Header Styles */
header {
    padding: 20px 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px); /* Blur effect */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.logo a {
    text-decoration: none;
}

.logo h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* Hero Section */
.hero {
    height: 80vh;
    background: url('img/hero-bg.png') center 20%/cover no-repeat #40e0d0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    border: 2px solid rgba(64, 224, 208, 0.5);
    margin-top: 0;
    z-index: 10;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    max-width: 800px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button Styles */
.cta-button {
    display: inline-block;
    background: #ff6b6b;
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: #ff5252;
}

/* Sections */
section {
    padding: 80px 0;
}

.about, .why-choose-us, .game-description, .policy-content, .contact-section {
    background-color: white;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

/* Policy Content Styles */
.policy-content h1 {
    text-align: center;
    margin-bottom: 30px;
}

.policy-text h2 {
    font-size: 1.8rem;
    margin: 30px 0 15px;
    color: #40e0d0;
}

.policy-text h3 {
    font-size: 1.5rem;
    margin: 20px 0 10px;
    color: #ff6b6b;
}

.policy-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

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

.policy-text li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Game Section */
.game-section h1 {
    text-align: center;
    margin-bottom: 30px;
}

.game-container {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.9);
}

.game-info {
    margin-top: 30px;
}

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

/* Added styles for game page */
.game-section {
    background-color: transparent;
    padding: 80px 0;
}

/* About Section */
.about .container p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Why Choose Us Section */
.features {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.feature {
    flex: 1;
    min-width: 300px;
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #40e0d0;
}

/* Game Description Section */
.game-description {
    background: url('img/game-bg.png') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 80px 0;
    border: 2px solid rgba(64, 224, 208, 0.5);
    margin: 20px;
    border-radius: 10px;
}

.game-description .container {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for better text readability */
    padding: 30px;
    border-radius: 10px;
}

.game-description h2, .game-description p {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}

.game-description p {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.2rem;
}

.game-description .cta-button {
    display: inline-block;
    margin: 0 auto;
}

/* FAQ Section */
.faq-section {
    background-color: white;
    padding: 80px 0;
    border: 2px solid #40e0d0;
    margin: 20px;
    border-radius: 10px;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #40e0d0;
    text-shadow: 0 0 10px rgba(64, 224, 208, 0.3);
}

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

.faq-image {
    flex: 1;
    text-align: center;
}

.faq-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #40e0d0;
}

.faq-questions {
    flex: 1;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    background: rgba(64, 224, 208, 0.1);
    border: 1px solid #40e0d0;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(64, 224, 208, 0.2);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    color: #40e0d0;
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #40e0d0;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.7);
}

.faq-answer.open {
    padding: 0 20px 20px;
    max-height: 200px;
}

.faq-answer p {
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding-top: 10px;
}

.faq-question.active .faq-toggle {
    transform: rotate(45deg);
}

/* Contact Section */
.contact-section {
    background-color: white;
    padding: 80px 0;
    border: 2px solid #40e0d0;
    margin: 20px;
    border-radius: 10px;
}

.contact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #40e0d0;
    text-shadow: 0 0 10px rgba(64, 224, 208, 0.3);
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    text-align: center;
    width: 100%;
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

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

.contact-item h3 {
    color: #40e0d0;
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.contact-item p {
    margin: 0;
    font-size: 1.1rem;
}

.contact-form-container {
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: bold;
    color: #40e0d0;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    padding: 15px;
    border: 2px solid #40e0d0;
    border-radius: 8px;
    font-family: 'Puritan', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

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

/* 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);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #40e0d0;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalAppear 0.4s ease;
}

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

.modal-content h2 {
    color: #40e0d0;
    margin-bottom: 20px;
    font-size: 2rem;
}

.modal-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.close {
    color: #aaa;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ff6b6b;
}

/* Cookie Consent Popup */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid #40e0d0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    backdrop-filter: blur(10px);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s ease;
}

.cookie-consent.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-content h3 {
    color: #40e0d0;
    margin-bottom: 15px;
    text-align: center;
}

.cookie-content p {
    color: #333;
    margin-bottom: 15px;
    line-height: 1.6;
    text-align: center;
}

.cookie-content a {
    color: #40e0d0;
    text-decoration: none;
    font-weight: bold;
}

.cookie-content a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.cookie-buttons .cta-button {
    padding: 10px 20px;
    font-size: 1rem;
    margin: 0;
}

.cookie-buttons .cta-button.secondary {
    background: #6c757d;
}

.cookie-buttons .cta-button.secondary:hover {
    background: #5a6268;
}

/* Responsive Design for Cookie Consent */
@media (max-width: 768px) {
    .cookie-consent {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 15px;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 40px 0 20px;
    text-align: center;
}

.disclaimer {
    margin-bottom: 30px;
    padding: 20px;
    border: 3px solid #ff6b6b;
    border-radius: 10px;
    background: rgba(255, 107, 107, 0.1);
}

.disclaimer p {
    font-size: 1rem;
    font-weight: 500;
    color: #ff6b6b;
    text-shadow: 0 0 5px rgba(255, 107, 107, 0.3);
    margin: 10px 0;
    line-height: 1.6;
}

.disclaimer p:first-child {
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
    margin-bottom: 20px;
}

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

.partners {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.partners img {
    height: 50px;
    filter: grayscale(0%) brightness(100%);
    opacity: 0.9;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.partners img:hover {
    opacity: 1;
    transform: scale(1.1);
}

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

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

.footer-links a:hover {
    color: #40e0d0;
}

.copyright {
    border-top: 1px solid #555;
    padding-top: 20px;
    color: #aaa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .features {
        flex-direction: column;
    }
    
    .faq-content {
        flex-direction: column;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .partners {
        flex-direction: column;
        gap: 20px;
    }
    
    section {
        padding: 50px 0;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .policy-text h2 {
        font-size: 1.5rem;
    }
    
    .policy-text h3 {
        font-size: 1.3rem;
    }
}