* {
  outline: none;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #000;
  font-family: sans-serif;
  line-height: 1;
}

#app {
  width: 100%;
  height: 100%;
  position: relative;
}

#userList {
  display: flex;
  justify-content: space-between;
  align-content: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  color: #999;
  font-size: 12px;
  padding: 10px 10px 50px 10px;
  z-index: 1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
}

/* Username prompt */
#usernamePrompt,
#timerDisplay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #111;
  color: #fff;
  z-index: 1;
}
#timerDisplay {
  font-size: 23px;
  font-weight: bold;
  text-shadow: 0 0 5px black;
  background: none;
}
#usernamePrompt p {
  text-align: center;
  line-height: 1.5;
  padding: 0 10px;
}
#usernameInput {
  font-size: 23px;
  padding: 12px 18px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 0;
  width: 100%;
  max-width: 230px;
}

#startBtn {
  border: 0;
  border-radius: 10px;
  background-color: rgb(0, 100, 0);
  color: white;
  font-size: 23px;
  padding: 12px 19px;
  min-width: 230px;
  transition: 0.23s all;
}
#startBtn:hover {
  background-color: rgb(0, 168, 0);
  letter-spacing: 9px;
}
#usernamePrompt label {
  color: #b4b4b4;
  margin-bottom: 10px;
}

#genderSelection input {
  display: none;
}

#genderSelection input:checked + label {
  background-color: white;
  color: black;
}
#genderSelection label {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  display: inline-block;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.23s background-color;
}

#genderSelection label:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

#errorMsg {
  color: #f66;
  margin-top: 8px;
  min-height: 20px;
}

/* Video container */
#videoContainer {
  width: 100%;
  height: 100%;
  display: none; /* hidden until we have joined */
  position: relative;
}

/* Remote video is full screen */
#remoteVideo {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  background: #222;
}

/* Local video bottom-left corner, 20% size */
#localVideo {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 20%;
  height: auto;
  object-fit: cover;
  border: 2px solid #fff;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Controls at bottom-left */
#controls {
  position: absolute;
  display: flex;
  flex-flow: row nowrap;
  bottom: 30px;
  right: 20px;
  z-index: 3;
}
button {
  margin-right: 8px;
  padding: 8px 12px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 14px;
}
button.blue {
  background-color: #007bff;
}
button.gray {
  background-color: #6c757d;
}
button.gold {
  background-color: gold;
  color: black;
}

#controls button {
  width: 15vw;
  height: 15vw;
  max-width: 60px;
  max-height: 60px;
  border-radius: 15vw;
  font-size: clamp(14px, 4vw, 17px);
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Simple spinner for "waiting for next user" */
#waitingOverlay {
  display: flex;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 18px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.logo {
  max-width: 150px;
}

h1 {
  margin: 0;
}

.heartbeat {
  animation: heartbeat 1s infinite;
}

.spinning {
  animation: spinning 0.5s infinite;
}

@keyframes heartbeat {
  0% {
    transform: scale(0.75);
  }
  20% {
    transform: scale(1);
  }
  40% {
    transform: scale(0.75);
  }
  60% {
    transform: scale(1);
  }
  80% {
    transform: scale(0.75);
  }
  100% {
    transform: scale(0.75);
  }
}

@keyframes spinning {
  0% {
  }
  100% {
    transform: rotate(360deg);
  }
}
