* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Ubuntu', sans-serif;
}

body {
    background-color: #141414;
}

.nav-bar {
    position: fixed;
    top: 0px;
    background-color: #1A1A1B;
    width: 100%;
    height: 65px;
    line-height: 65px;
    display: inline-flex;
    flex-direction: row;
    justify-content: space-evenly;
    z-index: 1;
}

.nav-bar-button {
    color: #FDFDFD;
    font-size: 3rem;
    transition: font-size .6s, color .3s, border .5s;
    border-bottom: solid 2px transparent;
}

.nav-bar-button:hover {
    color: #FFFFFF;
    margin-top: 0px;
    margin-bottom: 0px;
    font-size: 3.2rem;
}

.nav-underline {
    border-color: #FFFFFF;
}

.home-container {
    display: inline-block;
    background-color: #2A2A2A;
    margin-top: 65px;
    width: 100%;
    height: calc(100vh - 65px); /* make height have a minimum value */
}

.home-name{
    font-size: 5rem;
    color: #FDFDFD;
    text-align: center;
}

.home-subtitle {
    font-size: 3rem;
    color: #FDFDFD;
    text-align: center;
    margin-top:15px;
    margin-bottom: 15px;
}

.home-margin-top {
    margin-top: 50px;
}

.home-description-container {
    position: relative;
    width: 100%;
    height: 60px;
}

.home-description {
    font-size: 3rem;
    color: #FF475A;
    text-align: center;
    /* animations */
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity .35s linear, width .5s linear, left .5s linear;
}

.description-fade {
    width: 0;
    opacity: 0;
}

.left100 {
    left: 100%
}

.section-header {
    font-size: 3rem;
    color: #FF475A;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
}

.about-container {
    display: inline-block;
    width: 100%;
    height: calc(100vh - 65px);
}

.about-paragraph {
    color: #FDFDFD;
    font-size: 2rem;
    margin-left: 10px;
    margin-right: 10px;
}

.skills-subheader {
    color: #FF475A;
    font-size: 2rem;
    text-align: center;
    margin-top: calc(100vh - 600px);
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
    margin-left: 5px;
    margin-right: 5px;
}

.skills {
    list-style-type: none;
    color: #FDFDFD;
    display: inline-block;
    border: 1px solid #FF475A;
    background-color: #1A1A1B;
    margin: 3px;
    padding: 3px;
    border-radius: 5px;
}

.projects-container {
    display: inline-block;
    background-color: #2A2A2A;
    width: 100%;
    height: calc(100vh - 65px);
}

.project-list-container {
    position: relative;
    width: 80%;
    height: 80%;
    margin: auto;
}

.project-list-subcontainer {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: all 0.4s linear;
}

.transform-rotateY-180deg {
    transform: rotateY(180deg);
}

.project-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.project-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.project-thumbnail {
    width: 350px;
    margin-top: 30px;
    border: 2px solid #FDFDFD;
    border-radius: 5px;
}

.project-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: #1A1A1B;
    transform: rotateY(180deg);
    overflow-y: auto;
    border: 2px solid #FDFDFD;
    border-radius: 10px;
}

.close-project {
    border: 2px solid #FF475A;
    color: #FDFDFD;
    background-color: #1A1A1B;
    position: -webkit-sticky;
    position: sticky;
    top: 5px;
    margin: 5px;
    padding: 3px;
    border-radius: 5px;
    float: right;
    font-size: 1.5rem;
    transition: background-color .15s;
}

.close-project:hover {
    background-color: #FF475A;
}

.project-paragraph {
    color: #FDFDFD;
    font-size: 2rem;
    margin: 10px;
}

.text-align-center {
    text-align: center;
}

.link {
    color: #E11470;
    font-size: 2rem;
    margin: 5px;
}

.contact-container {
    display: inline-block;
    width: 100%;
    height: calc(100vh - 65px);
}

.contact-paragraph {
    margin-top: 50px;
    margin-bottom: 300px;
    margin-left: 10px;
    margin-right: 10px;
    font-size: 2rem;
    color: #FDFDFD;
    text-align: center;
}

@media only screen and (max-width: 950px) {
    .nav-bar-button {font-size: 2.05rem;}
    .nav-bar-button:hover {font-size: 2.15rem;}
    .project-thumbnail {width: 300px;}
    .home-name {font-size: 4.5rem;}
    .home-subtitle {font-size: 2.5rem;}
    .home-description {font-size: 2.5rem;}
    .about-paragraph {font-size: 1.75rem;}
    .project-paragraph {font-size: 1.75rem;}
    .contact-paragraph {font-size: 1.75rem;}
}

@media only screen and (max-width: 670px) {
    .nav-bar-button {font-size: 1.6rem;}
    .nav-bar-button:hover {font-size: 1.7rem;}
    .home-name {font-size: 3rem;}
    .home-subtitle {
        font-size: 1.6rem; 
        margin-top: 40px;
        margin-bottom: 40px;
    }
    .home-description {font-size: 1.6rem;}
    .section-header {font-size: 2rem;}
    .about-paragraph {font-size: 1.3rem;}
    .project-paragraph {font-size: 1.3rem;}
    .contact-paragraph {font-size: 1.5rem;}
    .project-thumbnail {width: 250px;}
    .close-project {font-size: 1rem;}
    .link {font-size: 1.6rem;}
}

@media only screen and (max-width: 440px) {
    .nav-bar-button {font-size: 1.1rem}
    .nav-bar-button:hover {font-size: 1.3rem}
    .home-name {font-size: 2rem;}
    .home-subtitle {font-size: 1.2rem;}
    .home-description {font-size: 1.2rem}
    .about-paragraph {font-size: 1rem;}
    .project-paragraph {font-size: 1rem;}
    .contact-paragraph {font-size: 1rem;}
    .link {font-size: 1.2rem;}
}

@media only screen and (max-height: 600px) {
    .project-thumbnail {width: 240px;}
    .about-paragraph {font-size: max(1.5rem;)}
    .skills-subheader {
        margin-top: 10px;
        font-size: 1.5rem;
    }
    .skills {
        font-size: .8rem;
        margin: 2px;
        padding: 2px;
    }
    .contact-paragraph {margin-bottom: 150px;}
    .home-container {height: 535px;}
    .about-container {height: 535px;}
    .projects-container {height: 535px;}
    .contact-container {height: 535px;}
}