@import url(http://fonts.googleapis.com/css?family=Nova+Flat);
@import url(http://fonts.googleapis.com/css?family=Open+Sans);

html {
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke: .1px;
}

body {
  background-image:url('../img/noise.png');
  background-color:#282b2e;
  height:100%;
  color:#a9aeb7;
  font-size:12px;
  line-height:1.5em;
  font-family: 'Open Sans', sans-serif;
  font-weight:normal;
  margin:0;
}

h1, h2 {
  font-family: 'Nova Flat', cursive;
}

a {
  color: #78a521;
  text-decoration:none;
}

a:hover {
  color:#96d333;
  font-weight:bold;
}

/* Circumvent android paragraph width bug... */
p, h2 {
  background: url('');
}

hr {
  margin: 20px 0px;
  border: 0;
  height: 1px;
  background: #282b2e;
  background-image: -webkit-linear-gradient(left, #282b2e, #62656c, #282b2e);
  background-image:    -moz-linear-gradient(left, #282b2e, #62656c, #282b2e);
  background-image:     -ms-linear-gradient(left, #282b2e, #62656c, #282b2e);
  background-image:      -o-linear-gradient(left, #282b2e, #62656c, #282b2e);
}

.note {
  font-style:italic;
}

.emph {
  font-weight:bold;
  color:#dde5ed;
  text-shadow:0px 0px 4px #000;
}

.error {
  color: #D00000;
  font-style:italic;
}

.clr {
  clear:both;
  padding:0;
  margin:0;
  width:100%;
  font-size:0;
  line-height:0;
}

#header-empty {
  height: 64px;
}

#header {
  background-image:url('../img/noise.png');
  background-color:#202326;
  border-bottom:1px solid #62656c;
  height: 58px;
  padding: 3px;
  box-shadow:inset 0 0 24px #111;
  -moz-box-shadow:inset 0 0 24px #111;
  -webkit-box-shadow:inset 0 0 24px #111;
}

#logo {
  padding: 4px;
}

#header h1 {
  margin: 20px 0 0 0;
  padding: 0 0 0 8px;
  font-size:30px;
  font-weight:normal;
  color:#ffbb00;
  text-shadow:0px 0px 20px #a56900;
}

#footer hr {
  margin-top: 0;
  margin-bottom: 16px;
}

#footer h1 {
  margin:0 0 4px 0;
  padding:0;
  font-size:13px;
  font-weight:bold;
  color:#dde5ed;
  text-decoration:none;
  text-shadow:0px 0px 12px #000;
}

#footer ul {
  margin:0 0 0 4px;
  padding:0;
  list-style:none;
  color:#62656c;
}

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

#copyright {
  color:#62656c;
  margin-top: 16px;
  font-size:10px;
  text-align:center;
}

.swiftype-widget .autocomplete ul li p.title {
  color: #78a521;
}

.swiftype-widget .autocomplete ul li p.title em {
  color: #3e5f0d;
}

.swiftype-widget .autocomplete ul li.active {
  background: none;
  background-color: #78a521;
  border-top: 1px solid #789521;
  border-bottom: 1px solid #789521;
  box-shadow:inset 0 1px 0 #78c521;
  -moz-box-shadow:inset 0 1px 0 #78c521;
  -webkit-box-shadow:inset 0 1px 0 #78c521;
}

.swiftype-widget .autocomplete ul li.active .sections em {
  color: white;
}

#ribbon {
  background-image:url('../img/noise.png');
	background-color:#202326;
  border-top:1px solid #62656c;
  border-bottom:1px solid #62656c;
  padding:24px;
  box-shadow:inset 0 0 24px #111;
  -moz-box-shadow:inset 0 0 24px #111;
  -webkit-box-shadow:inset 0 0 24px #111;
  text-align:center
}

#ribbon h1 {
  margin: 0 0 24px 0;
  font-size:40px;
  font-weight:normal;
  line-height:1.2em;
  color:#ffbb00;
  text-shadow:0px 0px 24px #a56900;
}

#ribbon h2 {
  color:#a9aeb7;
  font-size: 15px;
  font-weight:normal;
  text-shadow:0px 0px 12px #000;
}

