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

body {
  margin: 0;
  font-family: sans-serif;
  min-height: 100vh;
  place-items: center;
}

h1 {
  text-align: center;
  margin-top: 0;
}

form {
  display: flex;
  flex-direction: column;
}

label {
  font-size: 1.55rem;
  width: 100%;
}

input {
  margin: 1em 0;
  padding: 0.5em 0.75em;
  width: 100%;
}

select {
  margin: 1em 0;
  width: 100%;
  padding: 0.5em 0.75em;
}

button {
  margin-top: 3rem;
}

.input-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card {
  width: min(500px, 90%);
  margin: 0 auto;
  background: white;
  border-radius: 10px;
}

.calculate {
  padding: 0.8em 0;
  background: cornflowerblue;
  color: white;
  text-transform: capitalize;
  font-weight: bold;
  border: none;
  border-radius: 5px;
}

.calculate:hover {
  opacity: 0.7;
}

.reset {
  padding: 0.8em 0;
  background: rgb(100, 237, 157);
  color: white;
  text-transform: capitalize;
  font-weight: bold;
  border: none;
  border-radius: 5px;
}

@media (max-width: 450px) {
  .input-item {
    flex-direction: column;
  }
}
