/* =============================================================================
   LAYOUT - Page Structure (420chan-style)
   ============================================================================= */

html, body {
    margin: 0;
    padding: 0;
}

/* Navigation bar */
#dropdown_container {
    width: 100%;
    margin: 0;
    background: #202020;
    border-bottom: 1px solid #000;
    position: relative;
    z-index: 597;
    min-width: 1024px;
}

ul.dropdown,
ul.dropdown li,
ul.dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.dropdown {
    position: relative;
    z-index: 597;
    width: 100%;
    float: left;
    font: 13px Helvetica, Arial, sans-serif;
    background: #202020;
    border-bottom: 1px solid #000;
    box-shadow: 0px 4px 6px rgba(0,0,0,0.6);
}

ul.dropdown li {
    float: left;
    line-height: 36px;
    height: 36px;
    vertical-align: middle;
    position: relative;
    cursor: default;
}

ul.dropdown li:hover {
    z-index: 599;
}

ul.dropdown ul {
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 598;
    width: 190px;
    background-color: #333;
    border-radius: 0 0 4px 4px;
    box-shadow: 4px 4px 6px rgba(0,0,0,0.6);
}

ul.dropdown ul li {
    float: none;
    line-height: 34px;
    height: auto;
}

ul.dropdown li:hover > ul {
    visibility: visible;
}

ul.dropdown a:link,
ul.dropdown a:visited,
ul.dropdown a.dir {
    color: #ddd;
    text-decoration: none;
    display: inline-block;
    padding: 0 10px;
}

ul.dropdown a:hover {
    color: #76b900;
    text-decoration: none;
}

ul.dropdown ul a:link,
ul.dropdown ul a:visited {
    color: #fff;
    padding: 1px 8px;
    width: 174px;
    display: block;
}

ul.dropdown ul a:hover {
    color: #fff;
    background-color: #76b900;
}

/* Board header */
#logo {
    clear: both;
    margin-left: auto;
    margin-right: auto;
    min-width: 1024px;
    padding-top: 10px;
    padding-bottom: 6px;
    width: 98%;
}

#header {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    height: 74px;
}

#board_logo {
    float: left;
    color: #c0c0c0;
}

img.board_icon {
    width: 64px;
    height: 64px;
    vertical-align: middle;
    float: left;
    border: none;
}

p.board_title_block {
    float: left;
    margin-left: 8px;
    margin-top: 4px;
}

span.board_name {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-weight: bold;
    font-size: 1.1em;
    line-height: 1.0em;
    display: block;
    color: #A0A0A0;
}

span.board_title {
    line-height: 1.2em;
    font-size: 2.0em;
    display: block;
    color: #c0c0c0;
    text-shadow: 1px 1px 2px #000;
}

/* Main content container */
#content {
    border-radius: 6px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 4px;
    min-width: 1024px;
    width: 98%;
    background: #2A2A2A;
}

#topzone {
    border-top-right-radius: 6px;
    border-top-left-radius: 6px;
    -webkit-border-top-right-radius: 6px;
    -webkit-border-top-left-radius: 6px;
    background: #2A2A2A;
    padding: 6px 0;
}

#midzone {
    background: #2A2A2A;
    padding-bottom: 4px;
}

/* Footer */
#footer {
    border-radius: 6px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    margin: 8px auto 6px;
    padding: 4px 10px;
    text-align: center;
    background: #2A2A2A;
}

#footer p {
    color: #707070;
    font-size: 12px;
    font-weight: bold;
    margin: 0 0 6px;
    padding: 1px 0;
    text-align: center;
    background-color: #404050;
}

#footer a {
    color: #40D040;
}
#footer a:hover {
    color: #ffffff;
}

/* Reply mode banner */
.banner.replymode {
    background: #2A2A2A;
    color: #A0A0A0;
    font-size: 12px;
    padding: 4px 10px;
    text-align: left;
    border-bottom: 1px solid #333;
}

/* Board subtitle */
.board_subtitle {
    color: #808080;
    font-size: 11px;
    text-align: center;
    margin: 2px 0;
}

/* Thread interactions */
#thread-interactions {
    padding: 4px 10px;
    font-size: 12px;
    color: #888;
}

#thread-links a,
#thread-quick-reply a {
    color: #40D040;
    margin-right: 8px;
}

#thread-links a:hover,
#thread-quick-reply a:hover {
    color: #ffffff;
}

/* =============================================================================
   END LAYOUT PATCH
   ============================================================================= */

/* =============================================================================
   420chan /weed/ - Randy Theme for vichan
   Merged from: randy.css, layout.css, menus.css, fonts.css, gritter.css
   Based on 420chan archive snapshot: 2019-04-01
   Color scheme:
     Dark bg:       #202020
     Content bg:    #2A2A2A
     Reply bg:      #404040
     Reply header:  #3a3a3c
     Green link:    #40D040
     Gold subject:  #d0cc40
     Green name:    #40AA80
     Body text:     #D0D0D0
   ============================================================================= */


/* =============================================================================
   SECTION 1: FONTS & TYPOGRAPHY  (from fonts.css)
   ============================================================================= */

