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;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #f5e8d0;
    align-items: center;
    padding: 20px;
    border-radius: 20px;
    width: 90%;
    max-width: 360px;
    height: 90%;
    max-height: 740px;
    overflow: hidden;
    position: relative;
}

.animated-text {
    display: inline-block;
    padding: 0;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.word {
    opacity: 0;
    display: inline-block;
    animation: fadeInText 0.5s ease forwards;
}

.word:nth-child(1) { animation-delay: 0s; }
.word:nth-child(2) { animation-delay: 0.3s; }
.word:nth-child(3) { animation-delay: 0.5s; }
.word:nth-child(4) { animation-delay: 0.7s; }
.word:nth-child(5) { animation-delay: 0.9s; }
.word:nth-child(6) { animation-delay: 1.1s; }
.word:nth-child(7) { animation-delay: 1.3s; }
.word:nth-child(8) { animation-delay: 1.5s; }
.word:nth-child(9) { animation-delay: 1.7s; }

.pollito {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
    animation: fadeIn 1.2s ease;
}

.next {
    font-size: 1.5em;
    color: #333;
    cursor: pointer;
    margin-bottom: 40px;
    opacity: 0; /* Inicialmente invisible */
    animation: fadeInText 1.8s ease forwards;
    text-decoration: none
}

.next:hover {
    color: #555;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInText {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bottom-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 10px;
    position: absolute;
    bottom: 10px; /* Ajuste para que esté casi pegado al fondo */
    left: 0;
    right: 0;
}

.arrow-button img {
    width: 50px;
    height: 50px;
}

.home-button img {
    width: 40px;
    height: 40px;
    margin-right: 20px;
}

.arrow-button, .home-button {
    text-decoration: none;
    transition: transform 0.3s;
}

.arrow-button:hover, .home-button:hover {
    transform: translateY(-2px);
}
