:root {
  --primary: #ff914d;
}

body {
  font-family: Arial, sans-serif;
  background-image: url('background.jpg');
  background-size: cover;
  background-attachment: fixed;
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}
.container {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 600px;
  overflow: hidden;
  text-align: center;
}
.screen {
  padding: 30px;
}
h1 {
  color: #333;
  margin-top: 0;
}
textarea {
  width: 100%;
  height: 200px;
  padding: 10px;
  box-sizing: border-box;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  resize: none;
  font-size: 16px;
}
button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 18px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}
button:hover {
  background-color: var(--primary);
}
button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}
#lottery-screen {
  display: none;
}
.scroll-container {
  position: relative;
  height: 400px;
  overflow: hidden;
  margin: 20px 0;
  border: 2px solid #ddd;
  border-radius: 5px;
}
#values {
  position: absolute;
  width: 100%;
  left: 0;
  opacity: 0;
}
.name {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border-bottom: 1px solid #eee;
}
.center-marker {
  position: absolute;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: var(--primary);
  opacity: 0.2;
  top: 170px;
  pointer-events: none;
  z-index: 10;
}
#winner-display {
  display: none;
  font-size: 40px;
  font-weight: bold;
  color: var(--primary);
  padding: 20px;
  border: 3px solid var(--primary);
  border-radius: 10px;
  margin-top: 20px;
  animation: winner-pulse 1.5s infinite;
  opacity: 0;
  transition: opacity 1s ease;
}
.name.highlight {
  background-color: var(--primary) !important;
  color: #fff !important;
  font-weight: bold;
  opacity: 1 !important;
}
@keyframes winner-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.controls {
  margin-top: 20px;
}
.back-button {
  background-color: #777;
  margin-right: 10px;
}
.back-button:hover {
  background-color: #666;
}