body, main {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  max-width: 100vw;
  height: 1000px;
  background-color: bisque;
}

main {  
  margin: 10px;
}

/** Sidebar **/

#sidebar {
  width: 30px;
  height: fit-content;
  background-color: gray;
  border-radius: 20px;
  padding: 10px;
  position: fixed;
  top: 25%;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 30px;
  padding-top: 30px;
  padding-bottom: 30px;

}

/* Container for the tool options */
.tool {
  position: relative; /* Ensure positioning is relative to contain the dropdown */
  display: flex;
  align-items: center;
}

.stylo-img {
  width: 30px; /* Size of the pen icon */
  cursor: pointer; /* Change cursor to pointer when hovering over the image */
}

#eraserIcon {
  width: 30px; /* Size of the eraser icon */
  cursor: pointer; /* Change cursor to pointer when hovering over the image */
}

button {
  margin: 0 5px;
  padding: 10px 15px;
  font-size: 16px;
  border: none;
  background-color: gray;
  color: white;
  cursor: pointer;
}

button:hover {
  opacity: 80%;
}

/* Style for the pen options menu */
.pen-options {
  display: none; /* Hide the menu initially */
  position: absolute;
  top: 100%; /* Position below the tool container */
  left: 0;
  color: black;
  background-color: white;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 10; /* Ensure it appears above other content */
}

.pen-options button {
  display: block;
  width: 100%;
  padding: 10px;
  text-align: left;
  border: none;
  background-color: white;
  color: black;
  cursor: pointer;
}

.pen-options button:hover {
  background-color: #f1f1f1;
}

.show-pen {
  display: flex !important; /* Show the pen options menu */
}

.color {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.color > h3 {
  margin: 0;
}

#colorPicker {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 40px;
  height: 40px;
  background-color: transparent;
  border: none;
  cursor: pointer;
}
#colorPicker::-webkit-color-swatch {
  border-radius: 5px;
  border: none;
}
#colorPicker::-moz-color-swatch {
  border-radius: 5px;
  border: none;
}

/* Container for size settings */
.size-container {
  position: relative;
  display: inline-block;
}

/* Style for the Size button */
#sizeButton {
  color: white;
  border: none;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
}

#sizeButton:hover {
  background-color: black;
}

/* Hidden size menu (dropdown) */
.size-menu {
  display: none; /* Initially hidden */
  position: absolute;
  left: 100%; /* Make it appear to the right of the button */
  top: 0;
  background-color: white;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  width: 150px;
  z-index: 1001;
  border: 1px solid #ddd;
}

/* Style for range input */
.size-menu input[type="range"] {
  width: 100%;
}

.size-menu h3 {
  margin-top: 0;
}

/* Show the size menu when it has the 'show' class */
.size-menu.show {
  display: block;
}





.board {
  width: 100%;
  height: 80vh;
  border: 1px solid black;
  position: relative;
  overflow: auto; /* Enable scrollbars if the content overflows */
  display: flex;
  justify-content: center;

}

.users {
  margin-top: 10px;
  width: 100%;
  height: 100px;
  display: flex;
  justify-content: space-between;
  border: 1px solid black;
}

canvas {
  display: block; /* Remove any default inline spacing */
  width: 100%; /* Make the canvas fill the board's width */
  height: 100%; /* Make the canvas fill the board's height */
  max-width: 1500px;
  background-color: white;
  box-shadow: 2em;
}

/* Dropdown container */
#userDropdown {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
}

#userDropdownBtn {
  background-color: #4CAF50;
  color: white;
  padding: 10px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

/* Dropdown content */
#userDropdownContent {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

#userDropdownContent div {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

#userDropdownContent div:hover {
  background-color: #f1f1f1;
}

/* Show the dropdown content on click */
.show {
  display: block !important;
}

.highlight {
  background-color: yellow;
  font-weight: bold;
}


canvas {
  image-rendering: optimizeSpeed;
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: -o-crisp-edges;
  image-rendering: pixelated;
  -ms-interpolation-mode: nearest-neighbor;
}