body {
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background-color: #f0e8ff; /* Lighter, fun purple */
  color: #443355;
  min-height: 100vh;
  box-sizing: border-box;
}
.main-title {
  font-family: 'Caveat', cursive;
  font-size: 4rem;
  color: #6a1b9a; /* Deep purple */
  margin-bottom: 20px;
  padding-bottom: 10px;
  text-align: center;
  position: relative;
  display: inline-block; /* For underline to fit content */
}
.main-title::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px; /* Adjust as needed */
  height: 10px; /* Thickness of squiggle */
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 5 Q 12.5 0, 25 5 T 50 5 T 75 5 T 100 5' stroke='%23e91e63' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 50px 10px; /* Adjust size of squiggle pattern */
}

.container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  background-color: rgba(255,255,255,0.7);
  border-radius: 25px; /* More rounded */
  box-shadow: 0 5px 20px rgba(106, 27, 154, 0.2);
  border: 3px solid transparent;
  border-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' style='fill:none;stroke-width:10;stroke:%23c0a0ff;stroke-dasharray:15 25;stroke-dashoffset:10;stroke-linecap:round;'/%3E%3C/svg%3E") 20 stretch;

}
.controls, .preview-container {
  background-color: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  min-width: 280px;
  border: 2px solid #e0cff7;
  transition: transform 0.2s ease-in-out;
}
.controls:hover, .preview-container:hover {
  transform: translateY(-5px);
}

.controls h2, .preview-container h2 {
  margin-top: 0;
  color: #8e44ad; /* Fun purple */
  border-bottom: 2px dashed #d5b8f3;
  padding-bottom: 10px;
  font-family: 'Caveat', cursive;
  font-size: 2rem;
  text-align: center;
}
.control-group {
  margin-bottom: 18px;
}
.control-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #5a3e6b;
}
.control-group input[type="range"] {
  width: calc(100% - 45px); /* Adjusted for span */
  padding: 0;
  margin: 0;
  vertical-align: middle;
  accent-color: #9b59b6; /* Purple for slider */
}
.control-group input[type="color"] {
  width: calc(100% - 12px);
  padding: 3px;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 5px;
  height: 40px;
}
.control-group span {
  display: inline-block;
  min-width: 30px;
  text-align: right;
  margin-left: 8px;
  color: #8e44ad;
  font-weight: 600;
  vertical-align: middle;
}

.preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#squiggleSvg {
  border: 2px dashed #c0a0ff;
  background-color: #fdfaff;
  background-image:
    linear-gradient(45deg, #eee7ff 25%, transparent 25%),
    linear-gradient(-45deg, #eee7ff 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eee7ff 75%),
    linear-gradient(-45deg, transparent 75%, #eee7ff 75%);
  background-size:20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  border-radius: 10px;
  margin-bottom: 15px;
}
#svgOutput {
  width: 100%;
  min-height: 100px;
  margin-top: 15px;
  font-family: monospace;
  font-size: 0.8em;
  padding: 10px;
  border: 1px solid #d5b8f3;
  border-radius: 8px;
  box-sizing: border-box;
  background-color: #f3e8ff;
  color: #4a0e6b;
}
button {
  background-color: #9b59b6; /* Primary button color */
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 20px; /* More rounded buttons */
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  margin-top: 10px;
  transition: background-color 0.2s, transform 0.1s;
  font-family: 'Poppins', sans-serif;
}
button:hover {
  background-color: #8e44ad;
  transform: scale(1.05);
}
button:active {
  transform: scale(0.98);
}

#randomizeBtn { /* Changed ID from newSeedBtn */
  background-color: #e91e63; /* A contrasting fun color */
  padding: 10px 20px; /* Make it a bit more prominent */
  font-size: 1em;
  width: 100%; /* Make it full width in its group */
  margin-top: 15px;
}
#randomizeBtn:hover {
  background-color: #c2185b;
}
.random-button-group {
  margin-top: 20px; /* Space above the randomize button */
  width: 100%;
}

.button-group {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.tags {
  margin-top: 30px;
  font-size: 0.9em;
  color: #6a1b9a;
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
}