html {
  scroll-behavior: smooth;
}

body {
  height: 100vh;
  font-weight: 100;
  font-size: 1rem;
  font-family: 'gravesend-sans',sans-serif;
  background-color: rgb(240, 240, 240);
  background-image: url(images/background.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
document.addEventListener("touchstart", function() {}, true);
@media only screen and (max-width: 768px) {

    body {
          background-image: url(images/backgroundmobile.png);
    }
}

/*NEW CODE*/

/*----------------------------------------------*/
/*NAV DESKTOP*/
/*----------------------------------------------*/

.nav {
  position: fixed;
  width: 250px;
  height: 100vh;
  background-color: rgb(240, 240, 240);
  overflow: hidden;
  z-index: 2;
}
.gallery {
  position: relative;
  height: 100vh;
  margin-left: 250px;
  float: right;
}

.gallery img:hover {
  opacity: .5;
  border-radius: 10px;
  transition: all 0.4s ease;
}

#galleryproj img:hover {
  border-radius: 10px;
  opacity: .5;
  transition: all 0.4s ease;
}

.logo {
  margin: 50px;
  margin-bottom: 25px;
}


.design h4:hover {
  color: rgb(200, 200, 200);
  transition: all 0.4s ease;
}
.design h4 {
  color: rgb(85, 85, 85);
  margin-left: 50px;
  margin-top: 10px;
  font-size: 15px;
}

.design h3 {
  color: rgb(85, 85, 85);
  margin-left: 50px;
  margin-top: 25px;
  font-size: 10px;
}

.design h3:hover {
  color: rgb(200, 200, 200);
  transition: all 0.4s ease;
}

.design h2 {
  color: rgb(85, 85, 85);
  margin-left: 50px;
  margin-top: -15px;
  font-size: 13px;
}

.design h2:hover {
  color: rgb(200, 200, 200);
  transition: all 0.4s ease;
}

.selected h4 {
  color: rgb(200, 200, 200);
  margin-left: 50px;
/*  margin-top: 25px;*/
  font-size: 15px;
}

.contact {
    bottom: -25px;
    width: 150px;
    margin: 50px;
    position: absolute;
}
.contact h2 {
    font-size: 12px;
    margin-top: -20px;
    letter-spacing: 0.5px;
    color: rgb(55, 55, 55);
}

.contact h4 {
    color: rgb(55, 55, 55);
    margin-bottom: 28px;
    font-size: 15px;
}

#footer h2 {
    font-size: 12px;
    letter-spacing: 0.5px;
    color: rgb(200, 200, 200);
    margin-top: 10px;
}


a:link { text-decoration: none; color:rgb(55, 55, 55) }
a:visited { text-decoration: none; color:rgb(55, 55, 55) }
a:hover { text-decoration: none; color:rgb(200, 200, 200); }
a:hover, a:active { text-decoration: none; color: rgb(200, 200, 200); }
a {text-decoration: none; transition: all 0.4s ease;}

head {
    position: absolute;
}

titleimg {
    width: 500px;
    position: relative;
}

#readbutton {
    background-color: rgb(255, 255, 255);
    border-radius: 10px;
    width: 150px;
    height: 30px;
    text-align: center;
    vertical-align: middle;
    padding-top: 7.5px;
}
#readbutton:hover{
    background-color: rgb(200, 200, 200);
    transition: all 0.4s ease;
}

#backbutton {
    background-color: rgb(255, 255, 255);
    border-radius: 10px;
    width: 80px;
    height: 30px;
    text-align: center;
    vertical-align: middle;
    padding-top: 7.5px;
    margin-top: 15px;
    margin-left: auto;
    margin-right: 0px;
}
#backbutton:hover{
    background-color: rgb(200, 200, 200);
    transition: all 0.4s ease;
}
.dropdown {
    display: none;
}

/*----------------------------------------------*/
/*NAV MOBILE*/
/*----------------------------------------------*/

