#s4-workspace {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: "Arial", sans-serif;
  overflow: hidden;
  position: relative;
}
canvas {
  background: #222;
  border: 2px solid #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s;
  z-index: 10;
}
.modal.active {
  visibility: visible;
  opacity: 1;
}
.modal-content {
  background: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  text-align: center;
  max-width: 80%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.5s ease;
}
.modal-content h2 {
  margin-top: 0;
  color: #333;
}
.modal-content p {
  color: #555;
}
.modal-content button {
  margin-top: 15px;
  padding: 10px 20px;
  background: #1e3c72;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}
.modal-content button:hover {
  background: #2a5298;
}
@keyframes fadeIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* Score Display */
#scoreBoard {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 18px;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/*MAIN CONTENT*/
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 90px;
}

#btnLeft,
#btnRight {
  background-color: #1e3c72;
  color: white;
  padding: 30px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 80px;
}

.control-mobile {
  gap: 20px;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
    .control-mobile {
      display: none;
    }
    
}

@media (max-width: 1024px){
    .control-mobile {
        display: flex;
      }

      .modal-content {
        scale: 2;}
}

