* + * {
  margin-top: 2rem;
}

* {
  margin-bottom: 0;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

button,
input,
textarea {
  font-family: inherit;
}

html {
  box-sizing: border-box;
  font-family: monospace;
  font-size: calc(1rem + 0.5vw);
}

body {
  align-items: center;
  background-color: antiquewhite;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  min-height: 100vh;
  padding: 0;
}

h1 {
  text-align: center;
}

input {
  border-radius: 0.4rem;
  border-width: 0.3rem;
  font-size: 1.5rem;
  padding: 0.5em;
}

.result {
  background-color: white;
  border-radius: 0.4rem;
  font-size: 2rem;
  padding: 1rem 1.5rem;
  text-align: center;
  transition: opacity 0.15s ease-in-out;
}
.result:empty {
  height: 4.37rem;
  opacity: 0;
  transition: none;
}
