*{
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-family: "Playfair Display";
}


body{
    background-color: #536872;
    width: 100%;
}
h1{
    font-size: 3rem;
    font-weight: 800;

}
h2{
    font-size: 1.5rem;
}
h3{
    font-size: 1.25rem;
}

/*Header and nav*/
header{
    height: 10rem;
    top: 0;
    background-color: #536872;
    justify-content: space-between;
    display: flex;
  
}
.banner{
 margin-left: 3rem;
 margin-top: 2rem;
}

.nav{
    display: flex;
    flex-direction: column;
    list-style: none;
    text-align: justify;
    margin-top: 2.5rem;
    margin-right: 3rem;
}
.nav li{
    margin: 0 10px;  
}
.nav a{
    color:black;
    text-decoration: none;
}
.nav a:hover{
    text-decoration: underline;
}

/*about me*/
.bio{
    width: 100%;
    position: relative;
    background-image: url('/resources/images/Sourdough2.jpg');
    background-position: 20%;
    background-repeat: none;
    display: block;
    margin 0 auto;
    height: 50rem;
    background-size: cover;
}

.biotext{
    position: absolute;
    background-color: #83a1bd;
    top: 4rem;
    left: 2rem;
    height: 35rem;
    width: 28rem;
    margin: 2rem;
    padding: 3rem;
    border-radius: 20%;
    text-align: center;
    display: inline-block;
    margin: 0 auto;
    line-height: 2.1rem;
   
}
/* .biotext h3,p{
    margin: 1.2rem 3rem 1rem 3.5rem;
    
} */
#ps{
    font-size: .8rem;
}



/* projects */
.projectcontainer{
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    top:42rem;
    background-color: #536872;
    height: 15rem;
    width: 100%;
    
}
.projectcontainer h1{
    margin-right: 3rem;
    padding-top: 2rem;
    font-size: 5rem;
}
.projectlist{
    display: flex;
    flex-direction: column;
    list-style: none;
    text-align: left;
    margin-top: 2.2rem;
    margin-left: 3rem;
    
}
.projectlist li{
    margin: .5rem;
    text-align: center;
    background-color: #83a1bd;
    border-radius: 20px;
    padding: 1.5rem;
}
.projectlist a{
    color: black;
    text-decoration: none;
}
.projectlist li:hover{
    background-color: #f1bd4f;
    box-shadow: 0 10px 10px 0 #36424b;
}

/*contact*/
.contactcontainer{
    height: 10rem;
    top: 0;
    background-color: #536872;
    justify-content: space-between;
    display: flex;
    width: 100%;

}
.contactme{
    margin-left: 3rem;
    margin-top: 2rem;
}
.contactbutton {
    display: flex;
    flex-direction: row;
    list-style: none;
    text-align: justify;
    margin-top: 2.5rem;
    margin-right: 3rem;
    list-style: none;
    height: 6rem;
}
.contactbutton img{
    height: 4rem;
    padding: 1rem;
    background-color: #83a1bd;
    border-radius: 20px;
    margin-left: 1rem;
}
.contactbutton img:hover{
    background-color: #f1bd4f;
    box-shadow: 0 10px 10px 0 #36424b;
}
    /* media queries */

    /* Header */
 @media only screen and (max-width: 768px) and (min-width: 481px){
    header{
        top: 0;
        height: 15rem;
        display: flex;
        flex-wrap: wrap;
        

    }
    .banner{
        margin-left: 5rem;
        text-align: center;
        width: 80%;
    }
    .nav{
        flex-direction: row;
        align-items: center;
    }
}

@media only screen and (max-width: 480px){
    h1{
        font-size: 2rem;
    }
    h2{
        font-size: 1.5rem;
    }
    h3{
        font-size: 1.25rem;
    }
    p{
        font-size: 1rem;
    }
    header{
        height: auto;
        flex-direction: column;
        flex-wrap: wrap;
        text-align: center;
    }
    .banner{
        padding: 2rem;
        margin:0 auto;
    }
    .banner h1_{
        font-size: 1.8rem;
    }
    .nav{
        flex-direction: row;
        text-align: center;
        justify-items: space-around;
        margin: 0 auto;
        padding: 1rem;


    }
    .bio{
      background-position: 40%;
    }
    .biotext{
        width: auto;
        padding: 10%;
        line-height: 1.2rem;
        height: auto;
        background-color: rgb(131, 161, 189, .8);
        left:auto;
        right: auto;
        top: 15%;
        margin: 1rem;
        text-align: justify;
    }
    .biotext h3,p{
        font-size: medium;
    }

    .projectcontainer{
        flex-direction: column;
        height: auto;
    }
    .projectcontainer h1{
        margin: 0 auto;
        font-size: 3rem;
    }
    .projectlist{
        margin: 2.2rem auto;

    }
    .projectlist li{
        background-color: #f2bf4f;
    }
    .projectlist li:visited{
        background-color: #83a1bd;
        box-shadow: 0 10px 10px 0 #36424b;
    }


    .contactcontainer{
        height: auto;
        flex-direction: column;
    }
    .contactme{
        margin:  0 auto;
    }
    .contactbutton {
        display: flex;
        flex-direction: column;
        align-items: center;
        border-radius: 20px;
        margin: 0 auto;
    }
    .contactbutton img{
        background-size:cover;
        margin: .5rem auto;
        padding: 1rem 5rem 1rem 5rem;
        background: #f1bd4f;

    }
    .contactbutton img:visited{
        background-color: #83a1bd;
        box-shadow: 0 10px 10px 0 #36424b;
    }
}