* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  font-size: 14px;
}

img {
  max-width: 100%;
  width: inherit;  /* Make images fill their parent's space. Solves IE8. */
  height: auto;
  margin: 10px 0;
  border: none;
}

a {
  color: #00F;
  text-decoration: none;
}

abbr {
  word-spacing: -0.12em;
  white-space: nowrap;
  font-variant: none;
}

dt.title {
  padding: 1ex 0 0.3ex;
  font-size: larger;
}

dt.title span {
  float: left;
  padding: 0.3ex 1ex;
  margin: 0.5ex 1.5ex 0.5ex 0;
  border: 1px solid black;
  background-color: #CC9;
  -webkit-border-radius: 18px;
  -moz-border-radius: 18px;
  border-radius: 18px;
}

dd {
  margin-left: 1em;
  padding-bottom: 1ex;
}

ul li {
  padding-bottom: 1ex;
}

ul ul {
  padding-top: 1ex;
}

table {
  border-collapse: collapse;
}

table td {
  padding: 0;
  margin: 0;
}

blockquote {
  margin-left: 2em;
  margin-right: 2em;
}

p.ref {
  font-weight: bold;
}

p.ref + ol {
  margin: -1.5ex 0 4ex;
}

#article {
  padding: 5px 15px 20px;
}

#footer
{
  display: block;
  position: fixed;
  background: #EFEFEF;
  text-align: center;
  padding: 10px;
  width: 100%;
  max-width: 1080px;
  bottom: 0;
}

body {
  padding-top: 10px;
}

body,
nav {
  max-width: 1080px;
  margin: 0 auto !important;
  float: none !important;
}

nav {
  z-index: 1000;
  display: block;
  background: black;
  min-height: 36px;
  margin-top: -10px !important;
}

nav,
nav a {
  color: white;
  text-decoration: none;
}

nav a,
nav div {
  display: block;
  padding: 10px;
}

nav a:hover {
  background: gray;
}

nav div {
  color: red;
}

nav ul {
  padding: 0;
  margin: 0;
}

nav ul li ul {
  top: 100%;
  left: 0;
}

nav ul ul {
  display: none;
}

nav li:hover > ul {
  display: block;
  z-index: 1000;
}

nav ul ul li:hover > ul {
  left: auto;
}

nav ul ul li a:before,
nav ul ul li div:before {
  content: '\0000A0\0000A0\0000A0';
}

nav > label {
  display: none;
}

nav > label {
  width: 100%;
  float: left;
  padding: 10px;
  padding-right: 0;
  cursor: pointer;
}

#nav-label {
  padding-left: 10px;
}

#nav-input {
  display: none;
}

.collapse {
  background-color: lightgray;
  -webkit-border-radius: 18px;
  -moz-border-radius: 18px;
  border-radius: 18px;
  margin: 1ex 0 1em;
  font-size: 16px;
  display: block;
  padding: 2px;
}

.collapse + input + * {
  margin: -1ex 0 2em 12px;
  display: block;
}

.collapse span:first-child {
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  border-radius: 12px;
  background-color: #4F5150;
  color: white;
  margin-right: 5px;
  line-height: 25px;
  text-align: center;
  font-weight: bold;
  height: 24px;
  width: 24px;
  float: left;
}

.gallery {
  padding: 1ex;
  margin: 0 auto;
  overflow: hidden;
  text-align: center;
  background-color: lightgray;
  border: 1px solid black;
  -webkit-border-radius: 18px;
  -moz-border-radius: 18px;
  border-radius: 18px;
}

.gallery div {
  display: inline-block;
  background-color: #F7F8F2;
  margin: auto 1ex;
  padding: .2ex .5ex;
  margin: 1ex;
  height: 293px;
  width: 238px;
  -webkit-border-radius: 9px;
  -moz-border-radius: 9px;
  border-radius: 9px;
}

.gallery div div {
  background: #FFF no-repeat center center;
  height: 224px;
  width: 220px;
}

.gallery div div table {
  width: 100%;
  height: 100%;
  margin: auto;
}

.gallery div.wide div {
  height: 191px;
}

.gallery div.wide img {
  width: 200px;
}

.gallery div span {
  display: inline-block;
}

.gallery div span.tag {
  margin: 0.5ex 0;
  padding: 0.33ex 1.5ex;
  vertical-align: top;
  font-weight: bold;
  color: white;
  background-color: sienna;
  -webkit-border-radius: 2ex;
  -moz-border-radius: 2ex;
  border-radius: 2ex;
}

