/* General Styles */
body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

header {
    text-align: center;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
    padding-bottom: 20px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #343a40;
}

header p {
    font-size: 1.1em;
    color: #6c757d;
}

main {
    padding: 0 10px;
}

section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 5px;
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.05); */
}

section h2 {
    font-size: 2em;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

section h3 {
    font-size: 1.5em;
    color: #495057;
    margin-top: 25px;
    margin-bottom: 15px;
}

ul, ol {
    margin-left: 20px;
    margin-bottom: 15px;
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
}

strong {
    font-weight: bold;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Specific Sections & Elements */
.category {
    background-color: #f1f3f5;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.category h3 {
    margin-top: 0;
    border-bottom: 1px solid #ced4da;
    padding-bottom: 8px;
}

.symbol-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid */
    gap: 20px;
    align-items: center;
    margin-bottom: 15px;
}

.symbol-desc {
   /* Takes up available space */
}

.symbol-img {
    max-height: 80px; /* Smaller images */
    max-width: 100%;
    display: block;
    margin: 10px auto; /* Center image */
    border: 1px solid #ccc;
    padding: 5px;
    background-color: #fff;
    border-radius: 4px;
}

.symbol-placeholder {
    font-style: italic;
    color: #6c757d;
    text-align: center;
    padding: 20px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    background-color: #e9ecef;
    min-height: 80px; /* Match image height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.important-note {
    color: #dc3545; /* Red color for important notes */
    font-weight: bold;
    margin-top: 15px;
}

.context-note {
    border-top: 2px solid #ffc107; /* Yellow border for context note */
    padding-top: 15px;
    margin-top: 25px;
}

.context-note h3 {
    color: #e8590c; /* Orange color for context heading */
}

.subsection {
    margin-bottom: 25px;
}

.columns {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
    gap: 40px;
}

#downloads ul {
    list-style: none;
    padding-left: 0;
}

#downloads li a {
    display: inline-block;
    margin-bottom: 5px;
    background-color: #e9ecef;
    padding: 5px 10px;
    border-radius: 4px;
    color: #343a40;
}

#downloads li a:hover {
    background-color: #ced4da;
    text-decoration: none;
}

.image-downloads a {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 5px 10px;
    background-color: #dee2e6;
    border-radius: 4px;
    color: #495057;
    font-size: 0.9em;
}

.image-downloads a:hover {
    background-color: #adb5bd;
    text-decoration: none;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.9em;
    color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        margin: 10px;
        padding: 15px;
    }

    header h1 {
        font-size: 2em;
    }

    section h2 {
        font-size: 1.6em;
    }

    section h3 {
        font-size: 1.3em;
    }

    .columns {
        columns: 1;
        -webkit-columns: 1;
        -moz-columns: 1;
    }

    .symbol-grid {
        grid-template-columns: 1fr; /* Stack symbols on small screens */
    }
}

