@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

body {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    /* direction: rtl; Removed for English */
}

header {
    background-color: #333;
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

header p {
    font-size: 1.2rem;
}

section {
    padding: 2rem 1rem;
    margin: 1rem auto;
    max-width: 800px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #555;
    text-align: center;
    margin-bottom: 1.5rem;
}

#cta-section {
    background-color: #e2f3ff;
    /* Light blue background for CTA */
    text-align: center;
}

.cta-button {
    display: inline-block;
    background-color: #ff6f61;
    /* Coral color */
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.cta-button:hover {
    background-color: #e65a50;
    /* Darker coral on hover */
}

#features ul {
    list-style: none;
    padding: 0;
}

#features li {
    background: url('checkmark.png') no-repeat right center;
    /* Add a checkmark icon later */
    padding-right: 30px;
    /* Space for icon */
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

/* Styles for Game Showcase */
#game-showcase {
    background-color: #fff;
    /* Keep white or change as needed */
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* Responsive grid */
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.game-card {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease-in-out;
}

.game-card:hover {
    transform: translateY(-5px);
    /* Slight lift effect on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.game-card img {
    max-width: 100%;
    height: 150px;
    /* Fixed height for consistency */
    object-fit: cover;
    /* Scale image nicely */
    border-radius: 4px;
    margin-bottom: 1rem;
}

.game-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.2rem;
}

.game-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
}

.game-button {
    /* Inherits .cta-button styles, add specific overrides if needed */
    font-size: 1rem;
    /* Slightly smaller button for cards */
    padding: 0.6rem 1.2rem;
}


/* Styles for Email Signup */
#email-signup {
    text-align: center;
}

#signup-form input[type="email"] {
    padding: 0.8rem;
    width: 60%;
    max-width: 300px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-left: 0.5rem;
    /* Space between input and button */
    font-family: 'Cairo', sans-serif;
}

#signup-form button {
    padding: 0.8rem 1.5rem;
    background-color: #4CAF50;
    /* Green */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#signup-form button:hover {
    background-color: #45a049;
}

#form-message {
    margin-top: 1rem;
    font-weight: bold;
}

footer {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    background-color: #333;
    color: #aaa;
    font-size: 0.9rem;
}