:root {
    --color-1: #3a618a;
    --color-2: #feec04;
    --color-3: #f1dfff;
    --color-4: #b596cf;
    --color-5: #683381;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Sakkal Majalla", "Simplified Arabic", "Traditional Arabic",
    "Arabic Typesetting", "Urdu Typesetting", "Droid Naskh", "Droid Kufi",
    "Roboto", "Tahoma", "Times New Roman", "Arial", "serif";
    background-color: var(--color-4);
    color: var(--color-5);
    margin: 0;
    padding: 0;
    direction: rtl;
    font-size: 20px;
}

header {
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #66367e;
    text-align: center;
}

header img {
    height: 50px;
}

header nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

header nav a {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    transition: color 0.3s;
}

header nav a:hover {
    color: #ffe0cc;
}

.hero {
    background-color: var(--color-3);
    padding: 3rem 2rem;
    text-align: center;
    height: 90vh;
    width: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero h1 {
    font-size: 2.2rem;
    color: var(--color-5);
}

.hero p {
    font-size: 1.1rem;
    color: var(--color-4);
    margin-top: 1rem;
}

.about, .guide {
    padding: 2rem;
    background-color: var(--color-3);
    margin: 1rem;
    border-radius: 10px;
    text-align: center;
}

.about h2, .guide h2 {
    color: var(--color-5);
    font-size: 2rem;
}

.about p, .guide p {
    width: 60%; /* Adjusted width for better readability */
    margin: auto;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 2rem;
    background-color: var(--color-3);
    margin: 1rem;
    border-radius: 10px;
}

.feature {
    background: linear-gradient(135deg, #ffffff, #f9f9f9);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    text-align: center;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.feature h3 {
    color: var(--color-4);
    margin-bottom: 15px;
}

.games-section, .team-section {
    padding: 2rem;
    text-align: center;
    background-color: var(--color-3);
    margin: 1rem;
    border-radius: 10px;
}

.games-section h2, .team-section h2 {
    color: var(--color-5);
    font-size: 2rem;
}

.game-category {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.game {
    width: 200px;
    padding: 1rem;
    background-color: var(--color-5);
    color: #fff;
    border-radius: 10px;
    transition: transform 0.3s;
}

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

.game img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.team-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.member {
    text-align: center;
    width: 180px;
}

.member img {
    width: 100%;
    border-radius: 50%;
    margin-bottom: 1rem;
}

footer {
    background-color: var(--color-5);
    color: var(--color-3);
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
}

footer a {
    color: var(--color-3);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .features {
        grid-template-columns: 1fr;
    }

    .about p, .guide p {
        width: 80%; /* Increase paragraph width on smaller screens */
    }

    .game-category {
        flex-direction: column;
        gap: 1rem;
    }

    .game {
        width: 100%; /* Full width for game elements on small screens */
    }

    .team-members {
        flex-direction: column;
        gap: 1rem;
    }
}
