/* YUI Reset */
html{color:#000;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:text-top;}sub{vertical-align:text-bottom;}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}input,textarea,select{font-size:100%;}legend{color:#000;}ins{text-decoration:none;}

html {
  overflow-y: scroll;
}

body {
  font: 12px Arial, sans-serif;
  background-color: #8C92AC;
}

strong {
  font-weight: bold;
}

em {
  font-style: italic;
}

h3, h4 {
  font-weight: bold;
}

h3 {
  font-size: 15px;
  margin-bottom: 10px;
}

h4 {
  font-size: 13px;
  margin: 10px 0px 5px 0px;
}

a {
  color: #000;
  text-decoration: none;
  border-bottom: 1px dotted #555;
  outline: none;
}

hr {
  clear: both;
  border: none;
  border-top: 1px dotted #555;
}

code {
  padding: 1px 5px 1px 5px;
  background-color: #b9cf8a;
  color: #000;
}

kbd {
  background-color: #f7f7f7;
  border: 1px solid #ccc;
  border-radius: 3px 3px 3px 3px;
  box-shadow: 0 1px 0 #ccc, 0 0 0 2px #fff inset;
  font-family: monospace;
  font-size: 11px;
  line-height: 1.4;
  padding: 0 5px;
  cursor: default;
}

p {
  margin-bottom: 15px;
}

input,
textarea {
  border: none;
  font-size: 12px;
  border-radius: 5px;
  background: #fff;
  outline: none;
}

input {
  margin: 0px 2px;
  height: 18px;
}

s {
  text-decoration: none;
}

/* Clickables */
.button {
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border: none;
  margin: 0px 1px;
  padding: 2px 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
  background-color: #555;
  background-image: -moz-linear-gradient(center top, #636363, #525252);
  background-image: -webkit-linear-gradient(top, #636363, #525252);
  background-image: -o-linear-gradient(top, #636363, #525252);
  white-space: nowrap;
}

.button:focus {
  outline: none;
}

.btn-field {
  white-space: nowrap;
}

.btn-field .button:first-child {
  margin-right: 0;
}

.clickbox {
  width: 12px;
  height: 16px;
  line-height: 16px;
  display: block;
  text-align: center;
  background-color: #626473;
  background-image: none;
}

/* Active clickables */
.button:hover,
.active {
  color: #000;
  background-color: #FFA500;
  background-image: -moz-linear-gradient(center top, #ffa500, #e89700);
  background-image: -webkit-linear-gradient(top, #ffa500, #e89700);
  background-image: -o-linear-gradient(top, #ffa500, #e89700);
}

/* Input box for custom colors */
.custom-rgb {
  width: 45px;
}

/* UI panels */
.backdrop {
  position: fixed;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  top: 0;
  left: 0;
}

.panel {
  border: 2px solid #555;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  background-color: #8C92AC;
  position: absolute;
  display: none;
  padding: 10px;
  z-index: 10;
}

.panel-footer {
  margin-top: 10px;
  text-align: center;
}

.panel h3 {
  text-align: center;
}

#disclaimer {
  width: 360px;
  top: 60px;
  left: 50%;
  margin-left: -193px;
  display: block;
}

.clickset {
  margin-bottom: 8px;
}

.clickset li {
  clear: both;
  margin-bottom: 2px;
  line-height: 20px;
}

.clickset ul {
  margin-left: 0.75em;
}

.clickset ul li:before {
  border-bottom: 1px solid;
  border-left: 1px solid;
  content: ' ';
  display: inline-block;
  height: 8px;
  width: 8px;
  margin-right: 3px;
  margin-bottom: 3px;
}

.inputset {
  margin-bottom: 3px;
}

/* Text shadow for bright colors */
.hl-high {
  text-shadow: 0px 1px 2px #000;
}

/* Halo highlight for new stuff */
.nu {
  -moz-box-shadow: 0 0 10px 3px #FFA500 !important;
  box-shadow: 0 0 10px 3px #FFA500 !important;
}

.nu2 {
  text-shadow: 0 3px 3px #FFA500, 0 -3px 3px #FFA500 !important;
}

/* Notifications */
.msg-error,
.msg-ok {
  border-radius: 3px;
  padding: 1px 5px 1px 5px;
}

.msg-ok {
  background-color: #b9cf8a;
  color: #000;
}

.msg-error {
  background-color: #E62020;
  color: #fff;
}

.sep {
  font-size: 8px;
}

/* Containers */
header,
#content,
footer {
  padding-left: 15px;
  padding-right: 15px;
}

/***************************************************************/
/* Container for the title and the navigation menu */
header {
  display: block;
  text-align: center;
  padding-top: 5px;
}

/* Board's title */
#title {
  font-size: 32px;
  font-weight: bold;
  word-wrap: break-word;
}

@media all and (max-width: 480px) {
  #title {
    font-size: 16px;
  }
}

/* Info bar: update time, order, etc on the left */
/* Settings bar: buttons on the right */
#info,
#settings {
  padding: 10px 0px 5px 0px;
}

#info {
  float: left;
}

#settings {
  float: right;
}

.lbl {
  margin: 0 2px;
}

/* Wrapper for the bars mentioned above */
#ctrl {
  margin-top: 15px;
  padding-bottom: 10px;
  line-height: 20px;
  border-bottom: 1px dotted #555;
}

