@charset "UTF-8";

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

:root {
    --cor-border: hsl(0, 0%, 85%);
    --cor-headline: hsl(8, 71%, 60%);

    --text-title: #1c1c1c;
    --text-secundary: hsl(0, 0%, 20%);
    --blue-history: hsl(213, 87%, 35%);
    --purple-couple: hsl(270, 70%, 35%);
    --pink-family: hsl(342, 79%, 52%);
    --orange-free: hsl(22, 87%, 49%);

    --h1-fs: 2.25rem;
    --h2-fs: 2rem;
    --h3-fs: 1.65rem;
}

::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}

body {
    width: 100vw;
    height: 100vh;
    font-family: "Open Sans", serif;
    font-size: 1rem;
}

h1 {
    font-size: var(--h1-fs);
}

h2 {
    font-size:var(--h2-fs);
    margin-bottom: 0.25rem;
}

h3 {
    font-size: var(--h3-fs);
    margin-bottom: 0.25rem;
}

h1, h2, h3 {
    font-weight: bold;
    color: var(--text-title);
}

P {
    line-height: 1.6rem;
    color: var(--text-secundary);
    text-indent: 1rem;
}

.headline, .subtitle, h1, h2, h3, p, ul {
    padding-inline: 1rem;
}

#title-page {
    margin: 3rem auto;
}

span {
    display: block;
}

.headline {
    color: var(--cor-headline);
    font-weight: bold;
}

.subtitle {
    font-style: italic;
    text-align: center;
    margin-bottom: 2.5rem;
    line-height: 1.6rem;
    color: var(--text-secundary);
}

header {
    margin-bottom: 2.5rem;
}

main {
    border-top: 1px solid var(--cor-border);
}

img {
    width: 100%;
    margin-bottom: 1.25rem;
}

section#title-list {
    margin: 3rem 0rem;
}

section + section {
    margin-bottom: 2.5rem;
}

.drop {
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.drop:hover {
    box-shadow: 2px 2px 3px 1px rgba(0, 0, 0, 0.356); 
}

article.drop-text {
    transition: all 0.3s ease-in-out;
}

article.drop-text p {
    transition: all 0.3s ease-in-out;

    display: -webkit-box; 
    -webkit-box-orient: vertical; 
    -webkit-line-clamp: 3; 
    line-clamp: 3;
    overflow: hidden; 
    text-overflow: ellipsis; 
}

article.drop-text p.expandido {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    line-clamp: unset;
    overflow: visible;
    text-overflow: unset;
}

article.drop-text span {
    padding-inline: 1rem;
    margin-top: 2rem;
    font-weight: bolder;
}

.history {
    color: var(--blue-history);
}

.couple {
    color: var(--purple-couple);
}

.family {
    color: var(--pink-family);
}

.free {
    color: var(--orange-free);
}

aside {
    border-top: 1px solid var(--cor-border);
    padding-inline: 1rem;
}

aside p {
    margin-block: 2.5rem;
}

nav#menu {
    position: sticky;
    bottom: 0;
    max-width: 100%;
    background-color: white;
    padding-block: 0.4rem;
    margin-top: 3rem;
    
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
}

nav#menu menu{
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    gap: clamp(3rem, 30vw, 9rem); /* Mínimo de 1rem, ajustável com viewport, máximo de 6rem */
    max-width: 18.75rem; /* Limita a largura do menu */
}

nav#menu img {
    width: 1.8rem; /* Ajuste o tamanho dos ícones */
    display: inline-block; /* Evita espaços extras ao redor da imagem */
}

@media (min-width: 30.3125em) {
    nav#menu menu{
        gap: 10rem;
    }

    aside p {
        margin-block: 2.5rem;
    }
}

@media (width >= 37.5em) {
    :root {
        --h3-fs: 1.75rem;
    }

    svg.drop {
        display: none;
    }

    article.drop-text {
        display: block !important;
    }

    nav#menu {
        display: none;
    }
}

@media (width >= 64em) {
    article#title-page {
        max-width: 70rem;
        margin: 2.658rem auto;
        padding: 1rem;
    }

    img {
        border-radius: 1.75rem;
    }
}
