body {
    margin: 0;
    padding: 0;
    background-color: #0E1010;
    font-family: arial;
    color: #696459;
}
body a {
    color: #988F7D;
    text-decoration: none;
}

#page {
    max-width: 1920px;
    min-width: 700px;
    margin: 0px auto;
}

#header {
    background-color: #333A39;
    border-bottom: 0.5em solid #060707;
    width: 100%;
    overflow: hidden;
    position: relative;
}
#banner {
    margin: 0px auto;
    background-color: #1F2121;
    width: 100%;
    height: 120px;
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
#banner a {
    font-variant: small-caps;
    color: #FFF;
    text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000;
    font-weight: bold;
    font-size: 3.1em;
    position: absolute;
    bottom: 7px;
    left: 18px;
}
#login, #menu {
    background-color: #171415;
    border: 2px solid #0E0608;
    color: #53484B;
    position: absolute;
    top: 5px;
    padding: 0.4em 1.2em;
}
#login a, #menu a {
    color: #897178;
    text-decoration: none;
}
#menu {
    left: 5px;
}
#menu ul {
    margin: 0;
    padding: 0;
}
#menu ul li {
    display: inline-block;
    margin-right: 0.8em;
}
#login {
    right: 5px;
}

#footer {
    background-color: #12110F;
    margin: 2em 9em 0 9em;
    padding: 0.5em 1em;
    border-top: 1px solid #36332C;
    text-align: center;
}
#quick_links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-block;
}
#quick_links ul li {
    display: inline-block;
    text-decoration: underline;
    margin: 0 0.2em;
}
#dumb_quote {
    margin: 1.4em 0 0.5em;
    font-size: 0.9em;
}


#page_controls {
    position: fixed;
    right: 22px;
    bottom: 45px;
    font-size: 2.1em;
    line-height: 1em;
}
#page_controls a {
    display: block;
    font-weight: bold;
}
#body {
    min-height: 68vh;
}
.fail {
    background-color: #7d3838;
    padding: 0.3em 0.4em;
    margin: 0;
    color: #aa8787;
    border-radius: 0.4em;
    border: 1px solid #955151;
    margin: 1em 0.5em;
    font-size: 0.86em;
}
.fail ul {
    margin: 0;
}

#preview {
    position: fixed;
    top: 1%;
    right: 1%;
    max-width: 82%;
    max-height: 90vh;
    overflow: hidden;
    min-width: 64px;
    min-height: 64px;
    z-index: 10000;
}
#preview img {
    max-width: 100%;
    max-height: 90vh;
}
#hover_post {
    position: fixed;
    padding: 0.2em;
    background-color: #14110D;
    border: 1px solid #988F7D;
}

