* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #4a4e69;
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #4a4e69;
    text-align: center;
}

/* Timeline Styles */
.timeline {
    margin: 40px 0;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.timeline-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    background-color: #4a4e69;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 0;
}

.timeline-item {
    flex-basis: 22%;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s;
}

.timeline-item:hover {
    transform: translateY(-10px);
}

.timeline-content {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #4a4e69;
    height: 100%;
}

.timeline-content h3 {
    color: #4a4e69;
    margin-bottom: 10px;
}

.learn-more-btn {
    background-color: #4a4e69;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.learn-more-btn:hover {
    background-color: #3d405b;
}

/* Modal Styles */
.info-modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 70%;
    max-width: 700px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: black;
}

/* Quiz Styles */
.quiz-section {
    margin: 40px 0;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#quiz-container {
    max-width: 600px;
    margin: 0 auto;
}

.btn-grid {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 10px;
    margin: 20px 0;
}

.btn {
    background-color: #4a4e69;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #3d405b;
}

.btn.correct {
    background-color: #6a994e;
}

.btn.wrong {
    background-color: #bc4749;
}

.start-btn, .next-btn {
    font-size: 1.2rem;
    padding: 10px 20px;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.hide {
    display: none;
}

#score-container {
    text-align: center;
    margin-top: 20px;
}

/* Reflection Section */
.reflection-section {
    margin: 40px 0;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#reflection-text {
    width: 100%;
    height: 150px;
    padding: 10px;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: none;
}

#save-reflection {
    background-color: #4a4e69;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#save-reflection:hover {
    background-color: #3d405b;
}

#saved-message {
    color: #6a994e;
    margin-top: 10px;
    font-weight: bold;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background-color: #4a4e69;
    color: white;
    border-radius: 10px;
}

/* Added styles for the credit and resources links */
.credit, .resources {
    margin-top: 10px;
    font-size: 0.9rem;
}

footer a {
    color: #f0f0f0;
    text-decoration: underline;
    transition: color 0.3s;
}

footer a:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-item {
        flex-basis: 45%;
    }
    
    .btn-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .timeline-item {
        flex-basis: 100%;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}