h1 {
  font-family: "Lexend Mega", sans-serif;
  font-weight: normal;
  font-size: 2rem;
  padding: 40px 0 0 20px;
  @media (max-width: 640px) {
    font-size: 1.5rem;
  }
}

.nav {
  display: flex;
  justify-content: flex-end;
  font-family: "Kiwi Maru", serif;
  font-size: 1.2rem;
  padding: 0 0 20px;
}

nav ul li {
  margin: 0 20px;
}

.title {
  background-image: url(img/IMG_7078.jpg);
  background-size: cover;
  background-position: center;
  height: 700px;
  font-family: "Slackside One", cursive;
  font-size: 5rem;
  padding: 250px 20px 250px;
  @media (max-width: 640px) {
    width: 100%;
    font-size: 3rem;
    background-position: center;
    height: 400px;
  }
}

#profile {
  text-align: center;
  font-family: "Kiwi Maru", serif;
  font-size: 2rem;
  padding: 150px 0 50px;
}

.profiletext {
  display: flex;
  justify-content: center;
  @media (max-width: 640px) {
    flex-direction: column;
    text-align: center;
    padding: 0 30px;
  }
}

.profileimg {
  margin: 0 30px 0;
  @media (max-width: 640px) {
    margin: auto;
    display: block;
    height: 320px;
    width: 250px;
    padding: 20px;
  }
}

#design {
  text-align: center;
  font-family: "Kiwi Maru", serif;
  font-size: 2rem;
  padding: 150px 0 50px;
}

.contact {
  font-family: "Lexend Mega", sans-serif;
  font-weight: normal;
  text-align: center;
  font-size: 3rem;
}

p {
  font-family: "Kiwi Maru", serif;
}

h3 {
  font-family: "Kiwi Maru", serif;
}

.designlist {
  display: flex;
  padding: 0 50px 50px;
  gap: 50px;
  max-width: 1280px;
  margin: auto;
  li {
    .img-wrap {
      display: flex;
      min-height: 400px;
      @media (max-width: 640px) {
        min-height: unset;
      }
      img {
        object-fit: contain;
      }
    }
  }
  @media (max-width: 640px) {
    flex-direction: column;
  }
}

.more {
  text-align: center;
  margin: 30px auto 150px;
  a {
    padding: 30px 60px;
    background-color: #bed0da;
    border-radius: 9999px;
  }
}

.mailtext {
  text-align: center;
  padding: 0 30px;
}

.mail {
  text-align: center;
  margin: 70px auto 40px;
  a {
    background-color: #bed0da;
    border-radius: 9999px;
    padding: 30px 60px;
  }
}

footer {
  text-align: center;
  background-color: #e7eaef;
  padding: 0 0 30px;
}

#contact {
  background-color: #e7eaef;
  padding: 30px 0;
}

a {
  color: black;
  text-decoration: none;
}

.more:hover {
  text-decoration: underline;
}

.mail:hover {
  text-decoration: underline;
}

.contact {
  @media (max-width: 640px) {
    font-size: 2rem;
  }
}

input#overlay-input[type="checkbox"] {
  display: none;
}

@media (max-width: 640px) {
  body {
    margin: 0;
    font-family: arial;
    width: 100vw;
    height: 100vh;
    animation: bugfix infinite 1s;
    -webkit-animation: bugfix infinite 1s;
  }

  @keyframes bugfix {
    from {
      padding: 0;
    }
    to {
      padding: 0;
    }
  }
  @-webkit-keyframes bugfix {
    from {
      padding: 0;
    }
    to {
      padding: 0;
    }
  }
  #overlay-button {
    position: absolute;
    right: 2em;
    top: 3em;
    padding: 26px 11px;
    z-index: 5;
    cursor: pointer;
    user-select: none;
  }
  #overlay-button span {
    height: 4px;
    width: 35px;
    border-radius: 2px;
    background-color: black;
    position: relative;
    display: block;
    transition: all 0.2s ease-in-out;
  }
  #overlay-button span:before {
    top: -10px;
    visibility: visible;
  }
  #overlay-button span:after {
    top: 10px;
  }
  #overlay-button span:before,
  #overlay-button span:after {
    height: 4px;
    width: 35px;
    border-radius: 2px;
    background-color: black;
    position: absolute;
    content: "";
    transition: all 0.2s ease-in-out;
  }
  #overlay-button:hover span,
  #overlay-button:hover span:before,
  #overlay-button:hover span:after {
    background: black;
  }

  input[type="checkbox"] {
    display: none;
  }

  input[type="checkbox"]:checked ~ #overlay {
    visibility: visible;
  }

  input[type="checkbox"]:checked ~ #overlay-button:hover span,
  input[type="checkbox"]:checked ~ #overlay-button span {
    background: transparent;
  }
  input[type="checkbox"]:checked ~ #overlay-button span:before {
    transform: rotate(45deg) translate(7px, 7px);
  }
  input[type="checkbox"]:checked ~ #overlay-button span:after {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  #overlay {
    height: 100vh;
    width: 100vw;
    background: #fff;
    z-index: 2;
    visibility: hidden;
    position: fixed;
  }

  #overlay ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    height: 100vh;
    padding-left: 0;
    list-style-type: none;
  }
  #overlay ul li {
    padding: 1em;
  }
  #overlay ul li a {
    color: black;
    text-decoration: none;
    font-size: 1.5em;
  }
  #overlay ul li a:hover {
    color: #bed0da !important;
  }
}
