﻿:root {
    --background: #111342;
    --navbar-width: 256px;
    --navbar-width-min: 80px;
    --navbar-dark-primary: #18283b;
    --navbar-dark-secondary: #2c3e50;
    --navbar-light-primary: #f5f6fa;
    --navbar-light-secondary: #8392a5;
}

body {
    background: var(--background);
    color: #fff;
    margin: 0;
}

.gridContainer {
    display: grid;
    grid-template-areas:
        "header header"
        "sideNav pageContent"
        "footer footer";
}

    .gridContainer > div.header {
        grid-area: header;
    }

    .gridContainer > div.sideNav {
        grid-area: sideNav;
    }

    .gridContainer > div#pageContent {
        grid-area: content;
    }

    .gridContainer > div.footer {
        grid-area: footer;
    }

#time {
    font-size: 0.8em;
    justify-self: end;
    margin-right: 18px;
    margin-top: 15px;
    opacity: 0.5;
}

.logo {
    height: 110px;
    width: 350px;
}

.nav-bar {
    position: fixed;
    left: 15px;
    top: 130px;
    bottom: 45px;
    background: var(--navbar-dark-primary);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    color: var(--navbar-light-primary);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    overflow: hidden;
    user-select: none;
}

    .nav-bar input[type=checkbox] {
        display: none;
    }

    .nav-bar hr {
        margin: 0;
        position: relative;
        left: -17px;
        width: calc(100% - 32px);
        border: none;
        border-top: solid 1px #fff;
    }

    .nav-bar a {
        color: inherit;
        text-decoration: inherit;
    }

    .nav-bar .fas {
        min-width: 3rem;
        text-align: center;
    }

#nav-toggle:checked ~ #nav-header {
    width: 80px;
}

#nav-toggle:checked ~ #nav-content, #nav-toggle:checked ~ #nav-footer {
    width: var(--navbar-width-min);
}

#nav-toggle:checked ~ #nav-header #nav-title {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s;
}

#nav-toggle:checked ~ #nav-header label[for=nav-toggle] {
    left: calc(50% - 15px);
    transform: translate(-50%);
}

#nav-toggle:checked ~ #nav-header #nav-toggle-burger {
    background: var(--navbar-light-primary);
}

    #nav-toggle:checked ~ #nav-header #nav-toggle-burger:before, #nav-toggle:checked ~ #nav-header #nav-toggle-burger::after {
        width: 16px;
        background: var(--navbar-light-secondary);
        transform: translate(0, 0) rotate(0deg);
    }

#nav-toggle:checked ~ #nav-content .nav-button span {
    opacity: 0;
    transition: opacity 0.1s;
}

#nav-toggle:checked ~ #nav-content .nav-button .fas {
    min-width: calc(100% - 16px);
}

#nav-toggle:checked ~ #nav-footer #nav-footer-avatar {
    margin-left: 0;
    left: 50%;
    transform: translate(-50%);
}

#nav-toggle:checked ~ #nav-footer #nav-footer-titlebox, #nav-toggle:checked ~ #nav-footer label[for=nav-footer-toggle] {
    opacity: 0;
    transition: opacity 0.1s;
    pointer-events: none;
}

#nav-header {
    position: relative;
    width: var(--navbar-width);
    left: 16px;
    width: calc(var(--navbar-width) - 16px);
    min-height: 80px;
    background: var(--navbar-dark-primary);
    border-radius: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    transition: width 0.2s;
}

    #nav-header hr {
        position: absolute;
        margin: 0;
        bottom: 0;
        width: calc(100% - 13px);
        left: -10px;
        border: none;
    }

#nav-title {
    font-size: 1.0em;
    transition: opacity 1s;
}

label[for=nav-toggle] {
    position: absolute;
    right: 0;
    width: 3rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#nav-toggle-burger {
    position: relative;
    width: 16px;
    height: 2px;
    background: var(--navbar-dark-primary);
    border-radius: 99px;
    transition: background 0.2s;
}

    #nav-toggle-burger:before, #nav-toggle-burger:after {
        content: "";
        position: absolute;
        top: -6px;
        width: 10px;
        height: 2px;
        background: var(--navbar-light-primary);
        border-radius: 99px;
        transform: translate(2px, 8px) rotate(30deg);
        transition: 0.2s;
    }

    #nav-toggle-burger:after {
        top: 6px;
        transform: translate(2px, -8px) rotate(-30deg);
    }

#nav-content {
    margin: -16px 0;
    padding: 16px 0;
    position: relative;
    flex: 1;
    width: var(--navbar-width);
    background: var(--navbar-dark-primary);
    box-shadow: 0 0 0 16px var(--navbar-dark-primary);
    direction: rtl;
    overflow-x: hidden;
    transition: width 0.2s;
    scrollbar-width: thin;
}

    #nav-content::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    #nav-content::-webkit-scrollbar-thumb {
        border-radius: 99px;
        background-color: #D62929;
    }

    #nav-content::-webkit-scrollbar-button {
        height: 16px;
    }

