@import url("https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,400;0,500;0,700;1,700&display=swap");
body {
  background-color: #f8ede3;
  font-size: 1.5vw;
  font-family: "Ubuntu", sans-serif;
  width: 100%;
  height: 100%;
  touch-action: manipulation;
}

#gameInfo {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 0.25rem 0.5rem 1rem;
  border-radius: 1rem;
  font-size: 1.7em;
}
#gameInfo #opponentName {
  font-size: 1.2rem;
  font-weight: bold;
}

#field {
  position: absolute;
  overflow: hidden;
  margin-top: 6px;
  width: 100%;
  user-select: none;
}
#field > img {
  width: 100%;
}
#field .station {
  display: flex;
  align-items: center;
  position: absolute;
  aspect-ratio: 1/1;
  transform: translate(-60%, -65%);
  z-index: 8;
  transition: outline 0.17s ease;
  outline: rgba(206, 18, 18, 0) solid 5vw;
  border-radius: 30%;
}
#field .station#LF {
  top: 32%;
  left: 25%;
  outline-width: 12vw;
}
#field .station#LC {
  top: 20%;
  left: 40%;
  outline-width: 12vw;
}
#field .station#RC {
  top: 20%;
  left: 60%;
  outline-width: 12vw;
}
#field .station#RF {
  top: 32%;
  left: 75%;
  outline-width: 12vw;
}
#field .station#B3 {
  top: 60%;
  left: 34%;
  outline-width: 6vw;
}
#field .station#SS {
  top: 50%;
  left: 40%;
  outline-width: 7vw;
}
#field .station#B2 {
  top: 44%;
  left: 55%;
  outline-width: 7vw;
}
#field .station#B1 {
  top: 60%;
  left: 65%;
  outline-width: 6vw;
}
#field .station#PT {
  top: 60%;
  left: 50%;
  outline-width: 6vw;
}
#field .station#CX {
  top: 78%;
  left: 50%;
  outline-width: 8vw;
}
#field .station.sitting {
  outline-width: 2.5vw;
  opacity: 0;
}
#field .station#SIT1 {
  top: 93%;
  left: 8%;
}
#field .station#SIT2 {
  top: 93%;
  left: 17%;
}
#field .station#SIT3 {
  top: 93%;
  left: 26%;
}
#field .station#SIT4 {
  top: 93%;
  left: 35%;
}
#field .station#SIT5 {
  top: 82%;
  left: 8%;
}
#field .station#SIT6 {
  top: 82%;
  left: 17%;
}
#field .station#SIT7 {
  top: 82%;
  left: 26%;
}
#field .station#SIT8 {
  top: 71%;
  left: 8%;
}
#field .station#SIT9 {
  top: 71%;
  left: 17%;
}
#field .station#SIT10 {
  top: 60%;
  left: 8%;
}
#field .station#SIT11 {
  top: 93%;
  left: 66%;
}
#field .station#SIT12 {
  top: 93%;
  left: 75%;
}
#field .station#SIT13 {
  top: 93%;
  left: 84%;
}
#field .station#SIT14 {
  top: 93%;
  left: 93%;
}
#field .station#SIT15 {
  top: 82%;
  left: 75%;
}
#field .station#SIT16 {
  top: 82%;
  left: 84%;
}
#field .station#SIT17 {
  top: 82%;
  left: 93%;
}
#field .station#SIT18 {
  top: 71%;
  left: 84%;
}
#field .station#SIT19 {
  top: 71%;
  left: 93%;
}
#field .station#SIT20 {
  top: 60%;
  left: 93%;
}
#field .station#SIT21 {
  top: 6%;
  left: 8%;
}
#field .station#SIT22 {
  top: 6%;
  left: 17%;
}
#field .station#SIT23 {
  top: 6%;
  left: 26%;
}
#field .station#SIT24 {
  top: 6%;
  left: 75%;
}
#field .station#SIT25 {
  top: 6%;
  left: 84%;
}
#field .station#SIT26 {
  top: 6%;
  left: 93%;
}
#field .station.hidden {
  opacity: 0;
}
#field .station.highlighted, #field .station:hover {
  opacity: 1;
  outline-color: rgba(162, 178, 159, 0.5);
}
#field .playercontainer {
  display: inline-flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  position: absolute;
  z-index: 9;
  padding: 0.5em;
  width: 7em;
  background-color: none;
  vertical-align: middle;
  touch-action: none;
  will-change: transform, left, top;
  contain: layout;
}
#field .playercontainer, #field .playercontainer* {
  user-select: none;
}
#field .playercontainer.sitting {
  width: 5em;
}
#field .playercontainer.selected .picture {
  transition: outline 0.17s ease;
  outline: solid 0.5em rgba(248, 237, 227, 0.66);
}
#field .playercontainer.selected .info {
  opacity: 1;
}
#field .playercontainer .picture {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3em;
  cursor: pointer;
  z-index: 10;
}
#field .playercontainer .info {
  opacity: 0;
  transition: opacity 0.17s;
  z-index: 11;
  margin-top: -1.66em;
  padding: 0.33em 1em;
  background-color: rgba(248, 237, 227, 0.8);
  border-radius: 0.75em;
  white-space: nowrap;
}
#field .playercontainer .info > span {
  display: block;
}
#field .playercontainer .info > span.playername {
  font-size: 1.2em;
  font-weight: bold;
}

