body {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.5rem;
    line-height: 1.3;
    text-align: justify;
    margin: 0;
}

.documentation {
    display: flex;
    width: 100%;    
}

.documentation-navigation {    
    display: flex;
    width: 25%;
    flex-direction: column;
    border-right: solid 1px black;
    position: fixed;
    height: 100%;   
}

.nav-link {
    text-decoration: unset;
    color: black;
    margin-bottom: 10px;
    padding-left: 10px;
}

.nav-link:focus {
    color: white;
    background-color: black;
    outline: solid yellow 3px;
}

.nav-link:hover {
    animation-name: slide;
    animation-fill-mode: forwards;
}

@keyframes slide {
    100% {
        color: white;
        background-color: black;
        outline: solid yellow 3px;    
    }
}

#navbar {
    display: flex;
    flex-direction: column;
}

.nav-header {
    margin-bottom: 20px;
    color: white;
    background-color: black; 
    padding: 10px;
}

.documentation-content {
    width: 75%;
    margin: 2px;
    margin-left: 26%; 
    position: relative;
    padding: 20px 20px 20px 0;
}

.code-sample {
    width:100%;
    background-color: black;
    font-size: 1.5rem;
    border-radius: 2px;
    color: white;
    text-align: left;
    overflow: hidden;
    resize: none;
    padding: 5px 0 5px 10px;
}

.code-sample:focus {
    outline: solid yellow 5px;
}

code {
    font-style: italic;
    font-weight: bolder;
}

img {
    width: 100%;
    height: auto    ;
}

header {
    font-size: 2.5rem;
    font-weight: bold; 
}

#navbar h1 {
    font-weight: normal;
    font-size: 2rem;
}

.main-section {
    padding: 5px;
}

li {
    margin-bottom: 10px;
}

.footer {
    font-size: 1rem;
    text-align: center;
}

.footer a {
    text-decoration: unset;
    font-weight: bold;
    color: black;
}

.footer a:hover {
    animation-name: footer-link;
    animation-fill-mode: forwards;
}

@keyframes footer-link {
    100% {
        text-decoration: underline;
    
    }
}

@media (max-width: 960px) {
    header {
        font-size: 1.8rem;
        font-weight: bold;
    }

    #navbar header {
        font-weight: normal;
    }

    body {
        font-size: 1.3rem;
    }
}

@media (max-width: 820px) {
    body {
        font-size: 1.3rem;
        line-height: 1.4rem;
    }

    .code-sample {
        font-size: 0.8rem;
    }

    header {
        font-size: 1.6rem;
    }

    .nav-header {
        height: 50px;
        display: flex;
    }

    #navbar header {
        font-size: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .documentation {
        display: block;
    }

    .documentation-navigation {
        position: relative;
        width: 100%;
        border: unset;
        margin-bottom: 10px;
    }

    .documentation-content {
        width: 100%;
        margin-left: 0px;
       
    }
}

@media (max-width: 400px) {
    body {
        font-size: 1.2rem;
        line-height: 1.3rem;
    }

    .code-sample {
        font-size: 0.8rem;
    }

    header {
        font-size: 1.4rem;
    }

    .nav-header {
        height: 50px;
        display: flex;
    }

    #navbar h1 {
        font-size: 26px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

}