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

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: 
        linear-gradient(rgba(15, 15, 35, 0.8), rgba(26, 26, 46, 0.8), rgba(22, 33, 62, 0.8)),
        url('https://starwarsunlimited.com/_next/image?url=https%3A%2F%2Fcdn.starwarsunlimited.com%2F%2FSWH_05_Article_First_Look_preview_c39646c330.jpg&w=3840&q=75') center/cover no-repeat fixed;
    color: #ffffff;
    min-height: 100vh;
    padding: 10px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px;
}

header {
    text-align: center;
    margin-bottom: 15px;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 1.4em;
    font-weight: 900;
    margin-bottom: 2px;
    color: #ffd700;
    text-shadow: 
        0 0 5px #ffd700,
        0 0 10px #ffd700,
        1px 1px 2px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
    text-transform: uppercase;
}

header p {
    font-size: 0.8em;
    color: #cccccc;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 215, 0, 0.3);
    border-top: 5px solid #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.quiz-container {
    background: 
        rgba(0, 0, 0, .9)
    background-blend-mode: overlay;
    border-radius: 12px;
    padding: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.93);
    border-radius: 8px;
}

.score, .question-counter {
    font-size: 1em;
    font-weight: bold;
}

.score {
    color: #ffd700;
}

.card-display {
    text-align: center;
    margin-bottom: 0px;
}

.card-image-container {
    position: relative;
    display: inline-block;
    margin-bottom: 0px;
}

.card-image {
    max-width: 320px;
    max-height: 420px;
    width: auto;
    height: auto;
    border-radius: 8px;
    border: 2px solid #ffd700;
    transition: filter 0.5s ease;
}

.card-image.blurred {
    filter: blur(8px) brightness(0.7);
}

.reveal-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 215, 0, 0.9);
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.reveal-btn:hover {
    background: rgba(255, 215, 0, 1);
    transform: translate(-50%, -50%) scale(1.05);
}

.questions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .questions {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.question-block {
    background-color: #000;
    background-image: url('https://starwarsunlimited.com/_next/static/media/bg-texture.5f728bcf.png');
    background-size: 600px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 1);
    transition: all 0.3s ease;
}

.question-block.completed {
    background: rgba(0, 255, 0, 0.05);
    border-color: rgba(0, 255, 0, 0.3);
}

.question-block.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.question-block.collapsed {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    border-color: rgba(255, 255, 255, 0.05);
}

.question-result-collapsed {
    margin-top: 0px;
}

.question-result-collapsed h4 {
    color: #ffd700;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.result-summary {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.9em;
}

.your-answer {
    color: #cccccc;
}

.your-answer.correct {
    color: #00ff00;
}

.your-answer.incorrect {
    color: #ff6666;
}

.correct-answer {
    color: #00ff00;
    font-weight: bold;
}

.result-status {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 5px;
}

.result-status.correct {
    color: #00ff00;
}

.result-status.incorrect {
    color: #ff6666;
}

.question-block h3 {
    margin-bottom: 10px;
    color: #ffd700;
    font-size: 1.1em;
}

.feedback-inline {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
}

.feedback-inline.correct {
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid #00ff00;
    color: #00ff00;
}

.feedback-inline.incorrect {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
    color: #ff6666;
}

.options {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.option {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 0.9em;
    color: #ffffff;
    min-height: 45px;
    display: flex;
    align-items: center;
}

.option:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: #ffd700;
    transform: translateY(-2px);
}

.option.selected {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    color: #ffd700;
}

.option.correct {
    background: rgba(0, 255, 0, 0.2);
    border-color: #00ff00;
    color: #00ff00;
}

.option.incorrect {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
    color: #ff6666;
}

.quiz-actions {
    text-align: center;
    margin-bottom: 20px;
}

.btn {
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 5px;
    min-width: 120px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.btn:disabled {
    background: rgba(255, 255, 255, 0.3);
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn.btn-secondary {
    background: linear-gradient(45deg, #666, #888);
    color: #fff;
}

.feedback {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.feedback.correct {
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid #00ff00;
}

.feedback.incorrect {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
}

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

.results h2 {
    color: #ffd700;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.final-score {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.percentage {
    font-size: 2em;
    font-weight: bold;
    color: #ffd700;
    margin-top: 10px;
}

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

.welcome h2 {
    color: #ffd700;
    font-size: 2.2em;
    margin-bottom: 20px;
}

.welcome p {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #cccccc;
}

.welcome ul {
    text-align: left;
    max-width: 400px;
    margin: 20px auto;
    font-size: 1.1em;
    color: #cccccc;
}

.welcome li {
    margin-bottom: 10px;
}

.hidden {
    display: none !important;
}

.disclaimer {
    margin-top: 40px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.disclaimer h3 {
    color: #ffd700;
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: bold;
}

.disclaimer p {
    color: #cccccc;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 8px;
}

.disclaimer a {
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.disclaimer a:hover {
    color: #ffffff;
    text-shadow: 0 0 5px #ffd700;
}

.disclaimer .copyright {
    color: #999999;
    font-size: 0.8em;
    font-style: italic;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 5px;
    }
    
    header h1 {
        font-size: 1.2em;
    }
    
    header p {
        font-size: 0.7em;
    }
    
    .quiz-header {
        flex-direction: row;
        gap: 5px;
        text-align: center;
        font-size: 0.9em;
    }
    
    .card-image {
        max-width: 280px;
    }
    
    .btn {
        min-width: 100px;
        margin: 3px;
        padding: 8px 15px;
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .container {
        padding: 2px;
    }
    
    header {
        padding: 6px 10px;
        margin-bottom: 10px;
    }
    
    header h1 {
        font-size: 1em;
    }
    
    header p {
        font-size: 0.65em;
    }
    
    .quiz-container {
        padding: 10px;
    }
    
    .card-image {
        max-width: 240px;
    }
    
    .question-block {
        padding: 10px;
    }
    
    .option {
        padding: 6px 10px;
        font-size: 0.8em;
        min-height: 40px;
    }
    
    .btn {
        min-width: 90px;
        padding: 6px 12px;
        font-size: 0.75em;
    }
}