/* ie fix */
#pinned-ctrl:before {
  display: inline;
}

#pinned-ctrl span {
  margin-left: 3px;
  font-size: .95em;
  pointer-events: none;
}

#order-cnt {
  display: inline-block;
  position: relative;
}

#order-list {
  padding-bottom: 5px;
  bottom: 18px;
  position: absolute;
  display: none;
  white-space: nowrap;
}

.order-date #order-date,
.order-alt #order-alt,
.order-r #order-r,
.order-lr #order-lr,
.order-act #order-act {
  display: none;
}

#filtered-count,
#hidden-count,
#ordered-by {
  font-weight: bold;
}

#filtered-label,
#hidden-label {
  display: none;
}

/* Search "Quickfilter" Bar related elements */
#qf-cnt {
  display: none;
}

#qf-box {
  width: 120px;
  border-radius: 5px;
  padding-left: 3px;
  padding-right: 3px;
}

/* Messages displayed in the upper left corner */
#protip {
  position: absolute;
  top: 0px;
  left: 0px;
  background: #b9cf8a;
  color: #000;
  padding: 4px 10px;
  text-align: left;
  border-bottom-right-radius: 6px;
}

#protip a {
  border: none;
  color: #fff;
}

#protip a:hover {
  color: #000;
}

/* Top navigation menu */
#topnav {
  margin-top: 10px;
  line-height: 20px;
}

#topnav li {
  display: inline-block;
}

#topnav li.hidden { display: none }

#topnav img {
  vertical-align: middle;
  padding-bottom: 2px;
}

#topnav #more-slugs-btn {
  display: none;
}

#rss a {
  border: none;
  padding: 2px 4px;
}

/* Front page menu */
.front {
  line-height: 35px !important;
}

.front a {
  padding: 3px 5px;
  font-size: 20px;
}

/***************************************************************/

#captcha-cnt {
  width: 300px;
  height: 100px;
  background-color: #fff;
  text-align: center;
  line-height: 100px;
}

#sync-status {
  margin-top: 5px;
}

#sync-qr-cnt {
  text-align: center;
}

#captcha-form {
  margin-top: 10px;
  margin-bottom: 10px;
}

#captcha-response {
  width: 295px;
}

#close-sync {
  float: right;
}

#sync-panel {
  width: 300px;
  left: 50%;
  margin-left: -165px;
}

#sync-panel hr {
  margin-top: 10px
}

/* Theme editor panel */
#theme,
#merge {
  width: 330px;
  top: 30px;
  left: 50%;
  margin-left: -178px;
}

@media all and (max-width: 365px) {
  #theme {
    left: 0;
    margin-left: 0;
  }
}

.settings-field {
  margin: 5px 0 0 0;
  width: 100%;
}

.settings-area {
  font-family:
    'DejaVu Sans Mono',
    'Consolas',
    'Andale Mono',
    'Lucida Console',
    monospace;
  width: 100%;
  min-width: 100%;
}

/***************************************************************/

/* Filters panel */
#filters {
  width: 460px;
  top: 0;
  left: 50%;
  margin-left: -243px;
}

#filters-search {
  position: absolute;
  width: 50px;
  font-size: 11px;
  padding: 0 2px;
}

#filters-search:focus {
  width: 100px;
}

#filters-help-open {
  position: absolute;
  right: 10px;
}

#filters-input {
  position: absolute;
  visibility: hidden;
  width: 0;
}

#filters-import {
  display: inline-block;
}

#filters-import li {
  display: none;
}

#filters-import:hover li,
#filters-import li:first-child {
  display: inline;
}

@media all and (max-width: 395px) {
  #filters {
    left: 0;
    margin-left: 0;
  }
}

#filters .clickbox {
  margin: auto;
}

/* Filters help panel */
#filters-protip {
  padding: 10px;
  width: 570px;
  top: 50px;
  left: 50%;
  margin-left: -295px;
}

