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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #6c5ce7;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-link:hover,
.nav-link.active {
    color: #6c5ce7;
    background-color: #f8f9fa;
}

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

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: white;
    padding: 150px 0 100px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: #fff;
    color: #6c5ce7;
}

.btn-primary:hover {
    background: #f1f2f6;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #6c5ce7;
}

.btn-game {
    background: #6c5ce7;
    color: white;
    padding: 10px 25px;
    font-size: 0.9rem;
}

.btn-game:hover {
    background: #5b4cdb;
    transform: translateY(-2px);
}

/* Games Section */
.games-section {
    padding: 80px 0;
    background: white;
}

.games-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

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

.game-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.game-icon {
    font-size: 3rem;
    color: #6c5ce7;
    margin-bottom: 1rem;
}

.game-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.game-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
}

.feature i {
    font-size: 3rem;
    color: #6c5ce7;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature p {
    color: #666;
}

/* Ad Spaces */
.ad-space {
    margin: 2rem auto;
    text-align: center;
    background: #f1f2f6;
    border: 2px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 500;
}

.horizontal-ad {
    width: 100%;
    max-width: 728px;
    height: 90px;
}

.square-ad {
    width: 300px;
    height: 250px;
    float: right;
    margin: 0 0 2rem 2rem;
}

.ad-placeholder {
    font-size: 1rem;
}

/* Footer */
footer {
    background: #2d3436;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #6c5ce7;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #b2bec3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #6c5ce7;
}

.footer-bottom {
    border-top: 1px solid #636e72;
    padding-top: 1rem;
    text-align: center;
    color: #b2bec3;
}

/* About Page Styles */
.about-content,
.legal-content,
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 20px 50px;
}

.about-header,
.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-header h1,
.contact-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.7;
}

.about-section,
.legal-section,
.contact-section {
    margin-bottom: 3rem;
}

.about-section h2,
.legal-section h2,
.contact-section h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #6c5ce7;
    padding-bottom: 0.5rem;
}

.about-section h3,
.legal-section h3,
.contact-section h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.about-section p,
.legal-section p,
.contact-section p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about-section ul,
.legal-section ul,
.contact-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.about-section ul li,
.legal-section ul li,
.contact-section ul li {
    color: #666;
    margin-bottom: 0.5rem;
}

.games-about,
.features-about {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.game-about,
.feature-about {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.game-about h3,
.feature-about h3 {
    color: #6c5ce7;
    margin-bottom: 1rem;
}

.game-about h3 i,
.feature-about i {
    margin-right: 0.5rem;
}

.feature-about i {
    font-size: 2rem;
    color: #6c5ce7;
    margin-bottom: 1rem;
    display: block;
}

/* Legal Pages */
.last-updated {
    font-style: italic;
    color: #999;
    margin-bottom: 2rem;
}

/* Contact Page */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-method {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-method i {
    font-size: 3rem;
    color: #6c5ce7;
    margin-bottom: 1rem;
}

.contact-method h3 {
    color: #333;
    margin-bottom: 1rem;
}

.contact-method a {
    color: #6c5ce7;
    text-decoration: none;
    font-weight: 600;
}

.contact-method a:hover {
    text-decoration: underline;
}

.help-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.help-topic {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.help-topic h3 {
    color: #6c5ce7;
    margin-bottom: 1rem;
}

.help-topic h3 i {
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

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

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

    .square-ad {
        float: none;
        margin: 2rem auto;
        width: 100%;
        max-width: 300px;
    }

    .about-header h1,
    .contact-header h1 {
        font-size: 2rem;
    }

    .games-about,
    .features-about,
    .contact-methods,
    .help-topics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 1rem 1.5rem;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .games-section,
    .features-section {
        padding: 60px 0;
    }

    .about-content,
    .legal-content,
    .contact-content {
        padding: 80px 15px 40px;
    }
}
/* Styles for the new button */
.contact-button {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.contact-button:hover {
    background-color: #2980b9;
}

/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 10; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    padding-top: 60px;
}

/* Modal content box */
.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 5% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    text-align: center;
}

/* The Close Button */
.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}