body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #F3E2D0;
    font-family: 'Amiri', serif;
}

.container {
    text-align: center;
    background-color: #f5e8d0;
    padding: 20px;
    border-radius: 20px;
    width: 90%;
    max-width: 360px;
    height: 90%;
    max-height: 740px;
    overflow: hidden;
    position: relative;
}

h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #777;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 15px;
    justify-items: center;
    align-items: center;
}

.grid-item {
    background-color: white;
    border-radius: 10px;
    padding: 8px;
    text-align: center;
    width: 100px; /* Ancho reducido */
    height: 120px; /* Altura reducida */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Evitar que el contenido se desborde */
}

.grid-item img {
    width: 75%;
    height: auto;
    margin-bottom: 8px;
    border-radius: 10px;
}

.grid-item p {
    font-size: 0.7em; /* Tamaño de la fuente */
    color: #333; /* Color del texto */
    font-weight: bold; /* Negrita */
    text-align: center; /* Centrado */
    margin: 2px 0; /* Margen arriba y abajo */
    text-decoration: none;
    white-space: nowrap; /* Evita que el texto se divida en varias líneas */
    overflow: hidden; /* Oculta cualquier texto que salga del contenedor */
    text-overflow: ellipsis; /* Añade puntos suspensivos si el texto es muy largo */
}

.bottom-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    padding: 0 20px;
    align-items: center;
}

.arrow-button img {
    width: 50px;
    height: 50px;
}

.home-button img {
    width: 40px;
    height: 40px;
    margin-right: 25px;
}

.arrow-button, .home-button {
    text-decoration: none;
    transition: transform 0.3s;
}

.arrow-button:hover, .home-button:hover {
    transform: translateY(-2px);
}
.grid-item {
    text-decoration: none; /* Asegura que todo el enlace no tenga subrayado */
}
