body {
  font-family: Arial, sans-serif;
  padding: 20px;
}

.main-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
  display: flex;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e1e1e1;
  margin-top: 190px;
}

.left-section {
  margin-right: 0;
  width: 60%;
}

.left-section h2 {
  margin-bottom: 20px;
}

.image-preview {
  flex-wrap: wrap;
  display: flex;
  align-items: center;
}

.image-box {
  border: 1px solid #ccc;
  padding: 0 10px;
  background-color: #f0f0f0 !important;
  border-radius: 8px;
  width: 100%;
  text-align: center;
}

.image-box .remove-btn {
  padding: 5px 10px;
  font-size: 14px;
  color: #000;
  background-color: #f8f8f8 !important;
}

.image-box .remove-btn:hover {
  background-color: #e6e6e6 !important;
}

.image-box .duplicate-btn:hover {
  background-color: #e6e6e6 !important;
}

.image-box .duplicate-btn {
  padding: 5px 10px;
  font-size: 14px;
  color: #000;
  background-color: #f8f8f8 !important;
}

.image-box > div > div {
  display: flex;
  flex-direction: column;
}

.button_container {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #a7a7a7;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.size-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-top: 1px solid #a7a7a7;
  border-bottom: 1px solid #a7a7a7;
}

.image-preview {
  row-gap: 10px;
}

.size-container > div {
  display: flex;
  flex-direction: column;
}

.image-box div:nth-child(3) span {
  text-align: start !important;
}

.image-box div:nth-child(3) input {
  width: 90%;
}

.size-container:nth-child(3) {
  display: flex;
  flex-direction: column;
}

s .image-box img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 10px;
}

.image-box input {
  width: 80px;
  border: 1px solid black;
  border-radius: 4px;
  outline: none;
}

.image-box button {
  padding: 5px 15px;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid gray;
  color: #fff;
}

.duplicate-btn {
  background-color: gray !important;
  margin-left: 5px;
}

.remove-btn {
  background-color: gray !important;
}

.dpi-info {
  font-size: 12px;
  color: #555;
  margin-top: 5px;
}

.right-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 500px;
  width: 100%;
  /* background: yellow; */
  height: 100%;
  border: 1px solid #e1e1e1;
  border-radius: 10px;
  padding: 10px 15px;
}

.canvas-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: end;
  align-items: center;
  margin-bottom: 20px;
}

.file-name {
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 14px;
  display: inline-block;
  max-width: 150px;
  /* Set a max width for the file name */
  white-space: nowrap;
  /* Prevent wrapping */
  overflow: hidden;
  /* Hide the overflow */
  text-overflow: ellipsis;
  /* Show ellipsis when the text overflows */
  vertical-align: middle;
}

.canvas-container canvas {
  border: 2px solid black;
  display: none;
  /* max-width: 480px; */
  width: 100%;
  /* background-image: url(http://127.0.0.1:8000/static/images/background96.jpg); */
  background-image: url(https://gangsheet.heattransfers.com/static/images/checkerd_bg.jpg);
  background-size: 430px 430px;
  background-repeat: repeat;
  /* Repeat both horizontally and vertically */
  background-position: top left;
  /* Start repeating from the top-left corner */
  padding: 10px;
  margin: 0 auto;
  border-radius: 8px;
}

/* p-3 rounded shadow border border-secondary */

.canvas-controls {
  margin-bottom: 20px;
}

.canvas-controls input {
  margin: 0 10px;
  width: 60px;
}

.canvas-count {
  margin-top: 10px;
  font-size: 18px;
  color: #333;
}

.nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  width: 100%;
}

.width_input {
  text-align: center;
}

.height_input {
  text-align: center;
}

.nav-buttons button {
  padding: 8px 15px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 120px;
  font-size: 14px;
}