html, body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
}

#logo {
    font-family: Arial;
    font-size: 2em;
    font-weight: 700;
    text-align: center;
}

#bottomzone {
    text-align: center;
}

.ban {
    font-family: Arial, Helvetica, sans-serif;
}

.banmsg {
    font-size: 1.3em;
    font-weight: 700;
}

.bannedby {
    font-size: 1.1em;
    font-weight: 700;
}

.banreason {
    font-size: 1.1em;
    font-weight: 400;
}

.blotter {
    font-size: 12px;
    text-align: center;
}

.filetitle,
.subject {
    font-size: 1.2em;
    font-weight: 700;
}

.rss {
    text-align: center;
}

.rss-box,
.rss-box-blotter {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
}

.rss-box-blotter {
    font-size: 16px;
    font-weight: 700;
}

.qrpostblock {
    font-family: Arial;
    font-weight: 600;
}

.unkfunc,
blockquote.unkfunc,
.body .quote {
    font-size: 13px;
    font-weight: 600;
}

.dellist {
    font-weight: 700;
    text-align: center;
}

.pages,
.pagelist {
    font-size: 16px;
    text-align: center;
}

input, textarea {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
}

.replytitle {
    font-size: 1.2em;
    font-weight: 600;
}

.name,
.postername {
    font-weight: 700;
}

.reflink a {
    color: inherit;
    text-decoration: none;
}

.commentpostername {
    font-weight: 600;
}

footer p,
#footer p {
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 6px;
    padding: 1px 0;
}

footer,
#footer {
    font-size: 14px;
}

blockquote {
    font-size: 13px;
    margin: 6px 15px 6px;
}

blockquote blockquote.unkfunc {
    margin: 0;
}

blockquote.opcomment {
    margin-top: 0;
}


/* =============================================================================
   SECTION 2: BASE / RESET  (from layout.css + randy.css)
   ============================================================================= */

html, body {
    margin: 0;
    padding: 0;
    background: url("/static/images/tcc2shaderandy.png") repeat center top #202020;
    color: #D0D0D0;
}

a {
    border: none;
    color: #40D040;
    text-decoration: none;
}

a:hover {
    color: #FFFFFF;
}

a:visited {
    color: #40D040;
}

hr {
    border: none;
    border-bottom: 1px solid #505050;
    color: #505050;
    height: 1px;
    margin: 0;
    border-top: none;
    border-left: none;
    border-right: none;
}

form {
    margin-bottom: 0;
}

/* Trap field (honeypot) hidden */
form .trap {
    display: none;
}


/* =============================================================================
   SECTION 3: BORDER RADIUS / CORNERS  (from layout.css)
   ============================================================================= */

textarea, input {
    border-radius: 2px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
}

#content {
    border-radius: 6px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
}

#topzone {
    -moz-border-radius-topleft: 6px;
    -moz-border-radius-topright: 6px;
    -webkit-border-top-right-radius: 6px;
    -webkit-border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border-top-left-radius: 6px;
}

.rss,
#footer p,
#midzone {
    -moz-border-radius-bottomleft: 6px;
    -moz-border-radius-bottomright: 6px;
    -webkit-border-bottom-right-radius: 6px;
    -webkit-border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    border-bottom-left-radius: 6px;
}

/* Reply posts and painter get 3px radius */
.reply,
.post.reply,
#painter,
.overlayFormOn {
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
}

/* Reply header top corners only */
.replyheader,
.post.reply .intro {
    -moz-border-radius-topleft: 3px;
    -moz-border-radius-topright: 3px;
    -webkit-border-top-right-radius: 3px;
    -webkit-border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    border-top-left-radius: 3px;
}

.ban,
footer,
#footer {
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
}

.ui-corner-all {
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
}


/* =============================================================================
   SECTION 4: LAYOUT STRUCTURE  (from layout.css, adapted for vichan)
   ============================================================================= */

#logo {
    clear: both;
    margin-left: auto;
    margin-right: auto;
    min-width: 1024px;
    padding-top: 16px;
    width: 98%;
}

#content {
    background: #2A2A2A;
    margin-left: auto;
    margin-right: auto;
    margin-top: 4px;
    min-width: 1024px;
    width: 98%;
}

footer,
#footer {
    background: #2A2A2A;
    margin: 8px auto 6px;
    padding: 4px 10px;
    padding-bottom: 4px;
    text-align: center;
    width: 600px;
}

footer p,
#footer p {
    margin-left: auto;
    margin-right: auto;
    width: 200px;
}

.pages,
.pagelist {
    margin-bottom: 8px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 3px;
    padding-top: 3px;
    border-top: 1px solid #505050;
}

.blotter {
    margin-bottom: 10px;
    margin-top: 0;
    padding: 0;
    position: static;
    z-index: 1;
}

/* Board list at the top */
.boardlist {
    font-size: 11px;
    padding: 4px 8px;
    background: #181818;
    color: #707070;
}

.boardlist a {
    color: #40D040;
}

.boardlist a:hover {
    color: #ffffff;
}

/* Header (vichan uses <header> tag) */
header {
    background: #202020;
    text-align: left;
    padding: 10px 16px 6px 16px;
    border-bottom: 1px solid #333;
}