@media all and (max-width: 605px) {
  #filters-protip {
    left: 0;
    margin-left: 0;
  }
}

#filters-protip ul {
  margin-bottom: 10px;
}

#filters-protip li {
  margin: 5px 0px;
}

/* Filters color palette */
#filter-palette {
  width: 95px;
  padding: 5px;
}

/* Filters color palette clear and close buttons */
#filter-palette-clear,
#filter-palette-close {
  margin-top: 5px;
  float: right;
}

/* Filters color palette table cells */
#filter-palette table td {
  padding: 2px;
  text-align: center;
}

#filter-rgb-ok {
  float: right;
}

#filter-list .filter-pattern {
  width: 200px;
}

#filter-list .filter-boards {
  width: 38px;
}

.filter-up {
  opacity: 0.25;
  padding-right: 2px;
  cursor: pointer;
}

#filter-table {
  width: 100%;
}

#filter-table th {
  font-weight: bold;
  font-size: 11px;
  min-width: 28px;
}

#filter-table th:first-child {
  min-width: 0;
}

#filter-table th,
#filter-table td {
  text-align: center;
}

#filter-table tbody td {
  padding: 8px 0px 0px 0px;
}

#filter-table tfoot td {
  padding-top: 20px;
}

#filter-rgb-ok {
  visibility: hidden;
}

#theme-msg,
#filters-msg {
  display: none;
}

#proxy-ctrl.active {
  -moz-animation: blink 0.75s step-end infinite alternate;
  -webkit-animation: blink 0.75s step-end infinite alternate;
  animation: blink 0.75s step-end infinite alternate;
}

@-moz-keyframes blink {
  0% {}
  50% { box-shadow: 0 0 8px 4px #ffa500; }
}

@-webkit-keyframes blink {
  0% {}
  50% { box-shadow: 0 0 8px 4px #ffa500; }
}

@keyframes blink {
  0% {}
  50% { box-shadow: 0 0 8px 4px #ffa500; }
}

/***************************************************************/

/* "Empty threadlist" message */
.nodata {
  background: #fff;
  line-height: 400px;
  text-align: center;
  font-size: 20px;
}

/***************************************************************/

/* Threads main container */
#threads {
  text-align: center;
  position: relative;
}

/* Thread wrapper */
.thread {
  vertical-align: top;
  display: inline-block;
  word-wrap: break-word;
  overflow: hidden;
  margin-bottom: 10px;
  padding: 0 0 3px 0;
}

.thread-ok {
  opacity: 0.5;
}

.thread a {
  border: none;
}

/* Thread in compact mode */
.small .thread {
  width: 165px;
}

/* Thread in large mode */
.large .thread {
  width: 270px;
}

.extended .thread {
  height: auto;
}

/* Thread in wide layout, compact mode with teaser displayed */
.wide.extended.small .thread {
  width: 23%;
  min-width: 250px;
}

/* Thread in wide layout, large mode with teaser displayed */
.wide.extended.large .thread {
  width: 30%;
  min-width: 370px;
}

@media all and (max-width: 1300px) {
  .wide.extended.large .thread {
    width: 45%;
  }
  
  .wide.extended.small .thread {
    width: 30%;
  }
}

@media all and (max-width: 900px) {
  .wide.extended.large .thread {
    left: 0 !important;
    width: 95%;
  }
  
  .wide.extended.small .thread {
    width: 45%;
  }
}

@media all and (max-width: 600px) {
  .wide.extended.small .thread {
    left: 0 !important;
    width: 95%;
  }
}

/* Thread in compact mode with teaser displayed */
.extended.small .thread {
  max-height: 335px;
}

/* Thread in large mode with teaser displayed */
.extended.large .thread {
  max-height: 420px;
}

/* Thread in wide layout */
.wide.extended .thread {
  white-space: pre-line;
  text-align: left;
  border-bottom: 1px dotted #555;
  padding: 1px 10px 20px 10px;
}

.wide .thread {
  max-height: none !important;
  height: auto !important;
  padding: 0;
}

.wide.small .thread {
  overflow: visible;
}

#threads .error {
  margin-top: 50px;
}

/* Thumbnail */
.thumb {
  border-radius: 3px;
  display: inline-block;
  margin: auto;
  z-index: 2;
  box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.5);
  -moz-user-select: none;
}

/* Thumbnail in wide layout */
.wide.extended .thumb {
  margin: 0 10px 5px 0;
}

/* Thumbnails in compact mode */
.small .thumb {
  max-width: 150px;
  max-height: 150px;
}

