/* General body styles */
body {
  font-family: 'Comic Sans MS', cursive, sans-serif;
  background-color: #f0f0ff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
}

/* Container styling */
.container {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 0 auto;
}

/* Heading styles */
h1,
h2 {
  color: #ff6b6b;
  text-align: center;
  margin: 0 20px;
}

/* Textarea styling */
textarea {
  width: 100%;
  height: 100px;
  border: 2px solid #4ecdc4;
  border-radius: 10px;
  padding: 10px;
  font-size: 14px;
  margin-bottom: 20px;
}

/* Button styling */
button,
.primary-btn {
  background-color: #ff6b6b;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: block;
  margin: 10px auto;
}

button:hover,
.primary-btn:hover {
  background-color: #ff8787;
}

/* Ticket container */
#ticketContainer {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* Ticket styling */
.ticket {
  background-color: #fffacd;
  border: 2px dashed #ff6b6b;
  border-radius: 10px;
  padding: 10px;
  width: 100px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 14px;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    background-color 0.3s;
}

.ticket:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ticket.highlight {
  background-color: #ffd700;
  border-color: #ffa500;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* Winner result styling */
#winnerResult {
  font-weight: bold;
  text-align: center;
  font-size: 36px;
  color: #ff6b6b;
  padding: 20px;
  background-color: #fffacd;
  border-radius: 10px;
  margin-top: 20px;
}

/* Toggle container */
.toggle-container {
  text-align: center;
  margin-bottom: 20px;
}

.hidden {
  display: none;
}

/* Dark theme styles */
.dark-theme {
  background-color: #333;
  color: white;
}

.dark-theme .container,
.dark-theme .ticket {
  background-color: #555;
  color: white;
}

/* Dark theme button styles */
.dark-theme button,
.dark-theme .primary-btn {
  background-color: #ff8c00; /* Lighter vibrant color */
  color: white;
}

.dark-theme button:hover,
.dark-theme .primary-btn:hover {
  background-color: #de7900; /* Slightly darker on hover */
}

.dark-theme #toggleVisualisationBtn {
  background-color: #ff8c00; /* Ensure contrast for the visualisation button */
}

.dark-theme #toggleVisualisationBtn:hover {
  background-color: #de7900; /* Hover contrast for the visualisation button */
}

}

.dark-theme .ticket.highlight {
  background-color: #ff8c00;
  border-color: #ff4500;
}

/* Mode selection */
.mode-selection {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.mode-selection .mode-label {
  margin-right: 10px;
}

.mode-selection label {
  margin: 0 10px;
  cursor: pointer;
}

.mode-selection input[type='radio'] {
  margin-right: 5px;
}

/* Dark theme for mode selection */
.dark-theme .mode-selection {
  color: white;
}

/* Control panel */
.control-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.mode-selection,
.toggle-container {
  margin: 10px 0;
}

/* Button container */
.button-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

#visualisationContainer {
  margin-top: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

#visualisationContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

#wheelCanvas {
  border: 5px solid #4ecdc4;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.dark-theme #toggleVisualisationBtn {
  background-color: #3a7bc8;
}

.dark-theme #toggleVisualisationBtn:hover {
  background-color: #2a6cb8;
}