header h1 {
    color: #c0c0c0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2em;
    font-weight: bold;
    margin: 0;
    padding: 0;
    text-shadow: 1px 1px 2px #000;
}

header .subtitle {
    color: #808080;
    font-size: 11px;
    margin: 2px 0 0 0;
}

/* Board logo/icon area (420chan used #board_logo, #header) */
#header {
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
    width: 98%;
    min-width: 1024px;
    height: 74px;
}

#board_logo {
    float: left;
    color: #c0c0c0;
}

img.board_icon {
    width: 64px;
    height: 64px;
    vertical-align: middle;
    float: left;
    border: none;
}

p.board_title_block {
    float: right;
    margin-left: 4px;
}

span.board_name {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1.0em;
    margin-left: 4px;
    display: block;
}

span.board_title {
    line-height: 1.2em;
    font-size: 2.0em;
    display: block;
}

/* Board banner image (vichan .board_image) */
.board_image {
    display: block;
    width: 300px;
    height: 100px;
    margin: 0 auto;
}

/* RSS / blotter boxes */
.rss-box li,
.rss-box ul,
.rss li,
.rss ul {
    margin: 0;
    padding: 0;
}

.rss {
    padding: 5px;
    border: 0 none;
    margin-bottom: 5px;
    margin-left: auto;
    margin-right: auto;
    width: 468px;
}

.rss-box,
.rss-box-blotter {
    margin-left: auto;
    margin-right: auto;
    padding-top: 2px;
    width: 468px;
}

.rss-box {
    border-color: #505050;
    border-style: solid none;
    border-width: 1px 1px medium;
    text-align: left;
}

.rss-box a {
    font-weight: normal;
    padding-left: 4px;
}

.rss-box-blotter {
    padding-bottom: 2px;
}

.rss-items li {
    list-style: none outside none;
}

/* Advert container */
.advert {
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    width: 468px;
}

/* Post area (420chan .postarea = vichan form[name="post"] wrapper) */
.postarea {
    text-align: center;
}

.postarea table {
    margin: 0 auto;
    text-align: left;
}

/* Horizontal separator rule */
.hoz {
    /* background image stripped (archived URL) - use plain rule */
    background: transparent;
    clear: both;
    height: 20px;
    margin: 5px 20px;
    border-bottom: 1px solid #505050;
}

/* Core layout helpers */
.full_width {
    width: 100%;
    clear: both;
}

.full_width .page {
    width: 1024px;
    margin: 0 auto;
    padding-right: 0;
    padding-left: 0;
    position: relative;
}

/* Overlay form (painter / quick reply overlay) */
.overlayFormOn {
    background: #222;
    left: 40%;
    padding: 6px;
    position: fixed;
    top: 40%;
    z-index: 1002;
}

.overlayFormOff {
    left: 0;
    position: fixed;
    top: 0;
    visibility: hidden;
    z-index: 1002;
}

.shaderOn {
    background: gray;
    height: 100%;
    left: 0;
    opacity: 0.66;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
}

.shaderOff {
    background: gray;
    height: 100%;
    left: 0;
    opacity: 1;
    position: fixed;
    top: 0;
    visibility: hidden;
    width: 100%;
    z-index: 1001;
}

/* Painter widget */
#painter {
    background: #303040;
    font-weight: bold;
    margin: 5px auto;
    padding: 5px 0;
    text-align: center;
    width: 468px;
}

/* iframe embed */
.iframe img {
    background: none;
    border: medium none;
    margin-bottom: -8px;
    margin-top: -20px;
}

.iframe {
    background: none;
}

/* Abbreviation / "post is ignored" message */
div.abbrev {
    margin-top: 10px;
}

p.ignored {
    font-size: 14px;
    text-shadow: 1px 1px 1px #000;
    font-weight: bold;
    margin-left: 30px;
    margin-bottom: 0;
}

a .ignored {
    display: none;
}

/* Quick reply header */
p.qrheader {
    font-weight: bold;
    font-size: 14px;
}

/* Sandwich popup icon */
a.popup {
    text-indent: -9999px;
    width: 16px;
    height: 16px;
    margin-left: 2px;
    margin-top: -2px;
    display: inline-block;
    position: relative;
    background: transparent no-repeat;
    /* sandwich.png - local path needed: background-image: url(/static/images/sandwich.png); */
}

span.sandwich {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    overflow: hidden;
    position: absolute;
    text-indent: -99999px;
}

/* Display toggles used by 420chan JS (keep as no-ops / hidden) */
.shownws,
.helpon,
.showdrugs,
.partyoff,
.modpost,
.sidenavoff,
.musicon {
    display: none;
}

#xmas {
    height: 0;
    width: 0;
}

/* Replypage hides the reply link */
.replypage .replylink {
    display: none;
}


/* =============================================================================
   SECTION 5: COLOR THEME  (from randy.css, 420chan randy.css)
   ============================================================================= */

#logo {
    color: #A0A0A0;
}

#content,
#footer {
    background: #2A2A2A;
}