.wide.extended .thumb {
  float: left;
}

.thumb-new {
  box-shadow: 0 0 2px 3px #FFA500;
}

/* "On top" (highlighted) thumbnails */
.hl {
  border-style: solid;
  border-width: 3px;
}

/* Watched (pinned) thumbnails */
.pinned {
  border: 3px dashed #F5F5F5;
}

/* Scaled thumbnail when hovered in compact mode */
.scaled {
  position: absolute;
  width: auto;
  height: auto;
  max-height: none !important;
  max-width: none !important;
}

.thread-ctrl {
  margin: 5px 0;
  height: 20px;
  line-height: 20px;
  font-size: 16px;
  visibility: hidden;
  transition: visibility 0s 0s linear;
  color: #626473;
}

.thread:hover .thread-ctrl {
  visibility: visible;
  transition: visibility 0s 0.35s linear;
}

.thread-ctrl .icon {
  cursor: pointer;
  margin-right: .2em;
  margin-left: .2em;
}

.thread-ctrl .icon:hover {
  color: #000;
}

/* Replies / images / page indicators */
.meta {
  font-size: 10px;
  line-height: 8px;
  margin-top: 1px;
}

.meta-cell {
  margin: 0 2px;
  font-weight: bold;
  cursor: default;
}

.meta-ins {
  margin-left: 1px;
  font-weight: normal;
}

.meta-r:before { content: 'R:'; font-weight: normal }
.meta-i:before { content: 'I:'; font-weight: normal }
.meta-p:before { content: 'P:'; font-weight: normal }
.meta-a:before { content: 'A:'; font-weight: normal }

.meta .sticky {
  color: #0000ff;
  font-size: 1.1em;
}

/* Teaser, hidden */
.teaser {
  line-height: 15px;
  margin-top: 2px;
  padding: 0 5px;
  display: none;
}

/* Teaser, displayed */
.extended .teaser {
  display: block;
}

/* spoilers */
.teaser s {
  background-color: #a1a8c7;
  color: #a1a8c7;
  text-shadow: none;
  padding-bottom: 1px;
}

.teaser s:hover {
  background-color: transparent;
  color: inherit;
  text-shadow: inherit;
}

/* /f/ tags and md5 */
.teaser aside {
  display: block;
  font-size: 80%;
}
.teaser data {
  opacity: 0.3;
  display: block;
  font-size: 75%;
}

.score {
  background-color: rgba(0, 0, 0, 0.75);
  border-bottom-right-radius: 10px;
  color: #FFF;
  cursor: default;
  text-align: left;
  font-weight: bold;
  line-height: 20px;
  padding: 0 5px 0 2px;
  position: absolute;
  z-index: 1;
}

.wide .score {
  left: 10px;
}

/***************************************************************/

/* Footer */
footer {
  text-align: center;
  font-size: 11px;
  padding-bottom: 15px;
  display: block;
  margin-top: 15px;
}

#totop {
  margin-top: 50px;
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px dotted #555;
}

#no-threads h3 {
  font-size: 18px;
  margin-bottom: 20px;
}

#no-threads p {
  margin-bottom: 10px;
}

#no-threads {
  margin-top: 50px;
}
/***************************************************************/

/* <noscript> styling */
#nojs {
  background-color: rgba(0, 0, 0, 0.5);
  text-align: center;
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  z-index: 99;
}

#nojs > span {
  color: #000;
  background-color: #8C92AC;
  padding: 5px;
  position: relative;
  top: 35%;
  font-size: 22px;
}

#nojs a {
  color: #fff;
}

/***************************************************************/

/* Stats page */
#stats {
  text-align: center;
  padding-bottom: 20px;
}

#stats h2 {
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
}

#stats img {
  margin-top: 20px;
}

#statnav {
  margin-top: 20px;
  line-height: 20px;
}

#statnav li {
  display: inline;
}

#statnav .button {
  margin: 0;
}

.chart {
  width: 960px;
  height: 400px;
  padding: 0px;
  margin: 20px auto 0px auto;
  border: 2px solid #555555;
  border-radius: 3px;
}

.chart.geochart {
  height: 600px;
}

/***************************************************************/

.left {
  float: left;
}

.right {
  float: right;
}

.clear {
  clear: both;
}

.center {
  text-align: center;
}

.middle-txt {
  line-height: 19px;
}

.debug {
  display: none !important;
}

.hidden {
  display: none;
}

#order-cnt .disabled {
  text-decoration: line-through;
}

