body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
}
#imagePreviewModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.image-content {
    position: relative;
    width: 80%;
    max-width: 1200px;
    height: 80%;
    margin: auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

#gangSheetSize {
    text-align: left;
    margin-top: 10px;
    margin-bottom: 10px;
}

.gang-sheet-error {
    display: none;
    justify-content: center;
    align-items: center;
    color: #f44336;
    font-size: 20px;
    text-align: center;
    margin: auto;
    height: 100%; 
}


/* For the spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#previewGroup {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;    
}

.slideshow-container {
    position: relative;
    flex: 1;
    width: 100%;
    min-height: 0; 
}

.slideDiv {
    width: 100%;
    display: none;
}

.slideDiv img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}


#dotsContainer {
    padding: 10px 0;
    margin-top: auto;
    text-align: center;
  }

  .image-preview-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 20px;
  }
  
  .image-preview-button {
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  
  .cancel-button {
    background-color: #ff4d4d;
    color: white;
  }
  
  .cancel-button:hover {
    background-color: #e60000;
  }
  
  .add-cart-button {
    background-color: #4CAF50;
    color: white;
  }
  
  .add-cart-button:hover {
    background-color: #45a049;
  }

  .add-cart-button:disabled {
    background-color: #cccccc; 
    color: #666666; 
    cursor: not-allowed; 
    opacity: 0.6;
}

.dtf-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #fff;
    display: none;
    justify-content: center;
    align-items: center;
}

.dtf-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    /* border: 1px solid #888; */
    width: 100%;
    height: 100%;
    margin-top: 0px;
}

.dtf-modal-close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.top {
    display: flex;
    flex: 1;
    padding: 0 15px;
}

.content {
    max-width: 1500px;
    margin: 0 auto;
    padding-top: 32px;
    flex: 1;
}

.upload-container {
    border: 2px dashed #d3d3d3;
    border-radius: 8px;
    /* width: 600px; */
    padding: 20px;
    text-align: center;
    background-color: #fff;
    margin-bottom: 20px;
}

.upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #00a2ff;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.upload-button:hover {
    background-color: #007acc;
}

.file-info {
    margin-top: 10px;
    color: #666;
}

#errorMessage {
    color: red;
    margin-top: 10px;
    white-space: pre-wrap; /* Preserves line breaks */
}

.generate-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.generate-dtf {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.generate-button {
    background: #56d666;
    box-shadow: 0px 4px 14px rgba(90, 247, 99, 0.29);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 20px 30px;
    border: 1px solid rgba(0, 0, 0, 0);
    border-radius: 50px;
    cursor: pointer;
}

.generate-button:hover {
    background: #51be5e;
}

.generate-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #cccccc;
    color: #666666;
    box-shadow: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.mySlides {
    display: none;
    height: 100%;
    width: 100%;
    position: relative;
}

.mySlides img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border: 1px solid;
}

.slide-img {
    background: 
        linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc),
        linear-gradient(45deg, #ccc 25%, white 25%, white 75%, #ccc 75%, #ccc);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

.numbertext {
    color: #333;
    font-size: 12px;
    padding: 8px 12px;
    text-align: left;
    position: absolute;
    z-index: 1;
  }


.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    user-select: none;
    text-decoration: none;
    z-index: 2;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.next {
  right: 0;
}

.prev {
  left: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
  }
  
  .active, .dot:hover {
    background-color: #717171;
  }

  .fade {
    animation-name: fade;
    animation-duration: 0.5s;
  }
  
  @keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
  }

.info {
    margin-bottom: 10px;
    font-size: 12px;
    color: #007ad2;
}

#fileCardsContainer {
    margin-left: -6px;
    margin-right: -6px;
    display: flex;
    flex-grow: 0;
    flex-shrink: 0;
    align-items: normal;
    justify-content: flex-start;
    flex-flow: wrap;
    flex-wrap: wrap;
}

.file-card {
    border: 1px solid #d3d3d3;
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.file-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin-bottom: 10px;
}

.invalid-range-error-message {
    display: flex;
    justify-content: center;
}
.input-error-message {
    
    visibility: hidden;
    border: 1px solid rgba(0, 0, 0, 0);
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    font-size: 16px;
    background-color: #fff1ef;
    border-color: #faafa8;
    color: #d61106;
    border-radius: 4px;
    padding: 3px 4px;
  }

.input-error-message.visible {
    visibility: visible;
    opacity: 1;
}

