.Amor,
.Livro {
    display: flex;
    justify-content: center;
    align-items: center;
    /* flex-wrap: wrap;*/
}

.quadrado {
    position: relative;
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.5);
    overflow: hidden;
    /* Isso garante que o conteúdo não ultrapasse o quadrado */
}

.quadrado:before {
    content: "";
    display: block;
    padding-top: 100%;
    /* Isso cria um quadrado */
}

.quadrado img {
    margin-top: 5%;
    margin-left: 40%;
    max-width: 20%;
    max-height: 20%;
}

.quadrado h3 {
    margin-top: -25%;
    font-size: clamp(16px, 2vw, 48px);
    /* Ajuste estes valores conforme necessário */
}

.quadrado p {
    display: flex;
    justify-content: center;
    margin: 5%;
    margin-top: 20%;
    max-width: 87%;
    /* Isso limita a largura do texto a 90% da largura do contêiner pai */
    text-align: center;

}

.quadrado>* {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

.Amor {
    position: relative;
    margin: 1%;
}

.Amor img {
    width: 100%;
    height: auto;
    margin-top: 10%;
}

.Amor svg {
    position: absolute;
    width: 100vw;
    top: -2%;
}

.Amor svg:first-child {
    height: auto;
    transform: scaleY(-1);
}

.Amor svg:last-child {
    bottom: 0;
    height: 100px;
}

.Amor .amor-content {
    position: relative;
}

.Amor p,
.Amor h2 {
    text-align: center;
}

.Amor h2 {
    font-family: "Clicker Script", fantasy;
    margin-top: 0%;
    margin-left: 2%;
    line-height: 0.8;
    font-size: 8vw;
}

.Amor p {
    margin-top: -5%;
    font-size: 6vw;
    padding: 1%;
}

.P1 {
    width: 100vw;
    height: 100vh;
    overflow: auto;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    grid-gap: 1%;
}

.photo {
    overflow: hidden;
    position: relative;
}

.photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform .2s ease-in-out;
}

.photo:active img {
    transform: scale(1.5);
    transform-origin: center;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.popup img {
    max-width: 90%;
    max-height: 90%;
}

.popup.active {
    opacity: 1;
    pointer-events: auto;
}


/* Estilos para a barra de menu */
.navbar {
    padding: 10px;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.navbar li {
    margin-right: 10px;
    border: 1px solid #000;
    border-radius: 5px;
    transition: outline 0.3s ease-in-out;
}

.navbar li:hover {
    outline: 1px solid #000;
}

.navbar a {
    text-decoration: none;
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.navbar a:hover {
    background-color: var(--hover-color);
}

/* Estilos para a barra de menu em dispositivos móveis */
@media (max-width: 600px) {
    .navbar {
        padding: 10px 20px;
    }

    .navbar ul {
        flex-direction: column;
    }

    .navbar li {
        margin-right: 0;
        margin-bottom: 8px;

    }
}

/* Estilos para tornar o conteúdo responsivo */
@media (max-width: 768px) {

    .gallery img {
        border-radius: 5%;
        width: 100%;
        height: auto;
    }

    .photo img:hover {
        transform: scale(1.5);
    }

    .P1 * {
        width: 100%;
        height: auto;
        box-sizing: border-box;
    }

    .Livro {
        width: 100vw;
        right: 10%;
    }

    .quadrado {
        width: 100%;
    }

    .quadrado img {
        width: 20%;
        height: 15%;
    }

    .quadrado:before {
        padding-bottom: 20%;
    }

    .Amor img {
        margin-top: 20%;
    }

    .Amor h2 {
        margin-top: 25%;
        margin-left: 2%;
        font-size: 7vw;
    }

    .Amor p {
        font-size: 4vw;
    }
}