@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/quicksand/v21/6xKtdSZaM9iE8KbpRA_hK1QN.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/quicksand/v21/6xKtdSZaM9iE8KbpRA_hK1QN.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 20px;
    font-family: 'Quicksand', sans-serif;
    text-align: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-image: url("../images/bg.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

a {
    text-decoration: none;
    color: inherit;
    transition-property: color;
    transition-duration: 0.5s;
}

a:hover {
    color: rgba(134, 62, 24, 1);
}

li {
    list-style: none;
}

span.nobreak {
    white-space: nowrap;
}

span.nospace {
    letter-spacing: -0.2rem;
}

::-webkit-scrollbar {
    width: 0.2rem;
}

::-webkit-scrollbar-track {
    background: rgba(134, 62, 24, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(134, 62, 24, 0.8);
}

/* Landscape Display Default*/
#portrait-head {
    display: none;
}


/* Flex Box */
header, #sidebar, #side-content, #header, #logo, nav ul, #main-box, #content {
    display: flex;
}


/* SideBar */
h1 {
    font-family: 'gh0stART';
    font-weight: 400;
    height: 5.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

h2 {
    text-align: left;
    border-bottom: 2px solid rgba(134, 62, 24, 1);
}

#sidebar, #side-content, main {
    height: 100%;
}

#sidebar, header {
    left: 0;
    position: absolute;
    color: rgba(195, 184, 172, 1);
    background-color: rgba(23, 18, 14, 0.8);
    align-items: center;
    transition-property: width;
    transition-duration: 0.5s;
}
header {
    width: 10%;
}

#sidebar {
    width: 2%;
}

#side-content {
    display: none;
    width: 100%;
    flex-direction: column;
    justify-content: space-around;
}

nav img {
    width: 50%;
    margin: 1rem;
}

nav ul {
    flex-direction: column;
}

nav li {
    text-transform: capitalize;
    padding: 0.5rem;
}

#active {
    opacity: 0.5;
}

#active:hover {
    color: rgba(195, 184, 172, 1);
}

.social {
    height: 5.5rem;
    justify-content: center;
    align-items: center;
}

.social img {
    height: 1rem;
    margin: 0.75rem;
}

.social img:hover {
    height: 1.5rem;
    margin: 0.5rem;
}

#toggle {
    margin-left: 0.5vw;
    font-size: 2vw;
    z-index: 9000;
    opacity: 0;
    animation-delay: 2s;
    transition-property: color;
    transition-duration: 0.5s;
}

#toggle:hover{
    color: rgba(134, 62, 24, 1);
    cursor: pointer;
}


/* Main Box */
main {
    width: 98%;
    right: 0;
    position: absolute;
    transition-property: width;
    transition-duration: 0.5s;
}

#main-box {
    height: 90%;
    width: 90%;
    border-radius: 1rem;
    margin: 2.5% 5%;
    padding: 1rem;
    background-color: rgba(195, 184, 172, 0.8);
    position: relative;
    justify-content: space-between;
}

#left-brace, #right-brace {
    height: 100%;
}

#content {
    height: 100%;
    width: 80%;
    padding: 1rem;
    overflow-y: scroll;
    flex-direction: column;
    justify-content: flex-start;
    opacity: 0;
    animation-delay: 1.8s;
}

#content section {
    margin-top: 0.5rem;
    margin-bottom: 2.5rem;
}


/* Footer */
#credit {
    font-size: 0.75rem;
    margin-top: -2%;
    padding: 0.25rem;
    color: rgba(195, 184, 172, 0.5);
}


/* Media Queries*/
@media only screen and (max-height: 600px) {
    html {
        font-size: 16px;
    }

    header {
        font-size: 0.75rem;
    }
}

@media only screen and (max-width: 1250px) {
    .side {
        display: none;
    }

    #content {
        width: 100%;
    }
}

@media only screen and (orientation: portrait) {
    #landscape-head {
        display: none;
    }

    #portrait-head {
        width: 100%;
        height: 100%;
        display: block;
    }

    html {
        background-image: unset;
        background-color: rgba(134, 62, 24, 1);
    }

    header {
        width: 100%;
        height: 20%;
        left: auto;
        top: 0;
        background-image: url('../images/bg.png');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    #header {
        width: 100%;
        height: 85%;
        padding: 1rem;
        justify-content: center;
        align-items: center;
    }

    #logo {
        height: 100%;
        flex-direction: column;
    }
    
    #logo a {
        height: 100%;
    }

    #logo img {
        height: 100%;
    }

    nav {
        width: 100%;
        height: 15%;
        background-color: rgba(23, 18, 14, 0.8);
        display: flex;
        justify-content: center;
        align-items: center;
    }

    nav ul {
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
    }

    .social img {
        height: 3rem;
        margin: 2.25rem;
    }
    
    .social img:hover {
        height: 4.5rem;
        margin: 1.5rem;
    }
    

    main {
        width: 100%;
        top: 20%;
    }

    #main-box {
        width: 95%;
        height: 75%;
        margin: 2.5% auto;
    }
}