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;
    align-items: center;
    background-color: #f5e8d0;
    padding: 20px;
    border-radius: 20px;
    width: 90%;
    max-width: 360px;
    height: 90%;
    max-height: 740px;
    overflow: hidden;
    position: relative;
}

.speech-bubble {
    background-color: white;
    border-radius: 10px;
    padding: 10px 20px;
    margin-bottom: 20px;
    font-size: 1.2em;
    position: relative;
    width: auto;
    max-width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0 10px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.animated-text {
    display: inline-block;
    padding: 0;
    margin-bottom: 20px;
}

.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.6s; }
.word:nth-child(4) { animation-delay: 0.9s; }
.word:nth-child(5) { animation-delay: 1.2s; }
.word:nth-child(6) { animation-delay: 1.5s; }
.word:nth-child(7) { animation-delay: 1.8s; }

@keyframes fadeInText {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.character-image {
    width: 130px;
}

.question {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.question-link {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.question-link:hover {
    color: #000;
}

.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);
}