#gradient {
  background: -moz-linear-gradient(top, #24272a, #282b2e);
  background: -webkit-gradient(linear, left top, left bottom, from(#24272a), to(#282b2e));
  background: -webkit-linear-gradient(top, #24272a, #282b2e);
  background: -o-linear-gradient(top, #24272a, #282b2e);
  background: -linear-gradient(top, #24272a, #282b2e);
  background: -ms-linear-gradient(top, #24272a, #282b2e);
}

#content {
  background-image:url('../img/noise.png');
  padding: 24px 0 24px 0;
}

#navbar {
  margin:0;
  padding:0 0 24px 0;
  text-align:center
}

#navbar .button {
  margin:0;
  padding:7px 0 5px 0;
  float:left;
  width:220px;
  background-image:url('../img/noise.png');
  background-color:#202326;
  border:1px #62656c solid;
  border-radius:8px;
  -moz-border-radius:8px;
  -webkit-border-radius:8px;
  box-shadow:inset 0 0 24px #111;
  -moz-box-shadow:inset 0 0 24px #111;
  -webkit-box-shadow:inset 0 0 24px #111;

  font-family: 'Nova Flat', cursive;
  font-size:13px;
  font-weight:normal;
  color:#dde5ed;
}

#navbar .button:hover {
  border:1px #96d333 solid;
}

#content h1 {
  margin:0;
  padding:12px 0 0 0;
  color:#78a521;
  font-size:20px;
  font-weight:normal;
  text-shadow:0px 0px 12px #000;
}

#content h2 {
  color:#a9aeb7;
  font-size:16px;
  font-weight:normal;
  line-height:125%;
  text-shadow:0px 0px 12px #000;
}

#content ul {
  margin:0 0 24px 16px;
  padding:0;
  list-style:none;
  color:#62656c;
}

#content ul li {
  margin:0;
  padding:8px 0 0 0;
}

#content ul li h1 {
  margin:4px 0 0 0;
  color:#dde5ed;
  font-size:16px;
}

#content ul li h2 {
  font-size:12px;
  margin:4px 0;
}

#content ul li a:hover {
  color:#96d333;
  font-weight:bold;
}

#content table {
  margin:21px 0;
  padding:8px 8px;
  width:100%;
  background-image:url('../img/noise.png');
  background-color:#202326;
  border:1px #62656c solid;
  border-radius:8px;
  -moz-border-radius:8px;
  -webkit-border-radius:8px;
  box-shadow:inset 0 0 24px #111;
  -moz-box-shadow:inset 0 0 24px #111;
  -webkit-box-shadow:inset 0 0 24px #111;

  font-size:13px;
  font-weight:bold;
  color:#dde5ed;
}

#content table td {
  text-align:center;
  padding:4px 4px;
}

#content form {
  margin: 16px 0;
}

#content input, textarea {
  padding:2px 4px;
  width:220px;
  background-image:url('../img/noise.png');
  background-color:#202326;
  border:1px #62656c solid;
  border-radius:8px;
  -moz-border-radius:8px;
  -webkit-border-radius:8px;
  box-shadow:inset 0 0 12px #111;
  -moz-box-shadow:inset 0 0 12px #111;
  -webkit-box-shadow:inset 0 0 12px #111;

  color:#dde5ed;
}

#content input[type=submit] {
  width:auto;
  margin:16px 0 0 0;
  padding:4px 8px;
  font-weight:bold;
}

#content input[type=submit]:hover{
  border:1px #96d333 solid;
}

#content .video {
  margin-top: 12px;
  margin-right: 12px;
  height: 116px;
  width: 206px;
  border:1px #62656c solid;
  border-radius:4px;
  -moz-border-radius:4px;
  -webkit-border-radius:4px;
  box-shadow:0px 0px 12px #111;
  -moz-box-shadow:0px 0px 12px #111;
  -webkit-box-shadow:0px 0px 12px #111;
  float: left;
}

#content .video:not(.offline):hover {
  border:1px #96d333 solid;
}

#binds {
   padding:0 0 12px 12px
}

