:root {
    --corpo: #202020;
    --botoes: #0f0f0f;
    --botoes-hover: #303030;
    --container: #F2CB05;
    --header: #0f0f0f;
    --menu: #0f0f0f;
    --mini-menu: #202020;
    --mini-menu-hover: #303030;
    --letras-brancas: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--corpo);
    color: white;
    font-family: Arial, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/*==== Cabeçalho ====*/
header {
    background-color: var(--header);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    gap: 20px;
    padding: 20px;
    color: white;
}

header img {
    height: 80px;
    max-width: 100%;
}

header h1 {
    font-size: 35px;
}

/*== Menu ==*/
#menu {
    width: 45px;
    height: auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 40px;
    left: 40px;
    z-index: 3;
}

.menu-bar {
    display: flex;
    flex-direction: column;
    width: 35px;
    gap: 5px;
}

.bar {
    width: 100%;
    height: 6px;
    background-color: var(--letras-brancas);
    border-radius: 3px;
    transition: 0.3s ease;
}

#bar1 {
    transform: translateY(-4px);
}

#bar3 {
    transform: translateY(4px);
}

.nav-prim img {
    height: 30%;
    width: 100%;
}

.nav-prim {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--menu);
    transition: left 0.3s ease;
    z-index: 2;
    padding-top: 60px;
    font-size: 2.5em;
}

.nav-prim.change {
    left: 0;
}

.nav-prim a {
    display: block;
    color: var(--letras-brancas);
    text-decoration: none;
    padding: 20px;
}

.nav-prim a:hover {
    background-color: var(--mini-menu-hover);
}

/* Menu dos projetos */
.nav-sec {
    font-size: 0.8em;
}

.nav-sec p {
    background-color: var(--mini-menu);
    padding: 20px;
    cursor: pointer;
}

.nav-sec .links {
    background-color: var(--mini-menu);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-sec .links.sec-open {
    max-height: 500px;
}

.nav-sec li {
    cursor: pointer;
}

.nav-sec a {
    padding: 5px;
    font-size: 0.5em;
}

.nav-sec p:hover, li:hover {
    background-color: var(--mini-menu-hover);
}

/* Seta */
#seta {
    display: inline-block;
    transition: transform 0.3s ease;
}

.girar {
    transform: rotate(180deg);
}

/* Fundo escuro atrás do menu */
.menu-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
    transition: width 0.3s ease;
    overflow: hidden;
}

.menu-bg.change-bg {
    width: 100%;
}

/* Animação hambúrguer */
.change .bar {
    background-color: var(--letras-brancas);
}

.change #bar1 {
    transform: translateY(4px) rotateZ(-45deg);
}

.change #bar2 {
    opacity: 0;
}

.change #bar3 {
    transform: translateY(-6px) rotateZ(-45deg);
}


/*==== Parte Principal ====*/
.container {
    background-color: var(--container);
    color: #0f0f0f;
    max-width: 90%;
    margin: auto;
    padding: 20px;
    border-radius: 15px;
    font-size: 20px;
    text-align: center;
}

.botoes {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 30px;
}

.botoes button {
    padding: 20px;
    background-color: var(--botoes);
    color: white;
    font-size: 1em;
    border: solid 1px var(--botoes);
    border-radius: 10px;
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    .botoes button:hover {
        background-color: var(--botoes-hover);
        border: solid 1px var(--botoes-hover);
    }
}

.botoes button:active {
    background-color: var(--botoes-hover);
    border: solid 1px var(--botoes-hover);
}

/*==== Arquivos ====*/
.arquivos {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px;
    gap: 20%;
    margin-bottom: 20px;
}

.arquivos a {
    padding: 1.5%;
    color: white;
    background-color: var(--botoes);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.5em;
}

@media (hover: hover) and (pointer: fine) {
    .arquivos a:hover {
        background-color: var(--botoes-hover);
    }
}

.arquivos a:active {
    background-color: var(--botoes-hover);
}

/*==== Footer ====*/
footer {
    background-color: var(--header);
    color: var(--letras-brancas);
    display: flex;
    padding: 15px;
    font-size: 2em;
    align-items: center;
    justify-content: center;
}

footer img {
    width: 80px;
    height: 80px;
    margin-right: 10px;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 10px;
    }

    #menu {
        top: 65px;
    }

    .menu-bar {
        width: 100%;
    }

    .bar {
        height: 8px;
    }

    .nav-prim {
        width: 0;
    }

    .nav-prim img {
        height: 40%;
        width: 100%;
    }

    .nav-sec a{
        font-size: 0.5em;
    }

    .nav-prim.change {
        width: 50vw;
    }

    .botoes {
        flex-direction: column;
        gap: 15px;
        height: auto; 
        width: 100%;
        align-items: center; 
    }

    .botoes button {
        width: 80%;
        font-size: 1em;
        padding: 10px; 
    }

    /* Responsividade do footer */
    footer {
        text-align: center;
        font-size: 1.2em;
    }

    footer img {
        width: 60px;
        height: 60px;
    }
}