*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

:root {
  font-family: serif;
  font-size: 16px;
}

body {
  background-color: #f5f5f5;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

main {
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 2px 2px 5px 1px rgba(0, 0, 0, 0.25);
  padding: 25px 30px;
}

h1 {
  text-align: center;
}

form {
  margin-top: 20px;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.form-group {
  display: flex;
  flex-flow: row nowrap;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.form-group input[type="text"] {
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 4px 7px;
  font-size: 1rem;
  width: 100px;
}

button[type="submit"] {
  border: 1px solid #aaa;
  border-radius: 5px;
  font-size: 1rem;
  margin-top: 10px;
  padding: 7px 10px;
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: #ddd;
  border-color: #333;
}

#result {
  margin: 20px auto;
  text-align: center;
  font-size: 2rem;
}

.bmi-guide {
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px dotted #ccc;
}

table {
  margin-top: 20px;
}

table thead th {
  color: rgb(116, 115, 115);
}
table tr td {
  padding-top: 0.5rem;
}

table tr td:nth-child(1) {
  padding-right: 1rem;
}

.selected {
  animation: blink 1.5s infinite ease-in-out;
  color: red;
  position: relative;
}

@keyframes blink {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
