#overlay-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0 0 0 / 80%);
  text-align: center;
}

#modal-container {
  position: fixed;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 85%;
  color: white;
  background: black;
  overflow: hidden;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  font-size: 20px;
  border: 2px solid white;
}

#modal-title {
  position: fixed;
  left: 5%;
  width: 90%;
  color: white;
  padding-top: 6px;
}

#close-modal {
  position: absolute;
  right: 0;
  top: 0;
  padding: 4px 8px;
  background-color: black;
  color: white;
  font-weight: bolder;
}

#close-modal:active {
  font-size: 10px;
  padding: 6px 9px;
}

#close-modal:hover, #close-modal:hover::after {
  filter: invert(1);
}

#settings, #help, #about {
  position: absolute;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 85%;
  color: slategray;
  overflow-y: auto;
  text-align: center;
  padding: 8px;
  margin-top: 4px;
}

#help > span, #about > span { 
  user-select: text;
}

#about > hr, #help > hr {
  width: 30%;
  margin-bottom: 24px;
  margin-left: 35%;
}

#about > hr:not(:first-child), #help > hr:not(:first-child) {
  margin-top: 24px;
}

body::-webkit-scrollbar, #modal-container::-webkit-scrollbar, #settings::-webkit-scrollbar, #help::-webkit-scrollbar, #about::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track, #modal-container::-webkit-scrollbar, #settings::-webkit-scrollbar-track, #help::-webkit-scrollbar-track, #about::-webkit-scrollbar-track {
  box-shadow: inset 0 0 8px #90C;
  border-radius: 10px;
}

body::-webkit-scrollbar-thumb, #modal-container::-webkit-scrollbar, #settings::-webkit-scrollbar-thumb, #help::-webkit-scrollbar-thumb, #about::-webkit-scrollbar-thumb {
  background-color: white;
  opacity: 1;
  border-radius: 12px;
}

body::-webkit-scrollbar-thumb:hover, #modal-container::-webkit-scrollbar, #settings::-webkit-scrollbar-thumb:hover, #help::-webkit-scrollbar-thumb:hover, #about::-webkit-scrollbar-thumb:hover {
  background: #90C;
}

#test-results, #disclaimer-text, #help > span {
  display: inline-block;
  width: clamp(320px, 80vw, 640px);
}

@media screen and (width <= 600px) {
  #modal-container {
    position: fixed;
    left: 5%;
    z-index: 10;
  }
}