:root {
    font-size: 14px;
    --nav-hight: 40px;
    --nav-gap: 64px;
}

body {
    font-family: sans-serif;
    background-color: rgb(31, 33, 50);
    color: rgb(240, 233, 233);
    font-size: 1.2rem;
    line-height: 1.5;
    margin: 0;
}

main {
    margin:40px auto;
    max-width: 80ch;
}

nav a {
    position: fixed;
    padding: 15px;
    padding-right: 20px;
    width: 105px;
    text-decoration: none;
    color: white;
    border-radius: 0 5px 5px 0;
    transition: 0.6s ease-in-out;
    left: -110px;
}

nav a[active] {
    width: 120px;
}

nav a:hover {
    left: 0;
    color: white;
}

.nav-about {
    top: var(--nav-hight);
    background-color: rgb(11, 164, 108);
}

.nav-blog {
    top: calc(var(--nav-hight) + var(--nav-gap));
    background-color: #2196F3;
}

.nav-projects {
    top: calc(var(--nav-hight) + var(--nav-gap) * 2);
    background-color: rgb(216, 68, 57);
}

.nav-contact {
    top: calc(var(--nav-hight) + var(--nav-gap) * 3);
    background-color: rgb(115, 108, 108)
}

a {
    color: aqua;
}
a:active {
    color: rgb(216, 68, 57);
}

footer {
    font-size: 0.8rem;
    margin-top: 40px;
}

article {
    margin-top: 40px;
}



/***************** Blog ******************/

.blog article img {
    width: 100%;
    max-width: 800px;
    border-radius: 8px;
}

.blog article small {
    color: rgb(182, 181, 181);
    font-family: monospace;
}



/***************** Media ******************/

@media screen and (max-width: 1000px) {

    main {
        margin-left: 60px;
        margin-right: 60px;
    }

}