/*
  Styles for the player view:
  - Join section
  - Game section and buzzer button
  - UUID display and connections block
  - Responsive and color theming
*/

/* Player Join Section */
#join {
  display: flex;
  flex-direction: column;
  gap: 1em;
  width: 25vw;
}

/* Player Game Section */
#game {
  padding-top: 5vh;
  display: flex;
  justify-content: center;
  align-content: start;
  gap: 1em;
  flex-direction: column;
  height: 100vh;
  width: 25em;
}

#game h2 {
  font-weight: bold;
  text-align: center;
  border-top: 1px solid;
  border-bottom: 1px solid;
}

/* Buzzer Button */
#buzzer {
  /* Large, round, colored button for buzzing in */
  padding: min(25vh, 20vw);
  border: 0.75em solid var(--color-buzzer-border);
  border-radius: 50%;
  background: var(--color-buzzer);
  color: #fff;
  font-weight: bolder;
  font-size: 3em;
  text-shadow: 1px 1px black;
  transition: 500ms linear;
  user-select: none;
}

#buzzer:disabled {
  /* Disabled state for buzzer */
  background: var(--color-buzzer-disabled);
  border-color: var(--color-buzzer-border-disabled);
  filter: blur(2px);
  cursor: not-allowed;
}

#buzzer:hover:not(:disabled) {
  /* Hover effect for buzzer */
  text-shadow: -1px 5px black;
  filter: brightness(1.15) drop-shadow(0 0 10px var(--color-buzzer));
  box-shadow: 0 0 20px 2px var(--color-buzzer-border);
  cursor: pointer;
}

#buzzer:active {
  border: 1em solid var(--color-buzzer-border);
}

/* UUID Display */
#info-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: end;
}

body {
  background: var(--color-background);
  color: var(--color-text);
}
