@font-face {
    font-family: 'C64 Pro';
    src: url('/static/fonts/C64_Pro_Mono-STYLE.woff2') format('woff2'),
         url('/static/fonts/C64_Pro_Mono-STYLE.woff') format('woff'),
         url('/static/fonts/C64_Pro_Mono-STYLE.ttf') format('truetype');
}

@font-face {
    font-family: 'Press Start 2P';
    src: url('/static/fonts/PressStart2P-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Terminus 12p';
    src: url('/static/fonts/consoleet_ter12nr.otf') format('opentype');
    font-weight: normal;
}

@font-face {
    font-family: 'Terminus 14p';
    src: url('/static/fonts/consoleet_ter14br.otf') format('opentype');
    font-weight: normal;
}

@font-face {
    font-family: 'Terminus 16p';
    src: url('/static/fonts/consoleet_ter16br.otf') format('opentype');
    font-weight: normal;
}

@font-face {
    font-family: 'Terminus 18p';
    src: url('/static/fonts/consoleet_ter18br.otf') format('opentype');
    font-weight: normal;
}

@font-face {
    font-family: 'Terminus 24p';
    src: url('/static/fonts/consoleet_ter24br.otf') format('opentype');
    font-weight: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: unset;
    font-smooth: never;
    image-rendering: pixelated;
}

body {
    font-family: 'Terminus 14p', monospace;
    font-size: 28px;
    line-height: 1;
    background-color: #1a1a2e;
    color: #eaeaea;
    padding: 20px;
}

h1 {
    font-family: 'C64 Pro', monospace;
    font-size: 48px;
    line-height: 1;
    font-weight: unset;
    color: #ffffff;
    background-color: #e94560;
    display: inline-block;
    padding: 8px 16px;
    margin-bottom: 16px;
    text-shadow: 3px 3px 0 #0f3460;
}

h2 {
    font-size: 28px;
    line-height: 1;
    font-weight: unset;
    color: #ffde00;
    background-color: #0f3460;
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 14px;
}

h3 {
    font-size: 28px;
    line-height: 1;
    font-weight: unset;
    color: #00fff5;
    background-color: #533483;
    display: inline-block;
    padding: 4px 14px;
    margin-bottom: 14px;
}

a {
    color: #00fff5;
    text-decoration: none;
}

a:hover {
    color: #ffde00;
    text-decoration: underline;
}

nav {
    margin-bottom: 14px;
}

hr {
    border: none;
    border-top: 2px solid #3a3a5c;
    margin: 14px 0;
}

b {
    color: #ffde00;
    font-weight: unset;
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea {
    font-family: 'Terminus 14p', monospace;
    font-size: 28px;
    background-color: #16213e;
    color: #00ff41;
    border: 2px solid #6c5eb5;
    text-shadow: 2px 2px 0 #3a3a5c;
    padding: 5px;
    outline: none;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #00fff5;
}

button {
    font-family: 'Terminus 14p', monospace;
    font-size: 28px;
    background-color: #16213e;
    color: #00fff5;
    border: 2px solid #3a3a5c;
    padding: 8px 14px;
    cursor: pointer;
}

button:hover {
    border-color: #ffde00;
    color: #ffde00;
}

select {
    font-family: 'Terminus 14p', monospace;
    font-size: 28px;
    background-color: #16213e;
    color: #00ff41;
    border: 2px solid #6c5eb5;
    padding: 5px;
    outline: none;
}

select:focus {
    border-color: #00fff5;
}

select option {
    background-color: #16213e;
    color: #00ff41;
}

input[type="checkbox"] {
    appearance: none;
    width: 24px;
    height: 24px;
    background-color: #16213e;
    border: 2px solid #6c5eb5;
    cursor: pointer;
    vertical-align: middle;
}

input[type="checkbox"]:checked {
    background-color: #6c5eb5;
    box-shadow: inset 0 0 0 4px #16213e;
}

input[type="checkbox"]:hover {
    border-color: #00fff5;
}

input[type="file"] {
    font-family: 'Terminus 14p', monospace;
    font-size: 28px;
    color: #eaeaea;
}

code {
    background-color: #16213e;
    padding: 2px 6px;
    border: 1px solid #6c5eb5;
    color: #00ff41;
}

.error-text {
    color: #ff6b6b;
}

.success-text {
    color: #00ff41;
}

.locked-text {
    color: #ffde00;
}

.hidden-text {
    color: #888888;
}

.form-inline {
    display: inline;
}

.post-content {
    word-wrap: break-word;
}

.post-image {
    max-width: min(600px, 100%);
    max-height: 500px;
    width: auto;
    height: auto;
    display: block;
    margin: 8px 0;
}

.quote {
    display: block;
    border-left: 4px solid #6c5eb5;
    padding-left: 12px;
    margin: 8px 0;
    color: #aaaaaa;
    font-style: italic;
}

.quote-btn {
}

.quote-btn:disabled {
    color: #666666;
    border-color: #333333;
    cursor: not-allowed;
}

.quote-prefix {
    display: none;
}

.thread-listing {
    max-width: 1200px;
    margin: 0 auto 14px auto;
    box-shadow: 4px 4px 0 #0f3460;
}

.thread-row {
    width: 100%;
    padding: 8px;
}

.thread-title {
    font-size: 28px;
    word-wrap: break-word;
    background-color: #533483;
    border: 2px solid #96909FAB;
    border-bottom: none;
}

.thread-meta {
    display: flex;
    justify-content: space-between;
    color: #aaaaaa;
    background-color: #1e1e36;
    border-left: 2px solid #96909FAB;
    border-right: 2px solid #96909FAB;
}

.thread-author {
    text-align: left;
    color: #ffde00;
}

.thread-date {
    text-align: right;
}

.thread-status {
    min-height: 1.5em; /* have to pick 1.5 instead of 1 for some reason for this to work */
    background-color: #16162a;
    border: 2px solid #96909FAB;
    border-top: none;
}

.thread-moderate {
    margin-bottom: 14px;
}

.post {
    max-width: 1200px;
    margin: 0 auto 14px auto;
    box-shadow: 4px 4px 0 #0f3460;
}

.post-header {
    padding: 8px;
    background-color: #533483;
    border: 2px solid #96909FAB;
    border-bottom: none;
}

.post-header b {
    color: #ffde00;
}

.post-body {
    min-height: 2.5em;
    padding: 8px;
    background-color: #1e1e36;
    border-left: 2px solid #96909FAB;
    border-right: 2px solid #96909FAB;
}

.post-body-standalone {
    min-height: 2.5em;
    padding: 8px;
    background-color: #1e1e36;
    border: 2px solid #96909FAB;
}

.post-footer {
    min-height: 2em;
    padding: 8px;
    background-color: #16162a;
    border: 2px solid #96909FAB;
    border-top: none;
}

.admin-user-listing {
    border: 1px solid #3a3a5c;
    padding: 10px;
    margin-bottom: 10px;
}

/* Blog Stuff */

.blog-listing {
    max-width: 1200px;
    margin: 0 auto 14px auto;
    box-shadow: 4px 4px 0 #0f3460;
}

.blog-listing-title {
    font-size: 28px;
    word-wrap: break-word;
    background-color: #533483;
    border: 2px solid #96909FAB;
    border-bottom: none;
    padding: 8px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    background-color: #1e1e36;
    border: 2px solid #96909FAB;
    padding: 8px;
}

.blog-meta-row {
    display: flex;
    justify-content: space-between;
    background-color: #1e1e36;
    border-left: 2px solid #96909FAB;
    border-right: 2px solid #96909FAB;
    padding: 8px;
}

.blog-author {
    color: #ffde00;
}

.blog-date {
    color: #aaaaaa;
}

.blog-post {
    max-width: 1200px;
    margin: 0 auto 14px auto;
    box-shadow: 4px 4px 0 #0f3460;
}

.blog-post-title {
    margin-bottom: 8px;
    padding: 0;
}

.blog-post-header {
    background-color: #533483;
    border: 2px solid #96909FAB;
    border-bottom: none;
    padding: 8px;
}

.blog-post-content {
    background-color: #1e1e36;
    border-left: 2px solid #96909FAB;
    border-right: 2px solid #96909FAB;
    padding: 8px;
}

.blog-post-footer {
    background-color: #16162a;
    border: 2px solid #96909FAB;
    border-top: none;
    padding: 8px;
}

/* No padding */
.blog-post-footer-nonadmin {
    background-color: #16162a;
    border: 2px solid #96909FAB;
    border-top: none;
    padding: 0;
}

.blog-textarea {
    width: 100%;
}

.blog-preview {
    background-color: #16162a;
    border: 2px solid #96909FAB;
    border-top: none;
    padding: 8px;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.archive-entry {
    padding: 4px 0;
}

.reorder-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin-bottom: 4px;
    background-color: #1e1e36;
    border: 2px solid #96909FAB;
}

.reorder-title {
    flex-grow: 1;
}

.reorder-buttons {
    display: flex;
    gap: 4px;
}

.reorder-handle {
    cursor: grab;
    margin-right: 8px;
}

.image-entry {
    display: flex;
    gap: 14px;
    padding: 8px;
    margin-bottom: 14px;
    background-color: #1e1e36;
    border: 2px solid #96909FAB;
}

.image-thumbnail {
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
}

.image-info {
    flex-grow: 1;
}

.status-new {
    color: #00ff41;
}

.status-locked {
    color: #888888;
}

.status-removed {
    color: #ff6b6b;
}

#reply-box {
    width: 100%;
}

#edit-box {
    width: 100%;
}

#conversejs-container {
    height: 600px;
}

#conversejs-container .conversejs {
    height: 100%;
}

@media (max-width: 600px) {
    body { font-family: 'Terminus 18p', monospace; font-size: 18px; }
    h1 { font-size: 32px; }
    h2 { font-family: 'Terminus 12p', monospace; font-size: 24px; }
    h3 { font-family: 'Terminus 12p', monospace; font-size: 24px; }
}