body {
  font-family: Arial, sans-serif;
  margin: 0;

  background-color: #f8f9fa;
  color: #333;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #000;
  font-size: 30px;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  justify-content: center;
  background: #ffffff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);

}

label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

input[type="file"],
input[type="number"],
select {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
}

canvas {
  border: 2px dashed #aaa;  
  background-color: #fff;
  display: block;
  margin: 0 auto 20px;
  max-width: 100%;
   max-height: 600px;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  cursor: crosshair;

}




table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  overflow: hidden;

}

th,
td {
  padding: 10px 14px;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
}

th {
  background-color: #f0f0f0;
  font-weight: 600;
}

tfoot th {
  background-color: #f9f9f9;
}

.removeBtn {
  padding: 6px 12px;
  background-color: white;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.removeBtn:hover {
  background-color: #c0392b;
}

#downloadBtn,
#shareBtn {
  padding: 8px 16px;
  font-weight: 600;
  background-color: #ff5e14;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

#downloadBtn:hover,
#shareBtn:hover {
  background-color: #2980b9;
}

#downloadMenu,
#shareMenu {
  position: absolute;
  background-color: white;
  border: 1px solid #ccc;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 999;
  border-radius: 6px;
  overflow: hidden;
  min-width: 140px;
}

#downloadMenu div,
#shareMenu div {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}

#downloadMenu div:last-child,
#shareMenu div:last-child {
  border-bottom: none;
}

#downloadMenu div:hover,
#shareMenu div:hover {
  background-color: #f5f5f5;
}

/* ===== Responsive additions for mobile/tablet ===== */

.controls {
  /* keep existing flex-wrap */
  justify-content: center;
}

.controls label {
  /* On desktop: horizontal, but on mobile stack vertically */
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 600px) {

  .controls {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
  }

  .controls label {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 6px;
  }

  input[type="file"],
  input[type="number"],
  select {
    width: 100%;
    box-sizing: border-box;
  }

  /* Buttons container */
  #downloadBtn,
  #shareBtn {
    width: 100%;
    min-width: auto;
    padding: 10px 0;
  }

  #downloadMenu,
  #shareMenu {
    position: relative !important;
    width: 100% !important;
    min-width: auto !important;
    box-sizing: border-box;
  }

  #downloadMenu div,
  #shareMenu div {
    white-space: normal;
  }
}

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 20px;
}

h2 {
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.25rem;
  margin-bottom: 0.75rem;
  color: #000000;
}

p {
  font-size: 1.1rem;
  line-height: 1.25rem;
  margin-bottom: 1rem;
  color: #000000;
}

a {
  color: #3b82f6;
  text-decoration: underline;
}

ol {
  list-style-type: decimal;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  color: #000000;
  font-size: 1.1rem;
  line-height: 1.25rem;
}

ol li {
  margin-bottom: 0.25rem;
}

.note {
  background-color: #2c3e50;
  color: #fff;
  padding: 1rem;
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  font-size: 1.1rem;
  line-height: 1.25rem;
}

.help-section {
  margin: 20px auto;
  max-width: 800px;
}

.help-toggle {
  width: 100%;
  background-color: #2c3e50;
  color: white;
  padding: 12px 16px;
  font-size: 17.6px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
}

.help-toggle:hover {
  background-color: #1a252f;
}

.help-content {
  display: none;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-top: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.help-content h3,
.help-content h4 {
  color: #ff5e14;
}

.help-content ul,
.help-content ol {
  margin-left: 20px;
}

.help-content li {
  margin-bottom: 8px;
  font-size: 17.6px;
}

/* <----------------contact-from---------------------------- */

form {
  margin-top: 24px;
}

.row {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  margin-bottom: 16px;
}

.input-half {
  flex: 1 1 0;
  min-width: 0;
}

.input-full {
  width: 100%;
  margin-bottom: 16px;
}

input[type="text"],
input[type="email"],
textarea {
  background-color: transparent;
  border: 1px solid #4b5563;
  /* gray-600 */
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 16px;
  color: #000;
  font-family: 'Aria', sans-serif;
  resize: none;
  outline-offset: 2px;
  outline-color: transparent;
  transition: outline-color 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
  /* gray-400 */
}

input:focus,
textarea:focus {
  outline-color: #2563eb;
  /* blue-600 */
  border-color: #2563eb;
}

textarea {
  min-height: 200px;
  min-width: auto;
  margin-top: 0;
}

.newbutton {
  background-color: #3742a8;
  /* blue-700 */
  border: none;
  border-radius: 4px;
  color: white;
  font-weight: 600;
  font-size: 18px;
  padding: 10px 20px;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  transition: background-color 0.2s ease;
  margin-top: 20px;
}

.newbutton:hover {
  background-color: #000;
  /* blue-800 */
}

@media (max-width: 640px) {

  .disply-block {
    display: none;
  }

  .input-half {
    flex: 1 1 100%;
  }
}

#zoomControls {

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

}

#zoomControls button {
  padding: 8px 14px;
  background-color: #ff5e14;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#zoomControls button:hover {
  background-color: #0056b3;
}

#zoomControls button:active {
  background-color: #004089;
}

#zoomLevel {
  font-weight: bold;
  color: #333;
  padding-left: 8px;
}

.feedback-container {
  background: #fff;
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  max-width: 800px;
}
.feedback-container input.datatext {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  max-height: 50px;
}

.datatext {
  width: 100%;
  height: 120px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: vertical;
  font-family: inherit;
  box-sizing: border-box;
}

.thank-you {
  margin-top: 15px;
  color: green;
  font-weight: 600;
  display: none;
}

.newbutton {
  margin-top: 12px;
  background: #2c3e50;
  border: none;
  color: white;
  font-size: 16px;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}


#measurementsTable {
  width: 100%;
  border-collapse: collapse;
}

#measurementsTable th {
  background-color: #2c3e50;
  color: white;
}

#measurementsTable th,
#measurementsTable td {
  padding: 8px 12px;
  border: 1px solid #ddd;
  text-align: center;
}

#measurementsTable tbody tr:hover {
  background-color: #f2f9ff;
}

#measurementsTable tfoot th {
  background-color: #f9f9f9;
  font-weight: bold;
}

.removeBtn {
  background: none;
  border: none;
  cursor: pointer;
  color: #d9534f;
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
}

.removeBtn:hover {
  color: #a94442;
}

@media (max-width: 600px) {

  #measurementsTable th,
  #measurementsTable td {
    padding: 6px 8px;
    font-size: 14px;
  }

  .removeBtn {
    font-size: 18px;
  }
}

fieldset {
  all: unset;
  display: block;
}

.containers {
    padding: 30px;
    max-width: 1200px;
    margin: 40px auto;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.heading-main {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #000;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600; 
    margin-top: 30px;
    margin-bottom: 10px;
    color: #000;
}

.paragraph {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.list {
    margin-left: 20px;
    padding-left: 15px;
    color: #444;
    line-height: 1.6;
}

.list li {
    margin-bottom: 10px;
}