html, body {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: 0;
}

.sliderWindow {
    display: block;
    border: 4px solid rgb(150,10,100);
    position: absolute;
}

.sliderPanel {
   overflow: hidden;
   position: absolute;
}
.sliderMenuWindow {
    display: block;
    border: 4px solid rgb(150,10,100);
    position: absolute;
    visibility: hidden;
}

/*calibration dialog style*/
.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 on import 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: 600px;
      width: 90%;
      max-height: 85vh;
      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-content {
      flex: 1;
      min-width: 0;
  }

  .option {
      display: flex;
      align-items: center;
      padding: 12px;
      border: 2px solid #e9ecef;
      border-radius: 8px;
      margin-bottom: 8px;
      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;
      flex-shrink: 0;
  }

  .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;
      font-size: 14px;
  }
  
  .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 on import dialog*/

/* project sizing befor import Dialog Styles */
    .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: 600px;
        width: 90%;
        max-height: 85vh;
        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;
    }

    .size-category {
        margin-bottom: 24px;
    }

    .category-title {
        font-weight: 600;
        color: #495057;
        margin-bottom: 12px;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .size-rect {
        position: absolute;
        background: rgba(0, 124, 186, 0.3);
        border: 2px solid #007cba;
        border-radius: 2px;
    }
    
    .custom-inputs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #e9ecef;
    }

    .input-group {
        display: flex;
        flex-direction: column;
    }

    .input-group label {
        font-size: 12px;
        color: #6c757d;
        margin-bottom: 4px;
        font-weight: 500;
    }

    .input-group input {
        padding: 8px 10px;
        border: 1px solid #ced4da;
        border-radius: 4px;
        font-size: 14px;
        width: 100%;
        box-sizing: border-box;
    }

    .input-group input:focus {
        outline: none;
        border-color: #007cba;
        box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
    }

    .special-option {
        background: #fff3cd;
        border-color: #ffc107;
    }

    .special-option:hover {
        border-color: #e0a800;
        background: #fff3cd;
    }

    .special-option.selected {
        border-color: #e0a800;
        background: #fff3cd;
    }
/* end project sizing befor import Dialog Styles */



#outerWindow, #canvasWindow{
    position: absolute;
    width: 100%;
    height: 100%;
    display: block;
    background-color: grey;
    touch-action: none;
}
#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;
}
.hideInPlace {
    position: absolute;
    visibility: hidden;
}

.hiddenButtonMenu {
  visibility: hidden; /* hidden initially */
  display: flex;
  flex-direction: var(--menu-direction, row);
  gap: 0;
  padding: 0;
  margin: 0;
  position: absolute;
}

.button-menu > * {
  margin: 0;
}
.manualTouch{
  touch-actions: none;
}

#chosenFile {
    display: none;
}

 #oldImgView{
    position: absolute;
    display: none;
    overflow: hidden;
}

#editPanel{
    position: absolute;
    display: none;
    overflow: hidden;
}
#showSliders {
    position: absolute;    
}

#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;
}