body {
    background-color: eef2ff;
    color: black;
    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
    margin: 0;
    padding: 0;
}

#container {
    background-color: #e0e0e0;
    border: 2px solid #000080;
    width: 90%;
    max-width: 900px;
    margin: 20px auto;
    box-shadow: 2px 2px 0 #404040;
}

#header {
    background: linear-gradient(to bottom, #000080, #000060);
    color: white;
    font-weight: bold;
    padding: 6px 10px;
    text-shadow: 1px 1px #000040;
    user-select: none;
    border-bottom: 2px solid #404080;
    font-size: 16px;
}

#board-title {
    background-color: #d0d0d0;
    border-bottom: 2px solid #808080;
    padding: 6px 12px;
    font-weight: bold;
    color: black;
}

.post, .reply {
    background-color: #f0f0f0;
    border: 2px inset #808080;
    margin: 10px;
    padding: 8px 10px;
    box-shadow: inset 1px 1px 0 #ffffff;
}

.post .posthead, .reply .posthead {
    font-weight: bold;
    color: #000080;
    border-bottom: 1px solid #808080;
    padding-bottom: 4px;
    margin-bottom: 6px;
}

.post .body, .reply .body {
    font-family: "Courier New", Courier, monospace;
    white-space: pre-wrap;
    color: black;
}

a {
    color: #000080;
    text-decoration: underline;
}

a:hover {
    background-color: #000080;
    color: white;
}

input[type="submit"], button {
    background-color: #c0c0c0;
    border: 2px outset #ffffff;
    padding: 4px 12px;
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 1px 1px 0 #404040 inset;
    user-select: none;
}

input[type="submit"]:active, button:active {
    border-style: inset;
    box-shadow: none;
}

input[type="text"], input[type="password"], textarea {
    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
    border: 2px inset #808080;
    background-color: white;
    padding: 4px;
    color: black;
    box-shadow: inset 1px 1px 0 #ffffff;
}

::-webkit-scrollbar {
    width: 12px;
    background-color: #c0c0c0;
}

::-webkit-scrollbar-thumb {
    background-color: #808080;
    border: 2px solid #c0c0c0;
}

.thread-title {
    font-weight: bold;
    color: #000080;
    background-color: #d0d0d0;
    padding: 4px 8px;
    border: 2px outset #ffffff;
    margin-bottom: 4px;
}

/* Quote styling */
.quote {
    font-family: "Courier New", Courier, monospace;
    font-style: italic;
    color: #404040;
    border-left: 3px solid #000080;
    margin: 6px 0;
    padding-left: 8px;
    background-color: #e8e8e8;
}

#footer {
    background-color: #d0d0d0;
    border-top: 2px solid #808080;
    padding: 6px 10px;
    font-size: 12px;
    color: black;
    user-select: none;
}

* {
    border-radius: 0 !important;
}

img {
    border: 2px solid #808080;
    background-color: white;
    padding: 2px;
}

/* Make tables look like classic system dialogs */
table {
    border-collapse: collapse;
    border: 2px solid #808080;
    background-color: #f0f0f0;
}

th, td {
    border: 1px solid #808080;
    padding: 4px 8px;
    font-family: "Courier New", Courier, monospace;
}

input[type="checkbox"], input[type="radio"] {
    margin-right: 6px;
    cursor: pointer;
}

#posts {
    max-height: 600px;
    overflow-y: auto;
    padding: 10px;
    border: 2px inset #808080;
    background-color: #f0f0f0;
}

textarea {
    width: 100%;
    height: 120px;
    resize: none;
}

body {
    text-shadow:
        0 0 1px #00000040;
}

@font-face {
    font-family: 'Perfect DOS VGA 437';
    src: url('https://cdn.jsdelivr.net/gh/keshikan/DOS-Fonts/PerfectDOSVGA437.ttf') format('truetype');
}

body, input, textarea, button {
    font-family: 'Perfect DOS VGA 437', monospace, "Courier New", Courier;
}
