*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 3px; /* Width of the vertical scrollbar */
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #353535; /* Color of the scrollbar handle */
  border-radius: 5px; /* Rounded corners on the scrollbar handle */
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #606060; /* Color of the scrollbar handle on hover */
}

/* Track */
::-webkit-scrollbar-track {
  background: transparent; /* Color of the track */
}

body{
  background: #050505;
  position: relative;
  height: 100dvh;
  width: 100vw;
  font-size: 1.5rem;
  font-family: system-ui;
  overflow-x: hidden;
}

canvas{
  position: absolute;
}

.bgImage {
  width: 100%; 
  height: 100%; 
  position: absolute; 
  z-index: -1; 
  opacity: 10%;
}

.menu-items{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
}

.menu-item{
  width: 90%;
  font-size: medium;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-item > label > span{
  font-size: 11px;
  margin-left: 4px;
}

.menu-item > button > span{
  font-size: 11px;
  margin-left: 4px;
}

.menu-item > input[type="checkbox"]{
  height: 1rem;
  width: 1rem;
  cursor: pointer;
}


.menu-item > input[type="number"]{
  width: 3rem;
  border: none;
  padding: 0.1rem 0 0.1rem 0.2rem;
  border-radius: 0.25rem;
  text-align: end;
}

.menu-item > input[type="color"]{
  -webkit-appearance: none;
	border: none;
	width: 1.5rem;
	height: 1.5rem;
  border-radius: 0.2rem;
  border: 1px solid rgba(0, 0, 0, 0.644);
  cursor: pointer;
}
input[type="color"]::-webkit-color-swatch-wrapper {
	padding: 0;
}
input[type="color"]::-webkit-color-swatch {
	border: none;
}

.menu-item > button[type="button"]{
  border: none;
  cursor: pointer;
  padding: 0.2rem 0.6rem;
  border-radius: 0.2rem;
  margin-top: 0.4rem;
  margin-bottom: 0.3rem;
  background-color: rgba(255, 255, 255, 0.9);
}

.menu-item > button[type="button"]:hover{
  background-color: rgba(255, 255, 255, 0.7);
}

.misc > button[type="button"]{
  width: 100%;
  margin-top: 0;
}

.menu-items > hr {
  width: 95%;
  border: 1px solid rgba(255, 255, 255, 0.217);
  background: transparent;
  margin: 0.5rem 0;
}

.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  background: rgba(197, 197, 197, 0.5);
  border-radius: 1rem;
  padding: 0.5rem;
  margin: 0.5rem;
  position: absolute;
  z-index: 10;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
}

#menu {
  width: 300px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  color: white;
  
  /*  undo popover styles  */
  border: none;
  margin: 0;
  right: auto;
  background: #00000040;
  backdrop-filter: blur(1px);
  padding: 1rem;
  padding-top: 3rem;
  
  /*  animate  */
  transition: translate 0.5s ease-out, display 0.5s ease-out allow-discrete,
  overlay 0.5s ease-out allow-discrete;
  translate: -300px 0;
  
  &:popover-open {
    translate: 0 0;


    @starting-style {
      translate: -300px 0;
    }
  }
}

.sr-only:not(:focus):not(:active) {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}