* {
  text-rendering: optimizeLegibility;
}

html {
  height: 100vh;
  width: 100vw;
  overflow-x: hidden;
}

body {
  --dark-orange: #f0a868;
  --salmon: #f3d6c2;
  --light-orange: #ffe8c2;
  --light-green: #e4ffe1;
  --yellow-green: #f4fdd9;
  --dark-green: #6a8d73;
  --forest: #405545;

  /* --dark-green-shadow: rgba(106, 141, 115, 0.2) */

  margin: 0;
  font-family: "Jersey 25", sans-serif;
  font-style: normal;
  height: 100%;
}

.name {
  width: 100%;
  text-align: center;
}

.jersey-25-regular {
  font-family: "Jersey 25", sans-serif;
  font-weight: 400;
  font-style: normal;
}

#form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ani-input {
  width: 100%;
  height: 36px;
  font-family: "Jersey 25", sans-serif;
  font-size: xx-large;
  background: none;
  border: none;
  border-bottom: 2px solid var(--dark-green);
  outline: none;
  text-align: center;
  position: relative; /* Positioning context for cursor */
}

#keyboard {
  width: 100%;
  padding: 80px 4px;
  margin: 24px;
  display: grid;
  grid-template-rows: 3fr;
  row-gap: 12px;
}

.key-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.key {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;

  position: relative;
  max-width: 5rem;
  height: 4rem;
  font-family: "Jersey 25", sans-serif;
  font-size: xx-large;
  background: none;
  border-radius: 8px;
  border: none;
  color: black;
  background-color: var(--light-green);
  box-shadow: 0 0 8px 0 var(--dark-green);

  transform: translate3d(0, 0, 12px);
  transform-style: preserve-3d;
  transition: all 0.25s cubic-bezier(0.2, 1, 0.2, 1);
}

.key::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0px;
  width: 100%;
  max-width: 5rem;
  height: 4rem;
  border-bottom: 4px solid var(--dark-green);
  border-radius: 8px;
}

.space-bar,
.space-bar::after {
  width: 100%;
  max-width: 30rem;
}

.backspace,
.backspace::after {
  width: 100%;
  max-width: 10rem;
}

.click {
  background-color: var(--dark-green);
  color: white;
  border-color: black;
  transform: translate3d(0, 2px, 12px);
  box-shadow: 0 0 4px 0 var(--dark-green);
}

#hint {
  width: 100%;
  text-align: center;
  font-size: xx-large;
  color: var(--forest);
}

.container {
  background-color: var(--yellow-green);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100%;
  font-size: xx-large;
  font-family: "Jersey 25", sans-serif;
  padding: 20px;
}

.section {
  max-width: 800px;
  height: 100%;
}

.section img {
  width: 100%;
  box-shadow: 1px 2px 3px 4px rgba(106, 141, 115, 0.2);
  border-radius: 12px;
}

.section#trick-or-defeat img {
  max-height: 500px;
}

.image-container a {
  width: 100%;
  min-height: 412px;
  position: relative;
  display: flex;
  gap: 4px;
}

.about {
  min-height: 100%;
  background-color: var(--light-green);
  padding: 40px;
}

.about p {
  font-size: xx-large;
  font-family: "Jersey 25", sans-serif;
}

.about li {
  font-size: xx-large;
}

.enter-button {
  min-width: 50px;
  transform: rotate(90deg);
}

.backspace-button {
  min-width: 50px;
}

.pic-1 {
  z-index: 1;
}

.pic-1,
.pic-2 {
  border-radius: 12px;
  position: absolute;
  top: 0;
  max-width: 50%;
  left: 32px;
}

.pic-2 {
  top: 32px;
  right: 32px;
  left: unset;
}

.portrait {
  max-width: unset;
  height: 100%;
}

.me {
  border-radius: 25%;
  box-shadow: 0px 14px 6px -4px rgba(106, 141, 115, 0.2);
}

.home {
  margin-top: -24px;
  padding-top: 48px;
  height: 100%;
  background-color: var(--salmon);
}

/* Mobile */
@media screen and (max-width: 765px) {
  html {
    overflow-x: hidden;
  }

  .home {
    height: 100%;
    overflow: hidden;
  }

  #form {
    height: 100%;
    justify-content: space-around;
  }

  #keyboard {
    padding: 10px;
    margin: 0;
    max-width: 350px;
    padding-bottom: 100px;
  }
  .image-container a {
    display: flex;
    flex-direction: column;
    min-height: unset;
  }

  .key-row {
    gap: 4px;
  }

  .key {
    padding: 0;
    box-shadow: 0 0 4px 0 var(--dark-green);
  }

  .space-bar::after {
    max-width: unset;
  }

  _::-webkit-full-page-media,
  _:future,
  :root #keyboard {
    padding-bottom: 165px;
  }

  .image-container a {
    height: unset;
    gap: 12px;
  }

  .pic-1,
  .pic-2 {
    max-width: unset;
    position: unset;
  }
}
