:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --light-bg: #f3f4f6;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 100px 0 50px;
    text-align: center;
}

.hero h1,
h2,
.feature-card h3 {
    color: var(--prime-color); 
    text-align: center;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    color: var(--prime-color);
    margin-bottom: 3rem;
}

.feature-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
}

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

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #fff;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.features {
    padding: 80px 0;
    background-color: var(--light-bg);
}

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

.feature-card {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.feature-card p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.game-container {
    background: var(--light-bg);
    padding: 40px 0;
    text-align: center;
}

.game-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.game-frame {
    width: 100%;
    max-width: 800px;
    height: 600px;
    border: none;
    border-radius: 8px;
    margin: 0 auto;
    display: block;
}

@media (max-width: 840px) {
    .game-frame {
        height: 450px;
    }
}

@media (max-width: 480px) {
    .game-frame {
        height: 300px;
    }
}

.gameplay {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.section-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.customization {
    background-color: var(--light-bg);
    padding: 80px 0;
}

footer {
    background-color: var(--text-color);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.language-selector select {
    padding: 5px;
    border: 1px solid var(--primary-color);
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
}

.how-to-play, .community {
    margin: 40px 0; /* Adds more space above and below the sections for better separation */
    padding: 20px; /* Adds padding within the sections */
    background-color: var(--light-bg); /* Optional: Adds a background color for better visibility */
    border-radius: 10px; /* Optional: Rounds the corners of the sections */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional: Adds a subtle shadow for depth */
}

.how-to-play h2, .community h2 {
    font-size: 2.5rem; /* Consistent heading size */
    /*  color: var(--primary-color); Ensures headings are consistent with the theme */
    margin-bottom: 20px; /* Space below the headings */
    text-align: center; /* Center align headings */
}

.how-to-play .controls-card, .community .section-content {
    text-align: left; /* Align text to the left for better readability */
}

.how-to-play .controls-card p, .community .section-content p {
    margin-bottom: 1.5rem; /* Space below paragraphs */
    line-height: 1.8; /* Improved line height for readability */
}

footer {
    background-color: var(--text-color);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h4 {
    color: var(--prime-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-section p {
    color: #e5e7eb;
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

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

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

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-copyright p {
    color: #9ca3af;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: white;
}

@media (max-width: 768px) {
    .container {
        padding: 10px; /* Reduced padding on smaller screens */
    }

    .how-to-play, .community, .similar-games {
        font-size: 1em; /* Adjust font size for smaller screens */
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}