body {
  /*padding-left: 20px;*/
  /*padding-right: 20px;*/
}

#container {
  width: 830px;
  margin: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.col {
  /*width: 100%;*/
}

#header {
  padding-top: 20px;
  text-align: center;
}

#title {
  /*float: left;*/
  max-width: 100%;
  height: auto;
}

#subtitle {
  /*float: left;*/
  /*text-align: center;*/
  /*margin-left: 30px;*/
  /*margin-top: 10px;*/
  font-size: 24px;
  color: #777777;
}

#description {
  margin-bottom: 30px;
}

#description p {
  font-size: 18px;
  margin-top: 0px;
  margin-bottom: 0px;
}

.current-step {
  color: black;
}

.other-step {
  color: #777777;
}

#widthSliderLabel {
  width: 180px; /* Use fixed width so slider doesn't jump back and forth. */
}

#widthSlider {
  vertical-align: middle;
  width: 100%;
  max-width: 400px;
}

#darknessSliderLabel {
  width: 180px; /* Use fixed width so slider doesn't jump back and forth. */
}

#darknessSlider {
  vertical-align: middle;
  width: 100%;
  max-width: 400px;
}

#loader {
  height: 300px;
  /*border: 4px dashed gray;*/
  border-radius: 10px;
  font-size: 20px;
  color: #777777;
  text-align: center;
  padding-top: 100px;
}

#loader p {
  /*margin: auto;*/
}

#loader button {
  overflow: hidden;
  position: relative;
}

#fileBrowser {
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  bottom: 0;
  z-index: 99;
  opacity: 0;
  -moz-opacity: 0;
  cursor: pointer;
}

#toolbar {
  /*	height: 50px;*/
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  padding-top: 6px;
  padding-bottom: 6px;
}

#buttons .btn {
  margin-bottom: 10px;
}

a.btn {
  /* For save buttons which are 'a' elements: */
  color: white;
}

#spinner {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  -webkit-animation: spin 0.75s linear infinite;
  -moz-animation: spin 0.75s linear infinite;
  animation: spin 0.75s linear infinite;
}
@-moz-keyframes spin {
  100% {
    -moz-transform: rotate(360deg);
  }
}
@-webkit-keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
  }
}
@keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

#palette {
  min-height: 70px;
  font-size: 0px;
}

.swatch {
  /*float: left;*/
  display: inline-block;
  margin: 10px;
  width: 50px;
  height: 50px;
  border: 1px solid black;
  border-radius: 10px;
}

.swatch img {
  /*	display: none;*/
  float: right;
  margin: 1px;
  width: 20px;
  height: 20px;
}

.swatch:hover img {
  /*	display: block;*/
}

.swatch img:hover {
  cursor: pointer;
}

.swatch-label {
  background-color: white;
  color: black;
  width: 20px;
  height: 20px;
  font-size: 14px;
  text-align: center;
  /*margin: 2px;*/
  position: relative;
  top: 2px;
  left: 2px;
  border-radius: 2px;
}

#color-info > .btn {
  margin-bottom: 10px;
}

.canvas-container {
  width: 100%;
  height: 100%;
  position: relative;
  padding: 0px;
}

#canvases {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

canvas {
  position: absolute;
  width: 100%;
  height: auto;
}

.sample-point {
  width: 10px;
  height: 10px;
  border-radius: 100%;
  border: 2px solid red;
  position: absolute;
}

#footer {
  padding-top: 30px;
  padding-bottom: 10px;
  /*padding-left: 0px;*/
  /*padding-right: 0px;*/
  color: #777777;
}

/* Visually hidden but accessible (for off-screen headings, labels) */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Small-screen optimizations */
@media (max-width: 576px) {
  #buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  /* Make the whole dropzone feel tappable on mobile */
  #loader {
    cursor: pointer;
  }

  /* Larger tap targets for delete icons */
  .swatch img {
    width: 28px;
    height: 28px;
  }

  /* Avoid fixed label widths on narrow screens */
  #widthSliderLabel, #darknessSliderLabel {
    width: auto;
    display: block;
    margin-bottom: 6px;
  }

  /* Comfortable button height */
  .btn {
    min-height: 44px;
  }
}

/* Murals page typography tweaks */
.murals h1 {
  font-size: 30px;
  line-height: 1.25;
  margin-top: 10px;
  margin-bottom: 16px;
}

.murals h2 {
  font-size: 22px;
  line-height: 1.3;
  margin-top: 28px;
  margin-bottom: 12px;
}

@media (max-width: 576px) {
  .murals h1 { font-size: 24px; }
  .murals h2 { font-size: 20px; }
}
