:root {
  --background: #fefefe;
  --color: #000;
}

html, body {
  margin: 0;
  height: 100dvh;
  font-family: system-ui;
  background: var(--background);
  color: var(--color);
}

#wrapper {
  height: 100%;
  display: flex;
  gap: .5em;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#wrapper > * {
  width: clamp(300px, 80%, 600px);
  padding: 32px;
}

form {
  display: flex;
  gap: 1em;
  flex-direction: column;
  justify-content: center;
}

form > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

button {
  border-radius: 8px;
  border: none;
  padding: 8px;
  background: #ddd;
}

button:hover {
  background: #bbb;
}

button:active {
  background: #999;
}

input, textarea {
  border-radius: 8px;
  border: none;
  padding: 8px;
  background: var(--background);
  color: var(--color);
}

h1 {
  text-align: left;
  font-size: 28px;
}

#success {
  background: lightgreen;
  border-radius: 16px;
  height: 2em;
  animation: fadeout 2s linear 6s 1;
  animation-fill-mode: both;
}

@keyframes fadeout {
  0% {
    opacity: 1;
    height: 2em;
    padding: 32px;
    visibility: visible;
  }
  80% {
    opacity: 0;
    height: 2em;
    padding: 32px;
    visibility: hidden;
  }
  90% {
    opacity: 0;
    height: 0;
    padding: 0;
    visibility: hidden;
  }
  100% {
    opacity: 0;
    height: 0;
    padding: 0;
    visibility: hidden;
    display: none;
  }
}