h1 {
  margin: 40px auto 30px;
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  text-align: center;
}


#dropzone {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  border: 2px dashed #999;
  background: #fff;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

canvas {
  display: block;
  margin: 20px auto;
  max-width: 100%;
  border: 1px solid #ccc;
}

#controls {
  max-width: 700px;
  margin: 20px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

button, input[type='text'], input[type='range'], select {
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

button {
  background: #007bff;
  color: #fff;
  cursor: pointer;
}

button:hover {
  background: #0056b3;
}

@media (max-width: 600px) {
  #controls {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Handles style */
.handle {
  width: 18px;
  height: 18px;
  background: #007bff;
  border: 3px solid #fff;
  border-radius: 4px;
  cursor: pointer;
  touch-action: none;
  user-select: none;
}

.rotate-handle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ff5722;
  border: 4px solid #fff;
  cursor: grab;
  box-shadow: 0 0 12px 4px rgba(255, 87, 34, .9);
  touch-action: none;
  user-select: none;
}

/* Header */
header {
  width: 100%;
  background: #1a1a2e;
  border-bottom: 1px solid #3a3a5e;
  padding: 12px 24px;
  text-align: center;
}

header a {
  font-family: 'Nova Flat', cursive;
  font-size: 22px;
  color: #ffd700;
  text-decoration: none;
}

header a:hover {
  text-decoration: none;
}

p {
  font-size: 20px;
  text-align: center;
}

/* Main content */
main {
  flex: 1;
  width: 100%;
  max-width: 700px;
  margin: 0 auto 300px;
  padding: 3rem 1rem;
  background: #394555;
  color: #000;
  border-radius: 16px;
  border: 1px solid #3a3a5e;
  box-shadow: 0 8px 24px rgb(0 71 171 / .15);
}