.frontpage_preview{
    width: 800px;
    margin: 0px auto;
}
.update_group {
    padding: 1em;
    background-color: #080C0C;
    border:1px solid #333A39;
    margin: 0.8em 0;
    position: relative;
}
.update_group .title {
    max-width: 100%;
    word-wrap: break-word;
}
.update_group .date {
    position: absolute;
    top: 1em;
    right: 1em;
    font-size: 0.8em;
    color: #393630;
}
.update_group .posts {
    display: flex;
    display: -webkit-box;
    flex-direction: row;
    -webkit-box-flex-direction: row;
    margin: 1.5%;
    margin-top: 0.7%;
    justify-content: center;
}
.update_group .update {
    flex: 1;
    -webkit-box-flex: 1;
    background-size: cover;
    background-position: center 37%;
    overflow: hidden;
    position: relative;
    background-repeat: no-repeat;
    min-height: 500px;
    margin: 0.3em;
}
.update_group .update a {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.load_more_previews {
    text-align: center;
    background-color: #333A39;
    border: 1px solid #50615E;
    padding: 0.4em 0;
    font-weight: bold;
    margin: 1.6em 2em;
}
.load_more_previews a {
    color: #667d79;
}


.normal_page {
    margin: 1em;
}


.board, .catalog {
    padding: 0.8em;
}
.board_meta {
    margin-bottom: 2em;
}
.board_meta:after {
    content: "";
    clear: both;
    display: block;
}
.board_title {
    float: left;
}
.board_title h1 {
    vertical-align: baseline;
    margin: 0;
    display: inline-block;
    font-size: 1.4em;
}
.board_title h2 {
    vertical-align: baseline;
    margin: 0;
    display: inline-block;
    font-size: 1.3em;
}
.links {
    float: right;
    vertical-align: middle;
}
.links div {
    background-color: #333A39;
    border: 1px solid #50615E;
    padding: 0.1em 0.5em;
    display: inline-block;
    margin-left: 0.6em;
}
.links a {
    color: #8d9799;
}
.links div.engaged {
    background-color: #9c875e;
    border-color: #a88b54;
}
.links div.engaged a {
    color: #111;
}

.pages {
    margin-top: 6em;
    text-align: center;
}
.pages div {
    display: inline-block;
    margin-left: 0.6em;
}
.pages .page_link.current_page {
    text-decoration: underline;
}

.thread {
    margin: 1.5em 2em 1.5em;
}
.threads .thread {
    padding: 1em 1em 2em;
    border: 2px solid #050A09;
    background-color: #080C0C;
    border-radius: 0.8em;
    border-bottom: 1px solid #182422;
}
.thread:after {
    content: "";
    display: block;
    clear: both;
}
.thread h3 {
    font-size: 1.5em;
    margin: 0.2em 0 0.2em;
}
.threads .thread h3 {
    font-size: 1.1em;
    margin: 0 0 0.2em;
    font-weight: normal;
}
.thread h3 a {
    text-decoration: underline;
}
.posts_hidden {
    display: inline-block;
    margin: 1.1em 0;
    background-color: #231e20;
    padding: 0.4em 1.6em;
    font-size: 0.9em;
}
.posts_hidden span {
    display: inline-block;
    margin-left: 1em;
}
.open_thread {
    font-size: 0.9em;
}
.open_thread a {
    text-decoration: underline;
}

.new_thread, .new_post {
    width: 800px;
    background-color: #171415;
    border: 1px solid #0E0608;
    padding: 0.5em 0.9em;
    font-size: 1.2em;
    clear: both;
    position: relative;
}
.new_thread {
    margin: 0px auto 2em;
}
.new_post {
    margin: 2em 2em;
}
.new_thread h2, .new_post h2 {
    margin: 0.4em 0;
    font-size: 1.3em;
}
.new_thread input, .new_thread textarea,
.new_post input, .new_thread textarea {
    background-color: #7D7577;
}
.new_thread .name,
.new_post .name {
    float: right;
}
.new_thread .text textarea,
.new_post .text textarea {
    width: 98%;
    max-width: 98%;
    min-width: 98%;
    min-height: 120px;
}
.new_thread .file input,
.new_post .file input {
    background-color: #53484B;
    min-width: 270px;
}
.new_thread .submit,
.new_post .submit {
    text-align: right;
}
.new_thread .submit input,
.new_post .submit input {
    border: none;
    padding: 0.3em 0.7em;
    margin-left: 0.5em;
    cursor: pointer;
}
.new_post .hide_hover {
    display: none;
    position: absolute;
    top: 0.6em;
    right: 1em;
    cursor: pointer;
}
.new_post.hover .hide_hover {
    display: block;
}
.new_post.hover{
    position: fixed;
    right: 1.5em;
    top: 6em;
    width: 580px;
    border: 1px solid #302528;
}
form input, form textarea {
    border-color: rgba(0, 0, 0, 0.5);
    border-radius: 0.1em;
    border-style: solid;
    padding: 0.2em;
    color: #000;
    font-family: arial;
}
form .input_line {
    margin-bottom: 15px;
}

.post {
    padding: 0.5em 0.8em 0.9em;
    background-color: #171415;
    display: table;
    border: 1px solid #120B0D;
    min-width: 545px;
    margin: 0 0 0.5em 0;
    position: relative;
}
.post:nth-of-type(2n+1) {
    background-color: #151314;
}
.post .details {
    margin: 0.3em 4em 0.3em 0;
    font-size: 0.8em;
}
.post .details > span {
    display: inline-block;
    margin-right: 0.2em;
    font-size: 0.9em;
}
.post .details .poster {
    color: #8D9799;
    max-width: 30em;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}
.post .details .filename {
    max-width: 25em;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}
.post .details .title {
    max-width: 25em;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}
.post .details .number {
    margin-left: 0.5em;
}
.post .details .quoted_by {
    margin-left: 3em;
    position: absolute;
    top: 0.3em;
    right: 0.9em;
}
.post .details .quoted_by a {
    display: inline-block;
    margin-left: 0.2em;
}
.post .text {
    padding: 0.8em 0.5em 0.4em;
    min-height: 1em;
    max-width: 100%;
    word-wrap: break-word;
}
.post .image {
    float: left;
    max-width: 200px;
    margin-right: 0.5em;
    max-height: 350px;
}
.post.original_post .image {
    max-width: 320px;
    margin-right: 0.83em;
}
.image img {
    max-width: 100%;
    max-height: 100%;
}
.image.expanded, .post.original_post .image .expanded, .post .image.expanded {
    max-width: 100%;
    max-height: none;
    float: none;
}
.post:after {
    content: "";
    display: block;
    clear: both;
}
.post.original_post {
    background: none;
    display: block;
    border: none;
    padding: 0px;
}
.post.original_post:after {
    display: none;
}
.greentext {
    color: #71414f;
}
.post:target .image img, .post.highlighted .image img{
    box-shadow: 0px 0px 37px #53739F;
}
.post:target, .post.highlighted {
    border: 1px solid #2D2D2D;
}
.post.original_post:target, .post.original_post.highlighted {
    border: none;
}
.delete_link {
    position: absolute;
    left: 101%;
    top: 0;
    font-size: 0.9em;
}
.post.original_post .delete_link {
    left: auto;
    right: 2%;
}
.text .big {
    font-size: 1.5em;
}
.text .spoiler {
    background: #000;
    color: #000;
    padding: 0.1em;
}
.text .spoiler:hover {
    color: #5B574F;
}
.text a {
    text-decoration: underline;
}
.text a.quote_link {
    text-decoration: none;
}


.delete_post h1 {
    text-align: center;
}
.delete_post .post {
    margin: 1em auto;
}
.delete_post .post .delete_link {
    display: none;
}
.delete_post .submit {
    text-align: center;
}

.catalog .threads {
    margin: 1em 2em;
}
.thread_tile {
    display: inline-block;
    width: 190px;
    vertical-align: top;
    margin: 1em 0.5em;
    padding: 0.5em 1em;
    background-color: #080C0C;
}
.thread_tile h3 {
    width: 100%;
    word-wrap: break-word;
    text-align: center;
    font-size: 1em;
    margin: 0.2em 0;
}
.thread_tile .cover_image {
    width: 100%;
}
.thread_tile .cover_image img {
    max-width: 98%;
    display: block;
    margin: 0px auto;
    max-height: 180px;
}
.thread_tile .date {
    font-size: 0.8em;
}
.thread_tile .open_thread {
    text-align: right;
}

.about_vid {
    margin: 2em 0;
}
.about_vid iframe {
    display: block;
    margin: 0px auto;
}
.privacy {
    margin: 4px auto;
    width: 600px;
}


@media (max-device-width:650px)
{
    #page {
	max-width: 650px;
	min-width: 200px;
    }
    #banner a {
	font-size: 2em;
    }
    .board_title{
	float: none;
    }
    .links {
	float: none;
	margin: 0.4em 0;
    }
    .links div {
	margin-left: 0;
	margin-right: 0.3em;
    }
    #footer {
	margin: 2em 0;
    }
    #page_controls {
	font-size: 3.3em;
    }
    .privacy {
	width: auto;
	margin: 1em;
    }
    
    .frontpage_preview {
	width: 95%;
    }
    .update_group .update {
	min-height: 32vh;
    }

    .new_thread, .new_post {
	width: auto;
    }
    .new_thread .name, .new_post .name {
	float: none;
    }
    .new_post {
	margin: 2em 0;
    }
    .new_thread .file input, .new_post .file input {
	min-width: 0;
	max-width: 98%;
    }

    .thread {
	margin: 1em 0;
    }
    .threads .thread {
	padding: 1em 0;
    }

    .post {
	min-width: 85%;
	max-width: 91%;
	display: block;
	clear: both;
    }
    .post .image {
	max-width: 40%;
    }
    .post .details .number {
	float: right;
    }
    .post .details .poster {
	max-width: 25em;
    }
    .post .details .title {
	max-width: 15em;
    }
    .post.original_post .image {
	max-width: 50%;
    }
    .image.expanded, .post.original_post .image .expanded, .post .image.expanded {
	max-width: 100%;
    }
    .delete_link {
	top: -0.4em;
	right: 0;
	left: auto;
    }

    .catalog .threads {
	margin: 0;
    }
    .thread_tile {
	width: 35%;
	margin: 1em 1%;
    }
}