/**
 * Gender Quiz - Regenbogen Design
 * Pride Progress Flag inspiriert
 */

/* Basis & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Pride Regenbogen Farben */
    --pride-red: #e40303;
    --pride-orange: #ff8c00;
    --pride-yellow: #ffed00;
    --pride-green: #008026;
    --pride-blue: #24408e;
    --pride-purple: #732982;
    
    /* Progress Flag Erweiterungen */
    --pride-white: #ffffff;
    --pride-pink: #fda6d6;
    --pride-lightblue: #73d7ee;
    --pride-brown: #613916;
    --pride-black: #000000;
    
    /* UI Farben */
    --bg-gradient: linear-gradient(135deg, 
        var(--pride-red) 0%, 
        var(--pride-orange) 16.66%, 
        var(--pride-yellow) 33.33%, 
        var(--pride-green) 50%, 
        var(--pride-blue) 66.66%, 
        var(--pride-purple) 100%);
    --text-dark: #333;
    --text-light: #666;
    --success-color: #28a745;
    --error-color: #dc3545;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header */
.quiz-header {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.quiz-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: fadeInDown 0.6s ease;
}

.quiz-header .subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
}
.tdor-banner {
    background: linear-gradient(to bottom,
        #5BCEFA 0% 20%,
        #F5A9B8 20% 40%,
        #FFFFFF 40% 60%,
        #F5A9B8 60% 80%,
        #5BCEFA 80% 100%);
    padding: 0.75rem 1rem;
    text-align: center;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.tdor-banner p {
    margin: 0;
    color: #222;
    font-weight: 600;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}
/* Cards */
.card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: fadeInUp 0.5s ease;
}

.welcome-card, .success-card, .gameover-card {
    text-align: center;
}

.welcome-card h2 {
    color: var(--pride-purple);
    margin-bottom: 1rem;
}

.rules {
    background: #f8f9fa;
    border-left: 4px solid var(--pride-blue);
    padding: 1rem;
    margin: 1.5rem 0;
    text-align: left;
    border-radius: 5px;
}

.rules h3 {
    margin-bottom: 0.5rem;
    color: var(--pride-purple);
}

.rules ul {
    list-style-position: inside;
    margin-left: 1rem;
}

.rules li {
    margin: 0.5rem 0;
}

.reward {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-gradient);
    color: white;
    border-radius: 10px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pride-blue) 0%, var(--pride-purple) 100%);
    box-shadow: 0 4px 15px rgba(103, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(103, 126, 234, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #868f96 0%, #596164 100%);
}

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

.btn-danger {
    background: linear-gradient(135deg, #f85032 0%, #e73827 100%);
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.2rem;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 2rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.progress-info .errors {
    color: var(--pride-pink);
}

.progress-info .timer {
    font-weight: bold;
    color: var(--pride-lightblue);
}

.progress-bar {
    height: 20px;
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

.progress-fill {
    height: 100%;
    background: var(--bg-gradient);
    transition: width 0.5s ease;
    border-radius: 10px;
}

/* Question Card */
.question-card {
    min-height: 400px;
}

#question-text {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--pride-purple);
}

.question-image {
    text-align: center;
    margin: 1.5rem 0;
}

.question-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Answers */
.answers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.answer-btn {
    padding: 1rem;
    border: 2px solid #ddd;
    background: white;
    border-radius: 10px;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.answer-btn:hover:not(:disabled) {
    border-color: var(--pride-blue);
    background: #f0f0ff;
    transform: translateX(5px);
}

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

.answer-btn.correct {
    border-color: var(--success-color);
    background: #d4edda;
}

.answer-btn.wrong {
    border-color: var(--error-color);
    background: #f8d7da;
}

/* Feedback */
.feedback {
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease;
}

.feedback.correct {
    background: #d4edda;
    border-left: 5px solid var(--success-color);
    color: #155724;
}

.feedback.wrong {
    background: #f8d7da;
    border-left: 5px solid var(--error-color);
    color: #721c24;
}

.feedback strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Success Screen */
.success-card h2 {
    color: var(--success-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.stats {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.stats p {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.coordinates-reveal {
    margin: 2rem 0;
}

.coordinates-reveal h3 {
    color: var(--pride-purple);
    margin-bottom: 1rem;
}

.coordinates {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.coords-text {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.location-name {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.hint {
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.coords-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
}

.coords-links .btn {
    flex: 1;
    min-width: 200px;
}

/* Game Over Screen */
.gameover-card h2 {
    color: var(--error-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Timeout & Blocked Screens */
.timeout-card h2,
.blocked-card h2 {
    color: #667eea;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.timeout-card .stats,
.blocked-card .stats {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-left: 5px solid #667eea;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

/* Screens */
.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* Footer */
footer {
    text-align: center;
    color: white;
    margin-top: 3rem;
    padding: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

footer p {
    margin: 0.5rem 0;
}

.visitor-count {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Admin Styles */
.login-card {
    max-width: 400px;
    margin: 5rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--pride-blue);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem 0.5rem;
    }
    
    .quiz-header h1 {
        font-size: 2rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    #question-text {
        font-size: 1.2rem;
    }
    
    .coords-links {
        flex-direction: column;
    }
    
    .coords-links .btn {
        width: 100%;
    }
    
    .btn-large {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .quiz-header h1 {
        font-size: 1.5rem;
    }
    
    .progress-info {
        font-size: 0.9rem;
    }
    
    .answer-btn {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
}