
@import url('https://fonts.googleapis.com/css?family=Droid+Sans');

body {
  margin: 0;
  padding: 0;
}

#content-wrapper { max-width: 100%; }
@media screen and (min-width: 600px) {

  #welcome-image {
    background-image: url('../image/code.jpg');
    background-repeat: no-repeat;
    background-color: #151515;
    width: 100%;
    height: 250px;
  }

  #nav {
    background-color: #ddd;
    height: 50px;
    line-height: 50px;
    text-align: center;
    margin: 5px 0 20px 0;
    box-shadow: 0 3px 4px -2px #000;
  }

  #nav div {
    display: inline-block;
    width: 100px;
    height: inherit;
    text-align: inherit;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
  }

  #nav div:hover {
    background-color: #fff;
    transition: background-color 0.25s ease-in-out;
    box-shadow: inset -4px 0 4px -3px #000,
                inset 4px 0 4px -3px #000;
  }

  #content-wrapper {
    margin: 0 auto 100px auto;
    width: 60%;
    background-color: #fff;
  }

}

#content-wrapper {
  font-size: 14pt;
}

#content-wrapper > header {
  font-size: 28pt;
  text-align: center;
}

#content-wrapper article > header {
  font: bold 16pt "Droid Sans";
  color: #008;
  padding: 20px 0 5px 0;
}

#content-wrapper article {
  line-height: 30px;
}

code {
  background: #fafafa;
  box-sizing: border-box;
  border-radius: 5px;
  display: inline-block;
  width: 100%;
  margin: 0;
  border: 2px solid #eee;
  line-height: 20px;
  overflow-x: auto;
}

code p.line-number {
  font-size: 11pt;
  display: inline-block;
  color: #ababab;
  border-right: 2px solid #ddd;
  margin: 0;
  padding: 0;
  padding-right: 5px;
  margin-right: 10px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  display: inline-block;
  width: 35px;
  text-align: right;
}

code span.comment { color: grey; }
code span.struct { color: green; }
code span.function { color: #6af; }
code span.variable { color: blue; }
code span.statement { color: darkblue; }
code span.string { color: red; }
code span.define { color: purple; }
code span.control { color: black; }
code span.number { color: #666; }

code { font-size: 12pt; display: inline; padding: 2px 5px; }
pre code {
  font-size: 13pt;
  display: block;
  padding: 5px;
}

@media screen and (max-width: 600px) {
  body {
    overflow-x: hidden;
  }

  #welcome-image {
    background-image: url('../image/code.jpg');
    background-repeat: no-repeat;
    background-color: #151515;
    background-position: center bottom;
    max-width: 100%;
    height: 100vh;
    box-sizing: border-box;
    margin-bottom: 20px;
    -webkit-box-shadow: 0 3px 5px 3px #151515;
    box-shadow: 0 3px 5px 3px #151515;
  }

  #nav {
    float: left;
    position: absolute;
    top: 50%;
    left: 0;
    color: #fff;
    width: 100%;
    font-size: 18pt;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
    margin-top: -100px;
  }

  #nav > div {
    width: 100%;
    height: 50px;
    line-height: 50px;
    background-color: #555;
    opacity: 0.8;
    cursor: pointer;
  }

  #nav > div:hover {
    background-color: #666;
    opacity: 1;
    transition: background-color, opacity 0.25s;
  }

  #content-wrapper {
    max-width: 98%;
    margin: 0 auto;
  }
}
@media screen and (min-width: 800px) and (max-width: 1100px) {
  #content-wrapper { width: 85%; margin-bottom: 20px; }
}

@media screen and (min-width: 600px) and (max-width: 800px) {
  #content-wrapper { width: 95%; margin-bottom: 10px; }
}

@media print {
  #welcome-image, #nav { display: none; }
  code {
    background-color: #fff;
  }
  #content-wrapper article > header { color: #444; }
  a { color: gray; }
}
