body {
    margin: 0;
    background-color: #000;
    color: #fff;
    font-family: Monospace;
    font-size: 13px;
    line-height: 24px;
    overscroll-behavior: none;
}


#rotation-window {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 5px;
    display: flex;
    gap: 10px;
    z-index: 1000;
    pointer-events: auto;
    transition: right 0.3s;
}

.round-button {
    background-color: white; /* White background for the buttons */
    border: none;
    border-radius: 50%;
    width: 50px; /* Match the image size */
    height: 50px; /* Match the image size */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add a subtle shadow for depth */
}

.round-button img {
    width: 60%; /* Scale down the image to fit nicely within the button */
    height: auto; /* Maintain the aspect ratio */
    pointer-events: none; /* Ensure the image does not block click events */
}




/* Style pour la barre latérale rétractable */
#sidebar {
	pointer-events: auto;
	z-index: 10; /* TODO Solve this in HTML */
	position: fixed;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	background-color: rgba(0, 0, 0, 0.8);
	padding: 20px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
	transition: left 0.3s;
	color: white;
	width: 250px;
}

#sidebar ul {
	list-style-type: none;
	padding: 0;
}

#sidebar ul li {
	cursor: pointer;
	margin-bottom: 10px;
	color: white;
}

#sidebar ul li:hover {
	text-decoration: underline;
}

#toggleSidebar {
	background: none;
	border: none;
	color: white;
	font-size: 24px;
	cursor: pointer;
	margin-bottom: 10px;
}

/* Style pour la barre de menu en haut */
#menu-bar {
    pointer-events: auto;  /* Allow the div to receive mouse events */
    position: absolute;
    display: inline-flex;  /* Use inline-flex to fit content width */
    justify-content: center;  /* Center the items horizontally */
    align-items: center;
    flex-wrap: wrap;  /* Allow items to wrap to the next line */
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    z-index: 10; /* TODO Solve this in HTML */
    top: 0;  /* Align to the top of the parent */
    left: 50%;  /* Center the menu bar horizontally */
    transform: translateX(-50%);  /* Adjust for centering */
    max-width: 100%;  /* Ensure it doesn't exceed the viewport width */
}

#menu-bar a, #menu-bar button {
    white-space: nowrap;  /* Ensure individual items don't wrap */
}

#menu-bar a {
	color: #c96826;
	text-decoration: none;
}


#menu-bar button {
	background: none;
	border: none;
	color: white;
	font-size: 16px;
	cursor: pointer;
}

a {
    color: #c96826;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button {
    cursor: pointer;
    text-transform: uppercase;
}


.switch {
  position: relative;
  display: inline-block;
  width: 30px;  /* Reduced size */
  height: 17px;  /* Reduced size */
  margin-left: 7px;  /* Add some space between the text and the switch */
  top: 4px;  /* Move the switch down by 3 pixels */
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 17px;  /* Adjusted for reduced size */
}

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

input:checked + .slider {
  background-color: #2196F3;
}

input:checked + .slider:before {
  transform: translateX(13px);  /* Adjusted for reduced size */
}

#MyLoader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loader {
  --s: 20px;
  --_d: calc(0.353 * var(--s));
  width: calc(var(--s) + var(--_d));
  aspect-ratio: 1;
  display: grid;
  position: relative;
}

.loader:before,
.loader:after {
  content: "";
  grid-area: 1/1;
  clip-path: polygon(var(--_d) 0,100% 0,100% calc(100% - var(--_d)),calc(100% - var(--_d)) 100%,0 100%,0 var(--_d));
  background: conic-gradient(from -90deg at calc(100% - var(--_d)) var(--_d), #fff 135deg, #666 0 270deg, #aaa 0);
  animation: l6 2s infinite;
}

.loader:after {
  animation-delay: -1s;
}

.loader-text {
  margin-top: 40px; /* Adjust the spacing between the loader and the text */
  font-size: 1.4em;
  color: #fff;
  text-align: center;
}


@keyframes l6 {
  0% { transform: translate(0, 0); }
  25% { transform: translate(30px, 0); }
  50% { transform: translate(30px, 30px); }
  75% { transform: translate(0, 30px); }
  100% { transform: translate(0, 0); }
}

@media all and (max-width: 640px) {
  .lil-gui.root {
    right: auto;
    top: auto;
    max-height: 50%;
    max-width: 80%;
    bottom: 0;
    left: 0;
  }
}

#overlay {
  position: absolute;
  font-size: 16px;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.7);
}

#overlay button {
  background: transparent;
  border: 0;
  border: 1px solid rgb(255, 255, 255);
  border-radius: 4px;
  color: #ffffff;
  padding: 12px 18px;
  text-transform: uppercase;
  cursor: pointer;
}

#notSupported {
  width: 50%;
  margin: auto;
  background-color: #f00;
  margin-top: 20px;
  padding: 10px;
}