/* 🌸 Global background to match intro */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  min-height: 100vh;
  font-family: 'Playfair Display', 'Georgia', serif;
  background: linear-gradient(135deg, #fdf6f0, #e6dada);
  text-align: center;
}

/* 🌸 Title styling */
#main-title {
  font-family: 'Dancing Script', cursive;
  font-size: 5rem;
  font-weight: 400;
  color: #6d4c41;
  margin: 30px 0 10px 0;
  letter-spacing: 2px;
}

/* 🌸 Container styling */
#canvas-container, #ui-container, #top-ui-container {
  max-width: 900px;
  margin: 20px auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 20px;
  text-align: left;
  position: relative;
}

/* 🌸 Subtle lace-like gradient border */
#canvas-container::before,
#ui-container::before,
#top-ui-container::before {
  content: "";
  position: absolute;
  top: -12px; left: -12px;
  right: -12px; bottom: -12px;
  border-radius: 24px;
  background-image: radial-gradient(circle, #e6cfc4 20%, transparent 20%),
                    radial-gradient(circle, #e6cfc4 20%, transparent 20%);
  background-size: 12px 12px;
  background-position: 0 0, 6px 6px;
  z-index: -1;
}

/* 🌸 UI layout */
#ui-container, #top-ui-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ui-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.ui-row > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* 🌸 Sliders */
input[type=range] {
  -webkit-appearance: none;
  width: 100px;
  height: 4px;
  background: #d7b2a3;
  border-radius: 5px;
  outline: none;
  margin: 4px;
  accent-color: #d7b2a3;
}

input[type=range]::-webkit-slider-thumb,
input[type=range]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #a1887f;
  cursor: pointer;
  border: none;
}

/* 🌸 Disabled state */
input[type=range]:disabled {
  background: #ddd;
  opacity: 0.5;
}
input[type=range]:disabled::-webkit-slider-thumb,
input[type=range]:disabled::-moz-range-thumb {
  background: #aaa;
}

/* 🌸 Form elements */
input[type=color],
input[type=text],
select {
  margin: 4px;
  padding: 4px;
  border-radius: 6px;
  border: 1px solid #c7bbb2;
}

/* 🌸 Buttons */
button {
  background-color: #a1887f;
  color: white;
  border: none;
  padding: 6px 12px;
  margin: 4px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Quicksand', 'Arial', sans-serif;
  font-weight: 600;
}

button:hover {
  background-color: #8d6e63;
}

/* 🌸 Label text */
div {
  font-size: 14px;
  margin: 7px;
  font-family: 'Quicksand', 'Arial', sans-serif;
  color: #5c5c5c;
}

/* 🌸 Loading screen */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #fdf6f0, #e6dada);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  z-index: 1000;
}

#loading-screen h1 {
  font-size: 4rem;
  font-family: 'Dancing Script', cursive;
  color: #6d4c41;
  margin-bottom: 0.5rem;
}

#loading-screen p {
  font-size: 3.1rem;
  font-family: 'Dancing Script';
  color: #5f4740;
  opacity: 0.8;
}

   .launch-button {
      padding: 14px 32px;
      font-size: 1rem;
      font-weight: 600;
      background-color: #a1887f;
      color: white;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-family: 'Quicksand', sans-serif;
      transition: background-color 0.3s ease;
      margin: 20px;
    }

    .launch-button:hover {
      background-color: #8d6e63;
    }

    .button-container2 {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 999;
}

.launch-button2 {
  padding: 12px 24px;
  font-size: 1rem;
  background-color: #a1887f;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Quicksand', sans-serif;
  transition: background-color 0.3s ease;
}

.launch-button2:hover {
  background-color: #8d6e63;
}
