@charset "UTF-8";

html {
  font-size: 100%;
}

body {
  color: #050507;
  font-size: 1rem;
  max-width: 295px;
  min-width: 295px;
  margin: 10px auto;
}

a {
  color: #050507;
  text-decoration: none;
}

.flex-area {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --#header----------------------- */
#header {
  text-align: center;
  padding: 20px;
}

/* --main------------------- */
main {
  margin: 0 auto;
  font-size: 1rem;
}

/* --#input-section----------------------- */
input[type="number"] {
  max-width: 100%;
  width: 10em;
  border-radius: 5px;
  padding: 10px;
  border: 1px solid #050507;
  text-align: center;
}

label {
  margin-right: 10px;
}

::placeholder {
  text-align: center;
}

.unit {
 margin-left: 10px;
}

.input-section__height, .input-section__weight {
  margin-bottom: 30px;
}

/* --..input-section__bmi-calc-btn------ */
.input-section__bmi-calc-btn {
  height: 50px;
  color: white;
  font-weight: bold;
  background-color: rgb(4, 103, 252);
  border-radius: 5px;
  display: block;
  max-width: 100%;
  width: 10em;
  margin: 0 0 30px 75px;
  cursor: pointer;
}

.input-section__bmi-calc-btn:hover {
  opacity: 0.6;
}

#result {
  margin-bottom: 30px;
}

#result .flex-area {
  gap: 0 10px;
}

/* --.result__display----------------------- */
.result__display {
  border: solid 1px #050507;
  height: 50px;
  line-height: 50px;
  text-align: center;
  border-radius: 5px;
  max-width: 100%;
  width: 10em;
}

/* --#reference-value----------------------- */
#reference-value {
  text-align: center;
}

.reference-value__flex-area {
  flex-wrap: wrap;
  border: 1px solid #050507;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 30px;
}

.reference-value__flex-area dt {
  width: 43%;
  text-align: left;
  margin-left: 7%;
  margin-bottom: 5px;
  border-bottom: solid 1px rgba(5, 5, 7, 0.2);
}

.reference-value__flex-area dt:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.reference-value__flex-area dd {
  width: 43%;
  text-align: right;
  margin-bottom: 5px;
  margin-right: 7%;
  border-bottom: solid 1px rgba(5, 5, 7, 0.2);
}

.reference-value__flex-area dd:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.reference-value__note {
  line-height: 30px;
}

/* --#footer----------------------- */
#footer {
  text-align: center;
  padding: 35px;
}

#siteinfo {
  margin-bottom: 20px;
}

#siteinfo ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  line-height: 1.5;
}

.siteinfo__list {
  display: inline;
  font-size: 0.85rem;
}

#siteinfo a {
  color: #1a0dab;
}

#siteinfo a:hover {
  text-decoration: underline;
}

#siteinfo span {
  opacity: 0.5;
  padding: 0 0.5rem;
}

.footer__copyright {
  line-height: 30px;
}