@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  background-color: #696773;
}

#container {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  cursor: default;
}

#img img {
  width: 32rem;
}

#calculator {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  color: #eff1f3;
  background-color: #272727;
  border-radius: 8px;
}

#form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#title {
  font-size: 2.25rem;
  position: relative;
}

#title::after {
  position: absolute;
  content: '';
  background-color: #fed766;
  width: 8rem;
  height: 3px;
  bottom: 0;
  left: 0;
  border-radius: 3px;
}

.input-box label {
  font-size: 1.1rem;
  color: #eff1f3;
  font-weight: 500;
}

.input-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #696773;
  padding: 0.3rem;
  border-radius: 3px;
  margin-top: 3px;
}

.input-field span,
.input-field i {
  color: #eff1f3;
  font-size: 1.3rem;
  padding: 0.6rem 1rem;
}

.input-field input {
  background: transparent;
  border: none;
  width: 100%;
  font-size: 1.3rem;
  color: #eff1f3;
  padding: 0 0.5rem;
}
.input-field input::-webkit-outer-spin-button,
.input-field input::-webkit-inner-spin-button {
  appearance: none;
}

.input-field input:focus {
  outline: none;
}

#calculate {
  border: none;
  font-size: 1.25rem;
  font-weight: 500;
  background: #fed766;
  color: #272727;
  padding: 0.5rem 0;
  cursor: pointer;
}

#result {
  display: flex;
  gap: 2rem;
  align-items: center;
  border-top: 1px solid #ffffff34;
  padding: 0.75rem 0;
}

#bmi {
  display: flex;
  align-items: center;
  flex-direction: column;
  font-size: 2.25rem;
}

#bmi span:last-child {
  font-size: 0.875rem;
  color: #eff1f3;
}

#description {
  width: 15.5rem;
}

#moreinfo {
  border-top: 1px solid #ffffff34;
  padding-top: 1.5rem;
}

#moreinfo a {
  color: #fed766;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.5s;
}

#moreinfo a:hover {
  color: #eff1f3;
}

.hidden {
  display: none;
}

.normal {
  color: #fed766;
}

.attention {
  color: #ba181b;
}

@media screen and (max-width: 1024px) {
  #img {
    display: none;
  }
}

@media screen and (max-width: 500px) {
  #container {
    width: 100%;
    height: 100%;
  }

  #calculator {
    width: 100%;
    height: 100%;
    border-radius: 0;
    justify-content: center;
  }
}
