@keyframes flash-fade {
  0% {
    background-color: yellow;
  }
  100% {
    background-color: #f0f0f0;
  }
}
html, body {
  height: 100%;
  padding: 0;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  overscroll-behavior: none;
  overflow: hidden;
}

.board-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overscroll-behavior: none;
}

.board-header {
  height: clamp(2.5rem, 10vh, 5rem);
  flex-shrink: 0;
  background-color: #f9f9f9;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 2vw;
  padding-right: 2vw;
  border-bottom: 1px solid #999;
}
.board-header h1 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  margin: 0;
  padding: 0;
  color: #073b4c;
}
.board-header .controls {
  display: flex;
  align-items: stretch;
  height: 2.2rem;
}
.board-header .controls input[name=url] {
  box-sizing: border-box;
  width: clamp(5rem, 40vw, 30rem);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border: 1px solid #888;
  border-top-left-radius: 0.65rem;
  border-bottom-left-radius: 0.65rem;
  margin: 0;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
}
.board-header .controls input[name=url][disabled] {
  color: #222;
}
.board-header .controls button {
  box-sizing: border-box;
  border: 1px solid #888;
  border-left: 0;
  border-top-right-radius: 0.65rem;
  border-bottom-right-radius: 0.65rem;
  margin: 0;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  background-color: #f0f0f0;
}

.board-body {
  flex: 1;
  background-color: #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 1vh;
  padding-bottom: 1vh;
}
.board-body .rink {
  aspect-ratio: 200/85;
  width: 100%;
  max-height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  background-image: url("/assets/hockey_rink-ef0fe623.svg");
}
.board-body .rink-hockey {
  background-image: url("/assets/hockey_rink-ef0fe623.svg");
}
.board-body .rink-floorball {
  background-image: url("/assets/floorball_rink-20a17dab.svg");
}
.board-body .entity {
  position: absolute;
  display: flex;
  width: clamp(20px, 2.8vw, 60px);
  height: clamp(20px, 2.8vw, 60px);
  border-radius: 50%;
  background-color: red; /* or blue based on team */
  transform: translate(-50%, -50%);
  cursor: pointer;
  border: clamp(2px, 0.5vw, 8px) solid black;
  touch-action: none;
  box-shadow: 0px 2px 10px rgba(0.3, 0.3, 0.3, 0.35);
  align-items: center;
  justify-content: center;
}
.board-body .entity-red {
  background-color: #d22;
}
.board-body .entity-blue {
  background-color: #37f;
}
.board-body .entity-puck {
  background-color: #555;
}

.button {
  border: 0;
  padding: 1vh 1vw 1.1vh 1vw;
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  background-color: #8ac926;
  border-radius: 0.5vw;
  color: white;
  cursor: pointer;
}

.button:hover {
  background-color: #acec4a;
}

.flash {
  animation: flash-fade 500ms ease-out forwards;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.category, .labels {
  font-size: 22px;
}

.no-entity-labels .entity label {
  display: none;
}
