html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
    height: 100%;
}

var(--a-hover);

body {
  background-color: #F1F4F3;
  font-family: 'Karla', sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  line-height: 1.6385;
  margin-top: 0.819em;
}

article {
  margin-top: 7em;
  margin-bottom: 7em;
}

.hero {
  width: 100%;
  padding-left: 1em;
  padding-right: 1em;
  margin: 0;
}

.background {
  height: auto;
  background-image: url("../img/project4.png");
  background-attachment: fixed;
  background-position: right top;
  background-repeat: no-repeat;
  opacity: 0.5;
  background-size: 60%;
}

.background2 {
  height: auto;
  background-image: url("../img/project2.png");
  background-attachment: fixed;
  background-position: right top;
  background-repeat: no-repeat;
  opacity: 0.3;
  background-size: 50%;
}

.background:hover {
  opacity: 1;
  transition: 300ms ease-in;
}

.background2:hover {
  opacity: 1;
}

img.project-image {
  border: 1px solid white;
}

/* navigation */
.mobile-closed {
  display: none;
}

nav.mobile {
  display: none;

}

nav.desktop {
  position: fixed;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  font-weight:600;
  width:100vw;
  z-index: 2000;
  font-size: 15px;
  padding-top: 14.4px;
  height: 150px;
  color: white;
}

nav ul {
  padding: 0;
  margin-right: 1em;
  margin-left: 1em;
}

nav ul li {
  display: inline-block;
  list-style: none;
  text-transform: uppercase;
  z-index: 1900;
  opacity: 0.8;

}

nav ul li:hover {
  opacity: 1;
  transition: 300ms;
}


nav a {
  color: #262626;
  text-decoration: none;
  margin-left: 1em;
  margin-right: 1em;

}

nav.desktop a:hover {
  color: #4B4B4B;
  text-decoration: none;
  border-bottom: 10px solid #FFFFFF;
  transition: 0.2s;
}

nav.mobile a:hover {
  color: #4B4B4B;
  text-decoration: none;
  transition: 0.2s;
}


/* end navigation */


/* welcome message */
.intro {
  background-color: #F1F4F3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  height:80vh;
  align-items: center;
  padding-bottom: 1.8em;
  }

.wave {
  position: inherit;
  height:140px;
  background-color: #F1F4F3;
  background-image: url('wave.svg');
  background-size: auto 100%;
  background-repeat: repeat-x;
  animation: wave linear 10s infinite;
  z-index: 50; <!-- to place on wave behind about section to avoid white line in chrome -->
}

@keyframes wave {
  from {background-position: 0px 0;}
  to {background-position: 100% 0;}
    }

/* main section about */
.about-info-wrapper
  { /* to place on top of wave *to avoid white line in chrome */
    height: 100vh;
    margin-top: -3px;
       /* to place on top of wave *to avoid white line in chrome */
    background-color:#B4DFE8;
  }

.about-info {
  height: 100%;
  padding-bottom: 100px;
}

/*projects section */
.projects-wrapper {
  background-color:#c8d5de; /* grey */
  padding-top: 0em;
  padding-bottom: 0em;
  z-index: 1600;
  }

.projects-top {
  padding-top: 70px;

  }

.projects  {
  padding-top: 30px;
  padding-bottom: 33px;
  }

.padding {
  padding-right: 3em;
}

a.projects-button {
  text-decoration: none;
  background-color: #51585d;
  border-radius: 50px;
  border: 0px;
  padding: 15px 30px 15px 30px;
  color: #FFFFFF;   /* #F4CF85 */
  font-family: 'Roboto Mono', monospace;
  font-size: 0.6em;
  border-radius: 10px;
  margin-top: 6em;
  }

a.projects-button:hover {
  border: 3px solid #FFFFFF;
  padding: 15px 50px 15px 50px;
  transform-origin: center;
  transform: scale(1.02);
  transition-duration: 0.5s;
  transition-timing-function: ease-in-out;
  transition: 0.2s;
  }

/*  contact section */
.contact-wrapper {
background-color:#F4CF85;
padding-bottom: 3em;
}

/*projects section */


.contact-title {
  padding-top: 100px;
  }

.notop {
  margin-top: 1.1em;
  }

a.contact-link {
  font-weight:500;
  color: #262626;
  text-decoration: none;
  font-family: 'Roboto Mono', monospace;
  }

a.contact-link:hover {
  color: #4B4B4B;
  text-decoration: none;
  border-bottom: 8px solid #424242;
  transition: 0.2s;
  }

/* contact form */
form {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  border-radius: 10px;
  padding: 30px 20px 0px 0px;
  max-width:500px;
}

label
{
  font-weight: 500;
  padding-bottom: 3px;
  margin:0px;
}

textarea {
  outline: none;
  font-size: 0.9em;
  border: 2px solid transparent;
  border-radius: 5px;
  padding: 13px;
  margin: 0px;
  min-height: 180px;
  resize: vertical;
}

textarea:hover {
  background-color: #FFFFFF;
  color: #4d5356;
  border-radius: 5px;
  border: 2px solid #F4CF85;
}

textarea:active {
  color: #4d5356;
  border: 2px solid #F4CF85;
}

textarea:focus {
  border: 2px solid black;
}

