@keyframes appear {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

:root {
    box-sizing: border-box;
     --bg-color: #dfdfdf;
     --text-color: #000000;
}

*, ::before, ::after {
    box-sizing: inherit;
    animation: appear 1s;
    transition: color .1s, background-color 1.5s, visibility 5s;
}

body {
    margin: 0;
    position: fixed;
    height: 100%;
    width: 100%;
    background-color: var(--text-color);
    color: var(--bg-color);
}

main {
    margin: 1.5rem;
    border: 1.2px solid #808080;
    height: calc(100% - 3rem);
    width: calc(100% - 3rem);
    display: flex;
}

main > * {
    margin: .4rem 1.5rem;
}

h1 {
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: 300;
    font-size: 3.5rem;
    margin: 0;
}

p {
    font-family: 'Ubuntu', sans-serif;
    font-weight: 400;
}

main p {
    margin-top: -.8rem;
}

nav {
    display: inline-block;
}

nav li {
    transition: opacity .4s;
}

nav li:hover {
    cursor:pointer;
    opacity: 20%;
}

ul {
    list-style: none;
    padding: 0;
    margin-top: 2.5rem;
}

li {
    font-family: 'Ubuntu', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    margin: 1rem auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity .4s;
}

a:hover {
    opacity: 20%;
}

.content {
    margin: 10% 0 0 0;
    display: none;
    transition: display .5s;
}

.projects > * {
    margin: 0;
}

#projects_content {
    overflow-y: scroll;
    overflow-x: auto;
}   

.about {
    width: 40%;
    
}

.pbox {
    margin-top: 8rem;
}

.pbox > * + * {
    margin-top: 1.5rem;
}

.pbox p {
    line-height: 150%;
}

.pbox a {
    font-weight: 700;
}

#dark {
    color: #000000;
}

#light {
    color: #dfdfdf;
}


@media screen and (max-width: 900px) {
    main {
        display: block;
        overflow: scroll;
    }

    .corner {
        margin-bottom: 4rem;
    }

    .content {
        padding: inherit;
        margin: inherit;
    }

    .projects {
        margin: auto 3rem;
    }

    .about {
        width: inherit;
    }

    .pbox {
        margin: inherit;
    }

}