* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  height: 100vh;
  color: #f4f5f8;
  background: #0c0f14;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
}

header,
footer {
  background: #080a0d;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

header {
  height: 3rem;
}

footer {
  height: 2rem;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 5rem);
  flex-direction: column;
}

.container {
  width: 320px;
  padding: 32px;
  background: linear-gradient(45deg, transparent, #ffffff10, transparent);
  border: 1px solid #ffffff10;
  font-size: 1.25rem;
  text-align: center;
}

.container p {
  color: #f4f5f8;
  margin-bottom: 1rem;
}

.container div {
  padding: 8px 3rem;
  display: flex;
  justify-content: space-between;
}

.container label {
  text-transform: uppercase;
  color: #f4f5f8;
}

.container input {
  border: solid 1px #75808a;
  font-family: "IBM Plex Mono", monospace;
  color: #75808a;
  background: #080a0d;
  padding: 4px 8px;
  text-align: center;
}

.container input:focus-visible {
  outline: solid 2px #75808a;
}

.container input[type=number]::-webkit-outer-spin-button,
.container input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.container input[type=number] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.feedback {
  width: 100%;
  height: 1rem;
  margin: 1rem auto;
  display: block;
  line-height: 1;
  color: #75808a;
  font-size: .875rem;
}

.feedback.error {
  color: #ef4444;
}
.feedback.warning {
  color: #ee9944;
}
.container button {
  display: block;
  border: solid 1px #75808a;
  padding: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  color: #75808a;
  background: #080a0d;
  cursor: pointer;
  margin: 2rem auto 0;
}

.container button:hover {
  border: solid 1px #8b949c;
  color: #8b949c;
  background: #0b0d11;
}

.color-box {
  width: 8rem;
  height: 3rem;
  margin-top: 2rem;
  background: linear-gradient(45deg, transparent, #ffffff10, transparent);
  border: 1px solid #ffffff10;
  color: #f4f5f8;
  display: flex;
  justify-content: center;
  align-items: center;
}

p {
  font-size: .875rem;
}

@media (max-width: 420px) {
  header {
    height: 6rem;
  }

  footer {
    height: 4rem;
  }

  header,
  footer {
    padding: 0 48px;
  }

  main {
    height: calc(100dvh - 10rem);
  }

  .container {
    width: 240px;
    padding: 16px;
    font-size: 1rem;
  }
}