button[type="submit"] {
  font-size:1em;
  border-radius: 5px;
  max-width: 50%;
  text-align: center;
  margin-top: 8px;
  padding: 13px;

  background-color: ##C8D5DE;
  border: 2px solid transparent;
}

button[type="submit"]:focus {
  color: #E7D2CC;
  background-color: #94979a;
  border: 2px solid #E7D2CC;
  outline: 0px;
}

button[type="submit"]:active {
  color: #E7D2CC;
  background-color: #94979a;
  border: 2px solid #868B8E;
}

button[type="submit"]:hover {
  background-color: #EAEAEA;
  border: 2px solid transparent;
  outline: 0px;
}

input {
  border: 2px solid transparent;
  border-radius: 5px;
  padding: 11px;
  font-size: 0.9em;
}

input:hover {
  color: #4d5356;
  border: 2px solid #F4CF85;
}

input:active {
  color: #4d5356;
  border: 2px solid #F4CF85;
}

input:focus {
  color: #000000;
  border: 2px solid black;
  outline: 0px;
}

.form-group {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.form-group {
  font-weight: 900;
  margin-bottom: 10px;
}

.form-question {
  margin-bottom: 10px;
}


.nav-bg-blue {
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: -3px;
  margin-top: -3px;
  width: 100%;
  height: 4em;
  z-index: 500;
  background-color: #b4dfe8;
  }

.nav-bg-grey {
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 0px;
  width: 100%;
  height: 4em;
  z-index: 600;
  background-color: #c8d5de;
  }
.nav-bg-yellow
  {
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 0px;
  width: 100%;
  height: 4.1em;
  z-index: 700;
  background-color: #F4CF85;
  }

.invisible {
  color: #c8d5de;
}
/* footer */
footer {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 5em;
  font-size: 0.6em;
  font-family: 'Roboto Mono', monospace;
  color: #000000;
  background-color: #F1F4F3;
}

#about-picture-mobile {
  display: none;
}

#hero-scrolldown {
  height: 40px;
  animation-name: scrolldown;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  animation-timing-function:ease-in-out;
  transform-origin: center;
}

#hero-scrolldown-ellipse:hover {
  fill: #000000;
}

@keyframes scrolldown
 {
   50% {
     transform-origin: center;
     transform:translateY(8px);
   }
 }

#about-picture {
  max-width: 300px;
}

#starfish {
  height: 2em;
  margin-right: 1em;
  margin-left: 1em;
}

#starfish::after {
  opacity: 0;
}

/*baseline overlay for debugging */
#baseline {
  position: fixed;
  top: 0;
  left: 0;
  background-image: url('baseline.png') ;
  background-repeat: repeat;
  width: 100vw;
  height: 100vh;
  z-index: 130;
}



        @media (max-width: 599px) {

        .mobile-hide {
          display: none;
        }

        nav.desktop {
          display: none;
        }

        .mobile-closed {
          display: flex;
          position: fixed;
          width: 100%;
          flex-direction: row;
          justify-content: flex-end;
          background-color: transparent;
          padding: 0.7em;
          font-weight: 800;
          z-index: 1950;
        }

        #mobile-closed {
          background-color: white;
          padding: 0.3em;
          border: 1px white;
          border-radius: 5px;
        }

        #mobile-opentoclose {
          padding: 3em 2em 2em 2em;
        }

        nav.mobile {
          display: none;
          position: fixed;
          width: 100%;
          height: auto;
          padding: 3em;
          flex-direction: column;
          justify-content: space-around;
          align-items: space-around;
          background-color: #FFFFFFEE;
          z-index: 2100;
          text-align: center;
        }

        nav.mobile ul li {
        max-width: 500px;
        display: flex;
        flex-direction: column;
        line-height: 5em;
        z-index: 2200;
        }

        #switchlang-to-jp {
        font-size: 0.8em;
        }

        /* welcome message */
        .intro {
          height:85vh;
          }

        .about-info {
          text-align: center;
        }

        .wave {
          height:100px;
          background-color: #F1F4F3;
          background-image: url('wave.svg');
          background-size: auto 100%;
          background-repeat: repeat-x;
          animation: wave linear 20s infinite;
          z-index: 50; <!-- to place on wave behind about section to avoid white line in chrome -->
        }

        /* main content */
        .row {
          padding-left: 1em;
          padding-right: 1em;
        }

        form {
          display: flex;
          flex-direction: column;
          justify-content: space-around;
          border-radius: 10px;
          text-align: left;
          max-width:500px;
          margin-left: 0px;
        }

        #about-picture {
          display: none;
        }

        #about-picture-mobile {
          display: inline-block;
          line-height: 1.024;
          margin-bottom: 0.1em;
          border: 0px solid white;
          border-radius: 50%;
          width: 50%;
        }

        #hero-scrolldown {
          height: 40px;
          animation-name: scrolldown;
          animation-duration: 2s;
          animation-iteration-count: infinite;
          animation-timing-function:ease-in-out;
          transform-origin: center;
        }
       }


/*
  // Medium devices (tablets, 768px and below)
  @media (max-width: 768px) {

   }

  // Large devices (desktops, 992px and up)
  @media (max-width: 992px) {

    } }

  // X-Large devices (large desktops, 1200px and up)
  @media (max-width: 1200px) { ... }

  // XX-Large devices (larger desktops, 1400px and up)
  @media (max-width: 1400px) { ... }

  */
