@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&display=swap');

body {
    background-color: #f9f3e8;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-direction: column;
}

.flower {
    position: absolute;
    bottom: -50px;
    font-size: 2rem;
    animation: rise 5s ease-in-out infinite;
    z-index: 1;
}

@keyframes rise {
    0% {
        bottom: -50px;
        opacity: 0;
    }
    100% {
        bottom: 100%;
        opacity: 1;
    }
}

.container-principal {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.container {
    width: 100vw;
    height: 50vh;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.img-wrapper {
    position: relative;
    width: 16.66vw; /* 100 / 6 fotos por linha */
    height: 50vh;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: solid 2px #FFFFFF;
    border-radius: 2px;
}

.heart {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 1.5rem;
}

.img-wrapper img.brilho {
    filter: brightness(120%) grayscale(20%) opacity(0.4);
}

.love-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    color: #e91e63;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
    white-space: nowrap;
}

/* Animação de girar e centralizar */
@keyframes girarCentralizar {
    0% {
        transform: rotate(0deg) scale(1) translate(0, 0);
    }
    50% {
        transform: rotate(180deg) scale(0.5) translate(50%, -50%);
    }
    100% {
        transform: rotate(360deg) scale(0) translate(100vw, 100vh);
    }
}

/* Classe para a animação de transição (sem a animação inicial) */
.transition {
    animation: girarCentralizar 2s ease-in-out forwards;
}

/* Estilo inicial da animação, ela será ativada após 10 segundos */
.container-principal {
    transition: none;
}


@media (max-width: 768px) {
    .container-principal {
        height: 100vh;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .container {
        width: 100vw;
        height: auto;
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: center;
    }

    .img-wrapper {
        width: 33.33vw; /* 3 imagens por linha */
        height: 33.33vh; /* 3 linhas na vertical */
    }

    .img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .love-message {
        font-size: 2.5rem; /* Menor no celular */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }    
}

