/* default styles for pages, to avoid browser own css (margin, padding) */
html, body {
    margin: 0;
    padding: 0;
    font-family: "Lato", "sans-serif";
    scroll-behavior: smooth;
    height: 100%;
    overflow-x: hidden;
    transition: .5s;
}
* {
    box-sizing: border-box;
}

/* different styles every mode */
body.dark-mode {
    background: #121212;
    color: rgb(200, 200, 200);
}
body.dark-mode a:link, body.dark-mode a:visited {
    color: rgb(25, 160, 75);
}
body.light-mode {
    background: #e4e4e4;
    color: rgb(50, 50, 50);
}
body.light-mode a:link, body.light-mode a:visited {
    color: rgb(16, 100, 47);
}
body.light-mode a:hover {
    color: rgb(25, 160, 75);
}

/* TOP BAR STYLES */
nav {
    position: fixed;
    width: 100%;
    z-index: 99;
}
nav.dark-mode {
    background: #333;
}
nav.light-mode {
    background: #999;
}
nav div {
    display: inline-block;
    margin: .5rem;
}
nav div#home {
    position: absolute;
    display: block;
    margin: 0;
    top: .5rem;
    left: 45%;
}
nav div#home a {
    text-decoration: none;
    vertical-align: middle;
    font-size: 2rem;
    line-height: 1;
}
#signin-link {
    float: left;
    height: 2rem;
    font-size: 1.5rem;
    padding: 0 .5rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
#signin-link .fa-sign-in {
    padding-left: .5rem;
    font-size: 2rem;
}
body.dark-mode #signin-link {
    color: rgb(200, 200, 200);
}
body.light-mode #signin-link {
    color: rgb(20, 20, 20);
}
body.light-mode nav div#home a { color:rgb(50, 50, 50) }
body.dark-mode nav div#home a { color: rgb(200, 200, 200) }
nav div#menu-button {
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    width: 70%;
    user-select: none;
}
nav div#toggle-dark-mode {
    float: right;
    margin-bottom: 0;
}
nav div#toggle-dark-mode img {
    cursor: pointer;
}
nav div#toggle-dark-mode img:hover:active {
    background: #555555;
}
nav div#menu-button {
    width: 7.5rem;
    text-align: center;
    vertical-align: middle;
}
nav div#menu-button:hover:active {
    background: #555555;
}

/* ARTICLE STYLES */
div.row {
    display: flex;
    padding-top: 3rem;
}
aside#menu {
    flex: 1 1 200px;
    min-width: 200px;
    margin: 0;
    font-size: 1rem;
    padding: 1rem;
    position: relative;
}
article {
    flex: 1 1 auto;
    margin-left: 2rem;
}
aside#menu div.sticky {
    position: sticky;
    top: 5rem;
    width: 250px;
}
aside#menu h2 {
    margin: .5rem;
    margin-top: 1rem;
}
aside#menu a {
    display: block;
    margin: .5rem;
}

/* FOOTER STYLES */
body.dark-mode footer {
    display: flex;
    background: linear-gradient(360deg, #333 0%, rgba(12,12,12,1) 50%, rgba(20,20,20,1) 100%);
}
body.light-mode footer {
    display: flex;
    background: linear-gradient(360deg, #333 0%, rgb(200, 200, 200) 50%, rgb(230, 230, 230) 100%);
}
footer div {
    padding: 5%;
    padding-top: 2%;
}
footer div.author {
    flex: 40%;
    position: relative;
    width: 100%;
}
footer div.author img {
    border-radius: 4px;
    display: block;
    width: 75%;
    height: auto;
}
footer div.author .text {
    color: #fff;
    line-height: 1.5rem;
    text-shadow: 3px 5px 5px #000;
    text-align: center;
    position: absolute;
    top: 60%;
    left: 40%;
    transform: translate(-50%, -50%);
    width: 100%;
}
footer div.links {
    flex: 40%;
}
@media screen and (min-width: 1000px) {
    footer div.author .text {
        font-size: 1.3rem;
    }
}
@media screen and (min-width: 800px) and (max-width: 999px) {
    footer div.author .text {
        font-size: 1rem;
    }
}
@media screen and (max-width: 799px) {
    footer div.author .text {
        font-size: .7rem;
    }
}

#index-html, #variables-html, #functions-html {
    margin-left: 5%;
}