/* Reply header bar */
div.replyheader {
    color: #aaa;
    background: #3a3a3c;
    padding-right: 4px;
    padding-top: 1px;
    padding-bottom: 1px;
}

input {
    background: #0F0F1A;
    border: 1px solid #404040;
    color: #EEEEEE;
}

textarea {
    background: #0F0F1A;
    border: 1px solid #404040;
    color: #EEEEEE;
}

input[type="submit"],
input[type="button"] {
    background: #2a2a2a;
    border: 1px solid #505050;
    color: #D0D0D0;
    cursor: pointer;
    padding: 2px 8px;
}

input[type="submit"]:hover {
    color: #ffffff;
    background: #404040;
}

.rss,
#footer p {
    background-color: #404050;
}

.rss-box,
.rss-box-blotter {
    color: #E0E0E0;
}

.filetitle,
.subject {
    color: #d0cc40;
    font-family: "Helvetica", "Arial", sans-serif;
    text-shadow: 1px 1px 1px #000;
}

.qrpostblock {
    background: #606060;
    border: 1px solid #808080;
    color: #C0C0C0;
    position: static;
    z-index: 2;
}

.omittedposts {
    color: #808090;
}

/* Reply post background */
.reply,
.post.reply,
div.post.reply {
    background: #404040;
    color: #D0D0D0;
    padding: 0;
    padding-bottom: 3px;
}

.nothumb {
    background: #EEEEEE;
    border: 2px dashed #AAAAAA;
}

/* Highlighted / currently selected post */
.highlighted,
.highlight {
    background: #505060 !important;
    border: 2px dashed #5060D0 !important;
    color: #D0D0D0 !important;
}

.name,
.postername {
    color: #40AA80;
    font-family: "Helvetica", "Arial", sans-serif;
}

.postertrip,
.postertrip a {
    color: #1D855A;
    font-family: "Helvetica", "Arial", sans-serif;
}

.replytitle {
    color: #D0CC05;
}

button {
    color: #393949;
}

input.label,
textarea.label {
    color: grey;
}

.commentpostername {
    color: #40AA80;
    margin-left: 5px;
}

.thumbnailmsg {
    color: #D0D0D0;
    clear: both;
}

.abbrev {
    color: #707070;
}

.unkfunc,
blockquote.unkfunc,
.body .quote {
    color: #D0CC05;
}

footer a,
#footer a {
    color: #40D040;
}

footer a:hover,
#footer a:hover {
    color: #ffffff;
}


/* =============================================================================
   SECTION 6: POST FORM  (vichan form[name="post"])
   ============================================================================= */

form[name="post"] {
    background: #2A2A2A;
    padding: 10px;
    text-align: center;
    margin: 8px auto;
}

form[name="post"] table {
    margin: 0 auto;
    text-align: left;
    border-collapse: collapse;
}

form[name="post"] th {
    color: #A0A0A0;
    font-size: 11px;
    font-weight: bold;
    text-align: right;
    padding: 3px 8px 3px 4px;
    white-space: nowrap;
    vertical-align: middle;
}

form[name="post"] td {
    padding: 2px 4px;
    vertical-align: middle;
}

form[name="post"] input[type="text"],
form[name="post"] input[type="password"],
form[name="post"] textarea {
    background: #0F0F1A;
    border: 1px solid #404040;
    color: #EEEEEE;
    font-size: 12px;
    padding: 2px 4px;
}

form[name="post"] textarea {
    padding: 3px;
    resize: vertical;
}

form[name="post"] input[type="submit"] {
    background: #2a2a2a;
    border: 1px solid #606060;
    color: #D0D0D0;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    padding: 3px 10px;
    margin-left: 4px;
}

form[name="post"] input[type="submit"]:hover {
    background: #404040;
    color: #ffffff;
}

.unimportant {
    color: #707070;
    font-size: 11px;
}


/* =============================================================================
   SECTION 7: THREADS & POSTS  (vichan .thread, .post.op, .post.reply)
   ============================================================================= */

.thread {
    margin: 8px 10px;
    clear: both;
}

.thread_header {
    padding-left: 5px;
    margin-top: 3px;
}

/* OP post */
.post.op {
    display: block;
    margin-bottom: 2px;
    padding-left: 2px;
}

/* Reply post */
.post.reply {
    display: table;
    margin: 4px 0 4px 30px;
    clear: left;
}

/* Post intro bar (contains name, date, number) */
.intro {
    display: block;
    padding: 2px 6px 2px 4px;
    margin-bottom: 2px;
    font-size: 12px;
    line-height: 1.6;
}

.post.reply .intro {
    background: #3a3a3c;
    color: #aaa;
    padding: 1px 6px 1px 4px;
}

/* Subject / thread title */
.subject,
.filetitle {
    color: #d0cc40;
    font-family: "Helvetica", "Arial", sans-serif;
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 1px 1px 1px #000;
}

/* Post number link */
.post_no {
    color: #40D040;
    font-size: 11px;
    text-decoration: none;
}

.post_no:hover {
    color: #FFFFFF;
}

/* Timestamp */
time {
    color: #888888;
    font-size: 11px;
}

