@font-face {
    font-family: 'Lora';
    src: url('../assets/fonts/Lora-VariableFont_wght.ttf') format('truetype');
}

body {
    background-color: #f0f5d4;
    font-family: 'Lora', serif;
    color: #2c3e50;
    margin: 0;
    padding: 2rem;
    text-align: center;
}

.back-arrow {
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 3rem;
    color: #006400;
    text-decoration: none;
    font-weight: bold;
}

.main-container {
    max-width: 1200px;
    margin: 2rem auto;
}

h2 {
    font-size: 2rem;
    font-weight: normal;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.level-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Creates the 4-column grid */
    gap: 1.5rem; /* Space between buttons */
}

.button {
    background-color: #eaf5b9;
    border: 2px solid #006400;
    color: #2c3e50;
    padding: 1.5rem 1rem;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 15px; /* Rounded corners */
    transition: all 0.2s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.button:hover {
    transform: scale(1.05); /* Slightly enlarge button on hover */
    background-color: #d8e6a0;
}

footer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: #555;
}


.level-grid.special-levels {
    display: flex;
    justify-content: center;
    max-width: 550px; /* Limits the width for better centering */
    margin: 0 auto; /* Centers the container itself */
}

/* Add this new rule to the bottom of learn-style.css */
.level-grid.special-levels .button {
    flex: 1; /* Allows the button to grow and fill space */
}