@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400;1,700&family=Lora:ital,wght@0,400;0,700;1,400;1,700&display=swap');

body {
    background-size: 50% auto;
}

html {
    font-family: 'Lato', sans-serif;
}

button {
    cursor: pointer;
    text-align: center;
}



.load-image {
    margin: 10px;
    padding: 5px;
    border: 2px solid black;
    color: black;
    background-color: white;
    text-decoration: none;
}

.load-image:hover {
    color: white;
    background-color: black;
}

.image-overlay-container {
    position: relative;
    width: 70vw;
    height: 45vw;
    margin: auto;
}


#menu {
    width: 50px;
    margin: 0px;
    cursor: pointer;
    position: absolute;
    top: 0px;
    left: 0px;
}

.image-container {
    margin-top: 15px;
    width: 300px;
    display: none;
    position: absolute;
    overflow-y: scroll;
    z-index: 5;
    background-color: #ccc; /* Softer white background */
    height: 50vh;
    border: 1px solid #ccc; /* Lighter, modern border */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Adds depth with a subtle shadow */
    border-radius: 10px; /* Rounded corners for a modern look */
    padding: 10px; /* Adds space inside the container around the content */
}

#focus {
    background-color: transparent;
    border-radius: 48%;
    margin: auto;
    border: 1px solid black;
    position: absolute;
    overflow: hidden;
    top: 23%;
    left: 31%;
    transform: translate(-0%, -47%);
}

#light {
    background-color: black;
    opacity: 1;
    border-radius: 50%;
    margin: auto;
    border: 1px solid black;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.openseadragon-container {
    z-index: -1;
}

#focusKnob_1 {
    position: absolute;
    left: calc(42vw - 3px);
    /* Example calculation */
    top: calc(51vw * 0.63);
    /* Based on image height */
    font-size: 2vw;
    color: transparent;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

 #focusKnob_1:hover {
    color: white; /* Adjusted: make sure the color is visible if needed */
    box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.7); /* Red glow for hover state */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7); /* Optional: Red text glow if there's text */
} 

#focusKnob_1 button {
    font-size: 0.5vw;
    /* Responsive font size */
    color: white;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: block;
    /* Ensure buttons are stacked */
    margin: 2vh auto;
    /* Vertically space out buttons */
}

#focusKnob_1 br {
    display: none;
    /* Remove line breaks for a cleaner layout */
}

/* Optional: Style for hover effects on individual buttons, if #focusKnob_1 has inner buttons */
/* #focusKnob_1 button:hover {
    color: red;
    box-shadow: 0 0 8px 2px rgba(255, 0, 0, 0.7); 
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.7); 
} */

#focusKnob_2 {
    position: absolute;
    left: calc(42vw - 3px);
    /* Example calculation */
    top: calc(54.5vw * 0.63);
    /* Based on image height */
    font-size: 2vw;
    color: transparent;
    background-color: transparent;
    border: none;
    cursor: pointer;

}

#focusKnob_2:hover {
    color: white; /* Adjusted: make sure the color is visible if needed */
    box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.7); /* Red glow for hover state */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7); /* Optional: Red text glow if there's text */
} 

#focusKnob_2 button {
    font-size: 0.5vw;
    /* Responsive font size */
    color: white;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: block;
    /* Ensure buttons are stacked */
    margin: 2vh auto;
    /* Vertically space out buttons */
}

#focusKnob_2 br {
    display: none;
    /* Remove line breaks for a cleaner layout */
}

/* Optional: Style for hover effects */
#focusKnob_2 button:hover {
    color: #ddd;
    /* Light grey for hover state */
}

#focusKnob2_1 {
    position: absolute;
    left: calc(26.5vw - 3px);
    /* Example calculation */
    top: calc(51vw * 0.63);
    /* Based on image height */
    font-size: 2vw;
    color: transparent;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

#focusKnob2_1:hover {
    color: white; /* Adjusted: make sure the color is visible if needed */
    box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.7); /* Red glow for hover state */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7); /* Optional: Red text glow if there's text */
} 

#focusKnob2_1 button {
    font-size: 0.5vw;
    /* Responsive font size */
    color: white;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: block;
    /* Ensure buttons are stacked */
    margin: 2vh auto;
    /* Vertically space out buttons */
}


#focusKnob2_1 br {
    display: none;
    /* Remove line breaks for a cleaner layout */
}

/* Optional: Style for hover effects */
#focusKnob2_1 button:hover {
    color: #ddd;
    /* Light grey for hover state */
}

#focusKnob2_2 {
    position: absolute;
    left: calc(26.5vw - 3px);
    /* Example calculation */
    top: calc(54.5vw * 0.63);
    /* Based on image height */
    font-size: 2vw;
    color: transparent;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

#focusKnob2_2:hover {
    color: white; /* Adjusted: make sure the color is visible if needed */
    box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.7); /* Red glow for hover state */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7); /* Optional: Red text glow if there's text */
} 