/* Post body text */
.body {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 800px;
    line-height: 1.5;
    padding: 2px 8px 4px 8px;
    font-size: 13px;
}

.post.op .body {
    padding-left: 2px;
}

/* Greentext / quote */
.body .quote,
.unkfunc,
blockquote.unkfunc {
    color: #D0CC05;
    font-size: 13px;
    font-weight: 600;
}

/* Omitted posts count */
.omittedposts {
    color: #808090;
    margin: 5px 10px;
    display: inline-block;
}

/* Backlinks */
.backlink,
a.backlink {
    color: #40D040;
    font-size: 11px;
    text-decoration: none;
}

.backlink:hover {
    color: #ffffff;
}

/* Inbetween separator */
.inbetween {
    margin-left: 1px;
    margin-right: 1px;
    font-family: "Helvetica", "Arial", sans-serif;
}

/* Double dash spacer */
.doubledash {
    clear: both;
    float: left;
    vertical-align: top;
    padding-left: 0;
}

/* Report button */
.rptbtn {
    margin-left: 4px;
    margin-right: 4px;
}

/* Clear floats */
br.clear {
    clear: both;
}

.clear {
    clear: both;
    display: block;
}

/* Reply label */
.reply label {
    /* intentionally unstyled */
}


/* =============================================================================
   SECTION 8: FILE ATTACHMENTS & IMAGES
   ============================================================================= */

.files {
    float: left;
    margin-right: 15px;
    margin-bottom: 4px;
}

.file {
    margin-bottom: 4px;
}

.fileinfo,
.filesize {
    font-size: 11px;
    color: #888888;
    display: block;
    clear: both;
    padding-top: 5px;
    padding-bottom: 5px;
}

/* In reply posts, reduce bottom padding */
.reply .filesize,
.post.reply .filesize {
    margin-left: 15px;
    padding-bottom: 5px;
}

.fileinfo a,
.filesize a {
    color: #40D040;
}

.fileinfo a:hover,
.filesize a:hover {
    color: #ffffff;
}

/* Thumbnail image */
.post-image,
.thumb {
    border: medium none;
    float: left;
    margin: 0 15px 8px 0;
    display: block;
}

.post-image:hover {
    opacity: 0.85;
}

/* Expanded inline image */
.post-image.expanded {
    max-width: 100%;
    height: auto;
    float: none;
}

/* Missing thumbnail placeholder */
.nothumb {
    background: #EEEEEE;
    border: 2px dashed #AAAAAA;
    float: left;
    margin: 2px 20px;
    padding: 1em 0.5em;
    text-align: center;
}

/* Hover on linked image */
.a:hover img {
    background: none;
    border: medium none;
}

/* Checkbox alignment (used in delete form) */
.checkbox {
    margin: -2px 0 0 0;
    padding: 0;
    vertical-align: middle;
}

input.delete {
    margin-right: 4px;
    vertical-align: middle;
}


/* =============================================================================
   SECTION 9: PAGINATION
   ============================================================================= */

.pages,
.pagelist {
    font-size: 16px;
    text-align: center;
    margin: 6px 10px;
    color: #D0D0D0;
    border-top: 1px solid #505050;
    padding: 3px 0;
}

.pages a,
.pagelist a {
    color: #40D040;
    text-decoration: none;
    padding: 0 3px;
}

.pages a:hover,
.pagelist a:hover {
    color: #ffffff;
}

.pages .selected,
.pages a.selected,
.pagelist .selected,
.pagelist a.selected {
    color: #ffffff;
    font-weight: bold;
}


/* =============================================================================
   SECTION 10: SPOILER TEXT
   ============================================================================= */

.spoiler {
    background: #202020;
    color: #202020;
    /* background image replaced - was spoilers.png */
}

.spoiler span {
    visibility: hidden;
}

.spoiler:hover {
    background: #202020;
    background-image: none;
    border: medium none;
    color: #D0D0D0;
}

.spoiler:hover span {
    visibility: visible;
}


/* =============================================================================
   SECTION 11: BAN NOTICES
   ============================================================================= */

.ban {
    background: #ffe0e0;
    border: 1px dotted #f00;
    clear: both;
    margin: 4px;
    max-width: 450px;
    overflow: auto;
}

.banmessages {
    float: left;
    max-width: 382px;
    padding-right: 4px;
}

.banmsg {
    color: #f00;
    font-size: 1.3em;
    font-weight: bold;
    padding-top: 3px;
}

.bannedby {
    color: #f00;
    font-size: 1.1em;
    font-weight: bold;
}

.banreason {
    color: #202020;
    font-size: 1.1em;
    margin-top: 2px;
}

.banimage {
    float: left;
    height: 64px;
    width: 64px;
}

/* .banned class had a background-image for balloons.png (archived URL stripped) */
.banned {
    /* background-image: url(/static/images/balloons.png); */
}


/* =============================================================================
   SECTION 12: POST CONTROLS / DELETE / REPORT FORMS
   ============================================================================= */

#post-moderation-fields {
    font-size: 11px;
    margin: 6px 10px;
    color: #888;
}

#delete-fields,
#report-fields {
    display: inline;
    margin-right: 10px;
}

