:root {
    font-size: 16px;
    font-family: 'Open Sans', serif;
    --text-primary: #b6b6b6;
    --text-secondary: #ececec;
    --bg-primary: #1d1d1d;
    --bg-secondary: #141418;
    --icon: mediumslateblue;
    --transition-speed: 200ms;
}

body {
    color: black;
    background-color: #272727;
    margin: 0;
    padding: 0;
}

main a:visited {
    color: white;
}

main a:link {
    color: white;
}

h1 {
    margin: 0;
    transition: 600ms;
}

h1:hover {
    color: var(--icon);
}

h4 {
    font-weight: lighter;
    opacity: 0.5;
}

.navbar {
    position: fixed;
    background-color: var(--bg-primary);
    transition: width 200ms ease;
    z-index: 5;
}

.navbar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.nav-item {
    width: 100%;
}
/*
.nav-item:last-child {
    margin-top: auto;
}
*/
.nav-link {
    display: flex;
    align-items: center;
    height: 5rem;
    color: var(--text-primary);
    text-decoration: none;
    filter: grayscale(100%) opacity(0.7);
    transition: var(--transition-speed);
}

.nav-link:hover {
    filter: grayscale(0%) opacity(1);
    background: var(--bg-secondary);
    color: var(--text-secondary)
}

.link-text {
    display: none;
    margin-left: 1rem;
}

.nav-link svg {
    font-size: x-large;
    min-width: 2rem;
    margin: 0 1.5rem;
}

.nav-logo {
    font-size: x-large;
    width: 2rem;
    margin: 0 1.5rem;
    border-radius: 50%;
}

.nav-icon {
    color: var(--icon);
    transition: var(--transition-speed);
}

.project {
    max-width: 410px;
    margin: 1rem;
    margin-top: 3rem;
    box-shadow: 5px 5px 20px 5px var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project p {
    margin: 1rem;
}

.project-main {
    display: flex;
    top: 0;
}

.projects-cont {
    display: flex;
    flex-wrap: wrap;
}

.projects-cont a {
    text-decoration: none;
}


/*Longer devices*/
@media only screen and (min-width: 1800px) {
    .navbar {
        width: 5rem;
        height: 100vh;
    }

    .navbar:hover {
        width: 16rem;
    }

    .navbar:hover .link-text {
        display: inline;
        transition: opacity var(--transition-speed);
    }

    .about {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    main {
        display: flex;
        margin-left: 6rem;
        padding: 1rem;
        color: white;
        flex-direction: column;
        justify-content: center;
        position: absolute;
        top: 25%;
        z-index: -1;
        font-size: 2rem;
        cursor: default;
    }

    .about img {
        height: 30rem;
        width: 30rem;
        border-radius: 50%;
        box-shadow: 10px 10px 20px 20px var(--bg-primary);
    }

    p {
        font-size: smaller;
        font-weight: lighter;
        opacity: 0.5;
        max-width: 50rem;
        margin-right: 10rem;
        margin-left: 3rem;
    }

    .project img {
        max-width: 390px;
        max-height: 300px;
        margin: 1rem;
        height: 27vw;
        width: 35vw;
        box-shadow: 5px 10px 20px 5px var(--bg-primary);
    }
}

/*Mid devices*/
@media only screen and (min-width: 600px) and (max-width: 1800px) {
    .navbar {
        width: 5rem;
        height: 100vh;
    }

    .navbar:hover {
        width: 16rem;
    }

    .navbar:hover .link-text {
        display: inline;
        transition: opacity var(--transition-speed);
    }

    main {
        display: flex;
        margin-left: 6rem;
        padding: 1rem;
        color: white;
        flex-direction: column;
        justify-content: center;
        position: absolute;
        z-index: -1;
        font-size: 2rem;
        cursor: default;
    }

    .about img {
        height: 470px;
        width: 470px;
        border-radius: 50%;
        box-shadow: 10px 10px 20px 20px var(--bg-primary);
    }

    p {
        font-size: smaller;
        font-weight: lighter;
        opacity: 0.5;
        max-width: 50rem;
        margin-right: 1vw;
        margin-left: 1vw;
    }

    .project img {
        max-width: 390px;
        max-height: 300px;
        margin: 1rem;
        height: 27vw;
        width: 35vw;
        box-shadow: 5px 10px 20px 5px var(--bg-primary);
    }
}

/*Smaller devices*/
@media only screen and (max-width: 600px) {
    .navbar {
        position: fixed;
        bottom: 0;
        width: 100vw;
        height: 5rem;
        transition: 0ms;
    }

    .navbar-nav {
        flex-direction: row;
    }

    .nav-link {
        justify-content: center;
    }

    .nav-link:focus {
        filter: grayscale(0%) opacity(1);
        background: var(--bg-secondary);
        color: var(--text-secondary)
    }

    main {
        margin-left: 1rem;
        margin-bottom: 5rem;
        padding: 1rem;
        color: white;
        flex-direction: column;
        position: relative;
        justify-content: center;
        font-size: 5vw;
        cursor: default;
    }

    .about img {
        height: 80vw;
        width: 80vw;
        border-radius: 50%;
        box-shadow: 10px 10px 20px 20px var(--bg-primary);
    }

    p {
        font-size: smaller;
        font-weight: lighter;
        opacity: 0.5;
        max-width: 50rem;
        margin-right: 1vw;
        margin-left: 1vw;
    }

    .project img {
        height: 50vw;
        width: 65vw;
        margin: 1rem;
        box-shadow: 5px 10px 20px 5px var(--bg-primary);
    }
    .project {
        max-width: 380px;
        box-shadow: 5px 5px 20px 5px var(--bg-primary);
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

