* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 60px;
}

h1 { color: #333; margin-bottom: 5px; }

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 1500px;
    width: 100%;
    margin-top: 15px;
}

/* Invoersectie: 1/3 compacter/smaller gemaakt */
.input-section {
    flex: 0 0 260px;
    min-width: 240px;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

textarea {
    width: 100%;
    height: 100px;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    font-size: 13px;
}

/* Timer instellingen box */
.timer-config {
    background: #eef4ff;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #cce0ff;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.timer-config input[type="number"] {
    width: 55px;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Raderen sectie: verbreed naar 420px */
.wheels-wrapper {
    flex: 1;
    min-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wheels-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
}

.wheel-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wheel-container {
    position: relative;
    width: 420px;
    height: 420px;
}

canvas { width: 100%; height: 100%; }

.pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 24px solid #dc3545;
    z-index: 10;
}

button {
    color: white; border: none; padding: 10px 15px;
    font-size: 14px; border-radius: 6px; cursor: pointer;
    width: 100%; margin-top: 8px; transition: background 0.2s;
}

#spin-btn {
    background-color: #007bff;
    font-size: 20px;
    font-weight: bold;
    padding: 15px;
    margin-top: 20px;
    width: 80%;
}
#spin-btn:hover { background-color: #0056b3; }
#spin-btn:disabled { background-color: #cccccc; cursor: not-allowed; }

/* Modal & Timer display */
.modal {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; background: rgba(0,0,0,0.6);
    justify-content: center; align-items: center; z-index: 100;
}

.modal-content {
    background: white; padding: 30px; border-radius: 15px;
    text-align: center; max-width: 550px; width: 90%;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2); animation: popIn 0.3s ease;
}

@keyframes popIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.results-grid {
    display: flex; gap: 20px; margin: 20px 0; justify-content: center;
}

.result-card {
    flex: 1; background: #f8f9fa; padding: 15px;
    border-radius: 8px; border: 1px solid #dee2e6;
}

.result-title { font-size: 12px; color: #6c757d; text-transform: uppercase; }
.result-text { font-size: 22px; font-weight: bold; color: #007bff; margin-top: 5px; }

/* Timer in Pop-up */
.timer-display {
    display: none; font-size: 40px; font-weight: bold;
    color: #dc3545; margin: 15px 0; background: #fff0f0;
    padding: 10px; border-radius: 10px; border: 2px solid #ffcdd2;
}

hr { border: 0; height: 1px; background: #e0e0e0; margin: 15px 0; }
h3 { margin-top: 0; font-size: 13px; color: #444; }

input[type="text"], select {
    width: 100%; padding: 8px; border: 1px solid #ddd;
    border-radius: 6px; margin-bottom: 8px; font-size: 13px;
}

.btn-primary { background-color: #007bff; }
.btn-success { background-color: #28a745; }
.btn-info { background-color: #17a2b8; width: 48%; }
.btn-danger { background-color: #dc3545; width: 48%; }
.btn-group { display: flex; justify-content: space-between; }

/* Lichtgrijze flying footer - Rechtsonder */
.flying-footer {
    position: fixed !important;
    bottom: 15px !important;
    right: 20px !important;
    left: auto !important;
    transform: none !important;
    background-color: #e9ecef;
    color: #6c757d;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    z-index: 9999 !important;
    pointer-events: none;
    letter-spacing: 0.5px;
}