/*
  Raffle Prize Chooser CSS
  - This file defines the layout, theming, and styling for the web app.
*/

/* Import custom font */
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

/* Ensure full height for html root */
html {
  height: 100%;
}

/* Basic body styling and center layout */
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to right, #f8f9fa, #e0f7fa);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Card-style container box */
.container {
  background: #ffffff;
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 500px;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

/* Main heading styling */
h1 {
  font-size: 1.5rem;
  margin: 0.5rem 0 1rem;
  color: #00796b;
}

/* Toggle button row */
.theme-toggle {
  margin-bottom: 1rem;
  text-align: right;
  font-size: 0.9rem;
  width: 100%;
  color: #555;
}

/* Layout for participant number input */
.participant-count-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.participant-count-row input {
  width: 80px;
}

/* Label and form field styling */
label {
  font-size: 0.95rem;
  color: #333;
}

input[type="text"],
input[type="number"] {
  padding: 0.5rem;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  margin: 0.25rem;
  flex: 1;
  min-width: 0;
  background: white;
  color: black;
}

/* General button styles */
button {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  margin: 0.5rem;
  background-color: #00796b;
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}

button:hover {
  background-color: #004d40;
}

/* Winner message styles */
#winnerResult {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: #388e3c;
  font-weight: bold;
}

/* Style participant input rows */
#participantForm > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  justify-content: space-between;
}

/* Roulette wheel canvas styling */
#wheelCanvas {
  margin: 1rem auto 0 auto;
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
}

/* Dark mode styles */
body.dark {
  background: linear-gradient(to right, #1e1e1e, #2a2a2a);
}

body.dark .container {
  background: #121212;
  color: #f1f1f1;
}

body.dark input,
body.dark button {
  background-color: #222;
  color: #f1f1f1;
  border-color: #444;
}

body.dark button:hover {
  background-color: #333;
}

body.dark #winnerResult {
  color: #90ee90;
}

body.dark .theme-toggle {
  color: #ccc;
}

body.dark label {
  color: #ccc;
}
