.bidding-box {
  display: inline-grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 20px;
}
.bidding-box .bidding-box-bid {
  padding: 2px 4px;
  outline: solid 1px;
  border-radius: 4px;
  cursor: pointer;
}
.bidding-box .bidding-box-bid .level {
  color: black;
}
.bidding-box .bidding-box-bid.suit-clubs {
  color: #3575af;
  background-color: #eaf2f9;
}
.bidding-box .bidding-box-bid.suit-diamonds {
  color: #d26d2a;
  background-color: #fffdfd;
}
.bidding-box .bidding-box-bid.suit-hearts {
  color: #e90202;
  background-color: #ffebeb;
}
.bidding-box .bidding-box-bid.suit-spades {
  color: black;
  background-color: gainsboro;
}
.bidding-box .bidding-box-bid.suit-notrump {
  color: black;
  background-color: lightgray;
}
.bidding-box .pass {
  grid-column: span 3;
  background-color: green;
  color: white;
}
.bidding-box .double {
  background-color: red;
  color: white;
}
.bidding-box .redouble {
  background-color: blue;
  color: white;
}
.bidding {
  transition: all 1s ease;
  height: 40%;
  aspect-ratio: 1;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin: auto;
}
.bid-stack {
  height: 10vh;
  width: 100%;
  overflow: visible;
  position: relative;
  transition: all 1s ease;
}
.bid-stack .bid-stack-container {
  overflow: visible;
}
.bid-stack .bid {
  overflow: visible;
  position: absolute;
  top: 0;
  height: 10vh;
  transition: 0.1s ease;
}
.bid-stack .bid img {
  height: 100%;
}
.bid-stack-container-north {
  grid-column: 2;
}
.bid-stack-container-east {
  grid-row: 2;
  grid-column: 3;
}
.bid-stack-container-east .bid-stack {
  transform: rotate(90deg) translateY(-100%);
}
.bid-stack-container-south {
  grid-column: 2;
  grid-row: 3;
}
.bid-stack-container-west {
  grid-row: 2;
}
.bid-stack-container-west .bid-stack {
  transform: rotate(-90deg) translateX(-100%);
}
.bid.clubs img {
  filter: drop-shadow(0 0 0.5px rgba(53, 116, 175, 0.4039215686));
}
.bid.hearts img {
  filter: drop-shadow(0 0 0.5px rgba(233, 2, 2, 0.3843137255));
}
.bid.spades img {
  filter: drop-shadow(0 0 0.5px rgba(10, 0, 0, 0.489));
}
.bid.diamonds img {
  filter: drop-shadow(0 0 0.5px rgba(210, 109, 42, 0.4862745098));
}
.bid.notrump img {
  filter: drop-shadow(0 0 0.5px rgba(128, 128, 128, 0.432));
}
.bidding-history {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  grid-template-rows: min-content;
  font-size: 2.4vh;
  text-align: center;
  margin-top: 1.5em;
}
.bidding-history .separator {
  grid-column: 1/span 4;
  height: 0;
  height: 1px;
  background-color: white;
}
.bidding-history .header {
  padding: 2px 10px;
}
.bidding-history .header-south, .bidding-history .header-north, .bidding-history .bid-view-south, .bidding-history .bid-view-north {
  color: goldenrod;
}
.bidding-history .bid-view {
  padding-bottom: 6px;
}
.test-card {
  position: absolute;
  filter: opacity(0);
}
.presenter-app {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: grid;
  padding-left: 20px;
  padding-right: 20px;
  background-color: black;
  color: white;
  grid-template-columns: 1fr 100vh 2fr;
}
.presenter-app ::selection {
  color: none;
  background: none;
}
.center-panel {
  aspect-ratio: 1;
  position: relative;
  grid-row: 2;
  grid-column: 2;
  padding: 10px;
  display: grid;
  transition: all 1s;
  align-self: center;
}
.center-panel.center-panel-bidding {
  gap: 3px;
  grid-template-columns: 10vh auto 10vh;
  grid-template-rows: 10vh auto 10vh;
}
.center-panel:not(.center-panel-bidding) {
  padding: 7% 7% 7% 7%;
  grid-template-columns: 0 auto 0;
  grid-template-rows: 0 auto 0;
}
.center-frame {
  display: grid;
  grid-row: 2;
  grid-column: 2;
  padding: 16%;
  position: relative;
}
.center-frame .frame {
  outline: white solid 3px;
  position: absolute;
  top: 8%;
  left: 8%;
  right: 8%;
  bottom: 8%;
  border-radius: 2px;
}
.center-frame .center-frame-label {
  color: white;
  font-size: 2vh;
  font-weight: bold;
}
.center-frame .center-frame-label.focused {
  background-color: yellow;
  color: black;
}
.center-frame .label-nonvul {
  background-color: rgb(77, 117, 77);
}
.center-frame .label-vul {
  background-color: rgb(172, 21, 0);
  text-decoration: underline;
}
.center-frame-label {
  cursor: default;
  position: absolute;
  outline: solid white 1px;
  padding: 2px 5px;
  background-color: black;
  border-radius: 2px;
  width: calc((95vh - 20px - 8px - 18px) / 4.5 * 53 / 80);
  text-align: center;
  text-transform: uppercase;
}
#control-center {
  position: absolute;
  bottom: 0;
  right: 0;
}
.control-panel {
  display: flex;
  flex-direction: column;
}
.control-panel .buttons {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.control-panel button:disabled {
  color: gray;
  background-color: white;
}
.control-panel .hearts {
  color: red;
}
.control-panel .diamonds {
  color: darkgoldenrod;
}
.control-panel .spades {
  color: blue;
}
.control-panel .clubs {
  color: green;
}
.center-frame-label-north {
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}
.center-frame-label-east {
  right: 0;
  top: 50%;
  transform: translateX(50%) translateY(-50%) rotate(90deg);
  transform-origin: 50% 50%;
}
.center-frame-label-south {
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(50%);
}
.center-frame-label-west {
  top: 50%;
  transform: translateX(-50%) translateY(-50%) rotate(270deg);
  transform-origin: 50% 50%;
}
.main {
  padding: 8px;
  padding-top: 18px;
  aspect-ratio: 1;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: calc((95vh - 20px - 8px - 18px) / 4.5) calc(100vh - 2 * (95vh - 20px - 8px - 18px) / 4.5 - 8px - 18px) calc((95vh - 20px - 8px - 18px) / 4.5);
  grid-template-rows: calc((95vh - 20px - 8px - 18px) / 4.5) calc(100vh - 2 * (95vh - 20px - 8px - 18px) / 4.5 - 8px - 18px) calc((95vh - 20px - 8px - 18px) / 4.5);
}
.main.expanded {
  grid-template-rows: calc((95vh - 20px - 8px - 18px) / 4.5 * 1.6) auto calc((95vh - 20px - 8px - 18px) / 4.5);
}
.main .hand-north {
  grid-column: 2;
}
.main .hand-south {
  grid-column: 2;
  grid-row: 3;
}
.main .hand-west {
  grid-column: 1;
  grid-row: 2;
}
.main .hand-east {
  grid-column: 3;
  grid-row: 2;
}
.trick-view {
  position: relative;
}
.trick-view-origin {
  position: absolute;
}
.trick-view-origin-north {
  width: 100%;
}
.trick-view-origin-north div {
  margin: 0 auto;
  height: calc((95vh - 20px - 8px - 18px) / 4.5);
  width: calc((95vh - 20px - 8px - 18px) / 4.5 * 53 / 80);
}
.trick-view-origin-east {
  height: 100%;
  right: 0;
  display: flex;
  align-items: center;
}
.trick-view-origin-east div {
  width: calc((95vh - 20px - 8px - 18px) / 4.5);
  height: calc((95vh - 20px - 8px - 18px) / 4.5 * 53 / 80);
}
.trick-view-origin-south {
  width: 100%;
  bottom: 0;
}
.trick-view-origin-south div {
  margin: 0 auto;
  height: calc((95vh - 20px - 8px - 18px) / 4.5);
  width: calc((95vh - 20px - 8px - 18px) / 4.5 * 53 / 80);
}
.trick-view-origin-west {
  height: 100%;
  display: flex;
  align-items: center;
}
.trick-view-origin-west div {
  width: calc((95vh - 20px - 8px - 18px) / 4.5);
  height: calc((95vh - 20px - 8px - 18px) / 4.5 * 53 / 80);
}
.card {
  height: calc((95vh - 20px - 8px - 18px) / 4.5);
  aspect-ratio: 530/800;
  display: inline-block;
  position: absolute;
  transition: transform ease 1s;
  top: 0;
  left: 0;
  transform-origin: 0 0;
}
.card.playable img, .card.playable-dummy img {
  transition: ease-in-out 0.2s;
}
.card.playable:hover:not(.reverse) img {
  transform: translateY(-10%);
}
.card.playable-dummy:hover:not(.reverse) img {
  transform: translateX(-10%);
}
.card:not(.reverse) img.front {
  z-index: 1;
  display: initial;
}
.card.reverse img.back {
  z-index: 1;
  display: initial;
}
.card img {
  z-index: -1;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: fill;
}
.center-text {
  position: absolute;
  font-size: 5vh;
  top: 50%;
  right: 0;
  left: 0;
  transform: translateY(-50%);
  text-align: center;
  vertical-align: middle;
}
.side-panel {
  grid-column: 3;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}
.status-panel {
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  column-gap: 10px;
  padding-top: 50px;
}
.status-panel div,
.status-panel span {
  padding: 4px 14px;
}
.status-panel .trick-count-panel {
  display: grid;
  grid-template-columns: 1fr 20px 1fr;
}
.status-panel .c-tricks {
  display: flex;
  flex-direction: column;
  grid-row: 2;
  padding: 0;
  outline: solid 1px white;
  outline-offset: -1px;
}
.status-panel .c-tricks .t-label {
  background-color: white;
  color: black;
}
.status-panel .c-tricks.c-tricks-ns {
  grid-column: 1;
}
.status-panel .c-tricks.c-tricks-ew {
  grid-column: 3;
}
.status-panel .c-tricks .t-count {
  grid-column: 1;
  grid-row: 3;
}
.status-panel .t-contract {
  padding-left: 30px;
  padding-right: 30px;
  outline: solid 1px white;
  outline-offset: -1px;
}
.claim-input {
  width: 100%;
}
.claim-input::-webkit-outer-spin-button, .claim-input::-webkit-inner-spin-button {
  display: none;
}
.claim-input[type=number] {
  -moz-appearance: textfield; /* Firefox */
  appearance: textfield;
}
.presenter {
  width: 100%;
  height: 100%;
}.flex {
  display: flex;
  gap: 1em;
  align-items: center;
}
#configurator {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  padding: 10px;
  flex-direction: column;
  gap: 10px;
}
.key-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.error-list {
  max-height: 80px;
  overflow-y: scroll;
  grid-column: 1/3;
  font-size: 0.8em;
  color: red;
}
.error-list div {
  padding: 0 10px;
  text-align: right;
}
#configurator-tabs {
  display: flex;
}
#configurator-content {
  flex-grow: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  overflow: auto;
}
#configurator-content .tab {
  display: flex;
  flex-direction: column;
  background-color: lightcyan;
  border-radius: 10px;
  padding: 20px 10px;
  gap: 20px;
  overflow-y: auto;
}
#configurator-content .fields {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 10px;
}
#configurator-content .fields .error {
  grid-column: 1/span 2;
  color: red;
  font-size: 0.8em;
  text-align: right;
}
#configurator-content .fields .checkbox {
  justify-self: start;
}
#configurator-content .fields label {
  text-align: right;
}
#configurator-content .fields .span {
  grid-column: span 2;
}
#configurator-content .vertical {
  display: flex;
  gap: 10px;
  justify-content: center;
}
#configurator-content .dummy-choice {
  display: flex;
  gap: 10px;
}
#configurator-content .dummy-choice select {
  flex-grow: 1;
}
#configurator-content .contract-field {
  display: flex;
  gap: 4px;
  align-items: center;
}
#configurator-content .contract-field input[type=text] {
  width: 50px;
}
#configurator-content .fake-tricks-field {
  display: flex;
  gap: 4px;
  align-items: center;
}
#configurator-content .fake-tricks-field div {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
}
#configurator-content .fake-tricks-field input[type=text] {
  width: 30px;
}
#configurator-content .active-positions-buttons {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#configurator-content .active-positions-buttons button {
  min-width: 40px;
}
#configurator-content #controls-tab {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: baseline;
}
#configurator-content #controls-tab div {
  text-align: left;
  margin: auto 0;
}
#configurator-content #controls-tab .key {
  border: solid gray 1px;
  background-color: lightgray;
  padding: 2px 6px;
  border-radius: 5px;
  display: inline;
  user-select: none;
  justify-self: center;
}
#configurator-content #controls-tab .keys {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}
#configurator-buttons {
  display: flex;
  justify-content: flex-end;
}
#configurator-buttons button {
  padding: 5px 30px;
  font-size: 1.2rem;
}.body {
  background-image: url(./0-cd737789.png);
  background-size: cover;
  filter: opacity(20%);
}
* {
  box-sizing: border-box;
}
h1,
h2 {
  margin: 0;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  height: 100%;
}
body {
  height: 100vh;
  margin: 0;
}