/* chrome */
::-webkit-scrollbar {
  padding-top: 0px;
  width: 0px;
}

body {
  scrollbar-width: none; /* firefox */
  background-color: green;
}

.container {
  width: 100%;
  height: 100%;
  overflow: hidden;

  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 8fr 1fr 1fr;
  grid-gap: 6px;
}

#dice-grid {
  grid-column: span 2;
  overflow: hidden;

  width: 100%;
  height: 100%;
}

@media screen and (orientation: portrait) {
  #dice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
}

@media screen and (orientation: landscape) {
  #dice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }
}

.dice-container {
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dice-img {
  width: 80%;
  height: 80%;
  object-fit: contain;

  /* user-drag: none; */
  -webkit-user-drag: none;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.dice-img.rolling {
  animation-name: wobble;
  --animation-duration: 1.2s;
  animation-duration: var(--animation-duration);
  animation-delay: calc(-0.25 * var(--animation-duration));
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.dice-img.taken {
  animation: none;
  width: 60%;
  height: 60%;
}

@keyframes wobble {
  0% {
    transform: rotate(4deg);
  }
  50% {
    transform: rotate(-4deg);
  }
  100% {
    transform: rotate(4deg);
  }
}

#roll-btn,
#pass-btn {
  grid-row: span 2;
}

#score-list,
#score-indicator,
#turn-indicator {
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  font-family: monospace;
  font-size: 14pt;
  /* font-weight: bold; */
  white-space: pre-wrap;
  overflow-y: auto;

  color: #fdcd44;
  border: 3px solid #fdcd44;
  background-color: darkgreen;
  border-radius: 1em;
  padding: 1em;
}

#score-indicator,
#turn-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow-y: hidden;
}

.button {
  font-size: 42pt;
  font-weight: bold;
  color: #fdcd44;
  border-color: #fdcd44;
  border-width: 6px;
  border-radius: 0.5em;
}

#roll-btn {
  background-color: #00539b;
}

#roll-btn.disabled {
  background-color: #00539b80;
}

#pass-btn {
  background-color: #ff0000;
}

#pass-btn.disabled {
  background-color: #ff000080;
}

.enter-name-modal {
  display: flex;
  flex-direction: column;
  font-size: 42pt;
}

.enter-name-modal > h1 {
  font-weight: normal;
}

#name-input {
  font-size: 42pt;
  font-family: font;
  background-color: black;
  color: red;
  border: 2px solid red;
  border-radius: 20pt;
  padding: 24px;
  text-align: center;
}

#name-input:focus {
  outline: none;
}

@font-face {
  font-family: font;
  src: url(../../resources/fonts/darkforest.woff2);
}

.modal {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 10%;
  overflow: hidden;

  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;

  position: absolute;
  top: 0;
  left: 0;

  background-color: black;
  color: red;
  font-family: font;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-modal {
  font-size: min(10vh, 4vw);
  display: none;
}

.bust-modal {
  background-color: rgba(0, 0, 0, 0);
  padding: 0px;
  display: none;
}

.bust-container {
  background-color: rgba(0, 0, 0, 0.92);
  font-size: min(40vh, 40vw);
  width: 100%;
  padding-top: min(12vh, 12vw);
  padding-bottom: min(2vh, 2vw);
}

.farkle-container {
  background-color: rgba(0, 0, 0, 0.92);
  font-size: min(24vh, 24vw);
  width: 100%;
  padding-top: min(10vh, 10vw);
  padding-bottom: min(2vh, 2vw);
}

#scoreboard-iframe {
  width: 100%;
  height: 100%;
  border: none;
}
