/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', Arial, sans-serif;
}
body {
    font-family: 'Open Sans', Arial, sans-serif;
    background: linear-gradient(to bottom, #e0e0e0, #d0d0d0);
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.5;
    min-height: 100vh;
}
.has-image .post-content {
    min-height: 250px;
}
.no-image .post-content {
    height: 100%;
}
body.modal-active .container,
body.modal-active .footer,
body.modal-active .back-to-top {
    filter: blur(5px);
}
/* Theme Page Link */
.theme-page-link {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.9em;
    color: #6a0dad;
    text-decoration: none;
}
.theme-page-link:hover {
    text-decoration: underline;
}
/* Modal for Disclaimer */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: none;
    display: flex;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: linear-gradient(to bottom, #f8f8f8, #e8e8e8);
    border: 1px solid #d0d0d0;
    padding: 20px;
    border-radius: 5px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.modal-content h2 {
    margin-bottom: 15px;
    color: #6a0dad;
}
.modal-content p {
    margin-bottom: 20px;
    font-size: 0.95em;
}
.modal-content button {
    background: linear-gradient(to bottom, #6a0dad, #4b0082);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin: 0 10px;
    font-size: 0.95em;
    transition: background 0.2s ease-in-out;
}
.modal-content button:hover {
    background: linear-gradient(to bottom, #4b0082, #2f004f);
}
#decline-disclaimer {
    background: linear-gradient(to bottom, #a00, #700);
}
#decline-disclaimer:hover {
    background: linear-gradient(to bottom, #700, #500);
}
/* Links */
a {
    color: #6a0dad;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}
a:hover {
    text-decoration: underline;
}
/* Quote Links */
.quote-link {
    color: #228b22;
    font-weight: bold;
}
.quote-link:hover {
    color: #006400;
}
/* Green Text */
.green-text {
    color: #228b22;
}
/* Quoted Content */
.quoted-content {
    font-size: 0.85em;
    color: #555;
    margin: 5px 0 5px 20px;
    padding-left: 10px;
    border-left: 2px solid #ccc;
    display: block;
}
/* Colored Text */
.colored-text {
    /* Base style for colored text; specific colors set inline */
}
/* View All Link */
.view-all {
    font-size: 0.9em;
    color: #6a0dad;
    margin-top: 5px;
    display: block;
    text-align: right;
}
.view-all:hover {
    color: #4b0082;
    text-decoration: underline;
}
/* Container */
.container {
    max-width: 850px;
    width: 100%;
    background: linear-gradient(to bottom, #ffffff, #f5f5f5);
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px 25px;
    border-radius: 4px;
    margin-bottom: 20px;
    position: relative;
}
/* Header */
h1 {
    font-family: 'Open Sans', Arial, sans-serif;
    color: #6a0dad;
    text-align: center;
    margin-top: 0;
    font-size: 2.5em;
    letter-spacing: -1px;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}
h2 {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 1.8em;
    color: #333;
    margin-bottom: 20px;
}
h4 {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 1.2em;
    color: #333;
    margin-bottom: 15px;
}
/* Board Info */
.board-info {
    background: linear-gradient(to bottom, #f0f0f0, #e5e5e5);
    border: 1px solid #d0d0d0;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
}
.board-info p {
    margin: 5px 0;
    font-family: 'Open Sans', Arial, sans-serif;
}
.board-info .board-tag {
    font-size: 1.2em;
    font-weight: bold;
    color: #6a0dad;
}
.board-info .board-name {
    font-size: 1.1em;
    color: #333;
}
.board-info .board-description {
    font-size: 0.95em;
    color: #666;
}
.board-banner {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: top;
    margin-bottom: 10px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.nimg {
    width: 29.7px;
    height: auto;
    vertical-align: middle;
    margin-right: 4.5px;
}
/* Navigation */
.header-links {
    text-align: center;
    margin-bottom: 25px;
    font-size: 0.95em;
    padding: 10px 0;
    display: flex;
    justify-content: center;
}
.header-links a {
    margin: 0;
    padding: 3px 6px;
    border: 1px solid #c0c0c0;
    background: linear-gradient(to bottom, #f8f8f8, #e8e8e8);
    color: #333;
    transition: all 0.2s ease-in-out;
    font-family: 'Open Sans', Arial, sans-serif;
}
.header-links a:hover {
    background: linear-gradient(to bottom, #6a0dad, #4b0082);
    color: #fff;
    text-decoration: none;
    border-color: #6a0dad;
}
.header-links a:first-child {
    border-radius: 3px 0 0 3px;
    border-right: none;
}
.header-links a:last-child {
    border-radius: 0 3px 3px 0;
    border-left: none;
}
.header-links a:not(:first-child):not(:last-child) {
    border-radius: 0;
    border-left: none;
    border-right: none;
}
/* Featured Post */
.featured-post {
    background: linear-gradient(to bottom, #f8f8f8, #e8e8e8);
    border: 1px solid #d0d0d0;
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
}
.featured-post .post-image {
    margin-right: 15px;
}
.featured-post .post-image img,
.featured-post .post-image video {
    max-width: 550px;
    height: 250px;
    display: block;
    border: 1px solid #ccc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}
.featured-post .post-image.spoiler {
    position: relative;
    background: #000;
    cursor: pointer;
}
.featured-post .post-image.spoiler span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    z-index: 1;
    font-family: 'Open Sans', Arial, sans-serif;
}
.featured-post .post-image.spoiler img,
.featured-post .post-image.spoiler video {
    filter: blur(10px);
    transition: filter 0.3s;
}
.featured-post .post-image.spoiler:hover img,
.featured-post .post-image.spoiler:hover video {
    filter: none;
}
.featured-post .post-content {
    background: linear-gradient(to bottom, #fcfcfc, #f5f5f5);
    padding: 10px;
    border-radius: 3px;
    border: 1px solid #e0e0e0;
    font-size: 0.95em;
    font-family: 'Open Sans', Arial, sans-serif;
}
.featured-post.no-image .post-content {
    flex: 1 1 100%;
    width: 100%;
}
.featured-post .board-tag {
    font-size: 1.1em;
    font-weight: bold;
    color: #6a0dad;
    margin-bottom: 8px;
    display: block;
    font-family: 'Open Sans', Arial, sans-serif;
}
.featured-post .post-header {
    margin-bottom: 8px;
}
.featured-post .post-id {
    font-weight: bold;
}
.featured-post .reply-button {
    margin-left: 10px;
    background: none;
    border: none;
    color: #6a0dad;
    cursor: pointer;
    font-size: 0.9em;
    font-family: 'Open Sans', Arial, sans-serif;
}
.featured-post .reply-button:hover {
    color: #4b0082;
    text-decoration: underline;
}
/* Reply Post */
.reply-post {
    background: linear-gradient(to bottom, #fafafa, #f0f0f0);
    border: 1px solid #d8d8d8;
    border-left: 2px solid #6a0dad;
    padding: 12px;
    margin: 10px 0 10px 20px;
    border-radius: 4px;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9em;
}
.reply-post .post-image {
    flex: 0 0 auto;
    width: 150px;
    margin-right: 12px;
}
.reply-post .post-image img,
.reply-post .post-image video {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}
.reply-post .post-image.spoiler {
    position: relative;
    background: #000;
    cursor: pointer;
}
.reply-post .post-image.spoiler span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    z-index: 1;
    font-size: 0.85em;
}
.reply-post .post-image.spoiler img,
.reply-post .post-image.spoiler video {
    filter: blur(8px);
    transition: filter 0.3s;
}
.reply-post .post-image.spoiler:hover img,
.reply-post .post-image.spoiler:hover video {
    filter: none;
}
.reply-post .post-content {
    flex: 1 1 0;
    background: linear-gradient(to bottom, #fefefe, #f7f7f7);
    padding: 8px;
    border-radius: 3px;
    border: 1px solid #e5e5e5;
}
.post-content {
    width: 100%;
    height: 100%;
}
.reply-post.no-image .post-content {
    flex: 1 1 100%;
    width: 100%;
}
.reply-post .post-header {
    margin-bottom: 6px;
}
.reply-post .post-id {
    color: #6a0dad;
    font-weight: bold;
}
.reply-post .reply-button {
    margin-left: 8px;
    background: none;
    border: none;
    color: #6a0dad;
    cursor: pointer;
    font-size: 0.85em;
}
.reply-post .reply-button:hover {
    color: #4b0082;
    text-decoration: underline;
}
/* Jannie Console */
.jannie-list {
    margin-bottom: 20px;
}
.jannie-item {
    background: linear-gradient(to bottom, #f8f8f8, #e8e8e8);
    border: 1px solid #d0d0d0;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
}
.jannie-item p {
    margin: 5px 0;
    font-family: 'Open Sans', Arial, sans-serif;
}
.jannie-item button {
    background: linear-gradient(to bottom, #a00, #700);
    color: #fff;
    padding: 6px 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 10px;
    transition: background 0.2s ease-in-out;
    font-family: 'Open Sans', Arial, sans-serif;
}
.jannie-item button:hover {
    background: linear-gradient(to bottom, #700, #500);
}
/* Board List */
.board-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    padding: 0;
    list-style: none;
}
.board-item {
    background: linear-gradient(to bottom, #f0f0f0, #e5e5e5);
    border: 1px solid #c8c8c8;
    padding: 8px 12px;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease-in-out;
}
.board-item:hover {
    background: linear-gradient(to bottom, #6a0dad, #4b0082);
    border-color: #6a0dad;
}
.board-item:hover a, .board-item:hover span {
    color: #fff;
}
.board-item a {
    font-size: 1.1em;
    font-weight: bold;
    display: block;
    color: #333;
    letter-spacing: 0.5px;
    font-family: 'Open Sans', Arial, sans-serif;
}
.board-item span {
    display: block;
    font-size: 0.8em;
    color: #666;
    margin-top: 3px;
    font-family: 'Open Sans', Arial, sans-serif;
}
/* Forms */
.post-form {
    margin-bottom: 20px;
    background: linear-gradient(to bottom, #f0f0f0, #e5e5e5);
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #d0d0d0;
}
.post-form textarea,
.post-form input[type="text"],
.post-form input[type="password"],
.post-form input[type="file"],
.post-form select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 0.95em;
    font-family: 'Open Sans', Arial, sans-serif;
    background: linear-gradient(to bottom, #ffffff, #f8f8f8);
}
.post-form textarea {
    min-height: 100px;
    resize: none;
}
.post-form input[type="text"],
.post-form input[type="password"],
.post-form input[type="file"],
.post-form select {
    height: 40px;
}
.post-form input[type="file"] {
    padding: 8px 0;
}
.post-form button {
    background: linear-gradient(to bottom, #6a0dad, #4b0082);
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.95em;
    transition: background 0.2s ease-in-out;
    font-family: 'Open Sans', Arial, sans-serif;
}
.post-form button:hover {
    background: linear-gradient(to bottom, #4b0082, #2f004f);
}
.post-form label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9em;
    font-family: 'Open Sans', Arial, sans-serif;
}
/* Show More Button */
.show-more {
    display: block;
    margin: 20px auto;
    background: linear-gradient(to bottom, #6a0dad, #4b0082);
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.95em;
    transition: background 0.2s ease-in-out;
    font-family: 'Open Sans', Arial, sans-serif;
}
.show-more:hover {
    background: linear-gradient(to bottom, #4b0082, #2f004f);
}
/* Back to Top Link */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(to bottom, #6a0dad, #4b0082);
    color: #fff;
    padding: 8px 12px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.9em;
    font-family: 'Open Sans', Arial, sans-serif;
    transition: background 0.2s ease-in-out;
}
.back-to-top:hover {
    background: linear-gradient(to bottom, #4b0082, #2f004f);
    text-decoration: none;
}
/* Tag Error */
.tag-error {
    color: red;
    font-size: 0.9em;
    margin: 5px 0;
}
/* No Posts Message */
.no-posts {
    text-align: center;
    color: #666;
    font-size: 1em;
    padding: 20px;
    background: linear-gradient(to bottom, #f8f8f8, #e8e8e8);
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    margin-bottom: 30px;
    font-family: 'Open Sans', Arial, sans-serif;
}
/* Footer */
.footer {
    margin-top: 30px;
    font-size: 0.8em;
    color: #666;
    text-align: center;
    border-top: 1px dashed #bbb;
    padding-top: 15px;
    background: linear-gradient(to top, #e0e0e0, transparent);
    font-family: 'Open Sans', Arial, sans-serif;
}
/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.5em;
    }
    .header-links a {
        padding: 2px 4px;
        font-size: 0.9em;
    }
    .board-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }
    .board-item {
        padding: 6px 8px;
    }
    .board-item a {
        font-size: 1em;
    }
    .board-item span {
        font-size: 0.75em;
    }
    .post-form textarea,
    .post-form input[type="text"],
    .post-form input[type="password"],
    .post-form input[type="file"],
    .post-form select {
        font-size: 0.9em;
    }
    .post-form button {
        width: 100%;
        padding: 10px;
    }
    .show-more {
        width: 100%;
        padding: 10px;
    }
    .back-to-top {
        bottom: 15px;
        right: 15px;
        padding: 6px 10px;
        font-size: 0.85em;
    }
    .featured-post {
        flex-direction: column;
    }
    .featured-post .post-image {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .featured-post.no-image .post-content {
        width: 100%;
    }
    .reply-post {
        flex-direction: column;
    }
    .reply-post .post-image {
        width: 100%;
        margin-right: 0;
        margin-bottom: 8px;
    }
    .reply-post.no-image .post-content {
        width: 100%;
    }
    .jannie-item {
        flex-direction: column;
    }
    .jannie-item .post-image {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .theme-page-link {
        top: 5px;
        right: 5px;
        font-size: 0.85em;
    }
}
img {
    width: 100%;
}