#lineup {
  display: flex;
  flex-direction: column;
  margin: 2vw;
  padding-top: 89vw;
  padding-bottom: 3vh;
  font-size: 4vw;
  user-select: none;
}
#lineup.hidden {
  display: none;
}
#lineup .playercontainer {
  display: flex;
  align-items: center;
  margin: 1vw 1vw 0 1vw;
  padding: 1vw;
  background-color: rgba(255, 255, 255, 0.5);
}
#lineup .playercontainer.sitting {
  color: #CCCCCC;
}
#lineup .playercontainer img {
  max-width: 8vw;
  max-height: 8vw;
}
#lineup .playercontainer .info {
  flex-grow: 1;
  margin-left: 2vw;
  vertical-align: middle;
}
#lineup .playercontainer .preferredpositions {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: nowrap;
  justify-content: space-between;
  margin-right: 4vw;
  border: 1px solid rgba(30, 30, 36, 0.2);
  font-size: 0.75em;
}
#lineup .playercontainer .preferredpositions .preferredposition {
  padding: 1vw 1vw;
}
#lineup .playercontainer .preferredpositions .preferredposition:hover, #lineup .playercontainer .preferredpositions .preferredposition.selected {
  background-color: rgba(162, 178, 159, 0.5);
}
#lineup .playercontainer .stationed {
  margin-right: 2vw;
}

#summary {
  padding-top: 90vw;
  overflow: hidden;
  font-size: 2em;
  text-align: center;
  border-collapse: collapse;
}
#summary.hidden {
  display: none;
}
#summary table {
  touch-action: none;
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 96%;
  border: 2px solid #e9c6a6;
  border-collapse: collapse;
  user-select: none;
}
#summary table col:not(:first-child).hover {
  border-width: 2px;
  border-color: #e4b991;
  border-left-style: solid;
  border-right-style: solid;
}
#summary table th {
  padding: 1vw 1vh;
  font-weight: bold;
}
#summary table th:first-child {
  text-align: left;
}
#summary table td {
  padding: 1vw 1vh;
}
#summary table thead tr {
  background-color: #eed3ba;
}
#summary table thead th.needsgirls {
  border-bottom: 2px solid #ff00aa;
}
#summary table tbody tr:hover, #summary table tbody tr.hover {
  outline: 3px solid rgba(30, 30, 36, 0.2);
}
#summary table tbody tr.beingDraggedPlaceholder *:not(span) {
  background-color: #ffd59f !important;
  color: #5f4b41 !important;
}
#summary table tbody tr > th {
  cursor: grabbing;
}
#summary table tbody tr > th span.hidden {
  visibility: hidden;
}
#summary table tbody .male:not(.sitting) th {
  background-color: rgba(0, 80, 150, 0.05);
  color: #324d65;
}
#summary table tbody .female:not(.sitting) th {
  background-color: rgba(137, 2, 92, 0.05);
  color: #5b304d;
}
#summary table tbody .playerNumber {
  float: right;
  color: #BBB;
}
#summary table tbody .sitting {
  background-color: #f4e3d3;
  color: #AAAAAA;
}
#summary table .dragCopy {
  position: absolute;
  z-index: 10;
  opacity: 0;
}

#menu {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: centers;
  align-items: center;
  position: fixed;
  width: 95%;
  bottom: 1vw;
  left: 0;
  right: 0;
  margin: 0 auto;
  height: 3vh;
  z-index: 99;
  font-size: 1.9vh;
  user-select: none;
}
#menu div {
  padding: 1vw 2vw;
  background-color: #f1dbc6;
}
#menu div:first-child, #menu div:last-child {
  border-top-right-radius: 1em;
  border-bottom-right-radius: 1em;
}
#menu div:first-child:hover, #menu div:last-child:hover {
  background-color: #ecceb2;
}
#menu #inning {
  flex-grow: 1;
  text-align: center;
}
#menu #inninginfo {
  vertical-align: middle;
  font-size: 0.6em;
}