.thumbnail-160,
.thumbnail-325 {
  display: inline-block;
  padding: 10px 0;
}

.thumbnail-160 {
  width: 160px;
}

.thumbnail-325 {
  width: 325px;
}

.thumbnail-325 span {
  display: inline-block;
}

.thumbnail-160 span.tag,
.thumbnail-325 span.tag {
  padding: 0.22ex 1.5ex;
  font-weight: bold;
  font-size: 80%;
  color: white;
  background-color: sienna;
  -webkit-border-radius: 2ex;
  -moz-border-radius: 2ex;
  border-radius: 2ex;
}

.thumbnail-160 span.tag {
  vertical-align: bottom;
}

.thumbnail-325 span.tag {
  vertical-align: top;
  margin: 0.5ex 0 0.5ex 3ex;
}

span.tag span.overlay {
  color: sienna;
  position: absolute;
  z-index: -1;
}

a.link {
  display: block;
  width: 210px;
  padding: 10px;
  background-color: #EFEFEF;
  border: 1px solid black;
  margin: 20px auto;
  font-weight: bold;
  text-align: center;
/*
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
*/
}

a.link:hover {
  color: white;
  background-color: #000080;
}

.linkarea {
  margin: 0 auto;
  overflow: hidden;
  text-align: center;
}

.linkarea a.link {
  display: inline-block;
  margin: 10px 20px;
}

.glow-red {
  text-shadow: 0 0 .2em #F87, 0 0 .2em #F87;
}

.glow-green {
  text-shadow: 0 0 .2em #8F7, 0 0 .2em #8F7;
}

.glow-blue {
  text-shadow: 0 0 .2em #87F, 0 0 .2em #87F;
}

.glow-lightgray {
  text-shadow: 0 0 .2em #EEE, 0 0 .2em #EEE, 0 0 .2em #EEE;
}

.whitebordered {
  width: 33ex;
  padding: 1em 2em;
  line-height: 2em;
  background: lightgray;
  border: 4px solid white;
  -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, .4);
  -moz-box-shadow: 0 0 1px rgba(0, 0, 0, .4);
  box-shadow: 0 0 1px rgba(0, 0, 0, .4);
}

.block {
  display: block;
}

.center {
  text-align: center !important;
}

.left {
  text-align: left;
}

.right {
  text-align: right;
}

.justify {
  text-align: justify;
}

.nobreak {
  white-space: nowrap;
}

.ascii-art {
  font-family: "Courier New";
  line-height: 1;
}

.columns-240 {
  -webkit-column-width: 240px;
  -moz-column-width: 240px;
  column-width: 240px;
  -webkit-column-gap: 20px;
  -moz-column-gap: 20px;
  column-gap: 20px;
  -webkit-column-rule: 2px solid lightgray;
  -moz-column-rule: 2px solid lightgray;
  column-rule: 2px solid lightgray;
}

.columns-240 div {
  white-space: nowrap;
  padding-left: 1em;
  line-height: 2;
}

.tiles {
  padding: 1px;
  margin: 0 auto;
  overflow: hidden;
  text-align: center;
}

.tiles div {
  display: inline-block;
  background-color: lightgray;
  margin: 1em;
  padding: 1em 0;
  max-width: 320px;
  text-align: center;
  border: 1px solid black;
}

.tiles div.tile-1 {
  background-color: #BEFEBF;
}

.tiles div.tile-2 {
  background-color: #FEFEBE;
}

.tiles div.tile-3 {
  background-color: #FEBEBF;
  vertical-align: top;
}

.tiles div.tile-4 {
  background-color: #BECFFE;
  vertical-align: top;
}

.tiles div.tile-footer p {
  display: none;
}

.tiles div.tile-footer {
  background: none;
  border: none;
  padding: 0;
}

.tiles p {
  padding: 0 2em;
}

.textbox {
  padding: 1em;
  border: 1pt solid black;
}

.info-area {
  text-align: center;
}

.info-box {
  padding: 0;
  margin: 2em;
  display: inline-block;
  border-left: 5px solid #404040;
  max-width: 440px;
  text-align: left;
  vertical-align: top;
}

.info-box > div {
  margin: 0px;
  border: none;
}

.info-box div div {
  width: 100%;
  color: white;
  background-color: #404040;
  padding: 1ex 1em;
  -webkit-border-radius: 0 10px 10px 0;
  -moz-border-radius: 0 10px 10px 0;
  border-radius: 0 10px 10px 0;
}

