.ebinboard,
.nolink,
.no-modern,
.classic {
    display: none !important;
}

body {
    background: var(--background-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 16px;
    font-weight: 400;
    margin: auto;
    margin-top: 25px;
    max-width: 1400px;
    padding-left: 274px;
}

#toast-container {
    top: 45px;
}

.toast {
    font-size: unset;
}

#sidebar {
    top: 35px;
    width: 250px;
}

.sb-content,
#sidebar ul {
    background: var(--post-background-color);
    border: 1px solid var(--border-color);
    padding: 8px;
    border-radius: 10px;
}

.topnav {
    display: none;
}

.top-nav .new,
.bottom-nav .new {
    background: var(--post-background-color);
    padding: 10px;
    border-radius: 10px;
    margin: 10px 0;
}

#notificationsContainer {
    border: none;
    border-radius: 10px;
    position: static !important;
    width: 100% !important;
    max-width: 450px !important;
    height: 200px !important;
    margin: auto;
    margin-top: 20px;
}

#notificationsHeader {
    border-radius: 8px 8px 0px 0px;
}

.bottom-nav {
    width: 100% !important
}

.new.mobilenav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 35px;
    padding: 0 4px;
    background: var(--news-background-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.banner img {
    border-radius: 10px;
}

.logo {
    font-size: 2.2em;
}

.postblock {
    border: none;
    border-radius: 8px;
    padding: 5px;
}

.replymode {
    padding: 5px;
    border-radius: 10px;
    margin-top: 10px;
}

.postarea {
    display: none;
    justify-content: center;
    margin-top: 10px;
}

.postarea.visible {
    display: flex;
}

.postarea.qr-floating {
    position: static !important;
    margin: auto;
}

.postarea hr.rules {
    display: none;
}

.postarea #postform {
    background: var(--post-background-color);
    padding: 8px;
    border-radius: 10px;
    max-width: 500px;
}

.rules {
    font-size: 0.8em;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.postarea table.postform,
.postarea .extra {
    width: 100%;
    margin: auto;
}

.postarea *::placeholder {
    color: var(--input-color);
}

.postarea .postblock {
    display: none;
}

.postarea input:not([type="checkbox"]),
.postform textarea {
    width: 98%;
}

.postarea .postform input[type="submit"] {
    width: calc(30% - 10px);
    float: right;
}

.postarea input[name="subject"] {
    width: calc(70% - 5px) !important;
}

.postarea .postform input[name="embed"] {
    width: calc(50% - 5px);
}

.postarea .postform select[name="embedtype"] {
    width: calc(50% - 10px);
    height: 29px;
    float: right;
}

.postarea select,
.postform tr.name,
.postform tr.email {
    width: 100%;
}

#reply-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropzone {
    max-width: 100%;
    border-radius: 5px;
    padding: 5px;
    border: 0;
}

.thread {
    background: var(--new-thread-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.9em;
    margin: 10px 0;
}

.boardhr {
    display: none;
}

.op {
    display: flex;
    flex-direction: column;
}

.op .postinfo {
    order: -1;
    background: var(--new-op-postinfo-bg);
}

.op .backlinks {
    background-color: transparent;
    order: 1;
}

.reply-preview .op {
    background: var(--new-thread-bg);
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0,0,0,.25);
}

.reply-preview .post {
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0,0,0,.25);    
}

.reply-preview {
    font-size: 0.9em;
}

