@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

html {
  font-size: 16px;
}

* {
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  margin: 0;
  background: #27354a;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

main {
  width: 37.5em;
  height: 46.875em;
  display: flex;
  flex-direction: column;
}

.header {
  height: 40%;
  color: #ffffff;
  background: #0e4458;
  gap: 1em;
}

.header,
.content,
.unit-conversion {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

h1,
h2,
p {
  margin: 0;
}

h2 {
  font-weight: 600;
}

p {
  color: #fff;
}

#error-el {
    display: none;
    color: #ff9494;
}

input {
  /* min-width: 2em; */
  width: 3ch;
  height: 1.5em;
  background: transparent;
  border: 2px solid #538a9f;
  border-radius: 5px;
  color: #ffffff;
  font-size: 3.75rem;
  font-weight: bold;
  text-align: center;
}

input:focus {
  outline: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

button {
  width: 7.5em;
  height: 2.5em;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  background-color: #ffffff;
  cursor: pointer;
}

.content {
  height: 60%;
  background: #1f2937;
  gap: 1.25em;
}

.unit-conversion {
  background: #273549;
  color: #99c1d0;
  width: 90%;
  padding: 1.5em;
  gap: 1em;
}