.info-box p {
  padding: 3ex 2ex .1ex;
  margin: 0;
}

.info-text {
  display: inline-block;
  max-width: 440px;
  text-align: left;
}

.code-area {
  color: white;
  background-color: #036;
  font-weight: bold;
  padding: 1ex 1ex 0 3em;
  margin: 0 1em;
}

ol.code-area {
  font-weight: normal;
  font-family: "Courier New", Courier, mono;
  padding-bottom: 1ex;
  overflow: auto;
}

ol.code-area li
{
  font-size: 12px;
  line-height: 1.2;
  background: #FFC;
  padding: .5ex 3px;
  margin: 1px;
}

ol.code-area code {
  color: #036;
}

.gradient-area {
  margin-bottom: 1ex;
}

.gradient-area p {
  margin: 0;
  text-align: left;
  display: inline-block;
}

.gradient-area p code {
  font-size: 12px;
  line-height: 1.5;
  margin: 1ex 1em;
  color: #036;
}

.code-table {
  text-align: left;
}

.code-table div {
  width: auto;
  margin: 1ex 1em;
  vertical-align: top;
  display: inline-block;
}

.code-table table {
  border: 5px solid #036;
}

.code-table table th {
  color: white;
  background-color: #036;
  text-align: left;
  padding: 0 1ex 3px;
}

.code-table table td {
  text-align: left;
  background-color: #FFC;
  border: 1px solid #036;
  border-top-width: 2px;
  padding: .5ex 1ex;
}

.code-table table td.m6 {
  width: 6.2em;
}

.code-table table td.m8 {
  width: 8em;
}

.code-table table td code {
  color: #036;
}

.svg-area {
  display: none;
}

div.svg-area {
  text-align: center;
}

div.svg-area div {
  display: inline-block;
  text-align: center;
  width: 32%;
}

table .bar div {
  width: 262px;
  border: 1px solid black;
  margin-left: 12px;
}

table .axis-10,
table .axis-25,
table .axis-50 {
  padding: 2px 0;
  font-size: small;
  text-align: center;
  vertical-align: top;
  line-height: 0.5;
}

table .axis-10 {
  width: 26px;
}

table .axis-25 {
  width: 104px;
}

table .axis-50 {
  width: 26px;
}

table.enumeration {
  margin-left: 2ex;
}

table.enumeration th {
  padding: 0.2ex 1ex 0.2ex 0;
  vertical-align: top;
  text-align: right;
}

span.enumeration,
table.enumeration th {
  white-space: nowrap;
  font-weight: bold;
}

span.enumeration.green,
table.enumeration.green th {
  color: green;
}

span.enumeration.red,
table.enumeration.red th {
  color: red;
}

table.enumeration td {
  padding: 0.2ex 0;
  vertical-align: top;
}

.checkbox {
  color: red;
  background-color: papayawhip;
  border: 1px solid black;
}

@media (min-width: 642px) and (max-width: 1055px) {
  table.bar-left { float: left; }
  table.bar-right { float: right; }
  table td.eq { text-align: right; }
  .info-box { max-width: 42%; }
}

@media print {
  html { font-size: 13px; }
  nav { display: none; }
  abbr { border-style: none; text-decoration: none; }
  a { color: #00F !important; }
  .gallery, #article { padding: 0 !important; }
  .collapse span { display: inline-block !important; }
  .collapse .do-not-print, .do-not-print, #header { display: none !important; }
  .collapse { border-bottom: 2px solid black; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; }
/*
  .collapse + input + * { margin-left: 0; }
*/
  .gallery, .tiles div, .whitebordered, .ascii-art { -webkit-box-shadow: none !important; -moz-box-shadow: none !important; box-shadow: none !important; }
  .thumbnail-160 span.tag, .thumbnail-325 span.tag { font-weight: normal; border: 1px solid black; color: black; }
  .info-box, .tiles div, .ascii-art, .gallery > div { border: 1px solid black !important; }
  .info-box div div, .code-area, .collapse span, .gallery div span.tag { color: black !important; }
  .glow-red, .glow-green, .glow-blue, .glow-lightgray { text-shadow: none !important; }
  * { background: none !important; }
  .gallery { border: none; }
  .tiles div.tile-footer { border: none !important; }
  .code-table table, .code-table table td { border: none; }
  .code-table table th { color: black; }
}
