/* Child Taxa List Styling */
#childTaxaColumn .list-group-item {
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #f8f9fa;
}

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

/* Child Taxa Header */
#childTaxaColumn h4 {
    font-weight: bold;
}

/* Toggle Button */
#toggleChildTaxa {
    margin-bottom: 1rem;
}

#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: 'Merriweather', 'Georgia', 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 {
    font-family: 'Source Sans Pro', 'Helvetica Neue', sans-serif;
}

.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 {
    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; /* Higher than Bootstrap navbar */
}

.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; /* Ensure the close button is above the overlay */
    background-color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.image-container {
    display: inline-block;
    text-align: center; /* Ensures the caption is centered below the image */
}

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

.image-wrapper img {
    display: block;
    width: 100%; /* Ensure the image takes the full width of its container */
}

.image-overlay {
    position: absolute;
    bottom: 10px; /* Adjust as necessary */
    right: 10px; /* Adjust as necessary */
    background-color: rgba(24, 24, 24, 0.5); /* Optional background for better visibility */
    border-radius: 4px;
    display: flex;
    align-items: center; /* Ensures vertical centering */
    padding: 2px; /* Adjust the padding if necessary */
}

.image-overlay a {
    color: white; /* Ensuring the icons are visible against the gray background */
    text-decoration: none; /* Removes underline from icons */
    display: inline-flex;
    align-items: center; /* Center icons vertically */
    padding: 0px 3px; /* More balanced padding */
    margin-right: 0px; /* Consistent spacing between icons */
}

.image-overlay a:last-child {
    margin-right: 0; /* Removes margin from the last icon */
}

.image-overlay i {
    cursor: pointer;
}

.image-caption {
    margin-top: 8px; /* Adds space between the image and the caption */
    color: #777; /* Sets the text color to a medium gray */
    font-size: 0.9em; /* Slightly smaller text */
}
