/* Global styles */
html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #fdfdfd;
    color: #2c3e50;
    line-height: 1.6;
}

/* Hero section */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    overflow: hidden;
}
.hero h1 {
    margin: 0;
    font-size: 2.5rem;
    color: #2c3e50;
}
.hero p {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    color: #555;
}
.hero-image {
    width: 40%;
    max-width: 450px;
    height: auto;
    object-fit: cover;
    border-radius: 0.5rem;
}
.hero-text {
    max-width: 55%;
}

/* Navigation bar */
.navbar {
    background-color: #2980b9;
    padding: 0.5rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}
.navbar li {
    margin-right: 1rem;
}
.navbar a {
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem;
    display: block;
    font-weight: 500;
}
.navbar a:hover {
    background-color: #1f5e8a;
    border-radius: 0.25rem;
}

/* Main content */
.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
section {
    margin-bottom: 3rem;
}

/* Resource links list */
.resource-links {
    list-style: none;
    padding-left: 0;
}
.resource-links li {
    margin-bottom: 0.5rem;
}
.resource-links a {
    color: #2980b9;
    text-decoration: underline;
}
.resource-links a:hover {
    color: #1f5e8a;
    text-decoration: none;
}
section h2 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.8rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
section h3 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    color: #2c3e50;
}

/* Axioms list */
.axioms {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}
.axioms li {
    margin-bottom: 0.5rem;
}

/* Chart container */
.chart-container {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
}
.chart-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.chart-container select {
    padding: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}
.scenario-description {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

/* Directedness demo */
.directed-canvas {
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    background-color: #fff;
    margin-bottom: 2rem;
}

/* Quiz styles */
.quiz-container {
    margin-top: 1rem;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 1rem;
}
.quiz-question {
    font-weight: 500;
}
.quiz-options {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
}
.quiz-options li {
    margin-bottom: 0.5rem;
}
.quiz-options input[type="radio"] {
    margin-right: 0.5rem;
}
.quiz-feedback {
    margin-top: 0.5rem;
    font-style: italic;
}
.quiz-controls {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
}
.quiz-controls button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    color: #fff;
    background-color: #2980b9;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
}
.quiz-controls button:hover {
    background-color: #1f5e8a;
}

/* Sliders for predictive models */
.sliders {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}
.sliders label {
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
}
.sliders input[type="range"] {
    width: 100%;
}

/* Footer and footnotes */
.footer {
    background-color: #f5f5f5;
    padding: 1rem 2rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.85rem;
}
.footer h3 {
    margin-top: 0;
    font-size: 1.3rem;
}
.footer ol {
    padding-left: 1rem;
}
.footer li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.footer a {
    text-decoration: none;
    color: #2980b9;
}
.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-text {
        max-width: 100%;
        margin-bottom: 1rem;
    }
    .hero-image {
        width: 100%;
    }
    .sliders {
        flex-direction: column;
    }
}