* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
}

main {
  position: relative;
}

#self-view-video, #self-view-canvas {
  width: 100%;
  height: auto;
}

#participant-canvas {
  max-height: 100vh;
  max-width: 100vw;
}

small#error {
  display: none;
  background-color: #EF476F;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 20px;
  margin-bottom: 20px;
  width: 189px;
  text-align: center;
}

video, #self-view-canvas {
  border-radius: 20px;
}

input {
  border-radius: 20px;
  padding: 10px 20px;
  margin-bottom: 20px;
  border: none;
  border: 2px solid #073B4C;
  width: 189px;
}

input:focus-visible {
  outline-color: #118AB2;
}

button {
  background-color: transparent;
  background-repeat: no-repeat;
  color: #000000;
  border: none;
  padding: 10px 10px;
  cursor: pointer;
  height: 50px;
  width: 110px;
  font-size: 12px;
  text-align: center;
  border-radius: 5px;
  margin-left: 2px;
  margin-right: 2px;
  overflow: hidden;
  outline: none;
}

.controls button {
  margin-top: 20px;
}

#landing {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100vh;
}

#landing h2 {
  margin-top: 0;
}

small.zoom {
  margin-top: 20px;
  font-style: italic;
  font-weight: bold;
}

#session, #muteAudio, #unmuteAudio, #stopVideo, #stopGame, #zone_joystick, #self-view-video, #participant-canvas, #self-view-canvas, #loading-bar, #loader {
  display: none;
}

#session {
  height: 100vh;
  align-items: center;
  background-color: #118AB2;
}

#loader{
	position: fixed;
  align-items: center;
  opacity: 0.5;
	width: 100%;
	height: 100vh;
	background: #21242d url('img/loader.gif') no-repeat center;
	z-index: 999;
}

a {
  color: #118AB2;
}

.primary {
  background-color: #FFFF00;
}

.game {
  background-color: #66ff66;
}

.game-disabled {
  background-color: #cccccc;
  color: #666666;
}

.leave {
  background-color: #EF476F;
}

.leave-disabled {
  background-color: #cccccc;
  color: #666666;
}

.row {
  display: flex;
}

.column {
  flex: 1;
}

.participant {
  background-color: #118AB2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-height: 100vh;
  margin: auto;
}

.participant h3 {
  color: #ffffff;
}

#help {
  position: fixed;
  top: 20px;
  left: 10px;
}

.hint {
  background-color: #376ff5;
  color: #ffffff;
  width: 100px;
  margin: 3px 0px;
}

.base-timer {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 100px;
  height: 100px;
}

.base-timer__svg {
  transform: scaleX(-1);
}

.base-timer__circle {
  fill: none;
  stroke: none;
}

.base-timer__path-elapsed {
  stroke-width: 7px;
  stroke: grey;
}

.base-timer__path-remaining {
  stroke-width: 7px;
  stroke-linecap: round;
  transform: rotate(90deg);
  transform-origin: center;
  transition: 1s linear all;
  fill-rule: nonzero;
  stroke: currentColor;
}

.base-timer__path-remaining.green {
  color: rgb(65, 184, 131);
}

.base-timer__path-remaining.orange {
  color: orange;
}

.base-timer__path-remaining.red {
  color: red;
}

.base-timer__label {
  position: absolute;
  width: 100px;
  height: 100px;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: bold;
}

.self {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 20%;
  min-width: 150px;
  aspect-ratio: 16/9;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
}

.self h3 {
  color: #ffffff;
}

.controls {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
}

#background-video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: -1;
  border-radius: 0;
  opacity: 0.7;
}

@media only screen and (min-width: 769px), only screen and (orientation:landscape) {
  button {
    padding: 10px 10px;
    cursor: pointer;
    height: 40px;
    width: 120px;
    font-size: 12px;
    text-align: center;
    border-radius: 5px;
    margin-left: 2px;
    margin-right: 2px;
    overflow: hidden;
    outline: none;
  }

  .controls {
    bottom: 10px;
  }

  .controls button {
    margin-top: 20px;
  }
}