:root {
  --stop-rotation: 360deg;
}

body {
  background-color: bisque;
  overflow: hidden;
}

.container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 850px;
  height: 850px;
  background-color: bisque;
}

#arrow {
  position: absolute;
  width: 0; 
  height: 0; 
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid #000;
  left: 390px;
  z-index: 1;
}

#canvas {
  position: absolute;
  top: 0;
  left: 0;
}

#spin_button {
  position: absolute;
  font-size: 35px;
  padding: 10px;
  border-radius: 100%;
  background: #41a6f3;
  color: white;
  border: 5px solid #5e69c0;
  left: 352px;
  top: 352px;
  width: 120px;
  height: 120px;
}

#spin_button:hover {
  background: #328ad9;
  cursor: pointer;
}

#spin_button:disabled {
  background: #328ad9;
  cursor: not-allowed;
}

.spin-wheel {
  margin: 0 auto;
  -webkit-animation: rotate 0.5s linear infinite;
  animation: rotate 0.5s linear infinite;
}

.stop-wheel {
  margin: 0 auto;
  -webkit-animation: stop 0.5s linear;
  animation: stop 0.5s linear;
  transform: rotate(var(--stop-rotation));
}

#winner {
  display: none;
  position: fixed;
  width: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 9999;
}

#winner_container {
  text-align: center;
  margin-bottom: 20px;
}

#winner > h1 {
  color: #333333;
  font-size: 2em;
  margin-bottom: 10px;
}

#winner > h2 {
  color: #333333;
  font-size: 1.5em;
  margin-top: 0;
}

.modal-confirm-button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background-color: #41a6f3;
  color: #ffffff;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s;
}

.modal-confirm-button:hover {
  background-color: #328ad9;
}

.close-button {
  position: absolute;
  width: 30px;
  height: 30px;
  top: 10px;
  right: 10px;
  padding: 2px;
  border: none;
  border-radius: 100%;
  background-color: #ed5451;
  color: white;
  font-size: 1.5em;
  cursor: pointer;
}

.close-button:hover {
  /* color: #333333; */
  background-color: #b42c2a;
}

#add_employee_container {
  position: fixed;
  flex-direction: column;
  width: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 9999
}

#add_employee_modal_button {
  position: fixed;
  right: 40px;
  top: 20px;
  font-size: 35px;
  padding: 10px 20px;
  border-radius: 100%;
  background: #41a6f3;
  color: white;
  border: 5px solid #5e69c0;
}

#add_employee_modal_button:hover {
  background: #328ad9;
  cursor: pointer;
}

#add_employee_button {
  align-self: end;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: confetti-fall 3s linear infinite;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes stop {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(var(--stop-rotation));
  }
}

