html, body {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: 0;
}

.modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 80%; /* Make the dialog wider */
    max-width: 800px; /* Set a maximum width */
}
#outerWindow, #canvasWindow{
    position: absolute;
    width: 100%;
    height: 100%;
    display: block;
    background-color: grey;
}
#colorDisplay {
    display: flex;
    width: 100%;
    height: 200px;
    margin-bottom: 20px; /* Add some space below the color display */
}

.colorBox {
    flex: 1; /* This replaces flex-grow: 1 and allows shrinking if needed */
    height: 100%;
    min-width: 0; /* Allows flex items to shrink below their minimum content size */
}

.colorStripe {
    width: 10%;
    height: 100%;
    min-width: 20px; /* Ensure the stripe doesn't get too narrow */
}

.drawingLayers {
    display: none;
}

.editLayers {
    display: none;
}

.circlesLayers {
    display: none;
}

.menuButtons {
    position: absolute;
}

#chosenFile {
    display: none;
}

 #oldImgView{
    position: absolute;
    display: none;
    overflow: hidden;
}

#editPanel{
    position: absolute;
    display: none;
    overflow: hidden;
}
#showSliders, #sliderPanel {
    position: absolute;    
}

#sliderWindow {
    display: block;  
}

#sliderMenu {
    position: absolute;
    overflow: auto; /* Add scrollbars if content exceeds max dimensions */
    visibility: hidden;
}

#layerMenu, #fileMenu, #mainMenu, #drawToolMenu, #actionHist, #modeMenu {
    position: absolute;
    visibility: hidden;
}

#colorPicker, #pickerAmountCanvas {
    position: absolute;
    top: 0px;
    left: 0px;
    visibility: hidden;
}

#buttonPanel {
    position: absolute;
    display: block 
}

#topLayer {
    position: absolute;
    top: 0px;
    left: 0px;
}

#sliderOptions {
    position: absolute;
    background: rgb(255,255,255);
    display: block;
    visibility: hidden;
}
#layersView {
    position: absolute;
    background: rgb(255,255,255);
    display: block;
    width: auto; /* Set a fixed starting width */
    min-width: 300px; /* Minimum width */
    max-width: 700px; /* Maximum width */
    min-height: 300px; /* Minimum height */
    height: auto; /* Grow with content */
    max-height: 500px; /* Maximum height */
    overflow: auto; /* Add scrollbars if content exceeds max dimensions */
    padding: 1%;
    visibility: hidden;
}
#container {
    position: absolute;
    background: rgb(255,255,255);
    display: block;
    width: auto; /* Set a fixed starting width */
    min-width: 300px; /* Minimum width */
    max-width: 700px; /* Maximum width */
    min-height: 300px; /* Minimum height */
    height: auto; /* Grow with content */
    max-height: 500px; /* Maximum height */
    overflow: auto; /* Add scrollbars if content exceeds max dimensions */
    padding: 1%;
    visibility: hidden;
}