/* Add your CSS styles here */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

header, footer {
    background-color: #222;
    color: white;
    padding: 20px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 28px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 10px 0 0 0;
}

nav ul li {
    display: inline;
    margin: 0 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #ffc107;
}

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    min-height: 60vh;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100vw;
    max-height: 500px;
    height: 500px;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 20px;
    background-image: url('images/javascript-hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero img {
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay h1 {
    color: white;
    font-size: 48px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
    border: none;
    padding: 0;
}

h1 {
    color: #333;
    border-bottom: 3px solid #ffc107;
    padding-bottom: 10px;
}

/* Quiz Styles */
.quiz-container {
    padding: 30px;
}

.difficulty-selector {
    text-align: center;
    padding: 30px 0;
}

.difficulty-selector h2 {
    color: #555;
    margin-bottom: 30px;
}

.btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 30px;
    margin: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.btn-submit {
    background-color: #28a745;
}

.btn-submit:hover {
    background-color: #218838;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
}

.quiz-header h2 {
    margin: 0;
    color: #333;
}

.progress {
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
}

.question {
    margin: 30px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 4px solid #007bff;
    border-radius: 5px;
}

.question h3 {
    margin-top: 0;
    color: #333;
    white-space: pre-wrap;
}

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

.option-label {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: white;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.option-label:hover {
    border-color: #007bff;
    background-color: #f0f8ff;
}

.option-label input[type="radio"] {
    margin-right: 15px;
    cursor: pointer;
}

.quiz-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

#results-area {
    padding: 30px;
}

.score-summary {
    background-color: #f0f8ff;
    padding: 20px;
    border-radius: 5px;
    border-left: 4px solid #007bff;
    margin-bottom: 30px;
    text-align: center;
}

.score-summary h3 {
    color: #007bff;
    font-size: 24px;
    margin: 0 0 10px 0;
}

.result-item {
    padding: 20px;
    margin: 15px 0;
    border-radius: 5px;
    border-left: 4px solid #e0e0e0;
}

.result-item.correct {
    background-color: #d4edda;
    border-left-color: #28a745;
}

.result-item.incorrect {
    background-color: #f8d7da;
    border-left-color: #dc3545;
}

.result-item h4 {
    margin-top: 0;
    color: #333;
}

.result-item p {
    margin: 8px 0;
    color: #555;
}

footer {
    margin-top: 50px;
    font-size: 14px;
}

/* Vignettes */
.vignettes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.vignette {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.vignette:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.vignette h2 {
    margin-top: 0;
    color: #007bff;
    font-size: 24px;
}

.vignette p {
    color: #555;
    line-height: 1.6;
}

.vignette-btn {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
    margin-top: 15px;
    font-weight: 500;
}

.vignette-btn:hover {
    background-color: #0056b3;
}

/* About Page */
.about-content {
    line-height: 1.8;
    color: #333;
}

.about-content h2 {
    color: #007bff;
    font-size: 28px;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #ffc107;
    padding-bottom: 10px;
}

.about-content h3 {
    color: #0056b3;
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 15px;
}

.about-content p {
    font-size: 16px;
    margin-bottom: 15px;
    text-align: justify;
}

.about-content ul {
    margin: 20px 0;
    padding-left: 30px;
}

.about-content li {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.6;
}

.about-content strong {
    color: #0056b3;
}