button.save-btn,
button.update-canvas-btn {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.height-width {
  display: flex;
}

.margin {
  margin-top: 20px;
  margin-right: auto;
}

.canvas-btn {
  margin-top: 20px;
}

.left-section > input {
  background-color: transparent;
  transition: 0.5s;
}

.image-box {
  position: relative;
  display: inline-block;
  border: 1px solid #ddd;
  padding: 10px;
  margin: 0 10px !important;
  background-color: #f9f9f9;
  width: 265px;
}

.img-tag {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.img-div {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100% !important;
}

.close-btn-container {
  position: absolute;
  top: 5px;
  right: 5px;
}

.close-btn {
  color: #000 !important;
  background: #f8f8f8 !important;
  font-size: 20px;
  cursor: pointer;
  border: 1px solid gray !important;
}

.close-btn:hover {
  /* color: rgb(7, 7, 7); */
  background-color: #000 !important;
  color: white !important;
}

.resolution-bar {
  background-color: red;
  color: white !important;
  border-radius: 0.25rem;
  padding: 5px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}

.size-container {
  margin-top: 10px;
  padding-bottom: 8px;
}

.copies-container {
  display: flex;
  align-items: center;
  margin-top: 10px;
  justify-content: space-between;
  border-bottom: 1px solid #a7a7a7;
  padding-bottom: 8px;
}

.minus-btn,
.plus-btn {
  background-color: #f8f8f8 !important;
  border: none !important;
  padding: 5px 10px !important;
  cursor: pointer !important;
  font-size: 18px !important;
  color: black !important;
  border: 1px solid gray !important;
}

button.minus-btn,
.plus-btn {
  margin: 0;
  padding: 3px 13px;
  background: #f8f8f8 !important;
  border: 0;
  color: black !important;
  line-height: 20px;
  display: flex;
  height: 25px;
  cursor: pointer !important;
  width: 25px;
  align-items: center;
  justify-content: center;
  border: 1px solid gray !important;
}

button.minus-btn:hover,
.plus-btn:hover {
  background-color: black !important;
  color: white !important;
}

.copies-container button:hover {
  background: #e23f3a;
}

.copies-display {
  font-size: 16px;
  /* font-weight: bold; */
}

.copies-display {
  font-size: 16px;
  /* font-weight: bold; */
  -moz-appearance: textfield;
  /* For Firefox */
}

.copies-display::-webkit-inner-spin-button,
.copies-display::-webkit-outer-spin-button {
  -webkit-appearance: none;
  /* For Chrome and Safari */
  margin: 0;
}

.header-wrp p {
  text-align: center;
  padding: 10px;
  border-bottom: 1px solid #c7c8c9;
}

.header-wrp {
  position: fixed !important;
  top: 0px;
  z-index: 1000 !important;
  background: white;
  width: 100%;
  padding-top: 20px;
}

.button-container {
  display: flex;
  justify-content: space-between;
  /* Align items to the left by default */
  align-items: center;
  margin-top: 12px;
  /* padding-bottom: 20px; */
}

.file-upload {
  margin-left: 10px;
  /* Add spacing between file upload buttons */
  width: 220px;
}

#add-to-cart-btn,
#create-canvas-button {
  background-color: rgba(250, 59, 3, 1);
  padding: 8px 20px;
  color: #fff;
  border-radius: 0.25rem;
  width: 265px;
  font-size: 20px;
  margin-left: 10px;
  border-radius: 4px;
}

.file-upload-label {
  background-color: rgba(250, 59, 3, 1);
  padding: 8px 20px;
  color: #fff;
  border-radius: 0.25rem;
  width: 265px;
  font-size: 20px;
  margin-left: 10px;
  cursor: pointer;
  border-radius: 4px;
  position: relative;
  right: 55px;
}

#add-to-cart-btn-2 {
  background-color: rgba(250, 59, 3, 1);
  padding: 8px 20px;
  color: #fff;
  border-radius: 0.25rem;
  margin-top: 15px;
  margin-left: 0px;
  font-size: 20px;
  width: 265px;
  border-radius: 4px;
}

.left-right-icon {
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: space-between;
  width: 100%;
}

.arrow-btn {
  padding: 5px 10px;
  border-radius: 8px;
  border: 2px solid #e9e9e9;
}

.header-image {
  width: 100px;
  height: auto;
  margin: 0 auto;
}

.header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.print-file-name-container {
  margin-bottom: 0px !important;
}

.copy-options-container,
.print-file-name-container {
  flex-direction: row !important;
}

.copy-options-container input,
.print-file-name-container input {
  width: auto !important;
}

.copy-options-container label,
.print-file-name-container label {
  font-size: 10px;
}

.image-preview .image-box {
  margin-left: 0px !important;
}

.canvas-container canvas {
  margin-right: 0px;
  margin-top: 5px !important;
}
button:disabled {
  pointer-events: none;
  opacity: 0.6;
  cursor: default;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px 0;
}

.pagination a,
.pagination span.dots {
  color: black;
  padding: 8px 12px;
  text-decoration: none;
  transition: background-color 0.3s;
  border-radius: 4px;
  font-family: sans-serif;
  font-size: 14px;
}

.pagination a {
  background-color: white;
  border: 1px solid #ccc;
  cursor: pointer;
}

.pagination a.active {
  background-color: black;
  color: white;
  border: 1px solid black;
}

.pagination a:hover:not(.active) {
  background-color: #eee;
}

.pagination .dots {
  background-color: transparent;
  cursor: default;
  border: 1px solid transparent;
  color: #999;
  display: inline-block;
  user-select: none;
}

