/*
 * The Faust Photostation - telefaust.ru (static copy)
 * Dark theme, green accents.
 */

/* === base === */
html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, em, strong, del,
ul, ol, li, table, thead, tbody, tr, th, td {
  margin: 0; padding: 0; border: 0; outline: 0;
  vertical-align: baseline; word-wrap: break-word;
}
article, figure, figcaption, footer, header, nav { display: block; }
img { border: 0; box-sizing: border-box; }
:focus { outline: 0; }

body {
  background: #1F1F1F;
  color: #FFF;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  padding: 20px;
}

a { color: #00FF00; text-decoration: none; }
a:visited { color: #00C700; }
a:hover { color: #FFFF00; text-decoration: none; }

p { margin-bottom: 1.5em; }
strong { font-weight: bold; }
ul { list-style: disc outside; margin-left: 1.2em; }
ol { list-style: decimal outside; margin-left: 2em; margin-bottom: .6em; }

h1, h2, h3, h4, h5, h6 { color: #00FF00; }
h1 { font-size: 190%; }
h1, h2 { clear: both; margin: 0 0 .1em; }
h3, h4, h5, h6 { clear: both; margin: 0 0 .7em; }

.cf:before, .cf:after { content: ""; display: table; }
.cf:after { clear: both; }
.clear { clear: both; }
.text-center { text-align: center; }
#page-top, #page-bottom { display: none; }

/* === layout === */
#wrapper { background: #262626; margin: auto; max-width: 940px; padding: 10px; }
#main { background: #1F1F1F; clear: both; margin: 0 auto; overflow: hidden; padding: 10px 0 0; }
#container_wrap { float: left; margin: 0; padding: 0; width: 100%; }
#content {
  background: #1F1F1F; color: #FFF; font-size: 133%;
  margin: 0 0 10px; overflow: hidden; padding: 15px 25px 0;
}
#content .page { margin-bottom: 0; padding-bottom: 0; }
#content ul, #content ol { margin-bottom: 1.5em; }
#content ul ul, #content ol ol, #content ul ol, #content ol ul { margin-bottom: 0; }

/* === header === */
#branding { position: relative; z-index: 2; }
#branding img { clear: left; display: block; height: auto; max-width: 100%; }
#header_image img { width: 100%; height: auto; }
#site-title {
  font-size: 300%; margin: 0; overflow: hidden; padding: 0;
  position: absolute; left: 2%; top: 5%; z-index: 20;
}
#site-title a { color: #00FF00; font-weight: bold; text-decoration: none; }
#site-description {
  color: #666; font-size: 200%; font-style: italic; font-weight: 200;
  margin: 0; overflow: hidden; padding: 0;
  position: absolute; left: 4%; top: 21%; z-index: 20;
}

/* === horizontal menu === */
#nav-bottom-menu { min-height: 38px; }
.menu-bar {
  background: #1F1F1F; clear: both; color: #EEE; display: block;
  float: left; font-size: 120%; margin: 0; width: 100%;
}
.menu-bar div { margin: 0 22px; }
.menu-bar ul { list-style: none; margin: 0 0 0 -10px; padding-left: 0; }
.menu-bar li { float: left; position: relative; }
.menu-bar a, .menu-bar a:visited {
  color: #EEE; display: block; font-weight: bold;
  line-height: 38px; padding: 0 10px; text-decoration: none;
}
.menu-bar ul ul {
  display: none; float: left; margin: 0;
  position: absolute; top: 38px; left: 0; width: 188px; z-index: 99999;
}
.menu-bar ul ul a { background: #303030; height: auto; line-height: 18px; padding: 10px; width: 168px; }
.menu-bar ul ul ul { left: 100%; top: 0; }
.menu-bar li:hover > a, .menu-bar a:focus { background: #4D4D4D; color: #FFF; }
.menu-bar ul li:hover > ul { display: block; }

/* === vertical menu (narrow screens, toggled by menu.js) === */
.menu-vertical {
  background: transparent; border-bottom: 3px solid #EEE; border-top: 1px solid #EEE;
  clear: both; margin: 0; overflow: hidden; width: 100%;
}
.menu-vertical ul { list-style: none; margin: 0; padding: 0; }
.menu-vertical li a, .menu-vertical li a:visited {
  background: #1F1F1F; border-top: 2px solid #EEE; color: #EEE;
  display: block; padding: 5px 10px; text-decoration: none;
}
.menu-vertical ul ul li { margin: 0; }
.menu-vertical ul ul a, .menu-vertical ul ul a:visited {
  border: 0; border-top: 1px solid #EEE; padding: 4px 5px 4px 25px;
}
.menu-vertical ul ul ul a { padding-left: 35px; }
.menu-vertical ul ul ul ul a { padding-left: 45px; }
.menu-vertical ul ul ul ul ul a { padding-left: 55px; }
.menu-vertical a:hover, .menu-vertical a:focus {
  background: #4D4D4D; color: #FFF; text-decoration: none;
}

.menu-bar .current > a, .menu-bar .current-ancestor > a,
.menu-vertical .current > a, .menu-vertical .current-ancestor > a { color: #B8B8B8 !important; }

/* === mobile menu bar === */
#mobile-bottom-nav { background: #1F1F1F; clear: both; display: none; padding: 5px 10px; }
#mobile-bottom-nav > div { margin-bottom: 20px; }
#mobile-bottom-nav .home-link { float: left; margin-left: 15px; }
.mobile-menu-bar a { color: #EEE; font-weight: bold; }
.mobile-menu-link { border: 1px solid #EEE; float: right; margin-right: 15px; padding: 0 2px 0 4px; }

/* === page content === */
.entry-title {
  border-bottom: 1px solid #00FF00; clear: both; color: #00FF00;
  font-size: 150%; font-style: italic; font-weight: bold;
  padding-bottom: .1em; padding-right: 40px;
}
.entry-content { padding: 1.625em 0 0; }
#content img { height: auto; margin: 0; max-width: 100%; }
#content .alignright { display: inline; float: right; margin-left: 24px; margin-top: 4px; }

/* === tables === */
#content table { border: 1px solid #e7e7e7; margin: 0 -1px 24px 0; text-align: left; width: 100%; }
#content tr th, #content thead th {
  background-color: rgba(0,0,0,.1); color: #888;
  font-size: 12px; font-weight: bold; line-height: 18px; padding: 9px 24px;
}
#content tr td { border-top: 1px solid #e7e7e7; padding: 6px 24px; }
.model-table { border-collapse: collapse; width: 100%; }
.model-table th, .model-table td { border: 1px solid #ccc; padding: 5px 10px; text-align: left; vertical-align: top; }
.model-table th { background: #f0f0f0; }
.model-table tr:hover td { background: #303030; }
.model-table th[data-key] { cursor: pointer; white-space: nowrap; }
.model-table th .arr { font-size: 80%; }
.model-table td.photo { width: 70px; }
.model-table td.photo img { display: block; max-width: 60px; height: auto; }
.model-table td.status svg { width: 16px; height: 16px; vertical-align: middle; }
.st-done { color: #0C0; }
.st-wip { color: #FC0; }
.st-wait { color: #48F; }
.table-filters { margin-bottom: 10px; }
.table-filters label { margin-right: 14px; white-space: nowrap; display: inline-block; }
.table-filters select { background: #1F1F1F; border: 1px solid #666; color: #EEE; font: inherit; padding: 2px 4px; }

/* === footer === */
#colophon { background: #262626; border-top: 4px solid #1F1F1F; clear: both; }
#site-ig-wrap { min-height: 2em; }
#site-info { float: left; font-weight: normal; padding-left: 3em; }
#site-info a { font-weight: normal; }

/* === gallery === */
.gallery { overflow: hidden; margin: 10px 0 50px; width: 100%; clear: both; display: block !important; min-height: 100px; }
.gallery.default-view { text-align: center; font-size: 0 !important; letter-spacing: 0 !important; }
.gallery-item { float: left; max-width: 100%; }
.gallery.default-view .gallery-item { display: inline-block; float: none; vertical-align: middle; }
.gallery-thumb { text-align: center; max-width: 100%; background: #fff; border: 1px solid #A9A9A9; margin: 5px; }
.gallery.default-view .gallery-thumb { background: transparent; border: none; margin: 0; position: relative; }
.gallery-thumb a { display: block; margin: 4px; border: none; box-shadow: none; }
.gallery.default-view .gallery-thumb a { margin: 2px; }
.gallery-thumb img { display: block; margin: 0; padding: 0; max-width: 100% !important; height: auto; }
.gallery.default-view .gallery-thumb img { margin: 0 auto; cursor: pointer; }
.gallery.default-view .gallery-thumb img:hover { opacity: .8; }

/* === responsive === */
@media only screen and (max-width: 768px) and (orientation: portrait) {
  body { padding: 0 !important; }
}

@media only screen and (max-width: 640px) {
  body { padding: 0 !important; }
  #wrapper { padding: 0; }
  #branding, #colophon { margin-left: auto !important; margin-right: auto !important; }
  #site-title {
    font-size: 180% !important; left: 0; line-height: 1.25em !important;
    overflow: hidden; padding: 0; position: relative; top: 0;
  }
  #branding #site-description { font-size: 110%; }
  #nav-bottom-menu { display: none; min-height: 24px; }
  .menu-bar a { line-height: 24px; }
  .menu-bar ul a { padding: 2px 12px 8px 6px; width: 120px; }
  .menu-bar ul ul { left: -8px; top: 24px; width: 150px; }
  .menu-bar ul ul a { width: 144px; }
  .menu-bar ul ul ul { left: 50% !important; top: 34px !important; }
  #content { padding: 12px; }
  #content .entry-title { font-size: 110%; }
  #content .entry-content { padding-top: .5em; }
  #content .entry-content p { line-height: 1.25em; margin-bottom: .6em; }
  #main a { text-decoration: underline !important; }
  #site-info { padding-left: 4px; }
  ul, ol { margin: 0 0 1em 1em; }
}

@media only screen and (max-width: 580px) {
  body { padding: 0 !important; }
  #site-title { font-size: 160% !important; line-height: 1.5em; }
}

/* === print === */
@media print {
  body { background: none !important; font-size: 10px !important; padding: 20px !important; }
  #wrapper { background: none !important; max-width: 100%; padding: 10px !important; }
}
