html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

body {
  position: relative;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

* {
  font-family: Arial, Helvetica, sans-serif;
}

.row {
  display: flex;
  flex-direction: row;
}

.column {
  display: flex;
  flex-direction: column;
}

.center {
  align-items: center;
}

#videoContainer {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: black;
}

#video {
  position: absolute;
  width: 100dvw;
  height: 100dvh;
  object-fit: cover;
}

#streamingControls {
  position: absolute;
  left: 1vh;
  bottom: 1vh;
  display: flex;
  flex-direction: column;
}

#replayHeader {
  position: absolute;
  top: 1vh;
  width: 100%;
  display: flex;
  justify-content: center;
  pointer-events: none;
  &[hidden] {
    display: none;
  }

  > * {
    color: white;
  }
}

#replayControls {
  position: absolute;
  bottom: 1vh;
  width: 100%;
  background-color: none;
  display: flex;
  flex-direction: column;

  pointer-events: none;
  > * {
    pointer-events: all;
  }

  &[hidden] {
    display: none;
  }
}

#scores {
  position: absolute;
  top: 1vh;
  right: 1vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  @media (width < 600px) {
    > div.row {
      width: calc(100vw - 2vh);
      justify-content: space-between;
    }
    > #resetScores {
      align-self: flex-end;
    }
  }

  pointer-events: none;
  > * {
    pointer-events: all;
  }
}

#replayHistory {
  position: absolute;
  bottom: 1vh;
  right: 1vh;
  display: flex;
  flex-direction: column;
  align-items: center;

  > div {
    font-size: large;
  }

  > div.selected {
    border: 2px solid green;
  }
}

#leftScoreArea {
  left: 1vh;
}

#rightScoreArea {
  right: 1vh;
}

.box {
  color: white;
  padding: 2vh;
  background-color: black;
  border-radius: 8px;
  border: 2px solid white;
  font-family: sans-serif;
  margin: 4px;
  user-select: none;
}

.icon {
  text-align: center;
  width: 1.5em;
  font-size: large;
  white-space: nowrap;

  @media (width > 800px) {
    font-size: xx-large;
  }
}

.button {
  &:not([disabled]) {
    cursor: pointer;
    &:hover {
      color: black;
      background-color: rgb(65, 65, 65);
    }
  }
  &[disabled] {
    background-color: rgb(90, 90, 90);
    border-color: rgb(180, 180, 180);
  }
}

.score {
  width: 2.25em;
}

#leftScore {
  color: red;
}

#rightScore {
  color: green;
}

.recording {
  border: 2px solid red;
}

#hotkeys {
  position: absolute;
  top: 1vh;
  left: 1vh;

  @media (width < 600px) {
    left: 12vh;
  }

  & kbd {
    padding: 0.4em;
    margin-right: 0.2em;
    border: 2px solid rgb(45, 45, 45);
    box-shadow: 2px 2px rgb(105, 105, 105);
    background-color: black;
    color: white;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
  }
}

