@font-face {
  font-family: super_peachregular;
  src: url("/dist/super_peach-webfont.woff") format("woff2"), url("/dist/super_peach-webfont.woff2") format("woff");
  font-weight: normal;
  font-style: normal;
}
html {
  font-size: 100%;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.3;
  margin: 0px;
  padding: 0px;
  background-color: pink;
  text-align: center;
  height: 100vh;
  overflow: hidden;
  cursor: url("../assets/stamp_cursor_24.png") 12 1, auto !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  position: relative;
}

#QuizContainer {
  background-color: #f1f1f1;
  border-radius: 12px;
  width: 580px;
  padding: 35px;
  border-style: outset;
  border-color: rgb(199, 199, 199);
}

h1 {
  font-family: super_peachregular, Helvetica;
  font-size: 44pt;
}

h3 {
  margin: 20px 0 8px 0;
}

.Header {
  display: block;
  text-align: center;
  width: 100%;
}

#menu-bar {
  position: fixed;
  text-align: right;
  top: 58px;
  right: 7%;
}
#menu-bar h3 {
  text-align: left;
}

#muteButton, #lb-button {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  display: inline-flex;
  width: 40px;
  height: 40px;
}

.wave-button {
  font-size: 0.9rem;
  background: rgba(128, 128, 128, 0.7);
  text-align: center;
  border-radius: 3pt;
  margin: 2px;
  width: auto;
  padding: 2px;
  border: revert;
}

small {
  font-style: italic;
}

.popup {
  font-family: monospace;
  background-color: rgba(150, 255, 255, 0.96);
  border: 3px solid white;
  position: fixed;
  width: 430px;
  text-align: center;
  margin: 2px auto 2px auto;
  padding-top: 20px;
  padding-bottom: 25px;
  padding-left: 40px;
  padding-right: 40px;
  z-index: 99;
  border-radius: 10px;
  left: 50%;
  top: 470px;
  transform: translate(-50%, -50%);
  overflow-x: hidden;
  z-index: 99;
}

#usersOverlay {
  position: fixed;
  top: 44px;
  left: 5%;
}

#userList {
  opacity: 0.6;
  padding: 0;
}
#userList li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  text-align: left;
  padding: 3px;
  margin-top: 4px;
  border-radius: 4px;
  background-color: hotpink;
}
#userList li span {
  padding: 5px;
}

.table-container {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 545px;
  scrollbar-width: thin; /* For Firefox, make the scrollbar thinner */
  scrollbar-color: #888 transparent; /* For Firefox, set thumb color and track color */
  padding-left: 24px; /* Offset the width of the scrollbar */
}

::-webkit-scrollbar {
  width: 8px; /* Set the width of the scrollbar */
}

::-webkit-scrollbar-track {
  background: transparent; /* Make the track background transparent */
}

::-webkit-scrollbar-thumb {
  background-color: #888; /* Set the scrollbar thumb color */
  border-radius: 10px; /* Optional: round the corners of the thumb */
  border: 2px solid transparent; /* Optional: add space around the thumb */
}

#Timer {
  text-align: center;
  font-size: 24pt;
  margin: 10px 2px 10px 2px;
}

form {
  display: block;
  text-align: center;
}

input {
  border-radius: 4px;
  font-size: 12pt;
  padding: 4px;
  cursor: url("../assets/stamp_cursor_24.png") 12 1, auto !important;
}

input[type=text] {
  color: black;
  margin: 4px;
}

#textinput {
  width: 220px;
}

#gameModeButtons button {
  font-size: 14pt;
  padding: 6px;
  margin: 8px auto 8px auto;
}

button {
  display: block;
  text-align: center;
  margin: 6px auto 6px auto;
  padding: 4px;
  background-color: lavender;
  border-radius: 6px;
  border: 2px solid white;
  font-size: 12pt;
  cursor: url("../assets/stamp_cursor_24.png") 12 1, auto !important;
}
button img {
  width: 32px;
}

#scorecard {
  font-size: 15pt;
  margin: 15px;
}

#ImageContainer {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  width: 320px;
  height: 320px;
  overflow: hidden;
  border-radius: 7px;
  border-width: 4px;
  border-color: white;
  border-style: solid;
  margin: 10px auto 10px auto;
  background-color: rgba(173, 216, 230, 0.49);
}

#nameOverlay {
  background-color: rgba(255, 255, 255, 0.5);
  font-size: 15pt;
  text-align: center;
  padding: 6px;
  margin: auto;
  opacity: 0;
  border-radius: 3px;
  max-width: 80%;
}

.image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#scorecard {
  text-align: center;
}

.green {
  color: rgb(38, 225, 106);
}

table {
  margin: 10px auto 10px auto;
  font-size: 15pt;
  border-spacing: 15px;
  line-height: 22pt;
}

#scoreInput {
  text-align: center;
  text-transform: uppercase;
  font-size: 15pt;
  color: white;
  caret-color: white;
  background: transparent;
  border: none;
}

#confettiCanvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 99;
  pointer-events: none;
}

#submitName {
  margin-top: 10px;
}

#countDown {
  font-size: 8rem;
  color: white;
  position: absolute;
  margin: 0;
  z-index: 10;
}

#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.toast {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 10px 16px;
  margin-top: 8px;
  border-radius: 6px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
}

.toast.wave {
  border: 2px solid rgba(150, 255, 255, 0.96);
}

.toast.show {
  opacity: 0.9;
  transform: translateY(0);
}

.toast .sender {
  color: rgba(150, 255, 255, 0.96);
  font-weight: italic;
}

.toast .score {
  color: white;
}