*,
*::after,
*::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue';
}

a {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

body {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  place-content: center;
  flex-direction: column;
  row-gap: 2rem;
  background-color: #8ec5fc;
}

.inputBox {
  width: 13rem;
  position: relative;

  input,
  span {
    transition: 0.5s;
  }

  input {
    background-color: transparent;
    border: 3px solid #fff5;
    padding: 0.7rem;
    border-radius: 5px;
    width: 100%;
    outline: none;
    color: white;
    font-size: 1em;
  }

  span {
    position: absolute;
    left: 0;
    color: #fffa;
    pointer-events: none;
    padding: 0.9rem;
  }

  input:valid {
    border: 3px solid #333;
  }

  input:valid + span,
  input:focus + span {
    color: #333;
    font-size: 0.6rem;
    transform: translate(10px, -24px);
    background-color: #8ec5fc;
    padding-inline: 0.4rem;
    letter-spacing: 0.2rem;
  }
}
