@font-face {
    font-family: Jersey10 ;
    src: url(../fonts/Jersey10-Regular.ttf);
}

* {
    margin: 0;
    padding: 0;
}

body {
    background-color: #242626;
    color: white;
}

.main-container {
    display: flex;
    flex-flow: row wrap;
    width: 100%;
    height: auto;
}

header {
    display: flex;
    flex-flow: row wrap;
    width: 100%;
    height: auto;
    align-items: center;
    position: relative;
}

.logo {
    height: 6em;
    margin: 1em;
}

header nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}


header nav a {
    font-family: Jersey10;
    font-size: 2em;
    color: white;
    text-decoration: none;
    margin: 1em;
    position: relative;
}

header nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px; /* ajuste de posição para o underline */
    width: 100%;
    height: 2px; /* espessura do underline */
    background-color: currentColor; /* cor do underline igual ao texto */
    transform: scaleX(0); /* inicia com o underline "oculto" */
    transform-origin: center;
    transition: transform 0.3s ease; /* define a suavidade */
}

header nav a:hover::after {
    transform: scaleX(1.1); /* expande o underline ao passar o mouse */
}

hr {
    margin-top: 2em;
    width: 88%;
}

footer {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.footer-text {
    font-size: 1.5em; /* Tamanho do texto */
    font-weight: bold; /* Deixe o texto em negrito */
}

footer img {
    width: 8%;
    max-width: 104.75px;
    min-width: 96px;
    height: auto;
}

@media (max-width: 768px) {

    header {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        margin: 1em 0;
        height: 5em;
    }

    header nav {
        position: static;          /* remove o absolute */
        transform: none;
        flex-direction: column;    /* links em coluna */
        align-items: center;
        width: 100%;
    }

    header nav a {
        margin: 0.4em 0;
        font-size: 1.8em;
    }

}
