/**
 * openclinic.css
 *
 * CSS for OpenClinic Website
 *
 * Licensed under the Creative Commons License
 *
 * @package   OpenClinic Website
 * @copyright 2002-2016 jact
 * @license   http://creativecommons.org/licenses/by/2.0/
 * @author    jact <openclinic@gmail.com>
 */

* {
  margin: 0;
  padding: 0;
  font-family: "lucida sans unicode", verdana, helvetica, arial, sans-serif;
}
html, body {
  background: #CED3DE;
  color: #000;
  font-size: 95%;
}
header {
  background: #fff;
  color: #8492A5;
  border-bottom: 6px solid #000;
}
#home_page {
  width: 30%;
  margin-left: -100%;
}
/* Malarkey Image Replacement (MIR) */
#home_page a {
  display: block;
  width: 291px;
  height: 58px;
  background: url(../i/openclinic_logo.png) no-repeat;
  text-decoration: none;
  text-indent: -5000em;
}
.mir {
  letter-spacing: -1000em;
}
/* Just for Opera, but hide from MacIE */
/*\*/
html>body .mir {
  letter-spacing: normal;
  text-indent: -999em;
  overflow: hidden;
}
/* End of hack */
#shortcuts {
  width: 60%;
  margin-left: -60%;
  margin-top: 20px;
  text-align: right;
}
#shortcuts li {
  display: inline;
}
#shortcuts a {
  padding: 15px 30px 15px 45px;
  font-weight: bold;
}
#shortcuts a:first {
  padding-left: 0;
}
html>body a#download {
  background: transparent url(../i/download.png) no-repeat left center;
}
html>body a#demo {
  background: transparent url(../i/demo.png) no-repeat left center;
}
html>body a#faq {
  background: transparent url(../i/faq.png) no-repeat left center;
  padding-right: 10px;
}
hr, #main nav.item h1 {
  display: none;
  visibility: hidden;
}
#main {
  border-top: 2px solid #fff;
}
/* View http://alisapart.com/articles/fauxabsolutepositioning */
.line {
  float: left;
  width: 100%;
  display: block;
  position: relative;
}
.item {
  position: relative;
  float: left;
  left: 100%;
}
#main nav.item {
  margin-left: -100%;
  width: 20%;
}
#content {
  margin-left: -80%;
  width: 60%;
}
aside {
  margin-left: -20%;
  width: 20%;
}
article {
  margin: 10px;
  padding: 10px;
  border: 2px solid #9CAAB5;
  background: #EFF3F7;
  color: #000;
  word-spacing: 5px;
  border-radius: 10px;
}
article .sign, article h1, article h2, article time {
  margin: 2px 0;
  padding: 0 4px;
  position: relative; /* to avoid float IE6 bug */
  background: #9CAAB5;
  color: #fff;
  border-radius: 3px;
}
article h1 {
  font-size: 200%;
}
article h3 {
  font-size: 160%;
}
.last {
  border: 2px solid #10203B;
}
.last h1, .last time {
  background: #10203B;
  color: #fff;
}
#content .sign, article time {
  display: block;
  text-align: right;
  font-weight: bold;
  margin-bottom: 0;
}
article a {
  padding: 1px 2px;
}
article a:hover {
  background: #00e;
  color: #FFF;
  text-decoration: none;
}
article li {
  margin-bottom: 8px;
}
pre {
  margin-bottom: 1em;
}
code, code ins, code del, code strong, var {
  font-family: "Lucida Sans Typewriter", "Courier New", monospace;
}
var {
  font-weight: bold;
  font-style: normal;
}
footer {
  clear: both;
  font-size: 12px;
  margin: 10px 14px;
  padding: 5px;
  background: #8492A5;
  color: #fff;
  border: 1px solid #EFF3F7;
  border-radius: 3px;
}
footer p {
  margin: 0;
}
#copyright {
  text-align: left;
  float: left;
  width: 75%;
}
footer time {
  display: block;
  text-align: right;
}
footer a {
  color: #E6FFB4;
}
#navbar {
  list-style: none;
  margin: 10px 14px;
  border: 1px solid #5976b2;
  border-top: 0;
  background: #E7E7EF;
  color: #000;
  border-radius: 5px;
}
#navbar li {
  font-size: 14px;
  border-top: 1px solid #5976b2;
  /* IE/Win gets upset if there is no bottom border... Go figure. */
  /*border-bottom: 1px solid #22437f;*/
}
#navbar li a {
  padding: 4px 0 4px 6px;
  display: block;
  color: #000;
  width: 100%;
}
html>body #navbar li a {
  width: auto; /* be nice with Opera and Gecko browsers */
}
#navbar li a:visited {
  color: #34548F;
}
#navbar li a:hover {
  background: #34548f;
  color: #fff;
  text-decoration: none;
}
#navbar li strong {
  color: #fff;
  background: #10203b;
  display: block;
  padding: 4px 6px;
}
#validation {
  list-style-type: none;
}
#validation li {
  margin: 8px 14px;
  width: 105px;
  font-family: helvetica, arial, sans-serif;
  font-size: 70%;
  font-weight: bold;
}
#validation a {
  display: block;
  width: 100%;
}
#validation a:link, #validation a:visited, #validation a:hover {
  background: #fc6;
  color: #000;
  text-decoration: none;
}
#validation a:link, #validation a:visited {
  border-width: 1px 2px 2px 1px;
  border-style: solid;
  border-color: #cecece #4a4a4a #4a4a4a #cecece;
}
#validation a:hover {
  border-width: 2px 1px 1px 2px;
  border-style: solid;
  border-color: #4a4a4a #cecece #cecece #4a4a4a;
}
#validation span.w3c {
  padding: 0 0.4em;
  background: #fff;
  color: #0c479d;
}
#validation #rss a {
  background: #f60;
  color: #fff;
}
aside h1 {
  margin: 8px 10px;
  padding: 0 4pt 0;
  font-size: 1em;
  letter-spacing: 2pt;
  border-bottom: 1px solid #bbb;
}
aside p {
  margin: 5px 10px;
}
aside ul {
  list-style: square inside;
  margin: 0;
  padding: 0 0 0 10px;
}
aside a {
  color: #000;
}
aside a:visited {
  color: #34548f;
}
aside a:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
}
aside hr {
  display: block;
  visibility: visible;
  margin: 4px 6px;
  background: #bbb;
  color: #bbb;
  border: 1px solid #bbb;
}
#content hr {
  display: block;
  visibility: visible;
  background: #CED3DE;
  color: #CED3DE;
  border: 1px solid #CED3DE;
  margin: 0.5em 0;
}
#content p, #content li, aside li {
  margin-top: 0.6em;
  margin-bottom: 0.6em;
  line-height: 160%;
}
aside ul#ads li {
  list-style-type: none;
}
#content li {
  margin-left: 2em;
}
a:visited {
  color: #AD5F7B;
}
a img {
  border: 0;
}
#coresis {
  border: 1px solid #000;
}
pre {
  background: #CCECF9;
  color: #000;
  border: 1px solid #84D2F5;
  padding: 2px 3px;
  overflow: auto;
  width: 98.5%;
}
code.comment {
  background: inherit;
  color: #009585;
  font-weight: bold;
}
code del {
  background: #FFCFD6;
}
dl {
  margin-left: 1em;
}
dt {
  margin: 2em 0 1em 0;
  font-weight: bold;
}
dd {
  margin-left: 1em;
}
table {
  border-collapse: collapse;
}
th {
  background: #5ABAD6;
  color: #fff;
}
th, td {
  text-align: left;
  padding: 3px 12px;
}
td {
  border-bottom: 1px solid #80CBE3;
}
.center {
  text-align: center;
}

@media screen and (max-width: 960px) {
  #home_page {
    width: 70%;
  }
}

@media screen and (max-width: 640px) {
  .item {
    float: none;
  }
  #content, #main nav.item, #main aside {
    width: 98%;
    margin-left: -98%;
  }
  #home_page {
    width: 60%;
    float: left;
  }
  #shortcuts {
    width: 40%;
    margin-left: -40%;
  }
  #shortcuts a {
    padding: 28px 24px 24px 38px;
    width: 48px;
    height: 48px;
    font-size: 1px;
    color: #fff;
  }
  #copyright {
    float: none;
    width: auto;
  }
}

@media screen and (max-width: 480px) {
  #home_page {
    width: 100%;
    float: none;
  }
  #shortcuts {
    display: none;
  }
}
