* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --underweight-color: #4b6d57;
  --normal-color: #65ad00;
  --overweight-color: #973500;
  --obese-color: #ff2c2c;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  background: rgb(142, 219, 255);
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card {
  font-family: "DSEG7Classic-Regular", monospace;
  font-weight: 900;
  padding: 1rem;
  max-width: 550px;
  min-height: 350px;
  background-color: #ffffff;
  border-radius: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.heading {
  font-size: 36px;
  width: 650px;
  text-align: center;
  color: #e900dd;
  border-radius: 15px;
  padding: 1rem 2rem;
  font-weight: 600;
  text-shadow: 5px 5px 10px #42003f;
}
.btn {
  padding: 0.5rem 1rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn i {
  font-size: 25px;
}
.choose-metrics {
  display: flex;
  gap: 10px;
}
.choose-metrics .btn.active {
  color: white;
  background-color: rgb(0, 107, 66);
}
.input-container {
  width: 90%;
}
.metrics,
.imperial {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  gap: 10px;
}
.imperial .weight-container {
  flex-direction: column;
  gap: 30px;
}
.imperial .weight-container input {
  width: 100%;
}
.imperial .height-inputs {
  display: flex;
  gap: 10px;
}
.imperial .height-container input {
  width: 50%;
}
.metrics .cont,
.imperial .cont {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 50%;
}
.cont {
  display: flex;
  flex-direction: column;
}
.cont label {
  font-size: 20px;
  color: rgb(107, 107, 107);
  /* font-weight: 500; */
}
.cont input {
  padding: 0.5rem;
  border: 1px solid #f1f1f1;
  background-color: #e6e6e6;
  border-radius: 10px;
}

.btn-calculate {
  width: 90%;
  background-color: blue;
  color: white;
  font-size: 20px;
}
.result-container {
  width: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  color: #ffffff;
  height: 60px;
  border-radius: 15px;
  margin-bottom: 10px;
}
.result-container .bmi {
  font-size: 30px;
  font-weight: 700;
}
.result-container .decision {
  font-size: 30px;
  font-weight: 300;
}
.underweight {
  background-color: var(--underweight-color);
}
.normal {
  background-color: var(--normal-color);
}
.overweight {
  background-color: var(--overweight-color);
}
.obese {
  background-color: var(--obese-color);
}
.category-container {
  display: flex;
  align-items: stretch;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  width: 90%;
  border-radius: 10px;
  margin-bottom: 20px;
  /* background-color: red; */
}
.category {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: white;
  /* border-radius: 10px; */
  flex: 1;
  overflow: hidden;
}
.category:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}
.category:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}
.category .name {
  width: 100%;
  padding: 0.5rem 1.5rem;
  font-weight: 400;
}
hr {
  height: 1px;
  border: 1px solid white;
  width: 100%;
}
.category .value {
  padding: 0.5rem;
  font-weight: 400;
}
.heading2 {
  color: #4b4b4b;
  font-size: 26px;
}
@media (max-width: 768px) {
  .card {
    width: 400px;
    gap: 10px;
  }
  .card .heading {
    font-size: 20px;
  }
  .result-container {
    flex-direction: column;
    gap: 5px;
    height: 60px;
    margin-bottom: 5px;
  }
  .result-container .decision {
    font-size: 20px;
  }
  .result-container .bmi {
    font-size: 20px;
  }
  .category-container {
    flex-direction: column;
    margin-bottom: 10px;
  }
  .category {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
  }
  .category .horizontal {
    overflow: hidden;
    width: 0;
    height: 0;
  }
  .category:first-child {
    border-bottom-left-radius: 0px;
  }
  .category:last-child {
    border-top-right-radius: 0px;
  }
  .category-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
  }
  .category .name {
    flex: 1;
  }

  .category .value {
    flex: 1;
  }
  .cont label {
    font-size: 15px;
  }
  .heading2 {
    font-size: 16px;
  }
}
