body {
    background-color: pink;
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 50px;
}

.contenedor {
    background: rgb(245, 128, 206);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

button {
    background-color: red;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

button:hover {
    background-color: darkred;
}

.oculto {
    display: none;
}

.mostrar {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: rgb(122, 5, 97);
    margin-top: 20px;
}
/* Animación para que el texto aparezca con un efecto suave */
@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aplicar la animación al título y al mensaje */
h1, p {
    animation: aparecer 1.5s ease-out;
}
@keyframes zoomAparecer {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Aplicar animación cuando el mensaje aparece */
.mostrar {
    display: block;
    animation: zoomAparecer 0.5s ease-in-out;
}
.corazon {
    position: fixed;
    color: rgb(117, 5, 108);
    font-size: 30px;
    top: -10px;
    animation: caer 5s linear infinite;
}

/* Animación para que los corazones caigan */
@keyframes caer {
    from {
        transform: translateY(-50px);
        opacity: 1;
    }
    to {
        transform: translateY(100vh);
        opacity: 0;
    }
}
@keyframes animarImagen {
    0% {
        transform: scale(0.5) translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}
.imagen {
    display: block;
    margin-top: 90px; /* Ajusta este valor para bajarla más */
    margin-left: auto;
    margin-right: auto;
    width: 600px; /* Mantiene el mismo ancho */
    border-radius: 15px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}
.imagen {
    display: block;
    margin-top: 100px;
    margin-left: auto;
    margin-right: auto;
    width: 80%; /* Se adapta al tamaño de la pantalla */
    max-width: 600px; /* No será más grande de 600px */
    border-radius: 15px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

