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 */
}
/*styles for sizing dialog*/
  .result {
      margin-top: 20px;
      padding: 15px;
      background: #f8f9fa;
      border-radius: 6px;
      border-left: 4px solid #007cba;
  }

  .dialog-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
  }
  
  .dialog {
      background: white;
      border-radius: 12px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      max-width: 500px;
      width: 90%;
      max-height: 80vh;
      overflow: auto;
  }
  
  .dialog-header {
      padding: 24px 24px 0;
      border-bottom: 1px solid #e9ecef;
      margin-bottom: 20px;
  }
  
  .dialog-title {
      margin: 0 0 8px 0;
      font-size: 20px;
      font-weight: 600;
      color: #212529;
  }
  
  .dialog-subtitle {
      margin: 0;
      color: #6c757d;
      font-size: 14px;
  }
  
  .dialog-content {
      padding: 0 24px;
  }
  
  .image-info {
      background: #f8f9fa;
      border: 1px solid #dee2e6;
      border-radius: 8px;
      padding: 16px;
      margin-bottom: 24px;
  }
  
  .image-info h4 {
      margin: 0 0 12px 0;
      color: #495057;
      font-size: 16px;
  }
  
  .info-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
  }
  
  .info-item {
      background: white;
      padding: 12px;
      border-radius: 6px;
      border: 1px solid #e9ecef;
  }
  
  .info-label {
      font-size: 12px;
      color: #6c757d;
      margin-bottom: 4px;
      font-weight: 500;
  }
  
  .info-value {
      font-size: 16px;
      font-weight: 600;
      color: #212529;
  }
  
  .options {
      margin-bottom: 24px;
  }
  
  .option {
      display: flex;
      align-items: flex-start;
      padding: 16px;
      border: 2px solid #e9ecef;
      border-radius: 8px;
      margin-bottom: 12px;
      cursor: pointer;
      transition: all 0.2s ease;
  }
  
  .option:hover {
      border-color: #007cba;
      background-color: #f8f9fa;
  }
  
  .option.selected {
      border-color: #007cba;
      background-color: #e3f2fd;
  }
  
  .option input[type="radio"] {
      margin-right: 12px;
      margin-top: 2px;
  }
  
  .option-content {
      flex: 1;
  }
  
  .option-visual {
      margin-right: 16px;
      flex-shrink: 0;
  }
  
  .visual-container {
      width: 80px;
      height: 60px;
      position: relative;
      border: 2px solid #dee2e6;
      border-radius: 4px;
      background: #f8f9fa;
      display: flex;
      align-items: center;
      justify-content: center;
  }
  
  .project-rect {
      position: absolute;
      border: 2px solid #007cba;
      background: rgba(0, 124, 186, 0.1);
      border-radius: 2px;
  }
  
  .image-rect {
      position: absolute;
      background: rgba(220, 53, 69, 0.7);
      border: 1px solid #eca0a0;
      border-radius: 1px;
  }
  
  .option-title {
      font-weight: 600;
      color: #212529;
      margin-bottom: 4px;
  }
  
  .option-description {
      color: #6c757d;
      font-size: 14px;
      line-height: 1.4;
  }
  
  .option-dimensions {
      color: #007cba;
      font-weight: 600;
      margin-top: 8px;
      font-size: 14px;
  }
  
  .dialog-footer {
      padding: 20px 24px 24px;
      border-top: 1px solid #e9ecef;
      display: flex;
      gap: 12px;
      justify-content: flex-end;
  }
  
  .btn {
      padding: 10px 20px;
      border: none;
      border-radius: 6px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
  }
  
  .btn-cancel {
      background: #6c757d;
      color: white;
  }
  
  .btn-cancel:hover {
      background: #545b62;
  }
  
  .btn-primary {
      background: #007cba;
      color: white;
  }
  
  .btn-primary:hover {
      background: #005a87;
  }
  
  .btn-primary:disabled {
      background: #ccc;
      cursor: not-allowed;
  }
/* end styles for sizing dialog*/

#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;
}

.layerThms {
    border: black dashed 4px;
}

.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;
}