#focusKnob2_2 button {
    font-size: 0.5vw;
    /* Responsive font size */
    color: white;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: block;
    /* Ensure buttons are stacked */
    margin: 2vh auto;
    /* Vertically space out buttons */
}

#focusKnob2_2 br {
    display: none;
    /* Remove line breaks for a cleaner layout */
}

/* Optional: Style for hover effects */
#focusKnob2_2 button:hover {
    color: #ddd;
    /* Light grey for hover state */
}

#zoomKnob_1 {
    position: absolute;
    left: calc(44.5vw - 4px);
    /* Example calculation */
    top: calc(51vw * 0.63);
    /* Based on image height */
    font-size: 2vw;
    color: transparent;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

#zoomKnob_1:hover {
    color: white; /* Adjusted: make sure the color is visible if needed */
    box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.7); /* Red glow for hover state */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7); /* Optional: Red text glow if there's text */
} 

#zoomKnob_1 button {
    font-size: 0.5vw;
    /* Responsive font size */
    color: white;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: block;
    /* Ensure buttons are stacked */
    margin: 2vh auto;
    /* Vertically space out buttons */
}

#zoomKnob_1 br {
    display: none;
    /* Remove line breaks for a cleaner layout */
}

/* Optional: Style for hover effects */
#zoomKnob_1 button:hover {
    color: #ddd;
    /* Light grey for hover state */
}

#zoomKnob_2 {
    position: absolute;
    left: calc(44.5vw - 4px);
    /* Example calculation */
    top: calc(54.5vw * 0.63);
    /* Based on image height */
    font-size: 2vw;
    color: transparent;
    background-color: transparent;
    border: none;
    cursor: pointer;

}

#zoomKnob_2:hover {
    color: white; /* Adjusted: make sure the color is visible if needed */
    box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.7); /* Red glow for hover state */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7); /* Optional: Red text glow if there's text */
} 

#zoomKnob_2 button {
    font-size: 0.5vw;
    /* Responsive font size */
    color: white;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: block;
    /* Ensure buttons are stacked */
    margin: 2vh auto;
    /* Vertically space out buttons */

}

#zoomKnob_2 br {
    display: none;
    /* Remove line breaks for a cleaner layout */
}

/* Optional: Style for hover effects */
#zoomKnob_2 button:hover {
    color: #ddd;
    /* Light grey for hover state */
}

#zoomKnob2_1 {
    position: absolute;
    left: calc(24vw - 4px);
    /* Example calculation */
    top: calc(51vw * 0.63);
    /* Based on image height */
    font-size: 2vw;
    color: transparent;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

#zoomKnob2_1:hover {
    color: white; /* Adjusted: make sure the color is visible if needed */
    box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.7); /* Red glow for hover state */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7); /* Optional: Red text glow if there's text */
} 

#zoomKnob2_1 button {
    font-size: 0.5vw;
    /* Responsive font size */
    color: white;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: block;
    /* Ensure buttons are stacked */
    margin: 2vh auto;
    /* Vertically space out buttons */
}

#zoomKnob2_1 br {
    display: none;
    /* Remove line breaks for a cleaner layout */
}

/* Optional: Style for hover effects */
#zoomKnob2_1 button:hover {
    color: #ddd;
    /* Light grey for hover state */
}

#zoomKnob2_2 {
    position: absolute;
    left: calc(24vw - 4px);
    /* Example calculation */
    top: calc(54.5vw * 0.63);
    /* Based on image height */
    font-size: 2vw;
    color: transparent;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

#zoomKnob2_2:hover {
    color: white; /* Adjusted: make sure the color is visible if needed */
    box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.7); /* Red glow for hover state */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7); /* Optional: Red text glow if there's text */
}

#zoomKnob2_2 button {
    font-size: 0.5vw;
    /* Responsive font size */
    color: white;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: block;
    /* Ensure buttons are stacked */
    margin: 2vh auto;
    /* Vertically space out buttons */

}

#zoomKnob2_2 br {
    display: none;
    /* Remove line breaks for a cleaner layout */
}

/* Optional: Style for hover effects */
#zoomKnob2_2 button:hover {
    color: #ddd;
    /* Light grey for hover state */
}

#panXKnob {
    position: absolute;
    display: flex;
    justify-content: space-between;
    /* Adjust based on layout preference */
    width: calc(5vw);
    /* Reduced size to 5% of viewport width for the container */
    height: calc(5vw * (100 / 100));
    /* Adjusting height to maintain aspect ratio */
    top: calc(40vw * 0.56);
    /* Example position: Adjust based on image height */
    left: calc(74vw * 0.74 - 25px);
    /* Adjusted to keep the knob aligned */
    border-radius: 50%;
    background-color: darkslategray;
}

