* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #00FF00; /* Green screen background for chroma key */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* OBS Mode - Keep green screen background */
body.obs-mode {
    background: #00FF00 !important;
}

body.obs-mode .control-panel {
    display: none !important;
}

body.obs-mode .wheel-container {
    max-width: 650px;
    margin: 0 auto;
}

.container {
    width: 100%;
    max-width: 1400px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Wheel Container */
.wheel-container {
    position: relative;
    flex: 1;
    min-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease-in-out;
}

#wheelCanvas {
    max-width: 600px;
    max-height: 600px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

/* Wheel Pointer - Right side */
.wheel-pointer {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
    border-right: 45px solid #000000;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
    z-index: 10;
}

/* Result Display */
.result-display {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 600px;
    animation: slideIn 0.5s ease-out;
    transition: opacity 0.5s ease-in-out;
}

.result-display.hidden {
    display: none;
}

.result-display h2 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 28px;
}

.result-display p {
    color: #333;
    font-size: 20px;
    line-height: 1.6;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Control Panel */
.control-panel {
    flex: 1;
    min-width: 350px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.control-panel h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 24px;
}

.control-panel h4 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #f1f2f6;
    color: #333;
}

.btn-secondary:hover {
    background: #dfe4ea;
}

/* Settings */
.settings {
    margin-top: 20px;
}

#entriesInput {
    width: 100%;
    padding: 10px;
    border: 2px solid #dfe4ea;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    resize: vertical;
    margin-bottom: 10px;
}

#entriesInput:focus {
    outline: none;
    border-color: #667eea;
}

/* Info Section */
.info {
    margin-top: 20px;
    padding: 15px;
    background: #f1f2f6;
    border-radius: 8px;
}

.info p {
    margin: 10px 0 5px 0;
    font-size: 14px;
    color: #333;
}

.info code {
    display: block;
    background: #2f3542;
    color: #57e389;
    padding: 8px;
    border-radius: 5px;
    font-size: 12px;
    margin-bottom: 10px;
    word-break: break-all;
}

/* Toggle Controls */
.toggle-controls {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #dfe4ea;
}

.toggle-controls label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 10px;
}

.toggle-controls input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
}

/* Spinning Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .wheel-container,
    .control-panel {
        min-width: 100%;
    }
}
