/* Page-Specific Styles (e.g., Entry Page) */

/* --- Main Content Area (Entry Page Specific) Styles --- */
.main-content {
    overflow: hidden; /* Contains floats */
    justify-items: center;
    text-align: justify;
}

.main-content li {
    font-family: 'Roboto', sans-serif;
    font-size: 1.8rem;
    list-style: disc;
}

.entry_title {
    color: black;
    margin-left: -2px;
}

textarea {
    height: 90vh;
    width: 80%;
}

.main-content p {
    margin-top: 0;
    margin-bottom: 16px;
    line-height: 1.6;
}

.main-content strong {
    font-weight: bold;
}

.main-content h4 {
    margin-bottom: 16px;
    font-size: 2.1rem;
}

.main-content h5 {
    margin-bottom: 16px;
    font-size: 1.6rem;
}

.main-content a {
    margin-bottom: 16px; /* May not apply correctly to all 'a' elements, but kept as specified */
    color: #01990e; /* Specific link color for main content */
}

.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4,
.main-content h5,
.main-content h6 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: bold;
    color: var(--primary-color);
}

/* --- Image and Bio Box Styles --- */
.image_bio_box {
    float: right; /* Floats the box to the right */
    max-width: 220px;
    margin-left: 30px;
    margin-bottom: 10px;
}

.main-image {
    width: 200px; /* Specific width */
    height: 200px; /* Specific height */
    border-radius: 10px;
    margin: 0 20px 20px 0; /* Right and bottom margins when floated left */
    float: left; /* Floats the image to the left */
    object-fit: cover;
    display: block;
    box-shadow: var(--box-shadow); /* Added from "incomplete" version */
}

.bio_box {
    max-width: 200px;
    margin-top: 10px;
    background: var(--light-bg); /* Added from "incomplete" version */
    padding: 20px; /* Added from "incomplete" version */
    border-radius: var(--border-radius); /* Added from "incomplete" version */
}

.bio_content {
    max-width: 100%;
    word-wrap: break-word;
    margin-bottom: 15px; /* Added from "incomplete" version */
}

#birth-info { /* Added from "incomplete" version */
    font-style: italic;
    color: var(--light-text);
}

.no-image { /* Added from "incomplete" version */
    background: var(--light-bg);
    padding: 40px;
    text-align: center;
    border-radius: var(--border-radius);
    color: var(--light-text);
}

.content-text { /* Added from "incomplete" version */
    flex: 1;
}

/* --- Entry Metadata Styles --- */
.entry-metadata { /* Added from "incomplete" version */
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.entry-category, .entry-tags, .entry-references { /* Added from "incomplete" version */
    margin-bottom: 25px;
}

.entry-tags ul, .entry-references ul { /* Added from "incomplete" version */
    list-style-type: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.entry-tags li, .entry-references li { /* Added from "incomplete" version */
    background: var(--light-bg);
    padding: 5px 12px;
    border-radius: var(--border-radius);
}

.entry-references li { /* Added from "incomplete" version */
    background: transparent;
    padding: 0;
}

.entry-actions { /* Added from "incomplete" version */
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.entry-actions .edits-link { /* Added from "incomplete" version */
    all: unset; /* Targeted unset here is fine */
    display: inline-block;
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 4px 6px;
    margin-right: 10px;
}

.entry-actions .edits-link:hover { /* Added from "incomplete" version */
    text-decoration: underline;
}

.link-separator { /* Added from "incomplete" version */
    margin: 8 15px;
    color: var(--primary-color);
}

/* --- Markdown Image Styles --- */
.mkdwn_image {
    max-width: 20%;
    height: auto;
    border: 2px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 15px 15px 0;
    /* flex-wrap: wrap; This property is not applicable to a single element unless it's a flex container itself, so it's removed. */
    float: right;
}

/* --- Table Styles --- */
.bio_content table {
    width: 200px;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1.6rem;
    text-align: left;
}

.main-content th, .main-content td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    font-size: 1.35rem;
    font-family: 'Roboto', sans-serif;
}

.main-content th {
    background-color: #f4f4f4;
}

/* --- Special Sections (Quote of the Day, Picture of the Day) --- */

/* Quote of the Day Styles */
.quote_of_day {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 20px auto;
    padding: 10px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.quote_of_day strong {
    font-family: "Luxurious Script", cursive; /* Ensure this font is imported/available */
    font-size: 5rem;
    font-style: normal;
    margin-top: 50px;
    margin-bottom: 20px;
    text-align: center;
    color: #f9f9f9;
}

.quote_of_day p {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
}

/* Picture of the Day Styles */
.picture_of_day {
    width: 100%;
    display: flex;
    justify-content: center;
}

.story_img {
    width: 100%;
    height: 500px;
    align-self: center;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

