* {
  font-family: 'Poppins', sans-serif;
}

body {
  margin: 0;
  box-sizing: border-box;
  overflow: hidden;
  cursor: default;
}
  
#black {
  height: 100vh;
  width: 100vw;
  background-color: #000000;
  position: relative;
}

#dvd {
  position: absolute;
  width: 100px;
  height: 50px;
  background-color: white;
  mask: url("https://upload.wikimedia.org/wikipedia/commons/9/9b/DVD_logo.svg") no-repeat center;
  -webkit-mask: url("https://upload.wikimedia.org/wikipedia/commons/9/9b/DVD_logo.svg") no-repeat center;
  background-size: contain;
}

#corner-counter {
  position: fixed;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 24px;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.0);
  padding: 10px 20px;
  border-radius: 10px;
  transition: opacity 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

#left-side-area {
  position: fixed;
  left: 0;
  top: 0;
  width: 50px;
  height: 120vh;
  z-index: 999;
}

.panel-indicator {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 18px;
  animation: flash 1.5s infinite;
  z-index: 998;
  pointer-events: none;
}

@keyframes flash {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

#speed-control {
  position: fixed;
  left: -100px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(21, 20, 21, 0.8);
  padding: 20px 15px;
  border-radius: 0 10px 10px 0;
  transition: left 0.3s ease;
  z-index: 1000;
  width: 30px;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#slider-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}

#toggles-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

#left-side-area:hover + .panel-indicator,
#left-side-area:hover ~ #speed-control,
#speed-control:hover + .panel-indicator,
#speed-control:hover {
  left: 0;
}

#speed-control:hover ~ .panel-indicator,
#left-side-area:hover ~ .panel-indicator {
  display: none;
}

#speed-control label {
  color: white;
  text-align: center;
}

/* Slider section */
#slider-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

#speed-slider {
  width: 150px;
  transform: rotate(-90deg);
  margin: 20px 0px;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  background: linear-gradient(to right, #ff0000, #ffff00, #00ff00);
  outline: none;
  border-radius: 5px;
}

#speed-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
}

#speed-slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  border: none;
}

#speed-value {
  color: white;
  margin-top: 0px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

/* Toggle section - moved below slider */
#toggles-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0; /* Removed margin */
  width: 100%;
}

.toggle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0px 0px 10px 0px;
  width: 100%;
}

.toggle-label {
  color: white;
  font-size: 12px;
  margin-bottom: 0px;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #272727;
  transition: .4s;
  border-radius: 20px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #272727;
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* Toast container */
#toast-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

#toast {
  background-color: rgba(21, 20, 21, 0.8);
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#toast.show {
  opacity: 1;
}

#toast-button {
  background-color: rgba(21, 20, 21, 0.8);
  border: none;
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: 'Poppins', sans-serif;
  margin-left: 15px;
  height: fit-content;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#toast-button.show {
  opacity: 1;
}

#toast-button:hover {
  background-color: #222;
}

.key {
  background-color: #333; /* Consistent background color */
  color: white; /* Consistent text color */
  padding: 2px 6px;
  border-radius: 4px;
  margin: 0 2px;
  font-family: 'Poppins', sans-serif;
  display: inline-block;
}

.confetti {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 0;
  opacity: 0.8;
  pointer-events: none;
  z-index: 1002;
}

#confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1001;
  transition: opacity 0.3s ease;
}
