@import url("https://fonts.googleapis.com/css2?family=Architects+Daughter&display=swap");
* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  font-family: "Architects Daughter", cursive;
}

body {
  background-color: #393939;
  padding: 0;
  margin: 0;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch input:checked + .slider {
  background-color: #21f33d;
}

.switch input:focus + .slider {
  -webkit-box-shadow: 0 0 1px #21f33d;
          box-shadow: 0 0 1px #21f33d;
}

.switch input:checked + .slider:before {
  -webkit-transform: translateX(26px);
          transform: translateX(26px);
}

.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.switch .slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.switch .slider.round {
  border-radius: 34px;
}

.switch .slider.round:before {
  border-radius: 50%;
}

.submit-button {
  height: 25px;
  border: solid 1px red;
  border-radius: 15px;
  outline: transparent;
  background-color: transparent;
  color: white;
  cursor: pointer;
  padding-left: 20px;
  padding-right: 20px;
}

.submit-button:active {
  border: solid 3px red;
}

#input-name-container {
  color: white;
  width: 1000px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}

#input-name-container #name-div {
  width: 700px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 20px;
  margin-bottom: 60px;
}

#input-name-container #name-div input[type="text"] {
  height: 23px;
  border: solid 2px black;
  border-radius: 5px;
  padding: 5px;
}

#input-name-container #name-div input[type="text"]:focus {
  border: solid 1px black;
  outline: transparent;
}

#input-name-container #rooms-container {
  min-height: 10px;
  width: 700px;
}

#input-name-container #rooms-container #column-names,
#input-name-container #rooms-container .room {
  height: 50px;
  width: 100%;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 10% 17% 17% 17% 17% auto;
      grid-template-columns: 10% 17% 17% 17% 17% auto;
}

#input-name-container #rooms-container #column-names > div,
#input-name-container #rooms-container .room > div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  border: 1px white dotted;
}

#input-name-container #rooms-container #column-names {
  font-weight: 900;
}

#input-name-container #rooms-container #column-names .red_player-name {
  color: white;
  text-shadow: -1px -1px 3px #f84545, 1px -1px 3px #f84545, -1px 1px 3px #f84545, 1px 1px 3px #f84545;
}

#input-name-container #rooms-container #column-names .blue_player-name {
  color: white;
  text-shadow: -1px -1px 3px #5252d5, 1px -1px 3px #5252d5, -1px 1px 3px #5252d5, 1px 1px 3px #5252d5;
}

#input-name-container #rooms-container #column-names .green_player-name {
  color: white;
  text-shadow: -1px -1px 3px green, 1px -1px 3px green, -1px 1px 3px green, 1px 1px 3px green;
}

#input-name-container #rooms-container #column-names .yellow_player-name {
  color: white;
  text-shadow: -1px -1px 3px yellow, 1px -1px 3px yellow, -1px 1px 3px yellow, 1px 1px 3px yellow;
  text-shadow: -1px -1px 3px #9d9d2c, 1px -1px 3px #9d9d2c, -1px 1px 3px #9d9d2c, 1px 1px 3px #9d9d2c;
}

#input-name-container #rooms-container .room {
  font-size: 14px;
}

#input-name-container #rooms-container .room .create-room-container {
  -ms-grid-column: 1;
  -ms-grid-column-span: 6;
  grid-column: 1 / span 6;
}

#game-container {
  width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

#game-container header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 13px;
  margin-top: 10px;
  margin-bottom: 35px;
}

#game-container header .players {
  width: 120px;
  height: 44px;
  background-color: #888484;
  border-radius: 34px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  text-align: center;
  -webkit-transition: all ease 0.5s;
  transition: all ease 0.5s;
  position: relative;
  word-wrap: break-word;
  color: white;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

#game-container header .players.joined {
  background-color: white;
}

#game-container header .players#red_player.ready {
  background-color: #f84545;
}

#game-container header .players#blue_player.ready {
  background-color: #5252d5;
}

#game-container header .players#green_player.ready {
  background-color: green;
}

#game-container header .players#yellow_player.ready {
  background-color: yellow;
}

#game-container header .players[data-showtime="true"]::after {
  position: absolute;
  -webkit-transform: translate(-70%, -30%);
          transform: translate(-70%, -30%);
  top: 0;
  left: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 25px;
  height: 25px;
  background-color: #f16464;
  border-radius: 20px;
  border: 1px solid black;
  font-size: 15px;
  content: attr(data-time);
}

#game-container header #be-ready-span {
  width: 80px;
  text-align: center;
  color: white;
}

#game-container #canvas-content {
  position: relative;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  height: 620px;
  padding: 0;
  border-radius: 20px;
  border: 10px black solid;
  overflow: hidden;
  background-color: #bba14c;
}

#game-container #canvas-content canvas {
  padding: 0;
  margin: 0;
}

#game-container #canvas-content .roll-button {
  outline: 0;
  border-radius: 20px;
  border: 1px solid black;
  width: 100px;
  height: 30px;
  position: absolute;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  top: 50%;
  left: 20%;
  cursor: pointer;
}