@media only screen and (max-width: 768px) {

  .nav {
      width: 100vw;
      height: 75px;
      background-color: rgb(240, 240, 240);
      overflow: hidden;
      position: fixed;
      display: flex;
      flex: wrap;
      align-content: center;
      z-index: 1;
  }
  .logo {
      margin: 17.5px;
      width: 40px;
      height: 40px;
  }
  .logo img {
      width: 40px;
  }
  .design {
      display: none;
      margin-left: auto;
      margin-right:0px;
  } 
  .selected {
      display: none;
      margin-left: auto;
      margin-right:0px;
  }
  .design h3 {
      display: none;
  }
  .design h4 {
      color: rgb(85, 85, 85);
      font-size: 20px;
      margin-left: 25px;
      margin-right: auto;
  }
  .contact {
      top: 28.75px;
      width: 100vw;
      margin: 0px;
      position:relative;
      float: right;
  }  
  .contact h2 {
      display: none;
  }
  .contact h4 {
      color: rgb(55, 55, 55);
      font-size: 17px;
  }
  .design h2{
      display: none;
  }
  .selected h4 {
      color: rgb(200, 200, 200);
      font-size: 20px;
      margin-left: 25px;
      margin-right: auto;
  }
  .dropbtn {
      color: white;
      border: none;
  }
  .dropdown {
      position: fixed;
      display: inline-block;
      z-index: 1;
      right: 15px;
      top: 15px;
  }
  .dropdown-content {
      display: none;
      position: absolute;
      right: -15px;
      margin-top: 13px;
      background-color: #f1f1f1;
      min-width: 100vw;
      min-height: 100vh;
      box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
      z-index: 1;
  }
  .dropdown-content a {
      color: black;
      padding: 12px 16px;
      display: block;
  }    
  .dropdown:hover .dropdown-content {
      display: block;
  }
  .dropdown-content a {
      color: rgb(55, 55, 55);
      margin-bottom: 0px;
      text-align: right;
      font-size: 30px;
      font-weight: 700;
  }
  .dropdown-content a:hover {
      color: rgb(200, 200, 200);
      margin-bottom: 0px;
      text-align: right;
      font-size: 30px;
  }
  .dropbtn h4 {
      color: rgb(55, 55, 55);
      margin-bottom: 0px;
      font-size: 30px;
  }
  .dropbtn h4:hover{
      color: rgb(200, 200, 200);
      font-size: 30px;
      transform: rotate(360deg);
      transition: all 1s;
  }

    .dropselected a {
        color:  rgb(200, 200, 200);
    }

}

hr.rounded {
    border-top: 1px solid rgb (255, 255, 255);
    border-radius: 1px;
    opacity: 25%;
}
@media only screen and (max-width: 768px) {

.nav hr.rounded {
    display: none;
}

}

/*----------------------------------------------*/
/* STRUCTURE */
/*----------------------------------------------*/

header#mainhead {
  width: 100%;
  height: 50px;
  position: fixed;
  top: 0;
  left: 0; */
}

@media only screen and (max-width: 768px) {

  .content {
    width: 100%;

    grid-template-areas:
      "header"
      "main";
    grid-template-columns: 1fr;
  }
}

/*----------------------------------------------*/
/* TYPOGRAPHY */
/*----------------------------------------------*/

a {
    text-decoration: none;
}

a h5 {
    color: rgb (25,25,25)
}

h1 {
  font-size: 4rem;
  color: rgb(22, 21, 21);
}


h2 {
  margin-top: 50px;
  margin-bottom: 30px;
  font-weight: 700;
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 2px;
  color: rgb(255, 255, 255);
}

h3 {
  font-size: 25px;
  font-family: 'gravesend-sans', sans-serif;
  font-weight: 600;
  margin-top: 0px;
  margin-bottom: 28px;
  color: rgb(200, 200, 200);
  text-decoration: none;
}

h4 {
  font-size: 50px;
  font-family: 'gravesend-sans', sans-serif;
  font-weight: 600;
  margin-top: 0px;
  margin-bottom: 10px;
  color: rgb(55, 55, 55);
  text-decoration: none;
}

h5 {
  font-size: 20px;
  font-weight: 100;
  line-height: 110%;
  margin-bottom: 21px;
  font-family: 'gravesend-sans', sans-serif;
  color: rgb(55, 55, 55);
}


h6 {
  font-size: 20px;
  font-weight: 100;
  line-height: 110%;
  margin-bottom: 21px;
  font-family: 'futura-pt' , sans-serif;
  color: rgb(55, 55, 55);
}

p {
  align-items: center;
  font-size: 20px;
  font-weight: 100;
  line-height: 110%;
  align-self: center;
  margin-bottom: 21px;
  font-family: 'scandia-line-web' , sans-serif;
  color: rgb(55, 55, 55);
  margin-top: 20px;
}

i {
  font-family: 'futura-pt' , sans-serif;
  font-style: italic;
}

/*----------------------------------------------*/
/* IMAGES */
/*----------------------------------------------*/

.img-responsive {
  width: 100%;
  height: auto;
  display: block;
}

img.img-responsive+p {
  margin-top: 40px;
}

/*----------------------------------------------*/
/* BUFFER */
/*----------------------------------------------*/

#buffer {height: 25px;}

#buffernav {height: 50px;}

@media only screen and (max-width: 768px) {

#bufferbot {height: 0.5px;}
    
}

/*----------------------------------------------*/
/* HOME */
/*----------------------------------------------*/

#home {
  margin-top: 50;
  /*background-color: crimson;*/
}

@media only screen and (max-width: 768px) {
  #home {
    width: 375px;
  }
}

#bufferhome {
  height: 100px;
}

/*----------------------------------------------*/
/* CONTENT */
/*----------------------------------------------*/

#content {
    padding-right: 30%;
    margin: 0 auto;
    margin-left: 275px;
    margin-bottom: 200px;
    padding-top: 50px;
    /*background-color: crimson;*/
}

