:root {
  --slide-board: slide 500ms linear 50ms 1 forwards;
  --slide-main: slide2 500ms ease-in-out 100ms 1 forwards;
  --reverse-board: slide 500ms linear 200ms 1 reverse forwards;
  --reverse-main: slide2 500ms ease-in-out 100ms 1 reverse forwards;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Mulish', sans-serif;
}
body {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100vw;
  min-height: 100vh;
  font-family: 'Mulish', sans-serif;
  position: relative;
}
.main > *:not(#winner) {
  filter: var(--blur, none);
}
form {
  position: absolute;
  top: 50%;
  left: 50%;
  right: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 480px;
  width: 705px;
  border: 1px solid transparent;
  border-radius: 5px;
  z-index: 999;
  background-color: #fff;
  box-shadow: 0 0 5px #ccc;
}
.labl {
  width: 89%;
  cursor: pointer;
}
.btn {
  display: flex;
  flex-direction: row;
  width: 100%;
  padding: 0 13%;
  align-items: center;
  justify-content: space-between;
  margin: 1.5vh 0;
  height: 150px;
  background-color: #f8f8f8;
  border: 1px solid rgb(211, 211, 211);
  border-radius: 5px;
}

.btn div {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.labl > input {
  display: none;
  position: absolute;
  height: 5px;
}
.labl > .radio:checked + .btn {
  box-shadow: 0 0 12px rgb(211, 211, 211);
  transform: scale(1.05);
}
.icon {
  font-size: 4rem;
  color: #ffe149;
  margin-bottom: 10px;
}
.icon-change,
.robo {
  color: #40c9ff;
}
.icon-constant {
  color: #ffe149;
}
#second {
  color: orangered;
}
form input {
  width: 75%;
  padding: 5px 0;
  color: black;
  outline: none;
  border-radius: 2px;
  border: 1px solid rgb(211, 211, 211);
  text-align: center;
}
#submit {
  margin-top: 0.5vh;
  color: #fff;
  width: 115px;
  text-shadow: 1px 1px #94949494;
  box-shadow: 0 0 2px #ccc;
  background-color: #40c9ff;
  padding: 10px;
  font-size: 1.1rem;
}
.error-msg {
  position: absolute;
  bottom: 7.5%;
  right: 35%;
}
#submit:disabled {
  background-color: rgba(64, 201, 255, 0.5);
}
.players {
  display: flex;
  flex-direction: row;
  margin: 3vh 0;
}
.players i {
  margin: 0 10px 0 0;
}
.second {
  color: #40c9ff;
}
.players div {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  height: 36px;
  padding: 10px;
  margin: 0 5px;
  font-size: 1.25rem;
  font-weight: bold;
  border-radius: 5px;
}
.board-toggle {
  font-size: 1.9rem;
  position: absolute;
  top: 10px;
  left: 1.5%;
  visibility: hidden;
}
.board-toggle:active {
  transform: scale(1.3);
}
@keyframes slide {
  0% {
    left: -384px;
  }
  50% {
    left: -192px;
  }
  100% {
    left: 0;
  }
}
@keyframes slide2 {
  from {
    margin: 0 auto;
    width: 100%;
  }
  to {
    width: 75%;
    margin: auto auto auto 384px;
  }
}
.score-board {
  position: absolute;
  left: -384px;
  height: 100%;
  width: 384px;
  padding: 16px;
  background-color: #7f9cf5;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.score-board h3 {
  border: 1px solid rgb(163, 191, 250);
  width: 90%;
  text-align: center;
  font-size: 1.5rem;
}
.score-box {
  border: 1px solid rgb(163, 191, 250);
  margin-top: 30px;
  border-radius: 3px;
  width: 90%;
  height: 173px;
  display: flex;
  flex-direction: column;
}
.score-box h2 {
  background-color: #a3bffa;
  padding: 5px 10px;
}
.score-counter {
  flex: 1;
  font-size: 5rem;
  text-align: center;
}
img {
  height: 2.5rem;
  margin-right: 1vh;
}
.remove {
  position: absolute;
  top: 10px;
  right: 2.5%;
  text-shadow: 2px 4px #707070;
  transform: rotate(45deg);
  font-size: 1.5rem;
}
.score-board h1 {
  font-size: 2.5rem;
  position: absolute;
  display: flex;
  flex-direction: row;
  align-items: center;
}
.score-board h1:first-child {
  top: 2vh;
  left: 5%;
}
.score-board h1:last-child {
  bottom: 2vh;
}
.winner-box {
  width: 320px;
  height: 170px;
  border-radius: 10px;
  box-shadow: 0 0 15px #949494;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 1;
  border: 1px solid #707070;
  position: absolute;
  top: 50%;
  left: -9999px;
  right: 50%;
  transform: translate(-51%, -50%);
}
.winner-box h1 {
  display: flex;
  font-size: 1.6rem;
  position: absolute;
  top: 40px;
  justify-self: center;
}
.options {
  display: flex;
  flex-direction: row;
  align-self: flex-end;
  justify-self: flex-end;
  position: absolute;
  bottom: 10px;
}
.options input {
  margin: 0 10px;
  border: none;
  color: #7f9cf5;
  background-color: #fff;
  font-size: 1rem;
}
.main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  margin: 0 auto;
}
.game-board {
  display: grid;
  gap: 10px;
  grid-template-rows: 100px 100px 100px;
  grid-template-columns: 100px 100px 100px;
}
.box {
  background-color: rgba(226, 232, 240, 0.4);
  display: flex;
  box-shadow: 0 0 1px #ccc;
  border-radius: 5px;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}