#post-moderation-fields input[type="text"],
#post-moderation-fields input[type="password"] {
    background: #0F0F1A;
    border: 1px solid #404040;
    color: #EEEEEE;
    font-size: 11px;
    padding: 1px 3px;
}

#post-moderation-fields input[type="submit"] {
    background: #2a2a2a;
    border: 1px solid #505050;
    color: #D0D0D0;
    font-size: 11px;
    padding: 1px 5px;
    cursor: pointer;
}

#post-moderation-fields input[type="submit"]:hover {
    background: #404040;
    color: #ffffff;
}

.dellist {
    font-weight: bold;
    text-align: center;
}


/* =============================================================================
   SECTION 13: SIDEBAR NAV
   ============================================================================= */

#sidenavbar {
    background: #2A2A2A;
    color: #F0F0F0;
}

#sidenavbar h3 {
    background: #303040;
}

#sidenavbar ul,
#sidenavbar li {
    background: #202030;
}


/* =============================================================================
   SECTION 14: MENU HEADERS
   ============================================================================= */

.menuheadermid {
    border-bottom: 1px solid #808080;
    border-top: 1px solid #808080;
}

.menuheader {
    border-bottom: 1px solid #808080;
}


/* =============================================================================
   SECTION 15: DROPDOWN NAVIGATION  (from menus.css + randy.css dropdown styles)
   ============================================================================= */

/* Dropdown container */
#dropdown_container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    min-width: 1024px;
}

/* Reset list styles */
ul.dropdown,
ul.dropdown li,
ul.dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Top-level bar */
ul.dropdown {
    position: relative;
    z-index: 597;
    width: 100%;
    margin: 0 auto;
    float: left;
    top: 0;
    font: 13px Helvetica, Arial, sans-serif;
    background: #202020;
    border-bottom: 1px solid #000;
    -moz-box-shadow: 0px 4px 6px rgba(0,0,0, 0.6);
    box-shadow: 0px 4px 6px rgba(0,0,0, 0.6);
    -webkit-box-shadow: 0px 4px 6px rgba(0,0,0, 0.6);
}

/* Top-level items */
ul.dropdown li {
    float: left;
    line-height: 36px;
    height: 36px;
    vertical-align: middle;
    zoom: 1;
    padding: 0;
    color: #ddd;
}

ul.dropdown li.hover,
ul.dropdown li:hover {
    position: relative;
    z-index: 599;
    cursor: default;
}

/* Sub-menu */
ul.dropdown ul {
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 598;
    width: 190px;
    background-color: #333;
    color: #ddd;
    opacity: .95;
    -moz-opacity: .95;
    text-transform: none;
    -moz-border-radius: 0 0 4px 4px;
    border-radius: 0 0 4px 4px;
    -webkit-border-radius: 4px 4px;
    -webkit-border-top-left-radius: 0;
    -webkit-border-top-right-radius: 0;
    -moz-box-shadow: 4px 4px 6px rgba(0,0,0, 0.6);
    box-shadow: 4px 4px 6px rgba(0,0,0, 0.6);
    -webkit-box-shadow: 4px 4px 6px rgba(0,0,0, 0.6);
}

ul.dropdown ul ul {
    top: 1px;
    left: 99%;
}

/* Show sub-menu on hover */
ul.dropdown li:hover > ul {
    visibility: visible;
}

/* Sub-menu items */
ul.dropdown ul li {
    float: none;
    background-color: transparent;
    color: #000;
    filter: none;
}

ul.dropdown ul li.hover,
ul.dropdown ul li:hover {
    background-color: transparent;
}

/* Links */
ul.dropdown a:link,
ul.dropdown a:visited,
ul.dropdown a.dir {
    color: #ddd;
    text-decoration: none;
}

ul.dropdown a:hover {
    color: #76b900;
    text-decoration: none;
}

ul.dropdown a:active {
    color: #fff;
}

ul.dropdown li a {
    display: inline-block;
    padding: 0 10px;
}

ul.dropdown li.dir {
    padding: 6px 20px 6px 14px;
}

ul.dropdown ul li.dir {
    padding-right: 15px;
}

ul.dropdown ul a {
    padding: 1px 2px;
    height: 34px;
    width: 186px;
    line-height: 34px;
}

ul.dropdown ul a img {
    margin-right: 2px;
    vertical-align: middle;
}

/* Sub-menu link colors */
ul.dropdown ul a:link,
ul.dropdown ul a:visited {
    color: #fff;
}

ul.dropdown ul a:hover {
    color: #fff;
    text-decoration: none;
    background-color: #76b900;
}

ul.dropdown ul a:active {
    color: #fff;
}

/* Open state */
ul.dropdown a.open {
    background-color: #2e2e2e;
    color: #76b900;
}

ul.dropdown ul a.open {
    background-color: #76b900;
    color: #fff;
}

/* Hover on dir items */
ul.dropdown li:hover > a.dir {
    background-color: #2e2e2e;
    color: #76b900;
}

ul.dropdown ul li:hover > a.dir {
    background-color: #76b900;
    color: #fff;
}

