#annotation-tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
}

#level-1 {
    display: flex;
    justify-content: space-between; /* Distributes space between items */
    flex-wrap: wrap; /* Allows items to wrap onto the next line in smaller screens */
    align-items: center; /* Align items vertically */
}

#level-1 > div {
    flex-grow: 1; /* Allows each container to grow and fill the available space */
}

#drawing-tools {
}

#drawing-tools > div {
    display: inline-block;
}

.toolbar {
	position: fixed;
	z-index: 1000;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.toolbar button,
.toolbar input[type="color"],
.toolbar input[type="range"],
.toolbar select {
    margin: 5px;
}

#switch-container{
	margin: 0px 2px;
    padding: 0px 5px;
	border: 1px solid #d3d3d3;
	border-radius: 3px;
	background-color: rgba(211,211,211,0.70);
}

#switch-container i{
	margin: 0px;
}

.switch {
	position: relative;
	display: inline-block;
	height: 34px;
	margin: 5px;
	color: #24C77B;
}

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

.slider {
	font-size: 28px;
}

input:checked + .slider{
	-webkit-transform: scaleX(-1);
	transform: scaleX(-1);
}

.toolbar select{
    font-size: 14px; /* Adjust based on your design */
    font-family: Arial, sans-serif;    
    padding: 5px 10px;
	border: 1px solid #d3d3d3;
	border-radius: 3px;
}

.toolbar range{
}

#drawing-tools{
	margin: 0px 2px;
    padding: 2px 5px;
	border: 1px solid #d3d3d3;
	border-radius: 3px;
	background-color: rgba(211,211,211,0.70);
}

#drawing-tools input[type='color']{
	min-width: 30px;	
	max-width: 30px;
	border: 0px;
}

#image-selection-container{
	margin: 0px 2px;
    padding: 2px 5px;
	border: 1px solid #d3d3d3;
	border-radius: 3px;
	background-color: rgba(211,211,211,0.70);
}


.image-container {
    position: relative;
    max-width: 500px; /* Your maximum container width */
    width: 100%; /* Make container adapt to the max-width or the actual image width */
    margin: auto; /* Center the container */
	aspect-ratio: auto; /* Maintain aspect ratio, adjust as needed */
}

.image-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* This will make the canvas fill the container width */
    background-color: transparent; /* Ensure background is transparent */
}

/* Ensure these canvases do not interfere with mouse events */
#drawing-canvas, #labels-canvas {
    pointer-events: none; /* This allows click events to pass through */
}
#drawing-canvas {
    z-index: 10; /* This puts it on top */
}
#labels-canvas {
    z-index: 5; /* This puts it in the middle */
}

#bg-canvas {
    pointer-events: all; /* This ensures bg-canvas can still register clicks */
}

.annotations-list {
    margin-top: 20px;
    list-style-type: none;
    padding-left: 0;
    width: 100%;
    max-width: 500px;
    margin: auto;
}

.annotations-list ul {
    width: 100%; /* Ensure the UL fills the container */
    padding: 0; /* Remove default padding */
    list-style-type: none; /* Remove default list item bullets */
}

.annotations-list li {
    width: 100%; /* Ensure list items fill the full width of the UL */
    display: flex; /* Utilize flexbox for internal elements */
    align-items: center; /* Align items vertically */
    margin-bottom: 10px; /* Space between list items */
}

.annotations-list li input[type="text"] {
    flex-grow: 1; /* Allow the input to take up as much space as possible */
    margin-left: 10px; /* Optional: add some space between text and the input field */
}
.tag-pill {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px; /* Makes it pill-shaped */
    color: white;
    font-size: 14px; /* Adjust based on your design */
    font-family: Arial, sans-serif;    
	font-weight: bold;
	margin-right: 8px;
	
}

.delete-tag {
    cursor: pointer;
    margin-left: 8px;
    color: #d3d3d3; /* Adjust based on your design */
}

.tag-comment {
    margin-right: 8px;
    font-size: 14px; /* Adjust based on your design */
    font-family: Arial, sans-serif;    
    padding: 5px 10px;
	border: 1px solid #d3d3d3;
	border-radius: 3px;
}

/* Icon styles */
#draw-icon, #tag-icon {
    margin: 10px 0px;
    cursor: pointer;
	color: #AAAAAA;
}

#draw-icon.active, #tag-icon.active {
    color: #24C77B;
}

#eraser-mode {
    background-color: transparent; /* Red color for the clear button */
    color: #AAAAAA;
    font-size: 22px; /* Adjust based on your design */
    border: none;
    padding: 3px;
    border-radius: 5px;
    cursor: pointer;
}

#eraser-mode .active {
    color: #cc0000;
}


#clear-canvas-container{
	margin: 0px 2px;
    padding: 4px 5px 3px 5px;
	border: 1px solid #d3d3d3;
	border-radius: 3px;
	background-color: rgba(211,211,211,0.70);
}

#clear-canvas {
    background-color: transparent; /* Red color for the clear button */
    color: #AAAAAA;
    font-size: 18px; /* Adjust based on your design */
    border: none;
    padding: 3px;
    border-radius: 5px;
    cursor: pointer;
}

.button-save {
	font-size: 18px;
	font-weight: bold;
    margin: 0px 2px;
    padding: 10px 15px;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    background-color: #f0f0f0; /* Light grey background */
    cursor: pointer; /* Changes the cursor to a pointer when hovering over the button */
    transition: background-color 0.3s, border-color 0.3s; /* Smooth transition for hover effects */
}

.button-save:hover {
    background-color: #e0e0e0; /* Slightly darker shade for hover state */
    border-color: #b3b3b3; /* Darker border on hover */
}

@media (max-width: 600px) {
    .toolbar {
        flex-direction: column;
        align-items: center;
    }

    .toolbar button,
    .toolbar input[type="color"],
    .toolbar input[type="range"],
    .toolbar select {
        width: 90%;
    }
	
	#clear-canvas {
		padding-right: 8px; /* alingment hack */
	}
	
	#level-2{
		margin-top: 4px;
	}
}

@media screen and (max-width: 600px) {  /* Adjust 600px as necessary for your design */
    .image-container {
        max-width: 100%; /* Allows the container to fill smaller screens */
        height: auto; /* Adjust height automatically */
        aspect-ratio: auto; /* Adjust this based on your expected canvas aspect ratio */
    }
}