.thread-header {
    order: -2;
    padding: 4px 10px;
    font-size: 1.3em;
    display: flex;
    justify-content: space-between;
    background: var(--new-header-bg);
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.thread-header a {
    line-height: 25px;
}

.reply-header {
    height: 25px;
    padding: 0 10px;
    font-size: 1.2em;
    display: flex;
    align-items: center;    
}

.openLink {
    margin: 10px;
}

.quickbuttons {
    margin-left: auto;
    margin-top: 4px;
    margin-bottom: 4px;
}

.quickbuttons button.icon {
    height: 25px;
    width: 25px;
}

.you_tag,
.op-tag,
.mod_tag,
.supermod_tag,
.admin_tag {
    background-color: purple;
    color: white;
    border-radius: 6px;
    font-size: 0.8em;
    padding: 0 5px;
}

.mod_tag,
.supermod_tag {
    background: red;
    color: white;
}

.op-tag {
    background: green;
    color: white;
}

.you_tag {
    background: darkcyan;
}

.sidearrows {
    display: none;
}

.backlinks.postinfo.new,
.thread .omittedposts {
    margin: 2px 4px;
}

.backlinks.postinfo.new {
    padding: 0px;
}

.post {
    display: flex;
    flex-direction: column;
    background: var(--post-background-color);
    border-radius: 10px;
    margin: 4px 0;
}

.postinfo {
    font-size: 0.95em;
}

.you_tag,
.reflink a,
.postinfo .timestamp,
.postinfo .city {
    opacity: 0.7;
}

.post.time {
    padding: 4px;
    box-shadow: 0 0 5px rgba(0,0,0,.25);
}

.thread input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.post-files {
    border-radius: 10px;
}

[data-total="1"] .thumb {
    border-radius: 0px 0px 10px 10px;
}

.filesize {
    display: flex;
    flex-direction: column;
}

.post-files {
    float: left;
    text-align: center;
    margin: 8px;
    background: rgba(0, 0, 0, 0.05);
    width: fit-content;
}

blockquote.content {
    margin: 8px;
}

.filelink,
.filelink a {
    color: var(--text-color);
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 0 4px;
}

.expanded .filelink a {
    overflow: visible;
    white-space: wrap;
}

.expanded .filesize {
    max-width: 100% !important
}

.filelink a:hover {
    color: var(--link-hover-color);
}

.fileinfo {
    font-size: 0.85em;
    opacity: 0.7;
}

.file-nav {
    padding: 2px;
    font-size: 0.9em;
}

.userdelete {
    display: none;
}

.pagelink {
    background: var(--post-background-color);
    padding: 10px;
    border-radius: 10px;
    margin: auto;
}

#reply-indicator-close,
.navigation-container [style="text-decoration: none;"],
.pagelink .activepage {
    background: var(--border-color);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 15px;
}

.pagelink .links a {
    margin: 0 5px;
}

.pagelink td {
    color: var(--text-color);
    opacity: 0.7;
}

.userdelete {
    background: var(--post-background-color);
    border-radius: 10px;
    padding: 8px;
    width: fit-content;
    margin: auto;
    margin-top: 10px;
}

.catalog {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    margin-bottom: 10px;
}

.catalog-top {
    background: var(--new-op-postinfo-bg)
}

.thread img.catalog-thumb {
    border-radius: 10px;
    margin-top: 5px;
}

.catalog-post {
    margin: 0px;
    padding: 8px;
    border-radius: 10px;
}

.home .logo {
    margin-top: 1em;
}

h2.home {
	margin-top: 0px;
	font-size: 1em;
}

h2.home .nocolor {
    color: var(--sidebar-color);
}
#sidebar h2 .nocolor {
    color: var(--frontpage-text-color);
}

h2.home:target {
  border: 2px solid var(--border-color);
  padding: 4px;
  border-radius: 5px;
}

.boardboxes {
    border-radius: 10px;
}

.session-catalog {
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	display: grid;
	gap: 4px;
}

.boardboxes-container,
.home .content {
    padding: 8px;
    background: var(--post-background-color);
    border-radius: 10px;
    border: none;
    border: 1px solid var(--border-color);
    font-size: 0.9em;
}

.bottom-boardbox {
    display: none;
}

.newslink a {
    color: var(--text-color);
}

#topmenu ul {
    gap: 2px;
}

#topmenu {
    justify-content: center;
}

.tab {
    padding: 5px 14px;
    background: var(--new-postinfo-bg);
}

.tab-active {
    padding-top: 8px;
    background: var(--post-background-color);
    border: 1px solid var(--border-color);
    border-bottom: 0px;
}

.tab-first {
    border-top-left-radius: 8px;
}

.tab-last {
    border-top-right-radius: 8px;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 0;
}

input[type="checkbox"]:checked::after {
    content: "✓";
    display: block;
    padding: 2px;
    margin-top: -4px;
    font-size: 1.5em;
}

input[type="number"],
input[type="file"],
select,
input[type="text"],
input[type="password"],
textarea {
    border-radius: 5px;
    padding: 5px;
    border: 0;
}

.mobilenav a,
a.button,
button,
::file-selector-button,
input[type="submit"] {
    background: var(--border-color);
    border-radius: 5px;
    padding: 5px 10px;
    border: 0;
    font-size: 1em;
}

.mobilenav a {
    background: var(--button-bg);
    color: var(--button-color)
}

.mobilenav a:hover {
    background: var(--button-hover-bg);
}

.mobilenav .right {
    display: flex;
    gap: 5px;
    margin-right: 5px;
    align-items: center;
}

.notif-count {
    padding: 5px;
    margin-left: -2px;
    background: var(--text-color);
    color: var(--board-box-bg);
    border-radius: 0px 5px 5px 0px;
}

.mobilenav [onclick="return toggleNotifications();"] {
    border-radius: 5px 0px 0px 5px;
}

fieldset {
    background: var(--post-background-color);
    border: 2px solid var(--border-color);
    border-radius: 10px;
}

@media (max-width: 600px) {
    .messagecontainer {
        display: flex;
        flex-direction: column;
    }

    .post-files {
        margin: 10px auto
    }

    .catalog {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}