body {
  margin: 0;
  padding: 0;
}

.game-container {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-content: center;
}

#player1-stats-container,
#player2-stats-container {
  position: absolute;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
}
#player1-stats-container #player1-count,
#player1-stats-container #player2-count,
#player2-stats-container #player1-count,
#player2-stats-container #player2-count {
  font-size: 20px;
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#player1-stats-container {
  bottom: 20px;
  left: 20px;
}
#player1-stats-container #player1-count {
  background-color: #000;
  color: #fff;
  margin-right: 10px;
}

#player2-stats-container {
  top: 20px;
  right: 20px;
}
#player2-stats-container #player2-count {
  background-color: #fff;
  color: #000;
  margin-left: 10px;
}

#game {
  display: grid;
  height: 50vw;
  width: 50vw;
  max-width: 400px;
  max-height: 400px;
  gap: 20px;
  transition: transform 1.5s ease-in-out;
}
#game.q6 {
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
}
#game .field {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  font-size: 0;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
#game .field:not(.p1):not(.p2):hover {
  opacity: 0.4;
}
#game .field::after {
  content: "";
  display: block;
  width: 50%;
  height: 50%;
  border-radius: 50%;
}
#game .field.win {
  outline: 2px solid #fff;
}
#game .field.p1, #game .field.p2 {
  pointer-events: none;
  cursor: default;
}
#game .field.p1::after {
  background-color: #000;
}
#game .field.p2::after {
  background-color: #fff;
}

#player1-name,
#player2-name {
  color: white;
  font-size: 20px;
  font-family: Arial, Helvetica, sans-serif;
}

.arrow {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 0;
  padding: 0;
  background-color: transparent;
  width: 40px;
  height: 40px;
  position: absolute;
  top: 50%;
  left: 20px;
  transform: rotate(0deg);
  z-index: 1000;
  transition: transform 0.5s ease-in-out;
  cursor: pointer;
  background-image: url("/public/img/arrow.svg");
  background-repeat: no-repeat;
  background-size: contain;
}
.arrow:hover {
  transform: rotate(-45deg);
}

#confetti-canvas {
  position: absolute;
  z-index: 999999;
}

.banner-container {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.253);
  z-index: 1010;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  pointer-events: none;
  justify-items: center;
  align-content: center;
}
.banner-container.show {
  display: grid;
}

.banner {
  position: relative;
  display: block;
  width: 300px;
  height: 60px;
  border: 1px solid #8a1;
  font: normal 30px/60px "Rye";
  text-align: center;
  color: #451;
  background: #9b2;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.15) inset, 0 6px 10px rgba(0, 0, 0, 0.15);
}
.banner::before, .banner::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -70px;
  top: 24px;
  display: block;
  width: 40px;
  height: 0px;
  border: 30px solid #9b2;
  border-right: 20px solid #791;
  border-bottom-color: #94b81e;
  border-left-color: transparent;
  transform: rotate(-5deg);
}
.banner::after {
  left: auto;
  right: -70px;
  border-left: 20px solid #791;
  border-right: 30px solid transparent;
  transform: rotate(5deg);
}

.backdrop {
  width: 100%;
  height: 100%;
  position: absolute;
  display: none;
  left: 0;
  top: 0;
  align-items: center;
  justify-content: center;
  z-index: 1999;
}
.backdrop.show {
  display: flex;
}
.backdrop .modal {
  background-color: white;
  width: 300px;
  height: 300px;
  display: grid;
  border-radius: 100%;
  grid-template-rows: 1fr 30px 1fr 1fr 1fr;
  overflow: hidden;
  background-color: transparent;
}
.backdrop .modal select,
.backdrop .modal button {
  height: 100%;
  text-align: center;
  border: none;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  outline: none !important;
  background-color: white;
}
.backdrop .modal button {
  color: white;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.2);
}
.backdrop .modal button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.backdrop .modal .switchUser {
  background-color: #fff;
  color: #000;
}
.backdrop .modal .switchUser:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

.color-container {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1000;
}
.color-container input {
  display: none;
}
.color-container label {
  width: 24px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.5);
  display: inline-block;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  text-align: center;
  font-family: "Courier New", Courier, monospace;
  line-height: 24px;
}
.color-container label:hover {
  background-color: rgba(255, 255, 255, 0.7);
}
.color-container input:checked + label {
  background-color: white;
}

.home-button {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 50%;
  right: 20px;
  z-index: 2000;
  border-radius: 100%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
}