#game-container #canvas-content .dice-container {
  width: 50px;
  height: 50px;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  top: 30%;
  left: 20%;
  -webkit-perspective: 1000px;
          perspective: 1000px;
  position: absolute;
}

#game-container #canvas-content .dice-container .dice {
  height: 50px;
  width: 50px;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  -webkit-transition: -webkit-transform 1s;
  transition: -webkit-transform 1s;
  transition: transform 1s;
  transition: transform 1s, -webkit-transform 1s;
  position: absolute;
  -webkit-transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
          transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
}

#game-container #canvas-content .dice-container .dice img {
  width: 50px;
  height: 50px;
  background-color: white;
  background-color: black;
  display: block;
  position: absolute;
  margin: 0;
}

#game-container #canvas-content .dice-container .dice img.front {
  -webkit-transform: rotateZ(0deg) translateZ(-25px);
          transform: rotateZ(0deg) translateZ(-25px);
}

#game-container #canvas-content .dice-container .dice img.back {
  -webkit-transform: rotateZ(-180deg) translateZ(25px);
          transform: rotateZ(-180deg) translateZ(25px);
}

#game-container #canvas-content .dice-container .dice img.right {
  -webkit-transform: rotateY(90deg) translateZ(25px);
          transform: rotateY(90deg) translateZ(25px);
}

#game-container #canvas-content .dice-container .dice img.left {
  -webkit-transform: rotateY(-90deg) translateZ(25px);
          transform: rotateY(-90deg) translateZ(25px);
}

#game-container #canvas-content .dice-container .dice img.top {
  -webkit-transform: rotateX(90deg) translateZ(25px);
          transform: rotateX(90deg) translateZ(25px);
}

#game-container #canvas-content .dice-container .dice img.bottom {
  -webkit-transform: rotateX(-90deg) translateZ(25px);
          transform: rotateX(-90deg) translateZ(25px);
}

#game-container #canvas-content .pawn-div {
  width: 20px;
  height: 20px;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  border-radius: 50%;
  border: black 2px solid;
  position: absolute;
  cursor: pointer;
}

#game-container #canvas-content .pawn-div.red_player.blink {
  -webkit-animation-name: blinking-red_player;
          animation-name: blinking-red_player;
  -webkit-animation-duration: 1s;
          animation-duration: 1s;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  -webkit-animation-timing-function: ease-in;
          animation-timing-function: ease-in;
  -webkit-animation-direction: alternate;
          animation-direction: alternate;
}

@-webkit-keyframes blinking-red_player {
  0% {
    background-color: #f84545;
    -webkit-transform: translate(-50%, -50%) scale(1);
            transform: translate(-50%, -50%) scale(1);
  }
  100% {
    background-color: #f5e5e5;
    -webkit-transform: translate(-50%, -50%) scale(1.25);
            transform: translate(-50%, -50%) scale(1.25);
  }
}

@keyframes blinking-red_player {
  0% {
    background-color: #f84545;
    -webkit-transform: translate(-50%, -50%) scale(1);
            transform: translate(-50%, -50%) scale(1);
  }
  100% {
    background-color: #f5e5e5;
    -webkit-transform: translate(-50%, -50%) scale(1.25);
            transform: translate(-50%, -50%) scale(1.25);
  }
}

#game-container #canvas-content .pawn-div.blue_player.blink {
  -webkit-animation-name: blinking-blue_player;
          animation-name: blinking-blue_player;
  -webkit-animation-duration: 1s;
          animation-duration: 1s;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  -webkit-animation-timing-function: ease-in;
          animation-timing-function: ease-in;
  -webkit-animation-direction: alternate;
          animation-direction: alternate;
}

@-webkit-keyframes blinking-blue_player {
  0% {
    background-color: #5252d5;
    -webkit-transform: translate(-50%, -50%) scale(1);
            transform: translate(-50%, -50%) scale(1);
  }
  100% {
    background-color: #dbdbf1;
    -webkit-transform: translate(-50%, -50%) scale(1.25);
            transform: translate(-50%, -50%) scale(1.25);
  }
}

@keyframes blinking-blue_player {
  0% {
    background-color: #5252d5;
    -webkit-transform: translate(-50%, -50%) scale(1);
            transform: translate(-50%, -50%) scale(1);
  }
  100% {
    background-color: #dbdbf1;
    -webkit-transform: translate(-50%, -50%) scale(1.25);
            transform: translate(-50%, -50%) scale(1.25);
  }
}

#game-container #canvas-content .pawn-div.green_player.blink {
  -webkit-animation-name: blinking-green_player;
          animation-name: blinking-green_player;
  -webkit-animation-duration: 1s;
          animation-duration: 1s;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  -webkit-animation-timing-function: ease-in;
          animation-timing-function: ease-in;
  -webkit-animation-direction: alternate;
          animation-direction: alternate;
}