#binds .logo {
  width:48px;
  height:48px;
  margin:0 12px 12px 0;
  float:left;
  background-size:48px 48px;
}

#binds .desc {
  padding:6px;
}

#binds .desc h1 {
  margin:0;
  padding:0;
  font-size:13px;
  font-weight:bold;
  color:#dde5ed;
  text-decoration:none;
}

#about {
}

#about .avatar {
  float:left;
  width:128px;
  height:128px;
  margin:0 24px 24px 0;
  background-image:url('../img/avatar.jpg');
  background-size:128px 128px;
  border:1px #62656c solid;
  border-radius:8px;
  -moz-border-radius:8px;
  -webkit-border-radius:8px;
  box-shadow:0px 0px 24px #111;
  -moz-box-shadow:0px 0px 24px #111;
  -webkit-box-shadow:0px 0px 24px #111;
}

#about .desc {
  float:left;
}

#twitter {
  cursor: hand;
  width:32px;
  height:32px;
  float:left;
  margin:-3px 3px 0px 0;
  padding:0;
  background-image:url('../img/twitter.png');
  background-size:32px 32px;
}

#acks {
   padding:16px 0 12px 12px
}

#acks .avatar {
  width:48px;
  height:48px;
  margin:0 12px 0px 0;
  float:left;
  background-size:48px 48px;
  border:1px #62656c solid;
  border-radius:8px;
  -moz-border-radius:8px;
  -webkit-border-radius:8px;
  box-shadow:0px 0px 12px #111;
  -moz-box-shadow:0px 0px 12px #111;
  -webkit-box-shadow:0px 0px 12px #111;
}

#acks .desc {
  height: 48px;
  display: table-cell;
  vertical-align: middle;
}

#acks .desc h1 {
  margin:0;
  padding:0;
  font-size:13px;
  font-weight:bold;
  color:#dde5ed;
  text-decoration:none;
}

#contrib {
   padding:8px 0 12px 12px
}

#contrib .avatar {
  width:48px;
  height:48px;
  margin:0 12px 0px 0;
  float:left;
  background-size:48px 48px;
  border:1px #62656c solid;
  border-radius:8px;
  -moz-border-radius:8px;
  -webkit-border-radius:8px;
  box-shadow:0px 0px 12px #111;
  -moz-box-shadow:0px 0px 12px #111;
  -webkit-box-shadow:0px 0px 12px #111;
}

#contrib .desc {
  height: 48px;
  display: table-cell;
  vertical-align: middle;
}

#contrib .desc h1 {
  margin:0;
  padding:0;
  font-size:13px;
  font-weight:bold;
  color:#dde5ed;
  text-decoration:none;
}

#news {
  margin:24px 0 0 0;
  padding:16px;
  background:#eee;
  border:1px #28292b solid;
  border-radius:8px;
  -moz-border-radius:8px;
  -webkit-border-radius:8px;
  box-shadow:0px 0px 24px #111;
  -moz-box-shadow:0px 0px 24px #111;
  -webkit-box-shadow:0px 0px 24px #111;

  color:#28292b;
}

#news h1 {
  padding-bottom:8px;
  font-size:24px;
  color:#28292b;
  text-shadow:none;
  border-bottom:1px solid #a9aeb7;
}

#news h2 {
  padding-top: 8px;
  padding-bottom:0px;
  font-size:18px;
  line-height:50%;
  color:#28292b;
  text-shadow:none;
}

#news .metavar {
  color: #a9aeb7;
}
#news .metaval {
  color: #62656c;
}
#news .permalink {
  position: relative;
  float: right;
}

#news img {
  margin: 4px;
  border:1px rgba(0, 0, 0, 0.3) solid;
  border-radius:6px;
  -moz-border-radius:6px;
  -webkit-border-radius:6px;
}

#news pre {
  margin: 4px;
  padding: 0 4px;
  border:1px rgba(0, 0, 0, 0.15) solid;
  border-radius:6px;
  -moz-border-radius:6px;
  -webkit-border-radius:6px;
  background-color: #ddd;
  display: inline-block;
  vertical-align: top;
  text-align:left;
}

