@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

canvas {
  padding-left: 0;
  padding-right: 0;
  border: 1px solid grey;
}
html, body{
  user-select: none;
}
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  background-size: cover;
  background-position: center;
  transition: background-image 0.5s ease-in-out;
  font-family: 'Noto Sans', sans-serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

a {
  color: white;
}

a:hover {
  color: yellow;
}

.subheader {
  color: rgba(255, 255, 255, 0.521);
  user-select: none;
}

.column-left {
  float: left;
  width: 33.333%;
  text-align: left;
}

.column-center {
  display: inline-block;
  width: 33.333%;
  text-align: center;
}

.column-right {
  float: right;
  width: 33.333%;
  text-align: right;
}

.title {
  text-align: center;
  font-family: "Arial";
  color: white;
  user-select: none;
}

.wrapper {
  font-size: 0; /* get rid of extra spacing due to font-size */
  padding-top: 10px;
  margin: 0 auto;
}

#titleWrapper {
  font-size: initial;
  padding-bottom: 5px;
  color: #fff;
}

#menuWrapper {
  border-bottom: 1px solid grey;
  padding-bottom: 3px;
  margin-bottom: 2px;
  background-color: rgba(60, 60, 60, 0.801);
  backdrop-filter: blur(5px);
  overflow: auto;
  font-family: 'Noto Sans', sans-serif;
  font-size: 14px;
  font-weight: 200;
  user-select: none;
  position: relative;
  color: rgb(201, 201, 201);
  width: inherit;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

#elementTable {
  border-collapse: collapse;
  float: left;
}

.elementMenuButton {
  background: none;
  border: none;
  text-align: left;
  user-select: none;
  width: 100%;
  height: 100%;
  font-weight: 700;
  transition: 0.3s all ease;
  padding: 5px;
  cursor: pointer;
}

.elementMenuButton:hover {
  background-color: rgb(10, 10, 10);
  color: white !important;
  border-radius: 5px;
}

.elementMenuButton:active {
  background-color: rgb(100, 100, 100);
  color: white !important;
}

.selectedElementMenuButton {
  outline: 1px solid white;
}

.optionsCol {
  float: left;
}

.spigotType {
  width: 75px;
}

#speedSliderDiv {
  margin-top: 4px;
  margin-bottom: 8px;
}


/* Remove default styles */
#volumeSlider {
  -webkit-appearance: none;
  width: 100px;
  height: 10px;
  background: transparent;
  outline: none;
  border:0;
}

/* Track styles */
#volumeSlider::-webkit-slider-runnable-track {
  width: 100px;
  height: 5px;
  cursor: pointer;
  background: #ddd;
  border-radius: 5px;
}

/* Thumb styles */
#volumeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #3498db;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -7.5px; /* Aligns the thumb vertically */
}

/* Active styles */
#volumeSlider:active::-webkit-slider-thumb {
  background: #2980b9;
}

/* Focus styles */
#volumeSlider:focus {
  outline: none;
}

/* Value display */
#volumeSlider::-moz-range-thumb::after {
  content: attr(value);
  display: block;
  position: absolute;
  text-align: center;
  width: 30px;
  height: 30px;
  background: #3498db;
  color: #fff;
  border-radius: 50%;
  margin-top: -15px;
  margin-left: -15px;
  line-height: 30px;
}
#volumeLabel {
  margin-left: 2.22px;
}

#volumeContainer {
  display: none;
  margin: 8px 0;
}
#speedSlider {
  width: 60px;
  height: 10px;
  border-radius: 5px;
  background-image: linear-gradient(to right, rgba(255, 0, 0, 0.8), rgba(0, 128, 0, 0.8));
  outline: none;
  -webkit-appearance: none;
}

#optionsCol2 {
  padding-left: 4px;
}

#fps-counter {
  position: absolute;
  bottom: 1px;
  right: 1px;
}

.optionButton {
  font-size: inherit;
  font-family: inherit;
  user-select: none;
  border: none;
  outline: none;
}

.optionButtonContainer {
  margin-top: 4px;
}

#penSizeDiv {
  margin-bottom: 2px;
}


.overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0);
  z-index: 999;
}

.loader {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

input[type="text"],
input[type="password"],
input[type="range"],
select,
button {
  width: fit-content;
  background-color: #2c2c2c;
  color: white;
  border: 1px solid #444;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, color 0.3s;
}

input:hover,
input:focus,
select:hover,
select:focus,
button:hover,
button:focus {
  background-color: #444;
}



.top-btn{
  cursor: pointer;
  transition: .2s ease all;
}

.top-btn:hover{
  transform: scale(1.1);
}

.top-btn:active{
  transform: scale(1.05);
}