@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* GLOBAL */

* {
    font-family: "Poppins", sans-serif;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}


body {
    height: 100%;
    margin: 0;
    background-color: var(--main-bg);
}

header, footer {
    max-width: 100vw;
}

header {
    display: flex;
    flex-direction: row;
    align-items: center;

    background-color: color-mix(in hsl, var(--header-footer-bg) 0%, transparent);
    
    gap: 20vw;
    width: 100%;

    font-size: 1.5rem;
    font-weight: 600;

    z-index: 999999999;

    height: 7.5em;

    position: absolute;
    top: 0%;

    transition: font-size .2s ease-out, height .2s ease-out, background .2s ease-out;
}

main {
    min-height: 100vh;
}

svg, path, .icon {
    user-select: none;
    pointer-events: none;
}

.cursor-normal {
    cursor: default !important;
}

/* GLOBAL */

/* LOGO */

#logo {
    position: absolute;

    margin-left: 5vw;
    display: inline-block;
    width: var(--logo-size);
    height: auto;
    overflow: hidden;

    transition: width .2s ease-out, height .2 ease-out;
}

#logo:hover {
    cursor: pointer;
}

/* LOGO */

/* ICONS */

#menu-wrapper {
    position: absolute;
}

#menu-icon {
    display: none;
}

#nav-cross-icon {
    display: none;
}

.icon {
    width: 20px;
    height: 20px;
}

.cross-icon {
    width: 35px;
    height: auto;
}

/* ICONS */

/* NAVIGATION */

#nav-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;

    width: 100%;

    gap: 2.5em;
}

.nav-btn {
    color: var(--header-footer-text);

    background-color: transparent;
    opacity: .8 !important;

    transition: opacity .2 ease-out;
}

.nav-btn:hover {
    cursor: pointer;
    opacity: 1 !important;
}

.underline {
    height: .1em;
    width: 0%;

    background-color: var(--header-footer-text);
    opacity: .8;

    user-select: none;
    pointer-events: none;
    
    transition: width .2s ease-out;
}

/* NAVIGATION */

/* FOOTER CONTENT */

footer {
    display: flex;
    flex-direction: row;
    align-items: center;

    height: 7em;
    position: relative;
    bottom: 0%;
    background-color: var(--header-footer-bg);

    font-size: .8rem;
}

footer * {
    color: var(--header-footer-text);
}

#contact {
    display: flex;
    flex-direction: column;
    gap: .15em;
    margin-left: 2em;
}

#autor-wrapper {
    position: absolute;
    right: 2em;
}

#autor a {
    color: color-mix(in hsl, var(--link) 60%, white 40%);
    text-decoration: underline !important;

    transition: color .2s ease-out;
}

#autor:hover a {
    color: color-mix(in hsl, var(--link) 80%, white 20%);
}

/* FOOTER CONTENT */

@media (max-width: 750px) {
    * {
        font-size: .9rem;
    }
}

@media (max-width: 600px) {
    html, body {
        overflow-x: hidden !important;
    }

    #menu-wrapper {
        right: 2.5em;
    }

    #menu-icon {
        display: block;
        width: 40px;
        height: auto;
        user-select: none;
        pointer-events: none;
        touch-action: none;
    }

    #nav-cross-wrapper {
        position: absolute;
        top: 5%;
        left: 5%;
    }

    #nav-cross-icon {
        display: block;
    }

    #nav-wrapper {
        position: absolute;
        top: 0%;
        right: 0%;

        transform: translateX(100%);

        padding: 2.5em;
        gap: 1.5em;

        border-bottom-left-radius: .5em;
        
        flex-direction: column;
        background-color: var(--surface-muted);
        max-width: min-content;

        transition: transform 0.2s ease-out;
    }

    #nav-wrapper[data-visible = "true"] {
        transform: translateX(0%);
    }

    #nav-wrapper * {
        font-size: 1.2rem;
        color: var(--text-primary);
    }

    .nav-btn-wrapper:nth-child(2) {
        margin-top: 1em !important;
    }

    footer *{
        font-size: .6rem;
    }
}

/* MOBILE DEVICE */