/* Dir arrow (no image needed) */
ul.dropdown *.dir {
    background-image: none;
    background-position: 100% 50%;
    background-repeat: no-repeat;
}

/* Small logo in menu */
ul.dropdown img.small_logo {
    padding: 2px 2px 0;
    margin: 0;
    border: none;
}

/* Options dropdown positioning */
#options {
    left: -97px;
    -moz-box-shadow: -4px 4px 6px rgba(0,0,0, 0.6);
    box-shadow: -4px 4px 6px rgba(0,0,0, 0.6);
    -webkit-box-shadow: -4px 4px 6px rgba(0,0,0, 0.6);
}

.chrome #options,
.safari #options {
    left: -98px;
}


/* =============================================================================
   SECTION 16: TOOLTIP (post hover preview)
   ============================================================================= */

div.tooltip {
    background-color: #303040;
    -moz-border-radius: 4px;
    border-radius: 4px;
    -moz-box-shadow: 0 0 12px #000000;
    box-shadow: 0 0 12px #000;
    color: #E0E0E0;
    display: none;
    font-size: 12px;
    padding: 10px 15px;
    text-align: left;
    width: 290px;
    position: absolute;
    z-index: 1000;
}


/* =============================================================================
   SECTION 17: JQUERY UI STRUCTURAL RULES  (from randy.css / layout.css)
   Note: Background images use fallback colors only (archived URLs stripped)
   ============================================================================= */

.ui-state-default,
.ui-widget-content .ui-state-default {
    /* background image stripped (archived URL) */
    background: #202020;
    color: #CCCCCC;
    font-weight: normal;
    outline: medium none;
}

.ui-state-default a,
.ui-state-default a:link,
.ui-state-default a:visited {
    color: #40D040;
    outline: medium none;
    text-decoration: none;
}

.ui-state-hover,
.ui-widget-content .ui-state-hover,
.ui-state-focus,
.ui-widget-content .ui-state-focus {
    /* background image stripped (archived URL) */
    background: #404080;
    color: #96F226;
    font-weight: normal;
    outline: medium none;
}

.ui-state-hover a,
.ui-state-hover a:hover {
    color: #96F226;
    outline: medium none;
    text-decoration: none;
}

.ui-state-active,
.ui-widget-content .ui-state-active {
    /* background image stripped (archived URL) */
    background: #A26206;
    color: #FFFFFF;
    font-weight: normal;
    outline: medium none;
}

.ui-state-active a,
.ui-state-active a:link,
.ui-state-active a:visited {
    color: #FFFFFF;
    outline: medium none;
    text-decoration: none;
}

.ui-state-disabled,
.ui-widget-content .ui-state-disabled {
    background-image: none;
    opacity: 0.35;
    cursor: default !important;
}

/* UI Icon base (sprite images stripped, use generic fallback) */
.ui-icon {
    /* background-image URL stripped (archived) */
    background-repeat: no-repeat;
    display: block;
    overflow: hidden;
    text-indent: -99999px;
    height: 16px;
    width: 16px;
}

a.ui-icon {
    float: left;
}

/* FG Button styles */
.fg-button {
    cursor: pointer;
    display: inline-block;
    margin: 1px;
    outline: 0 none;
    padding: 2px 5px;
    position: relative;
    text-align: center;
    text-decoration: none !important;
}

.fg-button .ui-icon {
    left: 50%;
    margin-left: -8px;
    margin-top: -9px;
    position: absolute;
    top: 50%;
}

button.fg-button {
    overflow: visible;
    width: auto;
}

.fg-button-icon-left {
    padding-left: 1.6em;
}

.fg-button-icon-right {
    padding-right: 2.1em;
}

.fg-button-icon-left .ui-icon {
    left: 0.1em;
    margin-left: 0;
    right: auto;
}

.fg-button-icon-right .ui-icon {
    left: auto;
    margin-left: 0;
    right: 0.2em;
}

.fg-button-icon-solo {
    text-indent: -9999px;
    width: 8px;
}

.fg-buttonset {
    float: left;
}

.fg-buttonset .fg-button {
    float: left;
}

.fg-buttonset-single .fg-button,
.fg-buttonset-multi .fg-button {
    margin-right: -1px;
}

.fg-toolbar {
    margin: 0;
    padding: 0.5em;
}

.fg-toolbar .fg-buttonset {
    margin-right: 1.5em;
    padding-left: 1px;
}

.fg-toolbar .fg-button {
    font-size: 1em;
}


/* =============================================================================
   SECTION 18: GRITTER NOTIFICATIONS  (from gritter.css)
   Note: All background-image URLs were Wayback Machine archived URLs.
         They have been stripped. Local replacements noted with comments.
         Install gritter images to /static/images/ for full effect.
   ============================================================================= */

/* IE6 fix */
* html #gritter-notice-wrapper {
    position: absolute;
}

* html .gritter-top {
    margin-bottom: -10px;
}

* html .gritter-item {
    padding-bottom: 0;
}

* html .gritter-bottom {
    margin-bottom: -11px;
}

* html .gritter-close {
    /* background: url(/static/images/gritter-close-ie6.gif); */
    width: 22px;
    height: 22px;
    top: 7px;
    left: 7px;
}

