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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    padding: 5px;
    margin-top: -28px;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 0;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.logo {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
}

.main-content {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.join-box h2,
.main-content h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #667eea;
    font-size: 1.8rem;
}

#joinForm,
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

input[type="text"],
input[type="password"],
input[type="number"],
textarea,
select {
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1.1rem;
    transition: all 0.3s;
    width: 100%;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

.btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    color: #999;
    font-weight: bold;
}

.admin-links {
    display: flex;
    gap: 15px;
    flex-direction: column;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    color: white;
}

@media (max-width: 600px) {
    .features {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .main-content {
        padding: 20px 15px;
    }
    
    .header {
        margin-bottom: 15px;
        padding: 15px 10px;
    }
    
    .game-pin {
        font-size: 2.2rem;
        letter-spacing: 4px;
        padding: 10px 0;
    }
    
    .waiting-room {
        padding: 20px 15px;
        height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    .waiting-room h1 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    .question-container {
        padding: 15px 10px;
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }
    
    .question-text {
        font-size: 1.2rem;
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .player-view {
        padding: 10px;
        height: calc(100vh - 80px);
        max-height: calc(100vh - 80px);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }
    
    .player-instruction {
        font-size: 1rem;
        padding: 12px;
        margin-bottom: 15px;
        flex-shrink: 0;
    }
    
    .player-answers-grid {
        gap: 12px;
        max-width: 100%;
        flex: 1;
        display: grid;
        align-content: start;
    }
    
    .player-answer-btn {
        padding: 25px 12px;
        font-size: 1rem;
        min-height: 70px;
    }
    
    .player-answer-btn .answer-icon {
        font-size: 2rem;
    }
    
    .player-answer-btn .answer-text {
        font-size: 0.95rem;
    }
    
    /* True/False buttons mobiel */
    .tf-btn {
        padding: 30px 15px !important;
        font-size: 1.1rem !important;
        min-height: 80px;
    }
    
    /* Slider mobiel */
    .slider-container {
        padding: 15px 10px;
    }
    
    .slider-value-display {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    #sliderInput {
        height: 50px;
        margin: 15px 0;
    }
    
    .slider-range {
        font-size: 0.9rem;
        margin-top: 10px;
    }
    
    /* Order vragen mobiel */
    .order-item-v3 {
        padding: 12px;
        margin-bottom: 10px;
        font-size: 0.95rem;
    }
    
    .num-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    /* Buttons */
    .btn-primary {
        padding: 12px 20px;
        font-size: 1rem;
        margin-top: 15px;
    }
    
    /* Results en Leaderboard */
    .result-message {
        font-size: 1.4rem;
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .points-display {
        font-size: 1.6rem;
        padding: 12px;
    }
    
    .leaderboard-item {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    /* Header speler scherm */
    .player-header {
        padding: 10px 15px !important;
        font-size: 0.9rem !important;
    }
}

.feature {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.feature h3 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.feature p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Game screen styles */
.game-container {
    width: 100%;
    max-width: 1750px;
    margin: 0 auto;
    padding: 10px 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.game-header {
    background: white;
    border-radius: 15px;
    padding: 15px 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.timer {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
    min-width: 100px;
    text-align: center;
}

.score {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.question-container {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-height: auto;
}

.question-text {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
}

.answers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.answer-btn {
    padding: 40px 20px;
    border: none;
    border-radius: 15px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    position: relative;
    overflow: hidden;
}

.answer-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.answer-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.answer-btn.red {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.answer-btn.blue {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.answer-btn.yellow {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.answer-btn.green {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.answer-btn.correct {
    animation: correctPulse 0.5s;
}

.answer-btn.incorrect {
    animation: incorrectShake 0.5s;
    opacity: 0.5;
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes incorrectShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.media-container {
    margin-bottom: 30px;
}

.youtube-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.youtube-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.image-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.image-container img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

.video-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-container video {
    width: 100%;
    height: auto;
    max-height: 400px;
    display: block;
}

.spotify-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.spotify-container iframe {
    width: 100%;
    border-radius: 12px;
}

.leaderboard {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.leaderboard h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #667eea;
    font-size: 2rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    background: #f8f9fa;
    transition: all 0.3s;
}

.leaderboard-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.leaderboard-rank {
    font-size: 1.5rem;
    font-weight: bold;
    width: 50px;
    text-align: center;
}

.leaderboard-rank.first {
    color: #f39c12;
}

.leaderboard-rank.second {
    color: #95a5a6;
}

.leaderboard-rank.third {
    color: #cd7f32;
}

.leaderboard-name {
    flex: 1;
    font-size: 1.2rem;
    margin-left: 15px;
}

.leaderboard-score {
    font-size: 1.3rem;
    font-weight: bold;
    color: #667eea;
}

.waiting-room {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.waiting-room h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.game-pin {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
    margin: 20px 0;
    letter-spacing: 8px;
}

.players-waiting {
    margin-top: 30px;
}

.players-waiting h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.players-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.player-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
}

.player-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    animation: slideIn 0.3s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Admin styles */
.admin-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}

.quiz-list {
    display: grid;
    gap: 20px;
}

.quiz-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.quiz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.quiz-card h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.quiz-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.btn-success {
    background: #2ecc71;
    color: white;
}

.btn-success:hover {
    background: #27ae60;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.question-block {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
    transition: all 0.2s;
    cursor: move;
}

.question-block:hover {
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.question-block.dragging {
    opacity: 0.4;
}

.drag-handle-question {
    cursor: grab;
    user-select: none;
}

.drag-handle-question:active {
    cursor: grabbing;
}

.sortable-questions {
    min-height: 100px;
}

.answer-input-group {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.points-feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 30px 50px;
    border-radius: 20px;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: popIn 0.5s ease-out;
    z-index: 9999;
}

@keyframes popIn {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Host screen styling */
.host-question-display {
    background: white;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 1750px;
    width: 1750px;
    margin: 0 auto;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.host-progress {
    margin: 10px;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    color: #667eea;
    padding: 2px 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Media queries voor grotere schermen */
@media (min-width: 1920px) {
    .host-progress {
        font-size: 1.2rem;
    }
    
    .host-question-text {
        font-size: 2.5rem !important;
    }
    
    .host-answer-card .answer-icon {
        font-size: 2.5rem !important;
    }
    
    .host-answer-card .answer-text {
        font-size: 2.0rem !important;
    }
    
    .host-timer {
        font-size: 2rem !important;
    }
}

@media (min-width: 2560px) {
    .host-progress {
        font-size: 1.5rem;
    }
    
    .host-question-text {
        font-size: 1.8rem !important;
    }
    
    .host-answer-card .answer-icon {
        font-size: 3rem !important;
    }
    
    .host-answer-card .answer-text {
        font-size: 2rem !important;
    }
    
    .host-timer {
        font-size: 2.5rem !important;
    }
}

.host-media-container {
    height: 45vh;
    overflow: hidden;
    border-radius: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.host-media-container img,
.host-media-container video {
    height: 100%;
    width: 100%;
    margin: 0;
    display: block;
    object-fit: contain;
}

.host-media-container iframe {
    width: 100%;
    height: 100%;
}

.host-content-right {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 2px 0;
}

.host-question-text {
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    color: #333;
    margin: 0 0 2px 0;
    padding: 0 10px;
    line-height: 1.1;
    flex-shrink: 0;
}

.host-answers-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.host-answer-box {
    aspect-ratio: 1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.host-answers-display {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 0 15px;
    flex: 1;
}

.host-answer-card {
    padding: 14px 10px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    transition: all 0.3s;
}

.host-answer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.host-answer-card .answer-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.host-answer-card .answer-text {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.2;
    flex: 1;
}

.host-bottom-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 10px;
    border-top: 1px solid #e0e0e0;
    background: white;
    flex-shrink: 0;
}
    gap: 8px;
    padding: 6px 10px;
    border-top: 1px solid #e0e0e0;
    background: white;
    margin-top: auto;
}

.host-answer-card .answer-text {
    font-size: 1.5rem;
    font-weight: bold;
    flex: 1;
    word-wrap: break-word;
}

.host-answer-card.true-answer {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.host-answer-card.false-answer {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.host-order-item {
    background: white;
    padding: 20px;
    margin: 10px 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.host-order-item .order-number {
    background: #667eea;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.host-order-item .order-text {
    font-size: 2.3rem;
    color: #333;
}

.host-slider-info {
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    border-radius: 10px;
    margin: 8px auto;
    max-width: 500px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.host-slider-info h3 {
    color: #ffffff;
    margin-bottom: 6px;
    font-size: 1.2rem;
}

/* Results and Leaderboard screens */
.results-screen {
    text-align: center;
    padding: 40px;
}

.result-icon {
    font-size: 6rem;
    margin-bottom: 20px;
}

.result-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.result-title.correct {
    color: #2ecc71;
    text-shadow: 0 2px 8px rgba(46, 204, 113, 0.5);
}

.result-title.incorrect {
    color: #e74c3c;
    text-shadow: 0 2px 8px rgba(231, 76, 60, 0.5);
}

.points-display {
    font-size: 4rem;
    font-weight: bold;
    color: #ffffff;
    margin: 30px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.score-display {
    font-size: 2rem;
    color: #ffffff;
    margin: 20px 0;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.leaderboard-screen {
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #333;
}

.leaderboard-item.is-me {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.leaderboard-item .rank {
    font-size: 1.5rem;
    font-weight: bold;
    min-width: 50px;
    text-align: center;
}

.leaderboard-item .name {
    flex: 1;
    font-size: 1.2rem;
    margin: 0 15px;
    font-weight: 600;
}

.leaderboard-item .score {
    font-size: 1.3rem;
    font-weight: bold;
    color: #667eea;
}

.leaderboard-item.is-me .score {
    color: #ffffff;
}

.host-stats {
    display: flex;
    gap: 5px;
}

.stat-box {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    padding: 4px 7px;
    border-radius: 8px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    min-width: 70px;
}

.stat-number {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1px;
    color: #ffffff;
}

.stat-label {
    font-size: 0.6rem;
    opacity: 1;
    color: rgba(255, 255, 255, 0.95);
}

.host-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.host-timer {
    font-size: 1.4rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    min-width: 120px;
    text-align: center;
    padding: 8px 16px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

/* Pulse animatie voor laatste 5 seconden */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(231, 76, 60, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(231, 76, 60, 0.8);
    }
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.4rem;
}

.btn-success {
    background: #2ecc71;
    color: white;
}

.btn-success:hover {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
}

/* Player screen styling - alleen antwoordknoppen */
.player-view {
    padding: 20px;
}

.player-instruction {
    text-align: center;
    font-size: 1.2rem;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.player-answers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.player-answer-btn {
    padding: 40px 20px;
    border: none;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 120px;
}

.player-answer-btn .answer-icon {
    font-size: 2.5rem;
}

.player-answer-btn .answer-text {
    font-size: 1.1rem;
    line-height: 1.2;
}

.player-answer-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.player-answer-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.player-answer-btn.red {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.player-answer-btn.blue {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.player-answer-btn.yellow {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.player-answer-btn.green {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.player-answer-btn.correct {
    animation: correctPulse 0.5s;
}

.player-answer-btn.incorrect {
    animation: incorrectShake 0.5s;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .features {
        grid-template-columns: 1fr;
    }
    
    .answers-grid {
        grid-template-columns: 1fr;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .question-text {
        font-size: 1.5rem;
    }
}

/* Sortable items voor Order vragen */
.sortable-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sortable-list.mobile-friendly {
    padding: 10px 0;
}

.sortable-item {
    background: white;
    padding: 15px;
    margin: 10px 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid #e0e0e0;
    transition: all 0.2s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    position: relative;
    min-height: 70px;
}

.mobile-item {
    padding: 12px;
    min-height: 90px;
    gap: 12px;
}

.mobile-order-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-right: 10px;
}

.order-btn {
    width: 55px;
    height: 50px;
    border: 3px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 10px;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-weight: bold;
    padding: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.order-btn:active {
    background: #667eea;
    color: white;
    transform: scale(0.95);
}

.order-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #ccc;
    color: #ccc;
}

.item-number {
    background: #667eea;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.item-text {
    flex: 1;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.3;
    word-break: break-word;
}

.drag-handle {
    color: #ccc;
    font-size: 1.5rem;
    cursor: grab;
    padding: 5px;
    flex-shrink: 0;
}

.drag-handle:active {
    cursor: grabbing;
}

.sortable-item.dragging {
    opacity: 0.8;
    background: #667eea;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.sortable-item.dragging * {
    color: white !important;
}

.sortable-item.dragging .item-number {
    background: white;
    color: #667eea !important;
}

.sortable-item.dragging .order-btn {
    border-color: white;
    color: white;
}

.sortable-item.drag-over-top {
    border-top: 4px solid #2ecc71;
    margin-top: 20px;
}

.sortable-item.drag-over-bottom {
    border-bottom: 4px solid #2ecc71;
    margin-bottom: 20px;
}

/* Mobile optimalisaties */
@media (max-width: 768px) {
    .mobile-item {
        min-height: 100px;
        padding: 15px 12px;
    }
    
    .order-btn {
        width: 60px;
        height: 55px;
        font-size: 2rem;
        border-width: 3px;
    }
    
    .item-number {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .item-text {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .drag-handle {
        font-size: 2rem;
        padding: 10px;
    }
    
    .mobile-order-controls {
        gap: 10px;
    }
}

/* Correct answer display */
.correct-answer-box {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.3);
    margin: 30px auto;
    max-width: 600px;
    animation: slideIn 0.5s ease-out;
}

.correct-answer-title {
    color: white;
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.correct-answer-content {
    color: white;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
}

.player-answer-box {
    background: rgba(231, 76, 60, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    border: 2px solid #e74c3c;
}

.player-answer-title {
    color: #e74c3c;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: bold;
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Variant 3: Number Assignment Order Question */
.order-list-v3 {
    max-width: 600px;
    margin: 0 auto;
}

.order-item-v3 {
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.order-item-v3 .item-text-v3 {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

.order-item-v3 .number-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.order-item-v3 .num-btn {
    background: #f8f9fa;
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.order-item-v3 .num-btn:hover {
    background: #e7ecff;
    transform: scale(1.05);
}

.order-item-v3 .num-btn:active {
    transform: scale(0.95);
}

.order-item-v3 .num-btn.selected {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
}

.order-item-v3 .num-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .order-item-v3 {
        flex-direction: column;
        align-items: stretch;
    }
    
    .order-item-v3 .item-text-v3 {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .order-item-v3 .number-buttons {
        justify-content: center;
    }
}

.sortable-item .drag-handle {
    font-size: 1.5rem;
    cursor: grab;
    color: #999;
    touch-action: none;
}

.sortable-item .drag-handle:active {
    cursor: grabbing;
}

.sortable-item .item-number {
    background: #667eea;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

