body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f9f9f9;
}

.container {
    display: flex;
}

.card {
    position: relative;
    width: 350px;
    height: 600px;
    overflow: hidden; /* Para ocultar el contenido que se desplaza fuera del contenedor */
}

.page {
    padding: 20px;
    margin: 10px;
    position: absolute;
    width: 300px;
    height: 500px;
    background-color: #fff;
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    max-width: 600px;
    animation: fade-in 1s ease-in-out;
    transition: transform 0.5s ease-in-out;
}

.page:not(#page1) {
    text-align: center;
}

button {
    padding: 10px;
    margin-top: 20px;
    cursor: pointer;
}

@keyframes estirarEncoger {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.card>button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: absolute;
    display: inline-block;
    border: none;
    cursor: pointer;
    bottom: 10px;
}

.card>button:not(.reload-page) {
    animation: estirarEncoger 1.5s infinite ease-in-out;
}

.card>button.arrow-next {
    padding-right: 10px;
    right: 10px;
}

.card>button.arrow-previous {
    margin-left: 10px;
    padding-left: 10px;
    left: 10px;
}

.card>button.reload-page {
    left: 50%;
    top: 92%;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translate(-50%, -50%);
    border: 4px solid transparent;
    border-radius: 50%;
    animation: spin 4s linear infinite;
    animation-delay: 1s;
}

@keyframes spin {
    0%, 25% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    50%, 75% {
        transform: translate(-50%, -50%) rotate(-180deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

.reload-page:hover::before {
    opacity: 1;
}

.button-image {
    width: 50px;
    height: auto;
    object-fit: contain;
}

.button-image:not(.geometric-heart) {
    animation: jump 0.5s infinite alternate; /* Agrega una animación de salto */
}

@keyframes jump {
    to {
        transform: translateY(-10px);
    }
}

.p1, .p2, .p3 {
    display: block;
    animation: fade-in 1s ease-in-out;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.hide {
    display: none !important;
}

.page button:not(.hide) {
    display: block !important;
}

/** CSS contenido Page1 **/
#page1 {
    background-image: url('img/card-title.jpeg');
    z-index: 1;
    display: flex;
    align-items: center;
}

#page1>div {
    display: block;
}

#page1 h1 {
    font-size: 4.9em;
    margin: 0px;
    color: transparent;
    opacity: 0;
    animation: entradaTitulo 0.5s ease-out forwards;
}

#page1 h1:nth-child(1) {
    transform: translateX(-30px);
    animation-delay: 0.5s;
    color: #2f58a0;
}

#page1 h1:nth-child(2) {
    transform: translateX(30px);
    animation-delay: 0.5s;
    color: #a3c6db;
}

#page1 h1:nth-child(5) {
    transform: translateX(-30px);
    animation-delay: 1s;
    color: #7f98c4;
}

#page1 h1:nth-child(6) {
    transform: translateX(30px);
    animation-delay: 1s;
    color: #429acc;
}

@keyframes entradaTitulo {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#page1 .geometric-heart {
    left: 40%;
    position: absolute;
    animation: fade-in 1s ease-in-out;
}

/** CSS contenido Page2 **/

#page2 {
    background-image: url('img/card-girasoles.jpg');
    z-index: 2; /* Asegura que la página 2 se superponga a la página 1 */
}

/** CSS contenido Page3 **/

#page3 {
    background-image: url('img/card-rosas.jpeg');
    z-index: 3; /* Asegura que la página 3 se superponga a la página 2 */
}

/** CSS contenido Page4 **/

#page4 {
    background-image: url('img/card-lirios.jpeg');
    z-index: 4; /* Asegura que la página 4 se superponga a la página 3 */
}

#page4 p:not(.hide) {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/** CSS contenido Page5 **/

#page5 {
    background-image: url('img/card-girasoles2.jpeg');
    z-index: 5; /* Asegura que la página 5 se superponga a la página 4 */
    display: flex;
    align-items: center;
}

#page5>div {
    display: block;
}

#page6 {
    background-image: url('img/card-hortensias.jpg');
    z-index: 6;
}

#page6 p:not(.hide) {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 18px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}