* {
  box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    color: #372D4F;
    background-color: #95CFC3;
    line-height: 1.5;
  }

/* Header with nav bar -- fixed position */

aside {
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #8366bd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  width: 20vw;
  height: 100vh;
  }

.column-container {
  display:flex;
  display: block; 
  align-content: center;
  padding-bottom: 100px;
  text-align: center;
 }

/* Headshot  */

aside img {
  display: block;
  width: 15vw;
  border-radius: 50%;
  border: 2px solid #3B456E;
  margin-top: 30%;
  flex-basis: auto;
}

/* Name & title in Aside */

h1 {
  text-align: center;
  margin: 0;
  font-size:3vw;
  font-family:'Courier New', Courier, monospace;
}

aside h2 {
  text-align: center;
  margin: 0;
  font-size:2vw;
  font-family:'Courier New', Courier, monospace;
  line-height: 1;
  padding-top: 25px;
}

/* Nav Bar formatting */

  nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-bottom: 100px;
  }

  nav a {
    justify-content: center;
    text-decoration: none;
    padding: 0 20px;
    background-color: #7F94EB;
    color: #3B456E;
    font-size: 2vw;
    display: block;
  }

/* Nav Bar Style */

  nav a:hover {
    background-color: rgb(103, 209, 255);
  }


/* Main Content */

/* Wrapper for main content */
.main-layout {
  max-width: 80vw;
  left: 20%;
  position: relative;
  display: flexbox;
  margin: 0;
}

/* Hero banner  */
.hero-banner {
  background: url(../images/oaklandPort.jpg);
  margin: 0;
  height: 38vh;
  background-position: center;
  flex-basis: fit-content;
}

/* Wrapper for main sections*/
.page-section {
  margin: 120px 0;
  padding: 0 10vw;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.page-section h2 {
  padding: 5px 5px;
}


/* WORK Section */

#work div {
  justify-content: space-between;
}

.flex-container {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

/* Project formatting*/
.flex-item {
  flex-wrap: wrap;
  border: 3px solid #4D7587;
  background-color: #B0BFFF;
  color: #4D7587;
  padding: 0;
  margin: 0.5em;
  text-decoration: none;
  font-size: 1.5rem;
  width: 45%;
}

/* Targets first project  */
.flex-item:first-child {
  min-height: 200px;
  flex-basis: 100%;
}

.flex-item div {
  color:black;
  text-shadow: -1px 0 white, 0 1px white, 1px 0 white, 0 -1px white;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.flex-item h3 {
  font-size: 1rem;
}


/* portfolio project images */
.project-1:hover {
  background: url("../images/battle-cover-image.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* .project-1 h4:hover {
  display: none;
} */

.project-2:hover {
  background-image: url("../images/nanarwhal-800px.jpg");
  background-size: 120%;
  /* background-size: contain; */
  background-repeat: no-repeat;
  background-position: center;
}

.project-3:hover {
  background-image: url("../images/geometricPatterns/Geo-lavendar-blue-3d.png");
  background-size: 100%;
}

.project-4:hover {
  background-image: url("../images/geometricPatterns/Geo-teal-green-cubed.png");
  background-size: 100%;
}

.project-5:hover {
  background-image: url("../images/geometricPatterns/Geo-teal-white.png");
  background-size: 100%;
}
/* end portfolio project images */


/* CONTACT SECTION */

#contact-me {
  display: block;
  text-align: center;
}

#contact-me address {
  display: flexbox;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  background-color: #7F94EB;
}

/* Contact Me Button formatting*/

.btn {
  background-color:#7F94EB;
  color: #3B456E;
  border: none;
  margin: 0;
  padding: 12px 16px;
  font-size: 1.5rem;
  cursor: pointer;
}

#githubLink, #linkedinLink, #emailLink {
  padding: 0;
  font-size: 25px;
  width: 50px;
  text-align: center;
  text-decoration: none;
  margin: 0 10px;
  color:#3B456E;
}

button:hover {
  opacity: 0.7;
} 


/* Made-in footer */

footer {
  font-size: small;
  margin-top: 3rem;
  text-align: center;
  padding-top: 30px;
}


/* MEDIA QUERY - responsive until breakpoint needed for small smartphone */


/* Small smartphones */

@media screen and (max-width: 576px) {
  aside {
    padding: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #8366bd;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    width: 100vw;
    height: 20vh;
    min-height: 117px;
  }

/* Changes aside to top nav */
.column-container {
  display: block; 
  align-content: center;
  padding: 0;
  text-align: end;
  margin-left: 20px;
 }

/* Headshot for Top nav  */

aside img {
  display: block;
  width: 20vw;
  border-radius: 50%;
  border: 2px solid #3B456E;
  margin-top: 0;
  flex-basis: auto;
  margin: 0 18px;
}

/* Name & title for Top nav */

h1 {
  text-align: center;
  margin: 0;
  font-size:4vw;
  font-family:'Courier New', Courier, monospace;
}

aside h2 {
  text-align: center;
  margin: 0;
  font-size:3vw;
  font-family:'Courier New', Courier, monospace;
  line-height: 1;
  padding-top: 25px;
}

/* Nav Bar formatting for Top nav */

  nav {
    width: 100%;
    display: flex;
    flex-direction: row;
    padding-bottom: 100px;
  }

  nav a {
    justify-content: center;
    text-decoration: none;
    padding: 0 10px;
    background-color: #7F94EB;
    margin-left: 115px;
    color: #3B456E;
    font-size: 3vw;
    display: block;
  }

/* Main Content for Top nav */

/* Wrapper for main content for Top nav */
.main-layout {
  max-width: 100vw;
  left: 20%;
  position:inherit;
  display: flexbox;
  margin: 0;
}

/* Hero banner for Top nav */
.hero-banner {
  background: url(../images/oaklandPort.jpg);
  margin: 0;
  width: 100vw;
  height: 30vh;
  background-position: center;
  flex-basis: fit-content;
  position: relative;
  top: 117px;
  }
}