input[type="radio"] {
  accent-color: #232323;
}
input[type="checkbox"] {
  accent-color: #232323;
}
.spinner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* gap: 10px; */
}
.btn-container {
  display: flex;
}

@media (max-width: 1440px) {
  .right-section {
    max-width: 40%;
  }

  .image-preview {
    gap: 10px;
  }
}
@media (max-width: 1279px) {
  .image-box {
    width: calc(33.33% - 10px);
    margin-right: 0 !important;
  }
}

@media (max-width: 1199px) {
  .image-box {
    width: 48%;
  }
}

@media (max-width: 991px) {
  .image-box {
    width: 47%;
  }

  .size-container,
  .copies-container span {
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .left-section,
  .right-section {
    width: 100%;
    max-width: 100%;
  }

  .canvas-container canvas {
    max-width: 100%;
  }

  .image-box {
    width: calc(50% - 10px);
    margin-right: 0 !important;
  }

  .image-preview {
    gap: 10px;
  }

  button#prevBtn {
    margin-left: 0 !important;
  }

  .left-right-icon {
    margin-top: 10px;
  }

  button#prevBtn2 {
    margin-left: 0 !important;
  }

  .canvas-count {
    font-size: 14px;
  }

  .nav-buttons button {
    flex: 1;
    width: 100%;
  }

  .nav-buttons {
    gap: 10px;
  }
  #add-to-cart-btn,
  #create-canvas-button {
    flex: 1;
    margin-right: 10px;
  }
  .btn-container {
    display: block !important;
    width: 100% !important;
  }
}

@media (max-width: 479px) {
  .image-box {
    width: 100%;
  }

  .image-preview {
    flex-direction: column;
  }
  .btn-container {
    display: block !important;
    width: 100% !important;
  }
}

@media (min-width: 100px) and (max-width: 576px) {
  #add-to-cart-btn-2 {
    padding: 8px 20px;
    color: #fff;
    border-radius: 0.25rem;
    margin-top: 15px;
    margin-left: 0px;
    font-size: 20px;
    width: 100%;
  }
  .arrow-btn,
  #prevBtn,
  #nextBtn {
    flex: initial;
  }
  .button-container {
    flex-wrap: wrap;
    padding-right: 20px !important;
    /* margin-top: 0px !important; */
  }
  .file-upload-label {
    width: 100%;
    margin-left: 0px;
    position: relative;
    top: 5px;
    text-align: center;
    right: 0px;
  }
  #add-to-cart-btn,
  #create-canvas-button {
    width: 100%;
    margin-right: 0px;
    margin-left: 0px;
    text-align: center;
    margin-top: 0.25rem !important;
  }
  .left-section,
  .right-section {
    margin-top: 15px;
  }
  .header-wrp {
    /* padding-top: 0px !important; */
    width: -webkit-fill-available;
  }
  .main-container {
    margin-top: 330px !important;
  }
  .btn-container {
    display: block !important;
    width: 100% !important;
  }
  .radio-btn {
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
  }
}

@media (min-width: 576px) and (max-width: 1050px) {
  .nav-buttons button {
    width: 100%;
  }
  .arrow-btn,
  #prevBtn,
  #nextBtn {
    flex: initial;
  }
  .left-section,
  .right-section {
    margin-top: 15px;
  }
  /* .btn-container {
    display: block !important;
    width: 100% !important;
  } */
}
@media (min-width: 768px) and (max-width: 1024px) {
  .nav-buttons {
    flex-direction: column !important;
  }
  #add-to-cart-btn,
  #create-canvas-button,
  .file-upload-label {
    width: fit-content;
  }
}

@media (min-width: 100px) and (max-width: 430px) {
  .nav-buttons {
    flex-direction: column !important;
  }
}

@media (min-width: 768px) and (max-width: 840px) {
  .resolution-bar {
    height: 45px !important;
  }
}

.modal {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.5);
  padding-top: 100px;
}

/* Modal Box */
.modal-content {
  background-color: #fff;
  border-radius: 12px;
  width: 400px !important;
  max-width: 400px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease;
  margin: auto;
}

/* Header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
}

.close {
  font-size: 24px;
  cursor: pointer;
  color: #aaa;
}

.close:hover {
  color: #000;
}

/* Body */
.modal-body {
  display: flex;
  flex-direction: column;
}

.modal-body label {
  font-weight: 500;
  margin-bottom: 8px;
}

.modal-body input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

/* Footer */
.modal-footer {
  margin-top: 20px;
  text-align: right;
}

.save-btn1 {
  background-color: rgba(250, 59, 3, 1) !important;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.save-btn1:hover {
  background-color: black !important;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
