@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-VariableFont_wght.ttf');
}

@font-face {
  font-family: 'Montserrat-Italic';
  src: url('../fonts/Montserrat-Italic-VariableFont_wght.ttf');
}

:root{
  --main-blue:#006c6c;
  --light-blue:#b2d2d2;
}
a:link, a:visited{
  text-decoration: none;
  color: white;
}
a:hover, a:active{
  text-decoration: none;
  color: black;
  cursor: pointer;
}
ul{
  list-style-type: none;
}
nav{
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin: 0 auto;
  height: 2.5em;
  background-color: rgba(0, 108, 108, 0.85);
  position: fixed;
  top: 0;
  z-index: 5;
}
h1{
  font-size: 4.5rem;
}
h2{
  font-size: 2rem;
  font-style: italic;
  color: var(--light-blue);
  text-shadow: 1px 1px 0px #000000;
}
body{
  font-family: 'Montserrat', sans-serif;
  color: black;
  margin: 0 auto;
  text-align: center;
  overflow-x: hidden;
}

figure{
  position: relative;
  margin: 0;
}

figure img{
  height: 100%;
  z-index: 0;
}

footer{
  border: 2px solid black;
  width: 100%;
  background-color: var(--main-blue);
  color: white;
}

img{
  max-width: 100%;
}

main{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}
p{
  margin: 0 auto;
  padding: 1em;
  line-height: 1.5;
}


.anchor{
  display: block;
  height: 3em;
  margin-top: -60px;
  visibility: hidden;
}

#links{
  margin: 5em 0;
}
.contact-links{
  text-decoration: none;
  font-size: 1.25em;
  opacity: .85;
  padding: 0.2em;
  transition: .4s;
  border: 2px solid black;
  width: 10em;
  background-color: var(--main-blue);
}

.contact-links:hover{
  opacity: 1;
  background-color: var(--light-blue);
  color: black;
}

.nav-list{
  width: 30%;
  display: flex;
  padding-right: 2em;
  justify-content: flex-end;
}
.nav-link{
  display: flex;
  font-family: 'Montserrat', sans-serif;
  color: white;
  text-decoration: none;
  font-size: 1.5em;
  height: 100%;
  opacity: .85;
  padding: 0 .8em;
  transition: .4s;
}
.nav-link:hover{
  opacity: 1;
  background-color: var(--light-blue);
  color: black;
}
.project-tile{
  padding: 0;
  text-decoration: none;
  color: white;
  opacity: 0.65;
  text-align: center;
  border-radius: 30px;
  /*background-color: var(--main-blue);*/
  transition: 0.4s;
  cursor: pointer;
}

.project-tile:hover {
  opacity: 1;
  background-color: var(--light-blue);
  color: black;
}

.project-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  grid-gap: 6rem;
  margin: 0 auto;
}

.project-label{
  display: block;
  position: absolute;
  color: white;
  font-size: 2em;
  text-align: left;
  bottom: 0;
  width: 100%;
}

#contact{
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-height: 80vh;
  justify-content: center;
  flex-direction: column;
}

#contact-form{
  display: flex;
  margin: auto;
  flex-direction: column;
  align-items: flex-end;
  width: 17em;
}

.form-item input{
  width: 15em;
}
#submit{
  width: 15em;
  margin: auto;
}

#message{
  width: 15em;
}

#about{
  min-height: 100vh;
  margin-bottom: 4em;
}

#home-button{
  margin-right: auto;
  padding: 0;
  padding-left: .2em;
  padding-right: .2em;
  height: 100%;
  width: 2.3em;
  flex-shrink: 1;
}

#home-button img{
  width: auto;
  height: auto;
  padding: 0;
}

#projects{
  min-height: 100vh;
  margin-bottom: 4em;
}

#welcome-section{
  display: flex;
  height: 100vh;
  width: 100%;
  color: var(--light-blue);
  text-shadow: 2px 2px 0px #000000;
  justify-content: center;
  flex-direction: column;
  background-image: url("../images/blankie-web.jpg");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-attachment: fixed;
  background-size: cover;
  margin-bottom: 4em;
}

@media (min-width: 62em){
  p{
    max-width: 50vw;
  }
  .project-grid{
    max-width: 1280px;
  }
}