#panLeftBtn,
#panRightBtn {
    width: 50%;
    height: 100%;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: calc(1vw);
    /* Adjust the font size to be responsive */
}

#panLeftBtn {
    border-right: 1px solid white;
}

#panRightBtn {
    border-left: 1px solid white;
}

/* Optional: Add hover effects for better interaction feedback */
#panLeftBtn:hover,
#panRightBtn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#panYKnob {
    position: absolute;
    display: flex;
    flex-direction: column;
    /* Stack buttons vertically */
    justify-content: space-between;
    width: calc(5vw * (100 / 100));
    /* Keep square aspect ratio */
    height: calc(5vw);
    /* Reduced size */
    top: calc(40vw * 0.56);
    /* Adjust based on image height and desired position */
    left: calc(73vw * 0.84 - 25px);
    /* Adjust for positioning */
    border-radius: 50%;
    background-color: darkslategray;
}

#panUpBtn,
#panDownBtn {
    width: 100%;
    height: 50%;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: calc(1vw);
    /* Responsive font size adjustment */
}

#panUpBtn {
    border-bottom: 1px solid white;
}

#panDownBtn {
    border-top: 1px solid white;
}

/* Optional: Add hover effects */
#panUpBtn:hover,
#panDownBtn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#smallerLens {
    border: 1px solid black;
    border-radius: 50%;
    padding: 30px;
    width: 25px;
    height: 25px;
    position: absolute;
    top: 100px;
    left: 15%;
    cursor: pointer;
}

#biggerLens {
    border: 1px solid black;
    border-radius: 50%;
    padding: 30px;
    width: 25px;
    height: 25px;
    position: absolute;
    top: 100px;
    left: 75%;
    cursor: pointer;
}

#lensBox {
    position: absolute;
    /* border: 1px solid black; */
    padding: 15px;
    width: 10vw;
    /* Adjust the width to fit content */
    height: auto;
    /* Height auto to wrap content */
    text-align: center;
    background-color: darkslategray;
    top: 3vh;
    right: 5vw;
    /* Adjust as needed, use right for alignment */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    /* Rounded corners */
}

#lensBox h3 {
    color: white;
    margin: 2px 0;
    /* Adjust spacing around the title */
    font-size: 1vw;
    /* Responsive font size */
}

#lensBox button {
    margin: 5px 0;
    /* Adjust spacing around buttons */
    width: 4.5vw;
    /* Responsive button width */
    height: 4.5vw;
    /* Keep buttons square */
    border-radius: 50%;
    border: 1px solid white;
    color: white;
    background-color: transparent;
    cursor: pointer;
    font-size: 1vw;
    /* Responsive font size */
    display: flex;
    align-items: center;
    justify-content: center;
}

#lensBox button.selected {
    background-color: slategray;
    /* Highlight selected button */
}

#lensBox button.unselected:hover {
    background-color: rgba(255, 255, 255, 0.2);
    /* Hover effect for unselected buttons */
}

#lightDiaphram {
    display: flex;
    justify-content: space-around;
    /* Spread the items evenly */
    align-items: center;
    /* Vertically align items */
    background: white;
    border: 1px solid black;
    position: absolute;
    left: 25%;
    /* Adjust as needed */
    bottom: -4vh;
    /* Adjust from bottom instead of top to be relative to viewport height */
    width: 50%;
    /* Adjust as needed */
    padding: 2px 0;
    /* Provide some vertical padding */
}

#lightDiaphram button {
    color: black;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 1vw;
    /* Adjust font size based on viewport width */
}

#lightDiaphramText {
    margin: 0;
    font-size: 1vw;
    /* Adjust text size based on viewport width */
}


#lighton {
    margin-left: 70px;
    margin-top: -10px;

}

#everything {
    margin-top: 60px;
    position: relative;
}

.selected {
    background-color: gray;
    cursor: default;
}

.unselected {
    background-color: white;
    cursor: pointer;
}

/* The switch - container for the slider */
.switch {
    position: absolute; /* or 'absolute' depending on your needs */
    display: inline-block;
    width: 57px;
    height: 34px;
    top: 80px; /* Distance from the top of the viewport */
    left: 120px; /* Distance from the right of the viewport */
    /* Adjust 'top' and 'right' as needed */
  }
  
  
  /* The slider */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    height: 28px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: lightgray;
    -webkit-transition: .4s;
    transition: .4s;
    border-color: black;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-color: black;

  }
  
  input:checked + .slider {
    background-color: darkslategray;
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px darkslategray;
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }

  /* Hide the checkbox visually but remain accessible for screen readers */
.switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

@media (min-width: 768px) {

    #focus,
    #light {
        width: 26vw;
        height: 22vw;
    }
}

@media (max-width: 767px) {

    #focus,
    #light {
        width: 50vw;
        height: 50vw;
    }
}

@media (max-width: 480px) {

    #focus,
    #light {
        width: 70vw;
        height: 70vw;
    }
} 