html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh; /* ensures full page height */
}

*, *::before, *::after {
    box-sizing: border-box;
}

.page {
    position: relative;
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
}

main {
    width: 100%;
    max-width: 100%;
}

article {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
}

a {
    color: #000000 !important;
}

.toolbar {
    display: inline;
    margin-bottom: 2rem;
}

#post-table {
    min-height: 100%;
    max-width: 100%;
}

#post-table .row {
    /*border-bottom: 1px solid #cccccc;*/
    border-top: 1px solid #cccccc;
}

#post-table .post-read {
    background-color: #c6c6c360;
    font-style: italic;
}

#post-table p, #post-table div, #post-table img {
    background-color: #00000000;
}

#post-table .post-read .post-actions a, #post-table .post-read .post-actions button {
    font-style: italic;
}

#post-table .post-unread {
    background-color: white;
}

#post-table .post-read:hover, #post-table .post-unread:hover {
    background-color: #eeeeee; /* Light yellow for white rows */
    cursor: pointer;
}

#post-table p.post-actions {
    font-size: 0.8rem;
    margin-top: 0rem;
    margin-bottom: 0.5rem;
    padding-top: 0 !important;
}

p.post-actions button.link {
    margin: 0;
    padding: 0;
}

p.post-title {
    margin-bottom: 0rem;
    padding-bottom: 0rem;
}

button.link {
    background: none;
    border: none;
    color: #006bb7;
    text-decoration: underline;
    cursor: pointer;
}

button.big {
    width: 80%;
    height: 50%;
    display: inline-block;
    margin-bottom: 10rem;
}

.thumbnail {
    padding: 0;
    /* margin: 0; */
    max-width: 120px;
    width: 100%;
    height: 90px;
}

.postContent {
    max-width: 95%; /* Set your desired max-width */
    margin: 0 auto; /* Center the container */
    /*padding: 0 1rem; /* Add some padding for better appearance */
    padding: 1rem;
    display: block;
    overflow: auto;
    border-left: 5px solid black;
}

.postContent img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

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

.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;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

#focus-post-table {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#post-header-img {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

#post-header-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(0, 0, 0, 0.7); */
    z-index: 1;
}

#post-header-img img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    position: fixed;
    top: 0;
    left: 0;
}

#focus-post-content {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    color: #ffffff;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
}

#focus-post-content a {
    color: #66b3ff !important;
}

#focus-post-content::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

#focus-post-content-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 30vh;
    margin: 0 auto;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    backface-visibility: hidden;
    will-change: transform;
    cursor: pointer;
}

#focus-post-content-container.expanded {
    height: 70vh;
    overflow-y: auto;
    cursor: default;
}

#focus-post-content-container p:last-child {
    margin-bottom: 0;
}

#focus-post-content-container::-webkit-scrollbar {
    width: 8px;
}

#focus-post-content-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

#focus-post-content-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

#focus-post-content-container p {
    margin-bottom: 1.5rem;
}

#focus-post-content img {
    max-width: 100%;
    position: relative;
    z-index: 1;
}

#focus-post-spacer {
    height: 300px;
}

.focus-nav-button {
    position: fixed;
    top: 3.5rem; /* Add margin to start below navbar */
    height: calc(100vh - 3.5rem); /* Adjust height to account for top margin */
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2rem;
    z-index: 3;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
}

.focus-nav-button:hover {
    background: rgba(0, 0, 0, 0.7);
}

.focus-nav-prev {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 100px;
}

.focus-nav-next {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 100px;
}

.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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2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jMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

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

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10002;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Add swipe animation styles */
.swipe-left {
    -webkit-animation: swipeLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation: swipeLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-fill-mode: forwards;
    -webkit-animation-fill-mode: forwards;
    pointer-events: none;
}

.swipe-right {
    -webkit-animation: swipeRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation: swipeRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-fill-mode: forwards;
    -webkit-animation-fill-mode: forwards;
    pointer-events: none;
}

@-webkit-keyframes swipeLeft {
    0% {
        -webkit-transform: translateX(0) rotate(0deg) scale(1);
        transform: translateX(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        -webkit-transform: translateX(-120%) rotate(-5deg) scale(0.8);
        transform: translateX(-120%) rotate(-5deg) scale(0.8);
        opacity: 0;
    }
}

@keyframes swipeLeft {
    0% {
        -webkit-transform: translateX(0) rotate(0deg) scale(1);
        transform: translateX(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        -webkit-transform: translateX(-120%) rotate(-5deg) scale(0.8);
        transform: translateX(-120%) rotate(-5deg) scale(0.8);
        opacity: 0;
    }
}

@-webkit-keyframes swipeRight {
    0% {
        -webkit-transform: translateX(0) rotate(0deg) scale(1);
        transform: translateX(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        -webkit-transform: translateX(120%) rotate(5deg) scale(0.8);
        transform: translateX(120%) rotate(5deg) scale(0.8);
        opacity: 0;
    }
}

@keyframes swipeRight {
    0% {
        -webkit-transform: translateX(0) rotate(0deg) scale(1);
        transform: translateX(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        -webkit-transform: translateX(120%) rotate(5deg) scale(0.8);
        transform: translateX(120%) rotate(5deg) scale(0.8);
        opacity: 0;
    }
}

.fa-spin {
    animation: fa-spin 2s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.fas.fa-sync {
    display: inline-block;
    width: 1em;
    height: 1em;
}