html,
body {
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body {
  margin-top: 1rem;
}

#chooseDiv {
  display: flex;
  flex-direction: row;
  width: fit-content;
  height: fit-content;
  justify-content: left;
  margin: 0 auto;
}

#chooserLabel {
  margin-right: 1rem;
  text-align: center;
  display: flex;
  align-items: center;
}

#title {
  font-size: 2rem;
  font-weight: bold;
  padding: 0.5rem;
  max-width: 650px;
  text-align: left;
}

select {
  border: 1px solid black;
}

#desc {
  font-size: 1.2rem;
  line-height: 2;
  text-align: left;
  max-width: 750px;
  margin: 0 auto;
  border: 1px solid black;
  padding: 2.5rem;
}

@media only screen and (max-width: 600px) {
  #desc {
    width: 95%;
    padding: 0.5rem;
    border: none;
  }
}

@media only screen and (min-width: 600px) {
  #bDiagram {
    width: 450px;
    height: 450px;
  }

  #desc {
    font-size: 1.2rem;
  }
}

@keyframes highlightFade {
  0% {
    background-color: #ffeb3b; /* Bright yellow */
    color: #000; /* Ensure text is readable */
  }
  100% {
    background-color: transparent;
  }
}

.highlight-target {
  animation: highlightFade 8s ease-out forwards;
  border-radius: 3px;
  padding: 0 4px;
}

#chooser {
  max-width: 200px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}