@-webkit-keyframes blinking-green_player {
  0% {
    background-color: green;
    -webkit-transform: translate(-50%, -50%) scale(1);
            transform: translate(-50%, -50%) scale(1);
  }
  100% {
    background-color: #def5de;
    -webkit-transform: translate(-50%, -50%) scale(1.25);
            transform: translate(-50%, -50%) scale(1.25);
  }
}

@keyframes blinking-green_player {
  0% {
    background-color: green;
    -webkit-transform: translate(-50%, -50%) scale(1);
            transform: translate(-50%, -50%) scale(1);
  }
  100% {
    background-color: #def5de;
    -webkit-transform: translate(-50%, -50%) scale(1.25);
            transform: translate(-50%, -50%) scale(1.25);
  }
}

#game-container #canvas-content .pawn-div.yellow_player.blink {
  -webkit-animation-name: blinking-yellow_player;
          animation-name: blinking-yellow_player;
  -webkit-animation-duration: 1s;
          animation-duration: 1s;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  -webkit-animation-timing-function: ease-in;
          animation-timing-function: ease-in;
  -webkit-animation-direction: alternate;
          animation-direction: alternate;
}

@-webkit-keyframes blinking-yellow_player {
  0% {
    background-color: yellow;
    -webkit-transform: translate(-50%, -50%) scale(1);
            transform: translate(-50%, -50%) scale(1);
  }
  100% {
    background-color: #464617;
    -webkit-transform: translate(-50%, -50%) scale(1.25);
            transform: translate(-50%, -50%) scale(1.25);
  }
}

@keyframes blinking-yellow_player {
  0% {
    background-color: yellow;
    -webkit-transform: translate(-50%, -50%) scale(1);
            transform: translate(-50%, -50%) scale(1);
  }
  100% {
    background-color: #464617;
    -webkit-transform: translate(-50%, -50%) scale(1.25);
            transform: translate(-50%, -50%) scale(1.25);
  }
}

#game-container #canvas-content .mouseover-pawn {
  width: 20px;
  height: 20px;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  background-color: grey;
  border-radius: 50%;
  border: black 2px solid;
  position: absolute;
}

.exit-container {
  width: 100%;
  min-height: 690px;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.707);
  position: absolute;
  top: 0;
  left: 0;
}

.exit-container .exit-div {
  height: 300px;
  width: 500px;
  border: 4px solid white;
  border-radius: 10px;
  background-color: #393939;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  font-size: 30px;
  color: white;
  font-weight: normal;
}

.exit-container .exit-div .exit-title {
  width: 80%;
  height: 50px;
  text-align: center;
  position: absolute;
  top: 40px;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}

.exit-container .exit-div #exit-submit,
.exit-container .exit-div #exit-cancel {
  width: 150px;
  height: 50px;
  border-radius: 40px;
  position: absolute;
  top: 75%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  font-size: 25px;
}

.exit-container .exit-div #exit-submit {
  left: 30%;
}

.exit-container .exit-div #exit-cancel {
  left: 70%;
}

#end-game-container {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 8;
  width: 100%;
  height: 100%;
  color: white;
  background-color: #393939;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-animation-name: fadeIn;
          animation-name: fadeIn;
  -webkit-animation-duration: 4s;
          animation-duration: 4s;
}

@-webkit-keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#end-game-container #end-h1 {
  margin-bottom: 1px;
  font-size: clamp(30px, 5vw, 70px);
}

#end-game-container #win-or-lose-info {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: clamp(14px, 2vw, 35px);
}

#end-game-container #win-or-lose-info #current-player.red_player {
  color: #f84545;
}

#end-game-container #win-or-lose-info #current-player.blue_player {
  color: #5252d5;
}

#end-game-container #win-or-lose-info #current-player.green_player {
  color: green;
}

#end-game-container #win-or-lose-info #current-player.yellow_player {
  color: yellow;
}

#end-game-container #winner-container {
  border-top: 1px white solid;
  width: clamp(292px, 50%, 600px);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  opacity: 0;
}

#end-game-container #winner-container #winner-title {
  margin-bottom: 2px;
  font-size: clamp(18px, 3vw, 35px);
}

#end-game-container #winner-container #winner-name {
  margin-top: 1px;
  font-size: clamp(13px, 2vw, 30px);
}

#end-game-container #winner-container #winner-name.red_player {
  color: #f84545;
}

#end-game-container #winner-container #winner-name.blue_player {
  color: #5252d5;
}

#end-game-container #winner-container #winner-name.green_player {
  color: green;
}

#end-game-container #winner-container #winner-name.yellow_player {
  color: yellow;
}

#end-game-container #winner-exit-button {
  margin-top: 10px;
  font-size: clamp(18px, 3vw, 35px);
  width: clamp(92px, 20%, 200px);
  height: clamp(40px, 10%, 100px);
  border-radius: clamp(50px, 17%, 90px);
  margin-top: 60px;
}
/*# sourceMappingURL=style.css.map */