* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: monospace;
font-size: 14px;
line-height: 1.4;
color: #000;
background: #fff;
}

.b {
width: 100%;
min-height: 100vh;
display: flex;
justify-content: center;
}

.c {
width: 100%;
max-width: 800px;
padding: 10px;
}

.header {
border-bottom: 1px solid #000;
padding: 10px 0;
margin-bottom: 20px;
display: flex;
justify-content: space-between;
align-items: center;
}

.header .title {
font-size: 18px;
margin: 0;
}

.header a {
color: #000;
text-decoration: none;
}

.settings-btn {
font-size: 12px;
cursor: pointer;
text-decoration: underline;
color: #000;
}

.settings-btn:hover {
color: #666;
}

.mainpage {
min-height: 300px;
}


.f {
border-top: 1px solid #000;
padding: 10px 0;
margin-top: 20px;
text-align: center;
}

.f a {
color: #000;
text-decoration: underline;
}

#auth-form-container {
padding: 20px;
border: 1px solid #000;
margin-bottom: 20px;
}

#auth-form {
margin-top: 10px;
}

#auth-form div {
margin-bottom: 10px;
}

#auth-form label {
display: block;
margin-bottom: 5px;
font-size: 12px;
}

#auth-form input {
padding: 5px;
font-family: monospace;
font-size: 14px;
border: 1px solid #000;
width: 100%;
max-width: 400px;
display: block;
}

#auth-form button {
padding: 5px 10px;
font-family: monospace;
font-size: 14px;
border: 1px solid #000;
background: #fff;
cursor: pointer;
margin-left: 5px;
}

#auth-form button:hover {
background: #f5f5f5;
}

#clear-all {
background: #ffe0e0 !important;
}

#clear-all:hover {
background: #ffcccc !important;
}

#session-id {
display: inline-block;
width: auto;
max-width: 300px;
margin-right: 5px;
}

.pagelink {
margin-bottom: 15px;
}

.pagelink h3 {
font-size: 16px;
margin-bottom: 5px;
}

.pagelink h3 a {
color: #000;
text-decoration: none;
}

.pagelink h3 a:hover {
text-decoration: underline;
}

.pagelink small {
color: #666;
font-size: 11px;
}

.board-item {
padding: 10px;
border: 1px solid #ccc;
margin-bottom: 10px;
}

.board-item.nsfw {
border-color: #f00;
}

.board-item .description {
color: #666;
font-size: 12px;
margin-top: 5px;
}

.thread-item {
padding: 10px;
border: 1px solid #ccc;
margin-bottom: 10px;
}

.thread-item.pinned {
border-color: #000;
background: #f5f5f5;
}

.thread-item h3 {
font-size: 16px;
margin-bottom: 5px;
}

.thread-item h3 a {
color: #000;
text-decoration: none;
}

.thread-item h3 a:hover {
text-decoration: underline;
}

.thread-item .text {
color: #333;
font-size: 12px;
margin: 5px 0;
max-height: 100px;
overflow: hidden;
}

.thread-item .meta {
color: #666;
font-size: 11px;
margin-top: 5px;
}

.thread-item .files {
margin-top: 5px;
}

.thread-item .files img {
max-width: 100px;
max-height: 100px;
margin-right: 5px;
}

.thread-detail {
padding: 10px;
border: 1px solid #000;
margin-bottom: 20px;
}

.thread-detail h2 {
font-size: 18px;
margin-bottom: 10px;
}

.thread-detail .text {
color: #333;
margin: 10px 0;
}

.thread-detail .meta {
color: #666;
font-size: 12px;
margin-top: 10px;
}

.thread-detail .files {
margin-top: 10px;
}

.thread-detail .files img {
max-width: 200px;
max-height: 200px;
margin-right: 10px;
}

.comment-item {
padding: 10px;
border: 1px solid #ccc;
margin-bottom: 10px;
}

.comment-item .id {
color: #666;
font-size: 11px;
font-weight: bold;
}

.comment-item .text {
color: #333;
margin: 5px 0;
}

.comment-item .meta {
color: #666;
font-size: 11px;
margin-top: 5px;
}

.comment-item .files {
margin-top: 5px;
}

.comment-item .files img {
max-width: 100px;
max-height: 100px;
margin-right: 5px;
}

.board-info {
margin-bottom: 20px;
}

.board-info h2 {
font-size: 16px;
margin-bottom: 5px;
}

.board-info div {
color: #666;
font-size: 12px;
}

.loading {
text-align: center;
padding: 20px;
color: #666;
}

.error {
padding: 10px;
border: 1px solid #f00;
background: #ffe0e0;
color: #c00;
}

.quote {
color: #789922;
}

.spoiler {
background: #000;
color: #000;
}

.spoiler:hover {
color: #fff;
}

del {
text-decoration: line-through;
}
