/* Fonts and typography */

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

html, textarea {
    font-family: "Roboto", sans-serif;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
}

h2 {
    font-size: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.75rem;
    text-align: center;
}

h4 {
    font-size: 1.5rem;
    text-align: center;
}

h5 {
    font-size: 1.25rem;
    text-align: center;
}

h6 {
    font-size: 1rem;
    text-align: center;
}

p, textarea {
    font-size: 1rem;
    padding: 0.5rem;
}

/* Header and Navigation Bar */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #035d7b;
    padding: 1rem;
    position: sticky;
    top: 0;
}

#logo>img {
    max-width: 5rem;
}

#cv>img {
    max-width: 4rem;
}

#menu {
    display: none;
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

header a {
    color: #F5F5F5;
    font-style: normal;
    text-decoration: none;
}

.active {
    color: #EA7317;
    font-weight: bold;
}

/* Footer */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1;
}

footer {
    display: flex;
    justify-content: center;
    background-color: #292F36;
    color: #F5F5F5;
    padding: 1rem;
}

/* Figures */

figure {
    text-align: center;
}

@media screen and (max-width: 768px) {
    header {
        display: grid;
        justify-content: space-between;
        grid-template-areas:
        'logo menu-buttons'
        'navLinks navLinks';
        gap: 1rem;
        padding: 1rem;
    }

    #menu-buttons {
        grid-area: menu-buttons;
        display: flex;
        gap: 1rem;
    }

    #menu {
        grid-area: menu;
        display: inline;
        padding: 0;
        background-color: #FFFFFF00;
        margin: 0;
    }

    .displayed {
        display: flex;
    }

    .hidden {
        display: none;
    }

    #menu>img {
        max-width: 2.5rem;
    }

    #navLinks {
        flex-direction: column;
        grid-area: navLinks
    }
}