/* ========================= Main elements ========================= */
html, body {
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    background: var(--main-background);
    color: var(--font-color);
    margin: 0;
    position: relative;
    width: 100%;
    height: 100%;

}

/* ------------------------- Header ------------------------- */
header.head {
    background: var(--eagles-main-color);
    color: var(--eagles-white);
    /*border-bottom: var(--border);*/
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    height: 60px;
}

header.head img.logo {
    max-height: 40px;
}

header.head > div {
    padding: 0 1vw;
}

header.head h1 {
    font-size: 2rem;
}

header.head a {
    color: var(--eagles-light-color);
    font-weight: bold;
}

/* ------------------------- Body ------------------------- */
article.body {
    position: absolute;
    left: 10vw;
    top: 60px;
    padding: .7rem;
    overflow-y: scroll;
    height: calc(100vh - 100px);
    width: 90vw;
}

/* ------------------------- Left menu ------------------------- */
aside.leftmenu {
    background: var(--menu-background);
    position: absolute;
    left: 0;
    top: 60px;
    width: 10vw;
    height: calc(100vh - 60px);
    z-index: 100;
    overflow-y: auto;
}

aside.leftmenu nav {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /*height: 100%;*/
}

aside.leftmenu a.leftmenu__item {
    padding: .5rem;
    width: 100%;
    box-sizing: border-box;
    color: var(--menu-color);
}

aside.leftmenu a.leftmenu__item i {
    padding-right: 0.3rem;
}

aside.leftmenu a.leftmenu__item:hover {
    text-decoration: none;
    color: var(--menu-color-hover);
}

aside.leftmenu a.noLink {
    cursor: context-menu;
}

aside.leftmenu a.leftmenu__folder {
    color: #d1d5db;
    font-size: .9rem;
    font-weight: 600;
    text-transform: uppercase;
}

aside.leftmenu a.leftmenu__subitem {
    padding-left: 2rem;
    border-right: var(--menu-border);
}

/* ------------------------- Footer ------------------------- */
footer {
    background: var(--eagles-main-color);
    color: var(--eagles-white);
    box-shadow: var(--shadow-sm);
    position: absolute;
    bottom: 0;
    left: 10vw;
    width: 90vw;
    height: 40px;
}

article.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

article.footer section {
    padding: .5rem;
}

nav.footer__link a {
    color: var(--eagles-white)
}

nav.footer__link {;
    display: flex;
    min-width: 30vw;
    justify-content: space-around;
    align-items: center;
}

/* ========================= minor ========================= */
h1, h2, h3, h4, h5, h6 {
    margin: .5rem;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    color: var(--link-color-hover);
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

@media screen and (max-width: 900px) {
    /* ========================= Main elements ========================= */
    html, body {
        font-size: var(--font-size-sm);
    }
}

@media screen and (max-width: 500px) {
    html, body {
        font-size: var(--font-size-xs);
    }

    header.head h1 {
        font-size: 1.2rem;
    }

    footer {
        font-size: .8rem;
    }

    nav.footer__link {
        position: absolute;
        bottom: .5rem;
        width: 100vw;
        box-sizing: border-box;
    }

    aside.leftmenu {
        left: -40vw;
        width: 40vw;
        transition: left .5s ease;
    }

    aside.leftmenu.open {
        left: 0;
        transition: left .5s ease;
    }

    aside.leftmenu a.leftmenu__item {
        font-size: var(--font-size-sm);
        padding: 1.5rem .5rem;
    }

    article.body {
        left: 0;
        width: 100vw;
        padding-bottom: 50px;
    }

    footer {
        position: fixed;
        left: 0;
        width: 100vw;
    }
}