body {
  width: 100svw;
  height: 100svh;
}
.top-level-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: normal;
}
.top-level-overlay-inner {
  position: relative;
  color: white;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid white;
  border-radius: 8px;
  padding: 30px;
  width: 90%;
  max-width: 400px;
}
.top-level-overlay-inner.withFooter {
  padding: 30px 30px 70px;
}
.top-level-overlay-inner .titleSection {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid white;
}
.top-level-overlay-inner .titleSection .mainTitle {
  font-size: 30px;
  font-family: playwrite;
  margin: 0;
  color: #fff;
  text-shadow: 3px 2px 0px var(--secondary-color);
}
.top-level-overlay-inner .titleSection .subTitle {
  font-size: 16px;
  font-family: playwrite;
  margin: 0 0 30px 0;
  color: #fff;
  text-shadow: 3px 2px 0px var(--secondary-color);
}
#web-main-menu-inner .optionsSection,
#web-main-menu-inner .optionsSubSection {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
#web-main-menu-inner button {
  background: none;
  border: 1px solid white;
  border-radius: 4px;
  padding: 6px 12px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
#web-main-menu-inner button:hover {
  background: rgba(255, 255, 255, 0.3);
}
#web-main-menu-inner button:focus {
  background: rgba(255, 200, 200, 0.5);
}
#web-main-menu-inner label {
  font-weight: normal;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hidden {
  display: none !important;
}

article {
  font-weight: normal;
}

.scrollable {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.scrollable::-webkit-scrollbar {
  width: 6px;
}

.scrollable::-webkit-scrollbar-track {
  background: transparent;
}

.scrollable::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.scrollable::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.scrollable h3 {
  margin-top: 20px;
  margin-bottom: 10px;
}

.scrollable p {
  margin: 8px 0;
  line-height: 1.4;
}

#loadingDisplay {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 12px;
}

#loadingBarContainer {
  border-radius: 4px;
  width: 100%;
  max-width: 250px;
  border: 2px solid white;
  position: relative;
  height: 30px;
}

#loadingBar {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  background: #388181;
  width: 0%;
  height: 100%;
  position: absolute;
}

#loadingBarText {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  left: 50%;
}

h4 {
  margin: 0 0 10px;
}

#web-main-menu-inner label.textInputLabel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

#web-main-menu-inner label.textInputLabel div.labelText {
  font-size: 10px;
  margin: 0;
  color: #a4a4a4;
}

#web-main-menu-inner label.textInputLabel input {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: 1px solid white;
  border-radius: 4px;
  padding: 3px 6px;
}

.nameDisplayContainer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.nameInputContainer {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 6px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.textPropUpdater {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#gameOverDisplay {
  font-family: "Inter";
}

#gameOverDisplay .dataCell {
  padding: 0 4px;
}

.normalTextSize {
  font-size: 12px;
}

#players {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  margin: 6px 0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

#players .playerGridRow {
  display: grid;
  grid-template-columns: 20px 1fr 1fr 1fr;
  gap: 6px;
}

#players .playerGridCell {
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

#players .playerGridCell .header {
  font-weight: bold;
  font-size: 10px;
  background: rgba(0, 0, 0, 0.3);
}

#players .playerGridCell.colorCell {
  width: 10px;
  aspect-ratio: 1 / 1;
  border: 1px solid white;
  border-radius: 100%;
}

button.exitGameEnd {
  margin: 20px auto 0;
  display: block;
  border: 1px solid white;
  border-radius: 4px;
  padding: 6px 12px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

.roomRow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 5px;
  gap: 12px;
}

.roomRowCell {
  padding: 5px;
}

#hamburger {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
  justify-content: space-between;
  width: 27px;
  opacity: 1;
  cursor: pointer;
  z-index: 2;
  padding: 4px;
  border: none;
}

#hamburger > div {
  height: 3px;
  border-radius: 10px;
  width: 100%;
  background: #ffffff;

  cursor: pointer;
}

#web-main-menu-inner button#web-main-menu-close {
  border: none;
  border-radius: 100%;
  padding: 3px;
  position: absolute;
  top: 2px;
  right: 2px;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

button#web-main-menu-close img {
  width: 20px;
  height: 20px;
}

button img {
  width: 15px;
  aspect-ratio: 1;
}

button img.sm {
  width: 10px;
  aspect-ratio: 1;
}

button img.lg {
  width: 20px;
  aspect-ratio: 1;
}

#web-main-menu-inner button.iconOnly#closeNameInputContainer {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 37px;
  width: 37px;
}

#web-main-menu-inner button.iconOnly {
  border: none;
  padding: 5px;
  border-radius: 100%;
  width: 25px;
  height: 25px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-button-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 15px;
}

a {
  color: white;
}

a:visited {
  color: #efefef;
}

@media (max-width: 900px) {
  #web-main-menu-inner {
    font-size: 10px;
    padding: 15px;
    border: 1px solid white;
    max-height: 90%;
    overflow-y: auto;
  }
  #web-main-menu-inner .titleSection {
    margin-bottom: 15px;
  }
  #web-main-menu-inner .titleSection .mainTitle {
    font-size: 20px;
  }
  #web-main-menu-inner .titleSection .subTitle {
    font-size: 14px;
    margin: 0 0 15px 0;
  }
  #loadingBarContainer {
    border-radius: 4px;
    width: 100%;
    max-width: 250px;
    border: 1px solid white;
    position: relative;
    height: 15px;
  }
  #web-main-menu-inner button {
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
  }
  #web-main-menu-inner label {
    font-size: 12px;
    gap: 8px;
  }
  #web-main-menu-inner .optionsSection,
  #web-main-menu-inner .optionsSubSection {
    gap: 8px;
  }
}