/* Icons */
@font-face {
  font-family: 'icons';
  src: url('/fonts/icons.woff?6') format('woff'),
       url('/fonts/icons.ttf?6') format('truetype');
  font-weight: normal;
  font-style: normal;
}

#sync-now:before,
.icon:before {
  font-family: 'icons';
  font-style: normal;
  font-weight: normal;
  speak: none;
  display: inline-block;
  text-align: center;
  font-variant: normal;
  text-transform: none;
  line-height: 1em;
}

/* ie fix */
#qf-deep:before {
  display: inline;
  margin: 0;
  padding-right: .1em;
}

.icon-ok:before, .pinned-show:before { content: '\e804'; }
.icon-cancel:before, .pinned-hide:before { content: '\e805'; }
.icon-cancel-circled:before { content: '\e800'; }
.icon-chat:before { content: '\e803'; }
.icon-attention-circled:before { content: '\e802'; }
.icon-angle-circled-up:before { content: '\e801'; }
#sync-now:before { content: '\e806'; }

/* Spinners */
.unya-spinner {
  display: inline-block;
  font: 16px
    'DejaVu Sans Mono',
    'Lucida Console',
    'Monaco';
  width: 9em;
  overflow: hidden;
  white-space: nowrap;
  text-indent: 0;
  text-align: left;
  -moz-animation: spin2f 0.5s step-end infinite alternate;
  -webkit-animation: spin2f 0.5s step-end infinite alternate;
  animation: spin2f 0.5s step-end infinite alternate;
  margin: 50px auto 0 auto;
}

.unya-spinner span {
  display: inline-block;
  width: 9em;
  margin-right: 9em;
}

#threads .unya-spinner {
  margin-top: 50px;
}

.unya-spinner span:first-child:after { content: '(」・ω・)」うー'; }
.unya-spinner span:last-child:after { content: '(／・ω・)／にゃー'; }

@-moz-keyframes spin2f {
  0% {}
  50% { text-indent: -9em; }
}

@-webkit-keyframes spin2f {
  0% {}
  50% { text-indent: -9em; }
}

@keyframes spin2f {
  0% {}
  50% { text-indent: -9em; }
}

/* Mobile */
@media all and (max-width: 640px) {
  body {
    font-size: 14px;
  }
  .teaser {
    line-height: 1.3;
  }
  #ctrl .button,
  #topnav .button {
    padding: 6px;
    line-height: 35px;
  }
  #topnav.front  .button {
    line-height: 45px;
  } 
  .thread-ctrl {
    visibility: visible;
    height: auto;
    line-height: 30px;
    font-size: 20px;
  }
  .thread-ctrl .icon {
    margin-right: .3em;
    margin-left: .3em;
  }
  .extended.large .thread {
    max-height: 550px;
    height: auto;
  }
  .extended.small .thread {
    max-height: 450px;
    height: auto;
  }
  #pinned-ctrl {
    margin-left: 8px;
  }
}

/*  Notifications */
#feedback {
  position: fixed;
  top: 10px;
  text-align: center;
  width: 100%;
  z-index: 9999;
}

.feedback-notify,
.feedback-error {
  border-radius: 5px;
  cursor: pointer;
  color: #fff;
  padding: 3px 6px;
  font-size: 16px;
  box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.5);
  text-shadow: 0 1px rgba(0, 0, 0, 0.20);
}

.feedback-error {
  background-color: #C41E3A;
}

.feedback-notify {
  background-color: #00A550;
}

/* Tooltips */ 
#tooltip {
  position: absolute;
  background-color: #181f24;
  border-radius: 3px;
  font-size: 12px;
  padding: 5px 8px 4px 8px;
  z-index: 100000;
  word-wrap: break-word;
  white-space: pre-line;
  max-width: 500px;
  color: #dedede;
}

#tooltip small {
  font-size: 0.9em;
}

.post-author {
  color: #00A550;
  font-weight: bold;
}

.post-teaser {
  margin: 2px 0 0;
  padding: 0;
  color: #bbbfbd;
}

.post-last {
  color: #bbbfbd;
}

.post-page {
  font-size: 90%;
  color: #7d807e;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  max-width: 100px;                   
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  margin-left: 3px;
}

.post-page:before {
  content: '(';
}

.post-page:after {
  content: ')';
}

.post-reply {
  font-size: 90%;
  border: none;
  border-top: 1px dotted #555;
  margin-top: 2px;
  padding-top: 2px;
  max-height: 122px;
  overflow: hidden;
}

.post-thumb {
  max-height: 80px;
  margin: 2px 5px 2px 0;
  float: left;
}

#tooltip s {
  background-color: #000;
  color: #000;
}