.input-container {
    margin: 10px 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-container label {
    font-size: 0.9em;
    color: #333;
}

.pcs-input, .size-input {
    width: 70%;
    padding: 5px;
    border: 1px solid #d3d3d3;
    border-radius: 4px;
}


/* Antigro style */
.parent {
    box-sizing: border-box;
    padding: 6px; /* Space between cards */
    flex: 1 1 calc(25% - 12px); /* Default to 4 columns */
    max-width: calc(25% - 12px); /* Ensures cards don't exceed this width */
}

/* Media query for screens less than or equal to 1200px */
@media (max-width: 1200px) {
    .parent {
        flex: 1 1 calc(33.333% - 12px); /* Switch to 3 columns */
        max-width: calc(33.333% - 12px);
    }
}

/* Media query for screens less than or equal to 992px */
@media (max-width: 992px) {
    .parent {
        flex: 1 1 calc(50% - 12px); /* Switch to 2 columns */
        max-width: calc(50% - 12px);
    }
}

/* Media query for screens less than or equal to 768px */
@media (max-width: 650px) {
    .parent {
        flex: 1 1 calc(100% - 12px); /* Switch to 1 column */
        max-width: calc(100% - 12px);
    }
}

.parent-container {
    box-sizing: border-box;
    flex: 1;
    padding-bottom: 12px;
}
.parent-section {
  user-select: none;
    border: 1px solid #e6ecf0;
    box-sizing: border-box;
    box-shadow: 0px 1px 2px rgba(205, 221, 231, 0.5);
    border-radius: 4px;
    color: #1c4f74;
    height: 100%;
    padding: 10px;
    position: relative;
}


.image-thumb {
  height: 160px;
  width: 100%;
  padding: 10px;
  margin: -10px 0 10px -10px;
  background: #e3e3e3;
  background: linear-gradient(0deg, #c4c4c4, #e3e3e3);
  position: relative;
}

.image-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    height: 100%;
    width: 100%;
}

.image-mask {
  position: absolute;
  z-index: 1;
  height: 100%;
  width: 100%;
}

.image-label {
  border-radius: 4px;
  text-align: right;
  position: absolute;
  bottom: 3px;
  left: 3px;
  right: 3px;
  color: rgba(255, 255, 255, .8);
  white-space: nowrap;
  overflow: hidden;
  font-size: .8em;
  max-height: calc(100% - 14px);
}

.image-name {
  display: inline-block;
  background-color: rgba(0, 0, 0, .5);
  border-radius: 4px;
  padding: 4px 8px;
}

.number-of-image {
    box-sizing: border-box;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    border: 1px solid #d6dae0;
    box-shadow: 0px 1px 2px rgba(205, 221, 231, 0.5);
    border-radius: 5px;
    display: flex;
    height: 40px;
    padding: 0 5px;
    min-width: 140px;
    flex: 1;
}

.icon-primary {
  fill: #38a7f7;
   cursor: pointer;
}

.image-sizes {
  margin-bottom: 10px;
}
input[type="text"].input-value {
     background-color: rgb(135 135 135 / 0%);
    border: 0;
    color: #1c4f74;
    width: 100%;
    outline: none;
    padding: 10px 4px;
    margin-bottom: 0px;
}

.input-container {
  margin-bottom: 20px;
}

.numberOfImage {
    margin-right: 8px;
}

.dimension-action {
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;

}

.preserve-ratio {
  display: flex;
  align-items: center;
  cursor: pointer;
  fill: #38a7f7;
}

.preserve-ratio:hover {
  color: #38a7f7;
  text-decoration: underline;
}

.preserve-ratio > svg {
  margin-left: 3px;
}

.dimensions {
  display: flex;
    align-items: center;
    margin-bottom: 2px;
}

.dimensions-label {
    padding-right: 10px;
    font-size: 14px;
    min-width: 70px;
}

.precision-number {
    position: relative;
    width: 100%;
 }

 input[type="text"].precision-number-input  {
      background-color: #fff;
    border: 1px solid #d6dae0;
    border-radius: 4px;
    box-sizing: border-box;
    box-shadow: 0px 1px 2px rgba(205, 221, 231, 0.5);
    color: #1c4f74;
    outline: none;
    height: 40px;
    padding: 0 5px 0 5px;
    position: relative;
    width: 100%;
    margin-bottom: 0px;
}

.precision-number-up, 
.precision-number-down {
    background-color: #ccc;
    cursor: pointer;
    position: absolute;
    width: 16px;
    height: 16px;
    right: 3px;
    opacity: .5;
}

.height-precision-number-up,
.height-precision-number-down  {
    background-color: #ccc;
    cursor: pointer;
    position: absolute;
    width: 16px;
    height: 16px;
    right: 3px;
    opacity: .5;
}

.height-precision-number-up::after {
    content: "";
    display: block;
    border-color: #000 rgba(0, 0, 0, 0);
    border-style: solid;
    border-width: 0px 5px 5px 5px;
    height: 0px;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto auto;
    width: 0px;
    top: 5px;
}

.height-precision-number-down::after {
    content: "";
    display: block;
    border-color: #000 rgba(0, 0, 0, 0);
    border-style: solid;
    border-width: 5px 5px 0px 5px;
    height: 0px;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto auto;
    width: 0px;
    bottom: 5px;
}


.precision-number-up::after {
    content: "";
    display: block;
    border-color: #000 rgba(0, 0, 0, 0);
    border-style: solid;
    border-width: 0px 5px 5px 5px;
    height: 0px;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto auto;
    width: 0px;
    top: 5px;
}

.precision-number-down::after {
    content: "";
    display: block;
    border-color: #000 rgba(0, 0, 0, 0);
    border-style: solid;
    border-width: 5px 5px 0px 5px;
    height: 0px;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto auto;
    width: 0px;
    bottom: 5px;
}

.precision-suffix {
    position: absolute;
    right: 26px;
    top: 13px;
    color: rgba(164, 187, 202, 0.5);
    pointer-events: none;
    font-size: 14px;
    max-width: 40%;
}

.dpi-container {
    margin-bottom: 10px;
    margin-left: 80px;
}


.dpi-high-quality {
    background-color: #f5fff5;
    color: #00a80e;
    border-color: #cae9ca !important;
}

.dpi-medium-quality {
    background-color: #f3e4da;
    color: #d66b0d;
    border-color: #e79e5e !important;
}

.dpi-low-quality {
    background-color: #fff1ef;
    color: #d61106;
    border-color: #faafa8 !important;
}

.dpi-label {
    border: 1px solid rgba(0, 0, 0, 0);
    border-radius: 4px;
    display: inline-block;
    padding: 3px 4px;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.actions {
    align-items: center;
    background-position: left center;
    background-repeat: no-repeat;
    color: #999;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    margin-right: 6px;
    padding: 11px 0px 11px 0;
}

.actions:hover {
  color: #333;
}

.icon-active {
  fill: #bababa;
  cursor: pointer;
}

.icon-active:hover {
  fill: #38a7f7;
}