/* Cosmo Quiz Maker Stylesheet */

/* Import Google Font for a cosmic feel */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;700&display=swap');

/* General container styling */
#quiz-container {
    margin: 20px auto;
    max-width: 800px;
    font-family: 'Roboto Slab', serif;
    line-height: 1.6;
}

/* Question styling */
.quiz-question {
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(120deg, #f9f9f9, #eaeaea);
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.quiz-question p {
    font-weight: bold;
    margin-bottom: 10px;
}

/* Navigation buttons */
.quiz-navigation button {
    background: linear-gradient(45deg, #005f99, #0073aa);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.4s, transform 0.2s, box-shadow 0.4s;
}

.quiz-navigation button:hover {
    background: linear-gradient(45deg, #003f66, #005177);
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.quiz-navigation button:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
}

/* Results styling */
#quiz-results {
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: linear-gradient(120deg, #f4f4f4, #eaeaea);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#quiz-results p {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #333;
}

/* Results question list */
#quiz-results ul {
    padding-left: 20px;
    font-family: 'Roboto Slab', serif;
}

#quiz-results ul li {
    margin-bottom: 15px;
}

/* Highlight for correct and incorrect answers */
#quiz-results ul li span {
    font-weight: bold;
}

#quiz-results ul li span.correct-answer {
    color: green;
}

#quiz-results ul li span.incorrect-answer {
    color: red;
}

/* Buttons inside results */
#quiz-results button {
    background: linear-gradient(45deg, darkred, firebrick);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s;
}

#quiz-results button:hover {
    background: linear-gradient(45deg, firebrick, crimson);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Page font adjustments */
body {
    font-family: 'Roboto Slab', serif;
    background: radial-gradient(circle, #101820, #1c1c29);
    color: #ddd;
}

/* Link adjustments */
a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #005177;
}