@media only screen and (max-width: 768px) {

  #content {
    padding-right: 0%;
    margin: 0 auto;
    margin-left: 5%;
    width: 90%;
    margin-bottom: 200px;
    padding-top: 100px;
  }
}

/*----------------------------------------------*/
/* ABOUT */
/*----------------------------------------------*/

#img {
    float: left;
    margin-right: 20px;
    max-width: 400px;
    border-radius: 10px;
  }
#bottombuffer {
  height: 100px;
}

#img img {
    border-radius: 10px;
}

@media only screen and (max-width: 768px) {
  #img {
    width: 100%;
    margin-bottom: 20px;
      border-radius: 10px;
  }
  #bottombuffer {
    height: 0px;
  }
}

/*----------------------------------------------*/
/* GALLERY */
/*----------------------------------------------*/

#title {
  margin: 25px;
  margin-left: 275px;
  width: 50%;
}

#gallery {
  margin: 0 auto;
  display: grid;
  grid-gap: 10px;
  margin: 25px;
  padding-bottom: 25px;
  grid-template-areas:
  "one two three four"
  "five six seven eight"
  "nine ten eleven twelve"
  "thirteen fourteen fifteen sixteen";
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

#galleryspec {
  width: 60%;
  margin: 0 auto;
  margin-bottom: 200px;
  display: grid;
  grid-gap: 20px;
  grid-template-areas: 
  "one two three four five"
  "six seven eight nine ten"
  "eleven twelve thirteen fourteen fifteen";
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

#galleryproj {
  width: 50%;
  margin: 25px;
  margin-bottom: 25px;
  margin-left: 275px;
  display: grid;
  grid-gap: 10px;
  grid-template-areas: 
  "one"
  "two"
  "three"
  "four"
  "five"
  "six"
  "seven"
  "eight"
  "nine";
  grid-template-columns: 1fr;
}

@media only screen and (max-width: 1300px) {
 
  #gallery {
  margin: 0 auto;
  display: grid;
  grid-gap: 10px;
  margin: 25px;
  padding-bottom: 25px;
  grid-template-areas:
  "one two"
  "three four"
  "five six"
  "seven eight"
  "nine ten"
  "eleven twelve"
  "thirteen fourteen"
  "fifteen sixteen";
  grid-template-columns: 1fr 1fr;
  }
}

.overlaytext {
  position: relative;
  width: 100%;
}

.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
  background-color: rgb(0, 0, 0);
}

.overlaytext:hover .overlay {
  opacity: .75
}

@media only screen and (max-width: 768px) {

  #gallery {
  padding-top: 100px;
  width: 90%;
  margin-top: 20px;
  margin: 0 auto;
  margin-bottom: 100px;
  display: grid;
  grid-gap: 10px;
  grid-template-areas: 
  "one" 
  "two"
  "three"
  "four"
  "five"
  "six"
  "seven" 
  "eight"
  "nine" 
  "ten"
  "eleven" 
  "twelve"
  "thirteen" 
  "fourteen"
  "fifteen" 
  "sixteen";
  grid-template-columns: 1fr;
  }
    
.gallery {
  position: relative;
  height: 100vh;
  margin-left: 0px;
  float: right;
}

#galleryspec {
    width: 90%;
    margin: 0 auto;
    margin-bottom: 200px;
    display: grid;
    grid-gap: 20px;
    grid-template-areas: 
    "one"
    "two"
    "three"
    "four"
    "five";
    grid-template-columns: 1fr;

  }

  #galleryproj {
  width: 90%;
  margin-top: 20px;
  margin: 0 auto;
  margin-bottom: 100px;
  display: grid;
  grid-gap: 10px;
  grid-template-areas: 
  "one"
  "two"
  "three"
  "four"
  "five"
  "six"
  "seven"
  "eight"
  "nine";
  grid-template-columns: 1fr;
   }
    
   #title {
    width: 90%;
    margin: 0 auto;
    margin-top: 75px;
    margin-bottom: 25px;
    
  }
    #titleimg img{
        width: 100%
    }
}

  #one {grid-area: one;}

  #two {grid-area: two;}

  #three {grid-area: three;}

  #four {grid-area: four;}

  #five {grid-area: five;}

  #six {grid-area: six;}

  #seven {grid-area: seven;}

  #eight {grid-area: eight;}

  #nine {grid-area: nine;}

  #ten {grid-area: ten;}

  #eleven {grid-area: eleven;}

  #twelve {grid-area: twelve;}

  #thirteen {grid-area: thirteen;}

  #fourteen {grid-area: fourteen;}

  #fifteen {grid-area: fifteen;}

/*----------------------------------------------*/
/* FOOTER */
/*----------------------------------------------*/

#footer {
    display: none;
}

@media only screen and (max-width: 768px) {

#footer {
    position: fixed;
    bottom: 0;
    display: flex;
    width: 100%;
    height: 35px;
    background-color: rgb(25, 25, 25);
    z-index: 1;
}

#footercontent {
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}

}