@font-face {
  font-family: 'TT Norms Pro';
  src: url('./fonts/TTNormsPro-Medium.ttf');
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'TT Norms Pro';
}

body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.scoreboard {
  background: #fff;
  border-radius: 6px;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 9fr 42fr 12fr 10fr;
  grid-template-rows: 1fr 1fr;
  column-gap: 1%;
  row-gap: 6%;
  width: 82%;
  height: 30%;
  overflow: visible;
  padding: 10px;
}

.pfvlogo {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 1.5%;
  min-width: 0;
  min-height: 0;
  border-radius: 2% 0 0 2%;
}

.pfv {
  width: 98%;
  height: 96%;
  object-fit: contain;
  object-position: left center;
}

.teamlogos,
.names,
.sets,
.points,
.indicators,
.timeouts {
  min-width: 0;
  min-height: 0;
}

.teamlogos {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-top: 10px;
}

.teamlogo {
  width: 86%;
  height: 45%;
  max-width: 86%;
  object-fit: contain;
  background-color: #fff;
  border-radius: 50%;
  padding: 5px;
}

.names {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  grid-template-rows: 1fr 1fr;
  row-gap: 6%;
}

.name {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 5%;
  overflow: hidden;
  background-color: #1f2e4a;
  border-radius: 10px;
  font-size: 3rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.live_score {
  grid-column: 3 / 5;
  grid-row: 1 / 3;
  display: grid;
  grid-template-columns: 56fr 44fr;
  grid-template-rows: 1fr 1fr;
  row-gap: 6%;
  column-gap: 6%;
  min-width: 0;
  min-height: 0;
}

.sets,
.points {
  display: contents;
}

.set,
.point {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 0;
  border-radius: 10px;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
}

.set {
  background-color: #1f2e4a;
  color: #ffffff;
}

.point {
  background-color: #df002c;
  color: #ffffff;
}

#set_a {
  grid-column: 1;
  grid-row: 1;
}

#set_b {
  grid-column: 1;
  grid-row: 2;
}

#point_a {
  grid-column: 2;
  grid-row: 1;
}

#point_b {
  grid-column: 2;
  grid-row: 2;
}

.indicators {
  display: contents;
}

.indicator {
  z-index: 1;
  width: 14%;
  aspect-ratio: 1;
  margin: 8%;
  background-color: #fff;
  border-radius: 50%;
  opacity: 0;
  justify-self: end;
  align-self: start;
  box-shadow: 0 0 0 2px rgba(31, 46, 74, .35);
  pointer-events: none;
}

#indicator_a {
  grid-column: 2;
  grid-row: 1;
}

#indicator_b {
  grid-column: 2;
  grid-row: 2;
}

.timeouts {
  position: absolute;
  top: 1%;
  right: -18%;
  display: grid;
  grid-template-rows: 1fr 1fr;
  row-gap: 6%;
  width: 18%;
  height: calc(100% - 2%);
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.timeout {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 8%;
  background-color: #df002c;
  border-radius: 0 6px 6px 0px;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-100%);
  transition: transform .45s ease, opacity .45s ease;
}

.timeout-visible {
  opacity: 1;
  transform: translateX(0);
}

.timeout-hidden {
  opacity: 0;
  transform: translateX(-100%);
}

.tablo {
  position: relative;
  left: 30%;
  display: flex;
  align-items: center;
  gap: .4vw;
  overflow: visible;
  background-color: transparent;
  border-radius: 0 0 8px 8px;
  font-size: 1.8rem;
  font-weight: 700;
}

.score_set {
  min-width: 7vw;
  padding: .65vh 1.4vw .8vh;
  background-color: #1f2e4a;
  border-radius: 0 0 6px 6px;
  line-height: 1;
  text-align: center;
}

.score_set_current {
  background-color: #df002c;
  box-shadow: inset 0 .35vh 0 rgba(255, 255, 255, .16);
}
