.page {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

main {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Ensure article grows to take up the remaining space */
article {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
/*    padding-left: 2rem;
    padding-right: 2rem;*/
    padding-bottom: 1rem;
}

.content {
    flex: 1;
    padding-top: 1.1rem;
    background-color: #1c2434;
}

footer {
    flex-shrink: 0;
}

.footer-link {
    color: white;
    text-decoration: none;
}

.footer-link:hover {
    color: #007bff; /* Bootstrap's default blue */
    text-decoration: underline;
}


.flex-container-row {
    display: flex;
    flex-direction: row;
    gap: 7px;
    align-self: flex-end;
}

.flex-container-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.homepage-text {
    font-size: 1.1rem;
    max-width: 70ch;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.6;
    padding-top: 1rem;
    /*color: #333;*/ /* Example content color */
}

.splash-text-container {
    display: block;
    margin-top: 2rem;
    /*font-size: 1.2rem;*/
}

.splash-text {
    color: #99ccff;
    font-style: italic;
}

.splash-text-author {
    display: block;
    color: #cccccc;
}

.blogpost-filters {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.privacy-policy-container {
    display: flex;
    flex-direction: column;
    max-width: 70ch;
}


.terms-of-use-container {
    display: flex;
    flex-direction: column;
    max-width: 70ch;
}

.terms-of-use-subsection {
    padding-left: 20px;
}

.terms-of-use-bullet-point-explanation {
    padding-left: 20px;
}




@media (max-width: 415px) {
    .blogpost-filters {
        flex-direction: column;
    }

}

    /* Main container for each blog post item */
    .blog-post-item {
        display: flex;
        align-items: flex-start;
        padding: 10px 0;
    }

    .blog-post-image {
        width: 120px;
        height: 80px;
        object-fit: cover;
        margin-right: 15px;
    }

    .blog-post-title {
        margin: 0;
        font-size: 1.25em;
    }

    .blog-post-link {
        text-decoration: none;
    }

    .post-meta {
        display: flex;
        flex-direction: column;
        gap: 8px;

    }

    /* Meta information styling (author and published time) */
    .blog-post-meta {
        margin: 5px 0;
        color: rgb(204, 204, 204);
        font-size: 0.9em;
    }

    .blog-post-separator {
        border: none;
        border-top: 1px solid #ddd;
        margin: 10px 0;
    }


    .share-and-comments {
        margin-bottom: 20px; /* Vertical space after this div */
        font-size: 1em;
        color: #666; /* Example text color */
    }

.blog-content {
    font-size: 1.1rem;
    max-width: 70ch;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.6;
    /*color: #333;*/ /* Example content color */
}

    .author-bio {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    .author-bio-header {
        display: flex;
        flex-direction: row;
        gap: 12px;
    }

    .author-image {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        object-fit: cover;
    }

    .author-details {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .author-email a {
        color: #007bff; /* Make email a clickable link with a default blue color */
        text-decoration: none;
    }

        .author-email a:hover {
            text-decoration: underline; /* Add underline on hover for better usability */
        }


.author-bio-text {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 70ch;
}

    .divider {
        border: none;
        border-top: 1px solid #ccc; /* Light gray color for the line */
        margin: 20px 0; /* Add spacing above and below the line */
        width: 100%; /* Make it stretch across the container */
    }

    .scroll-to-author {
        color: #007bff; /* Default link color (blue) */
        cursor: pointer; /* Indicate it's clickable */
        text-decoration: none;
    }

    .scroll-to-author:hover {
        text-decoration: underline; /* Add underline on hover */
    }

/* Handle <blockquote> layout and nesting */
.blog-content blockquote {
    font-size: 1rem;
    color: #333;
    max-width: 100%;
    width: 100%;
    margin: 1em 0;
    padding: 0.5em 1em;
    border-left: 4px solid #666;
    line-height: 1.5;
    text-align: justify;
    background-color: #f8f8f8;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

    /* Optional: tame nested blockquotes */
    .blog-content blockquote blockquote {
        margin-left: 1em;
        border-left: 2px solid #ccc;
    }

    .blog-content blockquote p {
        margin: 0; /* Prevent extra spacing inside the blockquote */
    }

    .new-comment-form {
        margin-bottom: 7px;
    }

    .comments-title {
        margin-bottom: 15px;
    }

    .comment-buttons-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }

    .comment-button {
        width: 350px;
    }

    .no-bottom-margin {
        margin-bottom: 0;
    }


    .comment {
        width: 100%;
        max-width: 70ch;
        box-sizing: border-box;
        background-color: #607D8B; /* Light gray bubble */
        padding: 15px;
        border-radius: 12px; /* Rounded edges for a bubble effect */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
        margin-bottom: 15px; /* Adds vertical space between comments */
        word-wrap: break-word; /* Ensures long words break properly */
        overflow-wrap: break-word;
    }

    .comment-header {
        display: flex;
        font-weight: bold;
        margin-bottom: 5px; /* Adds space between the header and content */
        justify-content: space-between;
    }

    .comment-content {
        line-height: 1.4; /* Improves readability */
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
        box-sizing: border-box;
    }

    .comment-text {
        margin-bottom: 10px;
    }

    .contributor-flag {
        color: orange;
    }

    .comment-input-container {
        display: flex;
        flex-direction: column;
        justify-content: start;
    }

    .submit-comment-button {
        width: 180px;
        align-self: flex-end;
    }

.add-a-comment-explanatory-text {
    max-width: 70ch;



}

.error-message {
    color: red;
}

    .label {
        color: #333;
        /*margin-right: 5px;*/
        width: 100px;
        text-align: right;
    }

    .label-large {
        color: #333;
        /*margin-right: 5px;*/
        width: 200px;
        text-align: right;
    }

    .label-medium {
        color: #333;
        /*margin-right: 5px;*/
        width: 150px;
        text-align: right;
    }


    /* Popup Styling */
    .modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        display: none;
        justify-content: center;
        align-items: center;
    }

    .modal-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: #777;
        padding: 20px;
        border-radius: 8px;
        max-width: 80%;
        width: 600px;
        /*position: relative;*/
        text-align: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .close {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .blue-button {
        padding: 5px 10px;
        border: none;
        background-color: #007bff;
        color: white;
        cursor: pointer;
        border-radius: 4px;
    }

        .blue-button:hover {
            background-color: #0056b3;
        }

    .auth-modal-buttons {
        width: 175px;
        align-self: flex-end;
        /*margin-top: 10px;*/
    }

    .login-register-switch-button {
        margin-top: 15px;
    }

    .form {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 7px;
    }

    .form-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 5px;
        width: 100%;
    }

    .form-input {
        width: 350px;
        /*    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;*/
    }

    .password-form-input {
        width: 350px;
        padding-right: 35px; /* Space for the eye icon */
        /*    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;*/
    }

    .password-container {
        display: flex;
        align-items: center;
        gap: 5px; /* Space between input and button */
    }

    .toggle-password {
        background: none;
        border: none;
        cursor: pointer;
        position: absolute;
        right: 75px;
        padding: 7px;
        color: #444;
        font-size: 16px;
    }

    .toggle-password i {
        font-size: 20px; /* Make the eye icon larger */
    }

    .toggle-password:hover {
        color: #007bff;
    }

    .fade-in {
        opacity: 0;
        transition: opacity 3s ease-in-out;
    }

    .fade-in.loaded {
        opacity: 1;
    }

.audio-player-container {
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #3a0647; /* Optional: match sidebar background */
}

@media (min-width: 798px) {
    .audio-player-container {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 80px;
    }
}


.audio-player-container audio {
    width: 100%;
    max-width: 300px; /* Adjust size if needed */
}


.reference-file-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-right: 15px;
}

.blogpost-custom-image {
    background-color: white;
    border: 2px solid #3a0647;
    padding: 5px 5px 5px 5px;
    margin-bottom: 5px;
}


/*notification*/
.notification {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.5rem 1.0rem 0 1.0rem;
    border-radius: 6px 6px 6px 6px;
    color: white;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
    /*min-width: 240px;*/
    max-width: 320px;
}

    .notification .message {
        margin-bottom: 0.5rem;
        line-height: 1.3;
        white-space: pre-wrap;
    }

    .notification .progress-bar {
        position: absolute;
        bottom: 0;
        left: 0;
        height: 4px;
        background-color: rgba(255,255,255,0.75);
        width: 100%;
        margin: 0;
        padding: 0;
        border: none;
        flex-shrink: 0;
        animation: shrink 4s linear forwards;
        border-radius: 0px 0px 6px 6px;
    }

    .notification.info {
        background-color: #007bff;
    }

    .notification.success {
        background-color: #28a745;
    }

    .notification.warning {
        background-color: #ffc107;
        color: black;
    }

    .notification.error {
        background-color: #dc3545;
    }

@keyframes shrink {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*footnote tooltip styling*/
a.footnote-ref {
    position: relative;
    cursor: help;
}

.tooltip {
    position: fixed;
    background-color: #d0d0d0; /* slightly darker grey */
    color: #111;
    padding: 6px 10px;
    border: 1px solid #3a0647;
    border-radius: 4px;
    white-space: normal;
    font-size: 0.90rem;
    width: max-content;
    max-width: 500px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.tooltip.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Optional tweaks for horizontal shifts */
.tooltip.shift-tight {
    max-width: 90vw;
    width: auto;
}

.tooltip.shift-left {
    transform: translateX(0%);
}

.tooltip.shift-right {
    transform: translateX(0%);
}





/*auto styles*/
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    scroll-behavior: smooth;
}

    a, .btn-link {
        color: #006bb7;
    }

        a:hover {
            color: #004a80; /* Darker shade of blue */
            text-decoration: underline; /* Adds clarity for links */
        }

    .btn-primary {
        color: #fff;
        background-color: #1b6ec2;
        border-color: #1861ac;
    }

    .btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
    }

    h1:focus {
        outline: none;
    }

    .valid.modified:not([type=checkbox]) {
        outline: 1px solid #26b050;
    }

    .invalid {
        outline: 1px solid #e50000;
    }

    .validation-message {
        color: #e50000;
    }

    .blazor-error-boundary {
        background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI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}

        .blazor-error-boundary::after {
            content: "An error has occurred."
        }

    .darker-border-checkbox.form-check-input {
        border-color: #929292;
    }



