/* Styles that apply to all sections of the website */
* {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 300;
    background-color: #ffffff;
    color:#000000;
    scroll-behavior: smooth;
}

#about,
#work,
#contact {
    padding: 50px;
}

/* Aligning the first heading with the portrait image and resizing the font and image */
.nav section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    float: left;
}

h1 {
    font-size: 20px;
}

.portrait {
    height: 70x;
    width: 70px;
}

/* Styles that apply to the navigation bar */
.nav {
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 20vh;
    font-size: 20px;
}

/* Changing the list in the navigation bar to stay on the right side and the 
items to show side by side */
.nav li {
     list-style-type: none;
     display: inline;
     float: right;
     padding: 15px;
}

a {
    text-decoration: none;
}

/* When the mouse hovers over links, they will change color */
a:hover {
    color: #7085ff;
    transition: all 0.3s ease;
}

/* About section */
h2 {
    font-size: 20px;
}

p {
    font-size: 64px;
}


/* Projects */

#work {
    position:relative;
}

.main-image {
    display: flex;
    justify-content: center;
}

img {
    width:100%;
    display: flex;
    justify-content: center;
}

.image-row {
    display: flex;
    justify-content: center;
    padding: 20px;
    width: 100%;
}

.image-row img {
    width: 45%;
}

#work img:hover {
    transform: scale(0.95);
}

/* Contact*/
#contact ul {
    display: flex;
    justify-content: left;
    list-style-type: none;
    padding: 0;
    margin: 0;
}


/* At a screen width of 768px or less, the navigation bar will move to the center, 
the paragraph text will become smaller, and the row of images will become a column. */
@media screen and (max-width: 768px) {
    .nav {
     display: flex;
     justify-content: center;
     flex-direction: column;
    }
    .image-row {
     display: block;
    }
    .image-row img {
     width: 90%;
    }
    #about p {
     font-size: 30px;
    }
}