@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);
    }
}

#tela {
    background-color: black;
    background-image: url("/img/servicos-tela.png");
    background-repeat: no-repeat;
    background-size: 100vw;
    background-position: center;

    width: 100vw;
    aspect-ratio: 192 / 93;
    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;
}

#tela video,
#tela #ytplayer {
    margin-top: 4.5vw;
    width: 76vw;
    aspect-ratio: 16/9;
}

#info {
    background-color: black;
    background-image: linear-gradient(rgba(14, 2, 0, 0.5) 25%, rgba(97, 12, 5, 0.15) 50%), url("/img/servicos-publico.png");
    background-repeat: no-repeat;
    background-size: 100vw;
    background-position: top;

    width: 100vw;
    max-height: 100vh;

    overflow-y: scroll;
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;

    position: relative;

    --padding-sides: max(8vw, calc((100vw - 1260px) / 2));
    color: var(--text-color);
}

#info::-webkit-scrollbar {
    display: none;
}

#info::before {
    content: "";
    display: block;

    width: 100vw;
    height: 10vmax;

    background-image: url("/img/servicos-fade.png");
    background-repeat: no-repeat;
    background-size: 100vw;
    background-position: top;

    position: sticky;
    top: 0;
    left: 0;

    margin-bottom: -5vmax;
}

#info>a {
    display: block;
    color: var(--main-color);

    text-align: center;
    text-decoration: none;
    margin-bottom: 10rem;

    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.05em;

    transition: color 250ms;
}

#info>a:hover {
    color: white;
}

#main {
    display: grid;
    grid-template-columns: 30% auto;
    grid-template-rows: repeat(4, min-content);
    grid-template-areas: "symbol title" "symbol subtitle" "symbol list" "symbol description";
    gap: 0.5rem 1rem;

    padding: 1rem var(--padding-sides);
}

#main h1 {
    text-align: center;
    grid-area: title;
    font-size: 2.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
}

#main h1::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 9999px;

    margin-top: 1rem;
    margin-bottom: 1.75rem;

    background-color: var(--main-color);
    animation: glow 5s linear infinite;

}

#main h2 {
    grid-area: subtitle;
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
    margin-bottom: 0.5rem;
}

#main ul {
    grid-area: list;
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}

#main ul li {
    font-size: 0.8rem;
    font-style: italic;

    display: flex;
    justify-content: space-between;
    white-space: nowrap;
}

#main ul li::after {
    content: "";
    display: inline-block;
}

#main ul li+li::before {
    content: "|";
    display: inline-block;
    margin: 0 1rem;
}

#main p {

    grid-area: description;

    font-size: 1.1rem;
    line-height: 1.95em;
    text-align: justify;
}

#main p:first-line {
    position: relative;
    text-transform: uppercase;
    font-size: 0.9em;
}

#main p:first-letter {
    letter-spacing: 0;
    text-transform: uppercase;
    font-size: 4em;
    float: left;
    margin: 0.13em 0.2em 0 0;
    line-height: 0.7;
}

#main video {
    grid-area: symbol;
    align-self: center;
    justify-self: center;

    width: 100%;
}

@media (max-width: 800px) {
    #main {
        grid-template-areas: "symbol title" "symbol subtitle" "list list" "description description";
    }

    #main h1 {
        font-size: 1.5rem;
        text-align: left;
    }

    #main h2 {
        margin-top: -1em;
        margin-bottom: 1em;
    }
}

#others {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: masonry;
    gap: 2rem;

    padding: 1rem var(--padding-sides);
    padding-bottom: 10vh;
}

@media (max-width: 800px) {
    #others {
        grid-template-columns: 1fr;
    }
}

.selo {
    pointer-events: none;
    grid-column: 1 / -1;
    transition: opacity 250ms;
    text-align: center;
}

.selo img {
    max-width: 100%;
    max-height: 100%;
    align-self: center;
}

.markdown>h1 {
    font-size: 1.1rem;
    margin: 0;
}

.markdown>h1::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 9999px;

    margin-top: 1em;
    margin-bottom: 1.75em;

    background-color: var(--main-color);
    animation: glow 5s linear infinite;
}

.markdown ul,
.markdown ol {
    counter-reset: list;
    list-style: none;
    padding: 0;
}

.markdown ul li,
.markdown ol li {
    margin-bottom: 1rem;
    line-height: 1.7em;
}

.markdown ul ol,
.markdown ol ol,
.markdown ul ul,
.markdown ol ul {
    margin-left: 1.5rem;
}


.markdown ul>li::before {
    content: "";
    display: inline-block;

    margin-right: 1em;

    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    vertical-align: middle;

    animation: glow 5s -250ms linear infinite;
}

.markdown ol>li::before {
    content: counter(list);
    counter-increment: list;
    display: inline-flex;
    justify-content: center;
    align-items: center;

    font-size: 1.5rem;
    font-weight: 900;
    margin-right: 1em;

    vertical-align: middle;
    color: var(--main-color);

    text-shadow: 0 0 1.2rem 2px var(--neon-color), inset 0 0 1rem var(--neon-color);
}



.markdown ul li h4 {
    display: inline;
    font-size: 1.1em;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.markdown p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.9em;

    text-align: justify;
}

.markdown strong {
    font-weight: 900;
    letter-spacing: 0.05em;
}

.markdown a {
    cursor: pointer;
    color: var(--main-color);
}

.markdown .videowrapper,
.markdown img {
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
}

.markdown img {
    max-height: 100%;
    object-fit: contain;
}

.markdown video {
    width: 100%;
}

.markdown details {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.markdown details>summary {
    list-style: none;
    display: grid;

    grid-template-columns: 1fr 2fr;
    grid-template-rows: min-content min-content;
    gap: 1em;
    grid-template-areas: "logo title" "logo subtitle";

    cursor: pointer;
}

.markdown 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;
}

.markdown details>summary:hover:after {
    opacity: 1;
}

.markdown details>summary img {
    grid-area: logo;
    max-width: 100%;
    align-self: center;
}

.markdown details>summary h4 {
    grid-area: title;

    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.05em;

    color: var(--main-color);

    margin: 0;
    align-self: end;
}

.markdown details>summary h4 span {
    font-size: 1rem;
    font-weight: 400;

    color: white;
}

.markdown details>summary h5 {
    grid-area: subtitle;

    margin: 0;
    align-self: start;
}

.markdown details>.content>* {
    font-size: 0.9rem;
    line-height: 1.5em;
}