@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 100;
    src: url('../fonts/roboto-v50-latin-100.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/roboto-v50-latin-300.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto-v50-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 400;
    src: url('../fonts/roboto-v50-latin-italic.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/roboto-v50-latin-700.woff2') format('woff2');
}


:root {

    --theme: #8d7e71;
    --font: "Roboto";
    --shadow: 1px 1px #000;

    --base140: #1c1a17;
    --base120: #45403a;
    --base:    #615951;
    --base80:  #7d7368;
    --base60:  #a29990;
    --base40:  #c5bfba;
    --base20:  #f3f2f1;
    --base0:   #ffffff;

    --error:   #ee1c25;
    --success: #2ecc40;
}

body {
    font-family: var(--font), sans-serif;
    display: flex;
    flex-direction: row;
    margin: 0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    cursor: pointer;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

nav {
    flex: 0 0 15rem;
    flex-direction: column;
    background-color: var(--base);
}

#main-brand {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 10rem;
}

#main-menu {
    height: calc(100vh - 10rem);
    overflow-y: auto;
}

#main-menu img {
    display: block;
    max-width: 75%;
    margin: 1rem auto;
}

#main-menu > div {
    overflow-x: hidden;
}

#main-menu a {
    display: flex;
    flex: 0 0 100%;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    font-size: .9rem;
    color: var(--base20);
    text-shadow: var(--shadow);
    line-height: 2.5rem;
    transition: all .5s;
}

#main-menu a:hover {
    color: var(--base0);
    background-color: var(--base80);
}

#main-menu i {
    flex: 0 0 2rem;
    margin: 0 .1rem 0 .75rem;
    font-size: 1.25rem;
    text-align: center;
}

#main-menu span {
    flex: 1 1 auto;
}

#main-menu .has-sub::after {
    flex: 0 0 auto;
    font-size: 1rem;
    margin-right: 1rem;
    content: "\f105";
    font-family: 'Line Awesome Free', sans-serif;
    font-weight: 900;
    transition: all .5s;
}

#main-menu .has-sub.opened::after {
    transform: rotate(90deg);
}

#main-menu .has-sub + div {
    display: none;
}

#main-menu .has-sub + div > a {
    padding-left: 1.5rem;
}

#main-menu .has-sub + div .has-sub + div > a {
    padding-left: 2rem;
}

#main-menu .has-sub + div .has-sub + div .has-sub + div > a {
    padding-left: 2.5rem;
}

/*
-----------------------------
LINK CURTAIN
-----------------------------
*/
.curtain {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    background-color: var(--base20);
    border: 1px solid var(--base80);
    border-radius: .25rem;
    padding: .5rem;
    color: var(--base);
    font-size: 1rem;
    text-decoration: none;
    overflow: hidden;
    outline: none;
    transition: .5s all;
    z-index: 1;
}

.curtain::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: .5s all;
    transform: scaleX(0);
    z-index: -1;
}

.curtain:hover {
    color: var(--base0);
    border-color: var(--theme);
    text-shadow: var(--shadow);
}

.curtain:hover::before {
    transform: scaleX(1.1);
    background-color: var(--theme);
}

.curtain i {
    font-size: 1.5rem;
    margin-right: .5rem;
}

.curtain-short i {
    margin-right: 0;
}

.curtain-short span {
    display: none;
}

@media only screen and (min-width: 48em) {

    .curtain {
        padding: .5rem 1rem;
        font-size: 1.25rem;
    }

    .curtain-short i {
        margin-right: .5rem;
    }

    .curtain-short span {
        display: inline;
    }
}
