body {
    font-family: 'Cairo', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    direction: rtl;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 600px;
    margin: auto;
    background: #1e1e1e;
    padding: 2rem;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    margin-top: 5vh;
}

h1 {
    font-size: 2rem;
    color: #f1f1f1;
    text-align: center;
    margin-bottom: 1.5rem;
}

.text-display {
    padding: 1rem;
    background: #3a3f42;
    border-radius: 8px;
    font-size: 1.25rem;
    color: #fff;
    line-height: 1.6;
    white-space: normal;
}

.text-green {
    color: #81c784;
}

.text-red {
    color: #e57373;
}

.default {
    color: #fff;
}

textarea {
    width: 100%; /* Full width within the container */
    padding: 1rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #444;
    outline: none;
    resize: none;
    margin-top: 1rem;
    background-color: #333;
    color: #e0e0e0;
}

textarea::placeholder {
    color: #aaa;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 1.25rem;
    color: #e0e0e0;
}

.button-container {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    transition: background-color 0.3s;
}

.easy { background-color: #4caf50; }
.medium { background-color: #ff9800; }
.hard { background-color: #f44336; }

button:hover {
    filter: brightness(1.1);
}

.next {
    background-color: #4caf50;
}

.credit {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #aaa;
}

/* Responsive font adjustment */
@media (max-width: 600px) {
    h1 {
        font-size: 1.5rem;
    }
    .stats {
        font-size: 1rem;
    }
}
