* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
}

h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: #2c3e50;
}

h2 {
  margin-bottom: 1rem;
  color: #3498db;
}

.input-section {
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

textarea {
  width: 100%;
  height: 150px;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 1rem;
  resize: vertical;
  font-size: 1rem;
}

button {
  padding: 0.8rem 1.5rem;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #2980b9;
}

button:disabled {
  background-color: #bdc3c7;
  cursor: not-allowed;
}

.wheel-section {
  margin-bottom: 2rem;
  text-align: center;
}

.wheel-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

canvas {
  width: 100%;
  height: auto;
  display: block;
}

#selector {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 40px solid #e74c3c;
  z-index: 10;
}

.controls {
  margin-top: 1rem;
}

.controls button {
  margin: 0 0.5rem;
}

.result-section {
  padding: 1rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

#result {
  font-size: 1.5rem;
  font-weight: bold;
  min-height: 40px;
  padding: 1rem;
  color: #2c3e50;
}

@media (max-width: 768px) {
  .container {
    width: 95%;
  }

  .controls button {
    margin: 0.5rem;
    width: 80%;
  }
}