#nav-content-highlight {
    position: absolute;
    left: 16px;
    top: -70px;
    width: calc(100% - 16px);
    height: 34px;
    background: var(--background);
    background-attachment: fixed;
    border-radius: 16px 0 0 16px;
    transition: top 0.2s;
}

    #nav-content-highlight:before, #nav-content-highlight:after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 100%;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        box-shadow: 16px 16px var(--background);
    }

    #nav-content-highlight:after {
        top: 100%;
        box-shadow: 16px -16px var(--background);
    }

.nav-button {
    position: relative;
    margin-left: 13px;
    height: 54px;
    display: flex;
    align-items: center;
    color: var(--navbar-light-secondary);
    direction: ltr;
    cursor: pointer;
    z-index: 1;
    transition: color 0.2s;
}

    .nav-button span {
        transition: opacity 1s;
    }

    .nav-button .fas {
        transition: min-width 0.2s;
    }

    .nav-button:nth-of-type(1):hover {
        color: #878758;
    }

        .nav-button:nth-of-type(1):hover ~ #nav-content-highlight {
            top: 26px;
        }

    .nav-button:nth-of-type(2):hover {
        color: #878758;
    }

        .nav-button:nth-of-type(2):hover ~ #nav-content-highlight {
            top: 80px;
        }

    .nav-button:nth-of-type(3):hover {
        color: #878758;
    }

        .nav-button:nth-of-type(3):hover ~ #nav-content-highlight {
            top: 134px;
        }

    .nav-button:nth-of-type(4):hover {
        color: #878758;
    }

        .nav-button:nth-of-type(4):hover ~ #nav-content-highlight {
            top: 188px;
        }

    .nav-button:nth-of-type(5):hover {
        color: #878758;
    }

        .nav-button:nth-of-type(5):hover ~ #nav-content-highlight {
            top: 242px;
        }

    .nav-button:nth-of-type(6):hover {
        color: #878758;
    }

        .nav-button:nth-of-type(6):hover ~ #nav-content-highlight {
            top: 296px;
        }

    .nav-button:nth-of-type(7):hover {
        color: #878758;
    }

        .nav-button:nth-of-type(7):hover ~ #nav-content-highlight {
            top: 350px;
        }

    .nav-button:nth-of-type(8):hover {
        color: #878758;
    }

        .nav-button:nth-of-type(8):hover ~ #nav-content-highlight {
            top: 404px;
        }

#nav-toggle:not(:checked) ~ #nav-footer-toggle:checked + #nav-footer {
    height: 237px;
    min-height: 54px;
}

    #nav-toggle:not(:checked) ~ #nav-footer-toggle:checked + #nav-footer label[for=nav-footer-toggle] {
        transform: rotate(180deg);
    }

label[for=nav-footer-toggle] {
    position: absolute;
    right: 0;
    width: 3rem;
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

#nav-footer {
    position: relative;
    width: var(--navbar-width);
    height: 54px;
    background: var(--navbar-dark-secondary);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    z-index: 2;
    transition: width 0.2s, height 0.2s;
}

#nav-footer-heading {
    position: relative;
    width: 100%;
    height: 54px;
    display: flex;
    align-items: center;
}

#nav-footer-avatar {
    position: relative;
    margin: 11px 0 11px 16px;
    left: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    transform: translate(0);
    transition: 0.2s;
}

    #nav-footer-avatar img {
        height: 100%;
    }

#nav-footer-titlebox {
    position: relative;
    margin-left: 16px;
    width: 10px;
    display: flex;
    flex-direction: column;
    transition: opacity 1s;
}

#nav-footer-subtitle {
    color: var(--navbar-light-secondary);
    font-size: 0.6rem;
}

#nav-footer-content {
    margin: 0 16px 16px 16px;
    border-top: solid 1px var(--navbar-light-secondary);
    padding: 16px 0;
    color: var(--navbar-light-secondary);
    font-size: 0.8rem;
    overflow: auto;
    scrollbar-width: thin;
}

    #nav-footer-content::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    #nav-footer-content::-webkit-scrollbar-thumb {
        border-radius: 99px;
        background-color: #D62929;
    }

.discordAnchor {
    text-decoration: none;
    padding: 15px 15px;
    background-color: #18283b;
    margin-left: 15px;
    border-radius: 25px;
}

    .discordAnchor:hover {
        background-color: #111342;
    }

.footer {
    margin-bottom: 15px;
    margin-left: 15px;
    margin-right: 15px;
    font-size: 0.75em;
    width: auto;
    background-color: var(--navbar-dark-secondary);
    color: var(--navbar-light-secondary);
    border-radius: 15px;
    text-align: center;
}

#content {
    top: 135px;
    bottom: 50px;
    left: 290px;
    margin-right: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 5px 15px;
    display: flex;
    flex-direction: column;
    right:0px;
    position: fixed;
    overflow-y: auto;
    scrollbar-width: thin;
    word-wrap: break-word;
}

/* Landscape (target ipad pro) */
@media only screen and (max-width: 1366px) and (max-height: 1024px) and (hover: none) {
    #time {
        visibility: hidden;
    }
}

/* Portrait (target ipad pro) */
@media (max-width:990px) and (hover: hover) {
    #time {
        visibility: hidden;
    }
}
