body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    color: rgb(53, 53, 53);
    background-image: url('/rimay_app/static/images/cuentos_historietas.png');
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
}

.container {
    max-width: 900px;
    padding: 20px;
    text-align: center;
    width: 100%;
}

h1 {
    font-size: 3em;
    color: #ffffffff;          
    margin-bottom: 50px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Dos columnas para Audios y Canciones */
    gap: 20px;
}

.vocab-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
    border-radius: 20px;
    background-color: #ffd90069;
    color: rgb(53, 53, 53);
    font-size: 1.5em;
    text-decoration: none;
    transition: transform 0.3s ease;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.vocab-button:hover {
    transform: scale(1.05);
    animation: none;
}

.vocab-button .icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background-color: #FFA500;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.back-button:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
    .vocab-button {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .vocab-button {
        font-size: 1.2em;
        padding: 10px;
    }
}