/* // FONTS // */

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

@font-face {
    font-family: "Flama Semicondensed";
    src: url(https://arte.estadao.com.br/share/fonts/FlamaSemicondensed/FlamaSemicondensed-Book.woff2) format("woff2"),url(https://arte.estadao.com.br/share/fonts/FlamaSemicondensed/FlamaSemicondensed-Book.woff) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: "Flama Semicondensed";
    src: url(https://arte.estadao.com.br/share/fonts/FlamaSemicondensed/FlamaSemicondensed-Semibold.woff2) format("woff2"),url(https://arte.estadao.com.br/share/fonts/FlamaSemicondensed/FlamaSemicondensed-Semibold.woff) format("woff");
    font-weight: 600;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: "Flama Semicondensed";
    src: url(https://arte.estadao.com.br/share/fonts/FlamaSemicondensed/FlamaSemicondensed-Bold.woff2) format("woff2"),url(https://arte.estadao.com.br/share/fonts/FlamaSemicondensed/FlamaSemicondensed-Bold.woff) format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap
}

/* // BASE-DEFS // */

:root {
    --app-color-black: #1a1a1a;
    --app-color-1: #0130D8;

    --cargo-1: #bdd8ff;
    --cargo-2: #bdc2ff;
    --cargo-3: #bdebff;
    --cargo-4: #bdffff;
    --cargo-5: #bdffd2;
    --cargo-6: #eeffbd;

    font-size:16px;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    max-height: 1080px;
    background-color: #e4e4e8;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1500px;
    height: 95vh;
    max-height: 750px;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 20px;
    gap: 10px;
    max-width: 550px;
}

header h1 {
    font-family: "Lato", sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    color: var(--app-color-1);
    margin: 0;
}

header h2 {
    font-family: "Lato", sans-serif;
    font-size: 1.1rem;
    line-height: 1.3rem;
    font-weight: 400;
    text-align: center;
    color: var(--app-color-black);
    margin: 0;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 20px;
    padding-bottom: 0;
    max-width: 410px;
}

footer p {
    font-family: "Lato", sans-serif;
    font-size: 0.8rem;
    line-height: 1rem;
    font-weight: 400;
    text-align: center;
    text-transform: uppercase;
    color: var(--app-color-black);
    opacity: 0.66;
    margin: 0;
}

.hidden {
    display: none !important;
}

/* // APP // */

.main-app {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.main-character {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
}

.main-character .photo {
    height: 30vw;
    width: 30vw;
    min-height: 115px;
    max-height: 155px;
    min-width: 115px;
    max-width: 155px;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    border-radius: 150px;
    border: solid 3px var(--app-color-1);
}

.main-character img {
    width: 100%;
}

.main-character h3 {
    font-family: "Lato", sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin: 10px 0 5px;
}

.main-character p {
    font-family: "Lato", sans-serif;
    font-size: 1.0rem;
    font-weight: 400;
    text-align: center;
    max-width: 660px;
    opacity: 0.66;
    padding: 0 35px;
    margin: 0;
}

.cards-container {
    flex-grow: 1;
    width: 80%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    overflow-block: auto;
    gap: 10px;
    max-width: -webkit-fill-available;
    cursor: grab;
    user-select: none;
}

@media (max-width: 768px) {
    .cards-container {
        scroll-snap-type: x mandatory;
    }
}

.cards-container::-webkit-scrollbar {
    opacity: 0.0;
    height: 5px;
}

.cards-container::-webkit-scrollbar-thumb {
    background-color: #9F9F9F;
    opacity: 1.0;
}

.cards-container .is-dragging {
    cursor: grabbing;
    user-select: none;
}

.cards-container .card {
    background-color: #fff;
    height: 100%;
    max-height: 250px;
    width: 55vw;
    border-radius: 20px;
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 25px 30px;
}

@media (min-width: 768px) {
    .cards-container .card {
        width: 20vw;
        max-width: 300px;
    }
}

.card img {
    width: 75px;
    height: 75px;
    border-radius: 60px;
}

@media (min-width: 768px) {
    .card img {
        width: 90px;
        height: 90px;
    }
}

.card h4 {
    font-family: "Lato", sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    margin: 10px 0 5px;
}

.card .cargo {
    font-family: "Lato", sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    text-align: center;
    text-transform: uppercase;
    margin: 5px 0 10px;
    padding: 6px 12px;
    border-radius: 50px;
    color: var(--app-color-black);
    width: fit-content;
}

.card button {
    font-family: "Flama Semicondensed", sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 15px;
    padding: 12px 14px;
    border: solid 1px #aaa;
    border-radius: 10px;
    color: #777;
    cursor: pointer;
}

.popup-container {
    position: absolute;
    z-index: 10;
    width: 100%;
    height: 100%;
    background: rgb(228 228 232 / 75%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.popup-container .card {
    background-color: #fff;
    height: fit-content;
    min-height: 230px;
    width: 70vw;
    border-radius: 20px;
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 30px;
}

@media (min-width: 768px) {
    .popup-container .card {
        width: 40vw;
        padding: 20px 40px;
    }
}

.popup-container .card p {
    font-family: "Lato", sans-serif;
    font-size: 1rem;
    line-height: 1.3rem;
    font-weight: 400;
    color: var(--app-color-black);
    margin: 20px 0px;
}

.card .close {
    position: relative;
    margin-bottom: -30px;
    width: 30px;
    height: 30px;
    align-self: end;
    top: -15px;
    left: 15px;
    cursor: pointer;
}

.card .close svg {
    height: 100%;
    fill: var(--app-color-black);
    opacity: 0.66;
}


/* // ANIMATIONS // */

.enter-animation {
    animation: scale-in 0.25s 1 forwards;
}

@keyframes scale-in {
    0% {
        transform: scale(0.75);
        opacity: 0.0;
    }
    100% {
        transform: scale(1.0);
        opacity: 1.0;
    }
}