* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f0b9cb; /* Rosa claro */
    font-family: Arial, sans-serif;
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Evitar scroll */
    position: relative;
}

.sacapuntas-link {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    transition: transform 0.3s ease;
}

.sacapuntas-link:hover {
    transform: scale(1.1);
}

.sacapuntas {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.container {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: opacity 0.25s ease-in-out;
    /* Posición inicial centrada */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.speech-bubble {
    background-color: white;
    border: 3px solid #333;
    border-radius: 20px;
    padding: 15px 20px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: float 2s ease-in-out infinite;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #333;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid white;
}

.speech-bubble p {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin: 0;
}

.character-container {
    position: relative;
    transition: all 0.5s ease-in-out;
}

#character {
    width: 200px;
    height: 200px;
    object-fit: contain;
    transition: opacity 0.5s ease-in-out;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Animación de parpadeo para la transición */
.fade-out {
    opacity: 0;
}

.fade-in {
    opacity: 1;
}
