* {
    background-color:#cad3d3;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    margin:0;
    scroll-behavior: smooth;
}

/* set text color and size for the page */

h1, h2, h3, h4 {
    color:#000000;
}

h1 {
    font-size: 48pt;
}

h2 {
    font-size: 36pt;
}

h3 {
    font-size: 24pt;
}

p {
    color:#000000;
    font-size: 14pt;
}

a {
    font-size: 16pt;
}

/* change link colors */

a:link{
    color: #31465f;
}

a:visited{
    color: #31465f;
}

a:hover {
    color: #405b7c;
}

a:active {
    color: #d7e1f0;
}

/* use ul to make a navbar */

ul{
    position: fixed;
    width: 100vw;
    list-style-type: none;
    height: 80px;
    margin: 0;
    padding:0;
    padding-top: 2em;
    overflow: hidden;
    text-align: center;
    background-color: #758080;
    z-index: 10;
}

li{
    display: inline;
    font-weight: bold;
}

#horizontalnav a{
    color: #000000;
}

li a {
    display: inline;
    color: #000000;
    padding: 100% 16px ;
    background-color: #758080;
    text-decoration: none;
}

li a:visited {
    color: #000000;
}

/* change color of link button and text when hovered */
li a:hover{
    color: #000000;
    background-color: #7F8D8D;
}

li a:active{
    color: #000000;
}

/* end navbar code */

/* set page to use flexbox */

#content{
    margin: 0 20%;
    margin-bottom: 5%;
    display: flex;
    flex-direction: column;
}

#personal {
    display: flex;
    flex-direction: row;

    padding-top: 10%;
}

#about {
    display: flex;
    flex-direction: column;

}

#about > *{
    margin: 2% 0;
}



#portrait {
    width: 25%;
    margin-right: 5%;
    height: 25%;
    border-radius: 10px;
}

#projects {
    margin: 3% 0;
    padding-top: 5%;
}

.title {
    margin-bottom: 10px;
}

.project{
    display: flex;
    flex-direction: row;

    margin: 15px 0;
}

.project > p {
    margin-left: 5%;
    align-self: center;
}


#resume {
    margin-top: 5%;
    padding-top: 10%;
}

#resume > h2 {
    margin-bottom: 10px;
}

.resume-link {
    display: none;
}

.resume-pdf {
    align-items: center;
    width: 100%;
    height: 1200px;
}

#contact {
    margin: 5% 0;
    width: 100%;
    height: 10vh;
    padding-top: 10%;
}

#contact > h2 {
    margin-bottom: 20px;
}

#dropdownnav{
    display: none;
    position: fixed;
    padding: 0 auto;  
    background-color: #758080;
    width: 100%;
    height:90px;
    padding-top: 1.8em;
    text-align: center;
    z-index: 10;
}

#navbar-dropdown{
    border: none;
    text-decoration: none;
    color: #000000;
    background-color: #758080;
    text-decoration: none;
    font-size: 16pt;
}

#navbar-dropdown-menu{
    border: none;
    border-radius: 0;
}


.dropdown-menu{  
    display: none;
    margin: 16px auto;
    width:fit-content;
    min-width: 200px;
    z-index: 1;
}

.dropdown-menu div{
    padding: 10px 5px;
    background-color: #758080;
}

.dropdown-menu div:hover{
    background-color: #7F8D8D;
}

.dropdown-menu div > a:hover{
    color: #000000;
}

.dropdown-menu div > a{
    text-decoration: none;
    background-color: transparent;
    color: #000000;
}

.hamburger{
    width: 35px;
    height: 5px;
    background-color: #000000;
    margin: 6px 0;
}

/* Update the layout of the page when the screen size is less then 500px wide */

@media screen and (max-width:1200px) {

    ul{
        margin: 0;
    }

    #content {
        margin: 0 10%;
        margin-bottom: 10%;
        text-align: center;
    }

    p{
        text-align: left;
    }

    #personal{
        margin-top: 80px;
    }

    #portrait{
        align-self: center;
        margin: 0 auto;
    }

    #personal, .project {
        flex-direction: column;
    }

    .project > p {
        margin: 15px 0;
        justify-self:center;
    }

    #personal, #projects, #resume, #contact {
        padding-top: 8%;
    }

    /* replace the iframe with a link to my resume */
    .resume-pdf {
        display: none;
    }

    .resume-link {
        display: block;
    }

    #resume > p{
        text-align: center;
    }
}

@media screen and (max-width:775px) {
    #horizontalnav{
        display: none;
    }

    #dropdownnav{
        display: block;
    }

    #dropdownnav:hover .dropdown-menu{
        display: block;
    }
}

.slideshow-container{
    width: 560px;
}