@keyframes glow {

    from,
    to {
        box-shadow: 0 0 1rem 2px var(--neon-color), inset 0 0 0.2rem var(--neon-color);
        background-color: var(--main-color);
    }

    50% {
        box-shadow: 0 0 1.2rem 2px var(--main-color), inset 0 0 1rem var(--main-color);
        background-color: var(--neon-color);
    }
}

body {
    background-color: black;
    background-image: url("/img/bomboniere_topo.png"), url("/img/bomboniere_linha.png");
    background-repeat: repeat-x, repeat-y;
    background-size: 100vw;
    background-position: top center;

    width: 100vw;
    min-height: 150vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h1 {
    font-family: 'Agency FB', sans-serif;
    text-align: center;
    text-transform: uppercase;
    font-size: 6rem;
    letter-spacing: -0.02em;
    line-height: 1;
    font-weight: 700;
    color: white;

    text-shadow: 0 0 2rem var(--neon-color);

    margin-bottom: 1rem;
}

@media (max-width: 800px) {
    h1 {
        font-size: 2rem;
        margin-bottom: 0;
    }

    h1 br {
        display: none;
    }

}

#telas {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: space-evenly;

    width: 65vw;
    background-image: url("/img/bomboniere_telas.png");
    background-repeat: no-repeat;
    background-size: 100%;

    background-position: center;
}


#telas li {
    display: flex;
    flex-direction: column;
    align-items: center;

    color: #ffffff70;
    text-transform: uppercase;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    scale: 0.7;

    cursor: pointer;
    transition: color 350ms;
}

@media (max-width: 800px) {
    #telas {
        width: 80vw;
    }

    #telas li {
        width: 20vw;
        margin-top: 0.5em;
        flex-direction: column-reverse;

        font-size: 1rem;
    }

}

#telas li.active,
#telas li:hover {
    color: white;
}

#telas li.active img,
#telas li:hover img {
    filter: grayscale(0);
}

#telas li img {
    max-width: 50%;
    filter: grayscale(0.5);

    transition: filter 350ms;
}

nav {
    position: relative;

    width: 100vw;
    height: 100vh;
    margin-bottom: 25vh;
}

@media (max-width: 800px) {
    nav {
        height: 70vh;
        margin-bottom: 0;
    }

}

nav img {
    position: absolute;

    max-width: 80%;

    top: 0;
    left: 50vw;
    translate: -50%;

    transform-origin: 70% 80%;

    transition: all 500ms;
    cursor: pointer;
}

nav img.step1 {
    rotate: 30deg;
}

nav img.step2 {
    translate: -100vw;
}

nav img.step3 {
    opacity: 0;
}

nav img.hidden {
    opacity: 0;
    translate: 0;
}

main {
    width: 80vw;
    max-width: 120ch;

    margin-bottom: 5rem;
}

main .title {
    display: grid;
    grid-template-columns: 15rem 1fr;
    grid-template-areas: "image title" "image stub";
}

@media (max-width: 800px) {
    main .title {
        grid-template-columns: 7rem 1fr;
        grid-template-areas: "title title" "image stub";
    }

}

main .title img {
    grid-area: image;
    max-width: 100%;
    max-height: 100%;
}

main .title h2 {
    grid-area: title;
    color: white;
    font-size: 2.1rem;
    margin: 0;

    align-self: flex-end;
}

main .title h3 {
    grid-area: stub;
    color: white;
    font-size: 1.1rem;
    margin: 0;

    align-self: flex-start;
}

@media (max-width: 800px) {
    main .title {
        grid-template-columns: 7rem 1fr;
        grid-template-areas: "title title" "image stub";
    }

    main .title h2 {
        text-align: center;
    }

    main .title h3 {
        align-self: center;
    }

}

main .title h2::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 9999px;

    background-color: var(--main-color);
    animation: glow 5s linear infinite;
}

article {
    opacity: 0;
    height: 0;
    overflow: hidden;

    transition: opacity 350ms;
}

article.show {
    opacity: 1;
    height: auto;
}

article details {
    padding-bottom: 5rem;
}

article details>summary {
    list-style: none;
    display: grid;

    grid-template-columns: 1fr 3fr;
    grid-template-rows: min-content min-content;
    gap: 1em;
    grid-template-areas: "logo title" "logo subtitle";

    cursor: pointer;
}

article details:nth-of-type(even)>summary {
    grid-template-columns: 3fr 1fr;
    grid-template-areas: " title logo" "subtitle logo";
}

article details>summary::after {
    grid-area: subtitle;
    align-self: flex-end;
    text-align: right;

    content: "Saiba mais";

    font-size: 0.8rem;
    color: var(--main-color);

    text-shadow: 0 0 1.2rem 2px var(--neon-color), inset 0 0 1rem var(--neon-color);
    opacity: 0;

    transition: opacity 250ms;
}

article details>summary:hover:after {
    opacity: 1;
}

article details>summary img {
    grid-area: logo;
    max-width: 100%;
    align-self: center;
}

article details>summary h3 {
    grid-area: title;

    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.05em;

    color: white;

    margin: 0;
    align-self: end;
}

article details>summary p {
    grid-area: subtitle;

    color: white;

    margin: 0;
    align-self: start;
}

article details>.content>* {
    font-size: 0.9rem;
    line-height: 1.5em;

    color: white;
}

article .item {
    display: flex;
    flex-wrap: wrap;
}

article .item::after {
    flex: 0 0 100%;
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 9999px;

    margin-top: 2rem;
    margin-bottom: 2rem;

    background-color: white;
}

article .item:last-of-type:after {
    opacity: 0;
    margin-bottom: 4rem;
}

article .item h4 {
    flex: 0 0 45%;
    color: white;
    text-align: right;
    margin-right: 2rem;
    text-transform: uppercase;
}

article .item h4 span {
    display: block;
    font-size: 6rem;
    line-height: 0.9;
}

@media (max-width: 800px) {
    article .item {
        flex-wrap: nowrap;
        flex-direction: column;
    }

    article .item::after {
        flex: 0 0 2px;
    }

    article .item h4 span {
        font-size: 5rem;
        text-align: center;
    }
}

article .item ul {
    color: white;
    list-style: none;
}

article .item p {
    flex: 0 0 45%;
    align-self: center;
    color: white;
    line-height: 1.75em;
    text-wrap: pretty;
}

article .item ul span {
    font-weight: 900;
    font-size: 2rem;
    margin-right: 0.5em;
}

article>h4 {
    color: white;
    text-align: center;
    font-size: 1.5rem;
}

article>ul {
    color: white;
}

article>ul li {
    line-height: 1.5em;
    margin-bottom: 2em;
}

article>p {
    line-height: 1.5;
    color: white;
}

body>a {
    display: block;
    color: var(--main-color);

    text-align: center;
    text-decoration: none;
    margin-bottom: 5rem;

    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.05em;

    transition: color 250ms;
}

body>a:hover {
    color: white;
}