html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border: none;
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
  cursor: auto !important;
}

.main-content {
  flex: 1;
}

body {
  font-family: 'Outfit', 'Inter', 'satoshi', 'Space Grotesk', JetBrains Mono, Arial, sans-serif;
  font-variant-numeric: lining-nums oldstyle-nums proportional-nums tabular-nums slashed-zero;
  color: rgba(15, 15, 15, 0);
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  cursor: none;
}

div.background {
  background-color: #000000;
  background-size: cover;
  background-position: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  transition: transform 0.3s ease-in-out, opacity 0.5s ease-in-out, background-image 0.5s ease-in-out;
}

div.background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}

.tooltip {
  position: absolute;
  top: 50%;
  left: -13px;
  transform: translateY(-50%) translateX(-8px);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0s ease, transform 0s ease;
}

.textBtn {
  font-family: 'Outfit', sans-serif;
  position: absolute;
  top: 50%;
  right: 155%;
  transform: translateY(-50%) scale(1);
  background: rgb(255, 255, 255);
  color: #000000;
  padding: 6px 9px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.1s ease-in-out, opacity 0.2s ease-in-out, background-image 0.2s ease-in-out;
}

.volume-container {
  display: none;
  align-items: center;
  justify-content: center;
  height: 8vh;
  gap: 10px;
  position: fixed;
  top: 20px; 
  left: 20px;  
  z-index: 500;
  padding: 0 20px;
  cursor: pointer;
  pointer-events: auto;
}

.volume-container > * {
  pointer-events: auto;
}

.volume-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  color: #ffffff;
  z-index: 100;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}

.volume-container.active {
  gap: 10px;
}

.volume-icon {
  position: absolute;
  width: 30px;
  height: 30px;
  transition: opacity 0.3s ease;
  opacity: 1;
  cursor: pointer !important;
  pointer-events: auto;
}

#mute-icon {
  opacity: 0;
}

#unmute-icon {
  opacity: 1;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 150px;
  height: 8px;
  background: transparent;
  border-radius: 5px;
  outline: none;
  transition: transform 0.3s ease-in-out, width 0.3s ease-in-out, opacity 0.2s ease-in-out;
  transform: translateX(0);
  opacity: 0;
  width: 0;
  position: relative;
  overflow: visible;
  cursor: pointer;
  pointer-events: auto;
}

.volume-container:hover .volume-slider {
  will-change: transform, width, opacity;
}

.volume-container:not(:hover) .volume-slider {
  will-change: auto;
}

.volume-container:hover .volume-slider:not(.force-hide) {
  opacity: 0.6;
  width: 150px;
}

.volume-container:not(:hover) .volume-slider {
  will-change: auto;
}

.volume-slider.force-hide {
  opacity: 0;
  width: 0;
  pointer-events: none;
}

.volume-slider:hover:not(.force-hide) {
  opacity: 1;
}

.volume-slider:focus {
  opacity: 1;
  width: 150px;
}

.volume-slider::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  height: 8px;
  border-radius: 5px;
  background: transparent;
}

.volume-slider::-moz-range-track {
  height: 8px;
  border-radius: 5px;
  background: transparent;
  border: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -6px;
}

.volume-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  margin-top: -6px;
}

.volume-slider::-moz-range-progress {
  background: transparent;
}

.volume-label {
  font-size: 1rem;
  color: #ffffff;
  margin-left: 5px;
  user-select: none;
  transition: opacity 16s ease-in-out 8s, visibility 16s ease-in-out 8s;
  opacity: 0;
  padding: 0 10px;
  visibility: hidden;
}

.volume-container:hover .volume-label:not(.force-hide) {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.volume-label.force-hide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 16s ease-in-out 8s, visibility 16s ease-in-out 8s;
  pointer-events: none;
}

.volume-label.editing {
  opacity: 0;
  pointer-events: none;
}

.volume-display {
  position: relative;
  min-width: 50px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease-in-out 0.3s, opacity 0.5s ease-in-out 0.3s;
  transform: translateX(0);
  opacity: 0;
}

.volume-container:hover .volume-display:not(.force-hide) {
  opacity: 1;
  transform: translateX(0);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.volume-display.force-hide {
  opacity: 0;
  transform: translateX(0);
  transition: transform 0.5s ease-in-out 0.3s, opacity 0.5s ease-in-out 0.3s;
}

.volume-input {
  font-family: 'Inter', sans-serif;
  width: 50px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  color: #ffffff;
  font-size: 0.9rem;
  text-align: center;
  outline: none;
  padding: 0 10px;
  margin: 0 15px;
  opacity: 0;
}

.volume-input.editing {
  opacity: 1;
  pointer-events: auto;
}

.volume-input::-webkit-inner-spin-button,
.volume-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.volume-input[type=number] {
  -moz-appearance: textfield;
}

.volume-input:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.volume-container:hover .volume-input:not(.force-hide) {
  opacity: 1;
  transform: translateX(0);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.volume-input.force-hide {
  opacity: 0;
  transition: transform 0.5s ease-in-out 0.3s, opacity 0.5s ease-in-out 0.3s;
}

.volume-percent {
  font-size: 1rem;
  color: #ffffff;
  white-space: nowrap;
  transition: transform 0.5s ease-in-out 0.3s, opacity 0.5s ease-in-out 0.3s;
  transform: translateX(0);
  opacity: 0;
}

.volume-container:hover .volume-percent:not(.force-hide) {
  opacity: 1;
  transform: translateX(0);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.volume-percent.force-hide {
  opacity: 0;
  transition: transform 0.5s ease-in-out 0.3s, opacity 0.5s ease-in-out 0.3s;
}

@media (max-width: 300px) {
  .volume-container {
    display: none;
  }
}

