html {
    font-family: "Poppins", Arial, Helvetica, sans-serif;
}

body {
    background-color: #002222;
}

/* menu */
header,
footer {
    background-color: #002222;
    width: 100%;
    min-height: 72px;
}

header {
    top: 0;
    position: fixed;
    z-index: 999999;
}

nav ul {
    list-style-type: none;
    padding-inline-start: 0;
    box-sizing: border-box;
    margin: 0;
}

nav ul.menu ul li {
    line-height: 2em;
}

nav ul a {
    text-decoration: none;
    color: darkgray;
}

nav ul a:hover {
    color: gainsboro;
}

footer nav ul {
    padding: 16px 0;
}

footer nav ul ul {
    justify-content: flex-start;
}

footer nav ul ul li {
    margin-right: 3em;
}

footer nav.menu-rodape ul li {
    font-size: .85em;
}

@media screen and (orientation:portrait) {
    #menu-topo ul li.logo {
        position: fixed;
        margin-left: -50%;
        width: 100vw;
        left: 50%;
        max-height: 72px;
        top: 50px;
        margin-top: -50px;
        text-align: center;
        padding: 16px;
        transform: none;
        opacity: 1;
    }


    .menu {
        padding: 0;
        margin: 0;
        position: fixed;
        left: -100vw;
        z-index: 998;
    }

    .menu>li {
        margin: 0;
        padding: 1em 32px;
        transform: translateX(200vw);
        transition: all .1s ease-in;
        opacity: 0;
        width: 100vw;
        box-shadow: 0 0 0.2em 0 rgb(0 0 0 / 50%);
    }

    .menu>li:first-child {
        padding-top: 96px;
    }

    #menu-topo.ativo .menu>li {
        transform: translateX(100vw);
        transition: all .2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        ;
        opacity: 1;
        background-color: black;
    }

    #menu-topo.ativo .menu>li:nth-child(2) {
        transform: none;
    }

    #menu-topo.ativo .menu>li:first-child,
    #menu-topo .menu>li:last-child {
        transition-delay: .01s;
    }

    #menu-topo.ativo .menu>li:nth-child(3),
    #menu-topo .menu>li:nth-child(1) {
        transition-delay: .08s;
    }

    .line {
        height: 3px;
        width: 24px;
        margin: 5px auto;
        border-radius: 2px;
        -webkit-transition: all 600ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
        transition: all 600ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .menu-button {
        padding: 8px;
        border-radius: 50%;
        box-shadow: 0 0 0.2em 0 rgb(0 0 0 / 70%);
        border: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 16px;
        position: fixed;
        z-index: 999;
        background: none;

    }

    .menu-button>.hamburger {
        width: 24px;
        height: 24px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }

    #menu-topo.ativo .menu-button>div {
        outline: none;
    }

    #menu-topo.ativo .menu-button>.hamburger>.line:nth-child(1),
    #menu-topo.ativo .menu-button>.hamburger>.line:nth-child(1) {
        -webkit-transform: rotate(45deg) translate(3px, 6px);
        transform: rotate(45deg) translate(3px, 6px);
    }

    #menu-topo.ativo .menu-button>.hamburger>.line:nth-child(2),
    #menu-topo.ativo .menu-button>.hamburger>.line:nth-child(2) {
        -webkit-transform: rotate(-45deg) translate(3px, -6px);
        transform: rotate(-45deg) translate(3px, -6px);
    }

    .line {
        background-color: gray;
    }

    #menu-topo ul ul {
        padding: 1em;
    }

    .subs-button {
        margin: calc(7px + .3em) .3em;
    }

    footer {
        position: static;
    }

    footer nav ul {
        display: flex;
        flex-wrap: wrap;
        padding: 16px;
        margin: 0;
        justify-content: space-around;
    }

    .submenu ul {

        justify-content: flex-start;
    }

    section {
        flex-direction: column;
        padding: 2em 1em;
    }

    video {
        max-width: 100vw;
    }
}

@media screen and (orientation:landscape) {

    nav#menu-topo ul ul,
    nav#menu-topo ul ul>ul {
        display: none;
    }

    nav#menu-topo ul {
        position: fixed;
    }

    nav#menu-topo ul li:hover>ul,
    nav#menu-topo ul ul li:hover>ul {
        display: block;
        margin-left: -1em;
        padding: 1em;
        background-color: black;
    }

    nav#menu-topo ul li:hover ul ul {
        padding: 0;
        margin-left: 1em;
    }

    nav>ul {
        display: flex;
        justify-content: space-around;
        width: 100%;
        align-items: center;
        justify-items: center;
        max-width: 1200px;
        margin: auto;
    }

    .logo {
        margin-top: .5em;
    }

    #menu-topo>ul {
        position: fixed;
        left: 0;
        right: 0;
        padding: 7px;
        z-index: 998;
    }


    footer nav ul {
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        justify-items: center;
        margin: auto;
        flex-wrap: wrap;
    }

    footer nav>ul>li {
        padding: 0 1.5em;
    }

    .menu-button {
        display: none;
    }

    .submenu ul {
        justify-content: center;
    }

    section a {
        display: flex;
    }
    .pdfs {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

}

/* botoes */
.contents a>p {
    display: flex;
    aspect-ratio: 1/1;
    align-items: center;
    justify-content: center;
    background-color: #99EECC;
    color: #002222;
    border-radius: 50%;
    text-transform: uppercase;
    padding: 2em;
    font-size: 1rem;
    line-height: 2rem;
}

section {
    display: flex;
    padding: 3em 0;
}

section a div {
    padding: 1em;
    margin: 1em;
    background-color: #324B4B;
    border-radius: 2%;
}

section a div:hover {
    -webkit-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    -o-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

p {
    margin-block: 0;
    margin: .5em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #99EECC;
}

section a {
    text-decoration: none;
}


.folder a:link,
.folder a:visited {
    color: #06C;
    border: 1px solid #FF3;
    background-color: #FF3;
    transition: color 0.2s, border 0.3s;
}

.folder a:hover {
    color: #06C;
    border: 1px solid #FC0;
    background-color: #FC0;
    -webkit-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    -o-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

img {
    width: 200px;
    height: auto;
}

.contents {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin: 72px auto;
    text-align: center;
    align-items: center;
}

.video {
    width: 100vw;
}