/* Notice wrapper */
#gritter-notice-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 301px;
    z-index: 9999;
}

.gritter-item-wrapper {
    position: relative;
    margin: 0 0 10px;
}

/* Top cap of notification */
.gritter-top {
    /* background-image: url(/static/images/gritter-top.png); */
    background-color: #303040;
    background-repeat: no-repeat;
    background-position: top left;
    height: 10px;
    border-radius: 4px 4px 0 0;
}

.hover .gritter-top {
    background-position: top right;
}

/* Bottom cap of notification */
.gritter-bottom {
    /* background-image: url(/static/images/gritter-bottom.png); */
    background-color: #303040;
    background-repeat: no-repeat;
    background-position: top left;
    height: 8px;
    margin: 0;
    border-radius: 0 0 4px 4px;
}

.hover .gritter-bottom {
    background-position: top right;
}

/* Main notification body */
.gritter-item {
    display: block;
    /* background-image: url(/static/images/gritter-bg-tile.png); */
    background-color: #2a2a40;
    background-repeat: repeat-y;
    background-position: top left;
    color: #eee;
    padding: 2px 11px 8px;
    font-size: 11px;
    font-family: Verdana, Arial, sans-serif;
}

.hover .gritter-item {
    background-position: top right;
}

.gritter-item p {
    padding: 0;
    margin: 0;
}

/* Close button */
.gritter-close {
    position: absolute;
    top: 5px;
    left: 3px;
    /* background: url(/static/images/gritter-close.png); */
    background: #505060;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 3px;
}

/* Title */
.gritter-title {
    font-size: 14px;
    font-weight: 700;
    padding: 0 0 7px;
    display: block;
    text-shadow: 1px 1px #000;
    color: #40D040;
}

/* Gritter image thumbnail */
.gritter-image {
    width: 64px;
    height: 64px;
    float: left;
}

.gritter-with-image,
.gritter-without-image {
    padding: 0 0 5px;
}

.gritter-with-image {
    width: 210px;
    float: right;
}


/* =============================================================================
   SECTION 19: FOOTER EXPANDED
   ============================================================================= */

footer,
#footer {
    background: #2A2A2A;
    text-align: center;
    margin: 8px auto 6px;
    padding: 4px 10px;
}

footer p,
#footer p {
    color: #707070;
    font-size: 12px;
    font-weight: bold;
    margin: 0 0 6px;
    padding: 1px 0;
    text-align: center;
}

/* 420chan #foot element (global site footer) */
#foot {
    font-size: 80%;
    text-align: left;
    margin: 0;
    padding: 0;
    background: #303030;
    border-top: 1px solid #686868;
    color: #A9A9A9;
    margin-top: 1em;
    padding: 2em 0;
    width: 100%;
}

#foot h3 {
    font-size: 1.5em;
    letter-spacing: -0.8px;
    margin-bottom: 0.7em;
    font-weight: normal;
}

#foot li {
    list-style: none;
    margin: 0;
}

#foot li ul {
    margin: 0;
    padding: 0;
}

#foot:after {
    clear: both;
    content: ".";
    display: block;
    font-size: 0;
    height: 0;
    visibility: hidden;
}

/* Two-column footer layout */
#leftcol {
    float: left;
    position: relative;
    width: 46.1em;
    padding: 0;
    margin: 0;
    margin-right: 3em;
}

.rightcol {
    float: left;
    position: relative;
    width: 20.5em;
    margin: 0;
    padding: 0;
}

.rightcol a {
    color: #777;
}

.rightcol a:hover {
    background: #A9A9A9;
    color: #303030;
}

.space {
    margin-right: 3em;
}

/* Infobar (below footer) */
#infobar {
    background: #1F1F1F;
    border-top: 1px solid #393939;
    position: relative;
}

#infobar a {
    display: block;
    height: 79px;
    text-indent: -9999px;
}

#infobar ul {
    list-style: none;
    margin: 0;
}

#infobar li {
    float: left;
    margin-right: 1em;
}

#infobar:after {
    clear: both;
    content: ".";
    display: block;
    font-size: 0;
    height: 0;
    visibility: hidden;
}


/* =============================================================================
   SECTION 20: MISC UTILITY & VICHAN-SPECIFIC
   ============================================================================= */

/* Thread header */
.thread_header {
    padding-left: 5px;
    margin-top: 3px;
}

/* Reflink (>>postno links) */
.reflink a {
    color: inherit;
    text-decoration: none;
}

/* Widget styles */
li.widget {
    font-size: 1.3em;
    line-height: 1.385em;
}

li.widget p {
    margin-bottom: 1.385em;
}

li.widget abbr,
li.widget acronym {
    font-size: 0.846em;
}

li.widget code {
    font-size: 0.923em;
}

li.widget ul li {
    margin-bottom: 0.692em;
}

li.widget li ul {
    margin: 0.692em 0 0 1.385em;
}

li.widget .widget_box {
    padding: 0.692em;
    border-width: 0.077em;
}

/* blockquote last child margin reset */
blockquote :last-child {
    margin-bottom: 0;
}