#news video {
  border: solid 1px rgba(0, 0, 0, 0.3);
  border-radius:6px;
  -moz-border-radius:6px;
  -webkit-border-radius:6px;
}

#news ul {
  margin:0 0 0 24px;
  padding:0;
  list-style:disc;
  color:#28292b;
}

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

#sidebar {
  text-align:center;
  padding:20px;
  width:180px;
  background-image:url('../img/noise.png');
  background-color:#202326;
  border:1px #62656c solid;
  border-radius:8px;
  -moz-border-radius:8px;
  -webkit-border-radius:8px;
  box-shadow:inset 0 0 24px #111;
  -moz-box-shadow:inset 0 0 24px #111;
  -webkit-box-shadow:inset 0 0 24px #111;
}

#sidebar h1 {
  margin:0;
  padding:0;
  color:#dde5ed;
  font-size:20px;
  font-weight:normal;
  border-bottom:1px solid #62656c;
}

#sidebar ul {
  margin:0;
  padding:0;
  list-style:none;
  color:#62656c;
}

#sidebar ul li {
  margin:0;
  padding:8px 0 0 0;
}

#sidebar ul li a {
  font-weight:bold;
  color:#dde5ed;
  text-decoration:none;
}

#sidebar ul li a:hover {
  color:#96d333;
  font-weight:bold;
}

#booktoc {
  padding:20px;
  width:180px;
  background-image:url('../img/noise.png');
  background-color:#202326;
  border:1px #62656c solid;
  border-radius:8px;
  -moz-border-radius:8px;
  -webkit-border-radius:8px;
  box-shadow:inset 0 0 24px #111;
  -moz-box-shadow:inset 0 0 24px #111;
  -webkit-box-shadow:inset 0 0 24px #111;
  font-family: 'Nova Flat', cursive;
}

#booktoc h1 {
  margin:0;
  padding:0;
  color:#dde5ed;
  font-size:20px;
  font-weight:normal;
  border-bottom:1px solid #62656c;
  text-align:center;
}

#booktoc ul {
  margin:0;
  padding:0;
  list-style:none;
  color:#62656c;
}

#booktoc ul li {
  margin:0;
  padding:8px 0 0 0;
}

#booktoc ul li h2 {
  color:#dde5ed;
}

#book h2 {
  color: #62656c;
}

#book img {
  margin: 16px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#book ul {
  margin:0 0 0 24px;
  list-style:disc;
  color:#a9aeb7;
}

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

#book pre {
  margin:4px;
  padding:0px 4px;

  border:1px #62656c solid;
  border-radius:6px;
  -moz-border-radius:6px;
  -webkit-border-radius:6px;
  background-image:url('../img/noise.png');
  background-color:#202326;
  box-shadow:inset 0 0 24px #111;
  -moz-box-shadow:inset 0 0 24px #111;
  -webkit-box-shadow:inset 0 0 24px #111;

  display: inline-block;
  vertical-align: top;
  text-align:left;
}

#book div.multicode {
  margin:0px 8px;
  display: inline-block;
  vertical-align: top;
}

#book div.multicode pre {
  margin: 0;
  display: block;
}

#book div.multicode ul {
  margin: 0 0 0 20px;
  list-style:none;
  position:relative;
  z-index:2;
  top: 1px;
  display:table;
}

#book div.multicode ul li {
  float:left;

  border:1px #62656c solid;
  border-bottom:0px;
  border-radius:5px 5px 0 0;
  -moz-border-radius:5px 5px 0 0;
  -webkit-border-radius:5px 5px 0 0;

  background-image:url('../img/noise.png');
  background-color:#202326;
  box-shadow:inset 0 0 24px #111;
  -moz-box-shadow:inset 0 0 24px #111;
  -webkit-box-shadow:inset 0 0 24px #111;
}

#book div.multicode ul li a {
  display:block;
  border-bottom: 1px #62656c solid;
  padding:0 4px 0 4px;
  margin:0;
}

#book div.multicode ul li a.selected {
  border-bottom: 1px rgba(0, 0, 0, 0) solid;
  color:#dde5ed;
  font-weight: bold;
}
