/* Child Taxa List Styling */
#childTaxaColumn {
    background-color: #fdfdfd;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#childTaxaColumn .list-group-item {
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: #fcfcfc;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

#childTaxaColumn .list-group-item:hover {
    background-color: #f0f0f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

#childTaxaColumn h4 {
    font-weight: 600;
    font-size: 1.4rem;
    color: #2c3e50;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Page Content Styling */
.page-content {
    background: #fffef9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-family: 'Source Sans Pro', 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: #2d2d2d;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: #333;
}

.page-content h1 {
    font-family: 'Lora', 'Merriweather', serif;
    font-size: 2rem;
    font-weight: 500;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.5rem;
}

.page-content h2 {
    font-family: 'Source Sans Pro', 'Helvetica Neue', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #444;
}

.page-content h3 {
    font-family: 'Source Sans Pro', 'Helvetica Neue', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: #555;
}

.page-content h4 {
    font-family: 'Source Sans Pro', 'Helvetica Neue', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #666;
}

.page-content p {
    margin-bottom: 1.2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.page-content blockquote {
    border-left: 4px solid #89a989;
    background: #f5f8f5;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    color: #495057;
    font-style: italic;
    font-family: 'Merriweather', 'Georgia', serif;
}

.page-content ul,
.page-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.page-content code {
    background-color: #f3f3f3;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
}

/* Fullscreen Overlay */
.fullscreen-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.fullscreen-overlay img {
    max-width: 90%;
    max-height: 90%;
    transition: transform 0.3s;
    cursor: zoom-in;
}

.fullscreen-overlay img.zoomed {
    cursor: grab;
}

.fullscreen-overlay .btn-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1060;
    background-color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Image Styling */
.image-container {
    display: inline-block;
    text-align: center;
}

.image-wrapper {
    position: relative;
    display: inline-block;
}

.image-wrapper img {
    display: block;
    width: 100%;
}

.image-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(24, 24, 24, 0.5);
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 2px;
}

.image-overlay a {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 0 3px;
}

.image-overlay a:last-child {
    margin-right: 0;
}

.image-overlay i {
    cursor: pointer;
}

.image-caption {
    margin-top: 8px;
    color: #777;
    font-size: 0.9em;
}

/* Preformatted text */
pre.text-wrap {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: hidden;
}
