html {
    scroll-behavior: smooth; /* when clicking a the nav bar, page will scroll smooothly instead of jumping to the section */
    font-family:Arial, Helvetica, sans-serif;

}


main {
    display: flex;
    flex-wrap: wrap;
    background-color: #52796F;
    color: white;
}

header {
    position: relative;
    padding: 20px;
    background-color: #354F52;
}

header h1 {
    display: inline-block;
    font-size: 48px;
}

header nav {
    padding-top: 15px;
    margin-right: 20px;
    float:right; /* positions nav bar to the right of the page */
}

header nav ul {
    font-size: large;
    list-style-type: none;
}

header nav ul li {
    display: inline-block;
    margin-left: 100px;
}

a {
    text-decoration: none; /* removes underlined hyperlink */
    color: #CAD2C5;
}

h1, h2, h3 {
    font-size: 200%;
    text-align: center;
    color:white
}

.project-card h3 {
    font-size: 100%;
}


#about-me {
    width: 600px;
    height: 600px;
    margin: 20px auto;
    text-align: center;
    background-color: #52796F;
}




#projects {
    display: flex;
    flex-wrap: wrap;
}

div #feature-project {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    text-align: center;
}

#feature-image {
    padding: 30px; /* feature project image larger than other projects */
    width: 550px;
    height: 350px;
}

#contact {
    background-color: #52796F;
    margin: 50px 50px 50px 50px;
}


.card-image {
    width: 300px;
    margin: 10% 20% auto 20%;
}

div .descriptor { /* project descriptive text--centered and flex */
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 50px 50px 50px 50px;
}

h3, p {
    float: center; 
    margin-right: 20px auto;
    color: white;
    text-align: center;
   
}

.project-card {
    width: 500px;
    margin: 20px auto;
    background-color: #2F3E46;
    
}

#feature-project {
    width: 100%;
    margin-left: 20%;
    margin-right: 20%;
}

@media screen and (max-width: 768px) { /* makes webpage responsive to 768px view */
    header,
    main,
    nav {
      flex-direction: column;
      column-count: 1;
      overflow-x: auto;
    }

    #contact {
        width: 100%;
    }
    
    #about-me {
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex-shrink: 1;
    }

    #projects {
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex-shrink: 1;
        margin-left: 10%;
        margin-right: 10%;
        width: 60%;
    }

    
}

@media screen and (max-width: 1025px) { /* makes webpage responsive to 1025px view */
    header,
    main,
    nav {
      flex-direction: column;
      column-count: 1;
      justify-content: center;
      overflow-x: auto;
    }
    #contact {
        width: 100%;
    }
    #about-me {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        flex-shrink: 1;
    }

    #projects {
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex-shrink: 1;
        margin-left: 10%;
        margin-right: 10%;
        width: 60%;
    }
}