/*

Kirby Starterkit

Author: Bastian Allgeier / Sascha Lack
URL:    http://getkirby.com
Email:  support@getkirby.com

*/


/* Source Sans Pro
-------------------------------------------------- */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 300;
  src: url(../fonts/sourcesanspro-300.woff) format('woff');
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  src: url(../fonts/sourcesanspro-400.woff) format('woff');
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 600;
  src: url(../fonts/sourcesanspro-600.woff) format('woff');
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-weight: 400;
  src: url(../fonts/sourcesanspro-400-italic.woff) format('woff');
}


/* Reset
-------------------------------------------------- */
*, *:before, *:after {
  margin: 0;
  padding: 0;
  border: 0;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, nav, section, summary {
  display: block;
}


/* Links
-------------------------------------------------- */
a {
  color: #000;
  text-decoration: none;
  transition: color .3s, background .3s, border .3s;
}
a:hover {
  color: red;
}


/* Site
-------------------------------------------------- */
html {
  font-family: "Source Sans Pro", sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  background: url("../images/sourcecode.png");
  background-size: 100%;
}
body {
  margin: 0 70px;
  font-size: 1em;
  line-height: 1.1em;
  padding: 0.5em 0 0 0;
  color: #222;
}
blockquote {
  font-size: .8em;
  line-height: 1em;
  margin-left: 5em;
  font-family: monospace;
  color: grey;
  font-weight: bold;
}

/* Header
-------------------------------------------------- */
header {
  border-bottom: 2px solid red;
  margin-bottom: .5em;
  position: absolute;
  top: 0;
  height: 70px;
  right: 70px;
  left: 70px;
  background: transparent;
}
#search {
  float: left;
  margin-top: 3px;
  margin-left: 135px;
}
#search input[type="text"] {
  width: 150px;
  border: 1px solid grey;
}

/* Navigation
-------------------------------------------------- */
.menu a {
  display: block;
  color: #222;
}
.menu a:hover {
  color: red;
  text-decoration: none;
}
.menu .active {
  color: red;
}
.menu li {
  list-style: none;
}
.menu > li {
  position: relative;
}
.menu > li > a {
  padding: .35em 0;
  border-top: 1px solid #ddd;
  font-weight: 600;
}

.titlemenu {
  display: block;
  float: right;
  width: 100%;
  margin-top: -.8em;
  padding-bottom: .5em;
  border-bottom: 2px solid red;
}
.titlemenu li {
  float: right;
  margin: 0 0 0 2em;
  list-style: none;
  font-size: .7em;
  line-height: 1.2em;
}
.titlemenu li a {
  border: none;
}

.submenu {
  position: absolute;
  z-index: 1;
  display: none;
  left: 1em;
}
.submenu:before {
  position: absolute;
  z-index: -1;
  content: '';
  top: -.5em;
  left: 0;
  border-top: .5em solid transparent;
  border-bottom: .5em solid transparent;
  border-left: .5em solid #222;
}
.submenu li {
  border-bottom: 1px solid #444;
}
.submenu a {
  padding: .5em 1.5em;
  font-size: .9em;
  font-weight: 300;
  color: #fff;
  background: #222;
  white-space: nowrap;
}
.submenu a:hover {
  background: #333;
  color: #fff;
}

.breadcrumb {
  display: block;
  float: right;
  width: 100%;
  text-align: right;
}
.breadcrumb ul {
  white-space: nowrap;
}
.breadcrumb li {
  display: inline;
  margin-right: 0;
  list-style: none;
  font-size: .8em;
  margin-left: 2em;
}

@media screen {
  #logo img {
    height: 55px;
  }
  .menu {
    float: right;
    margin-right: -1em;
  }
  .menu > li {
    float: left;
  }
  .menu > li > a {
    padding: .35em 1em;
    border: 0;
  }
  .menu > li:hover .submenu {
    display: block;
  }
  .print {
    display: none;
  }
}

/* Headings
-------------------------------------------------- */
h1 {
  font-size: 2em;
  line-height: 1.25em;
  font-weight: 400;
  margin-bottom: .2em;
}
h2 {
  font-size: 2em;
  line-height: 1.25em;
  font-weight: 300;
  margin-bottom: .2em;
  color: red;
}
h3 {
  font-size: 1.4em;
  line-height: 1.5em;
  font-weight: 400;
  margin-bottom: .2em;
}
h4 {
  font-size: 1.125em;
  font-weight: 600;
  line-height: 1.5em;
  margin-bottom: .2em;
  color: red;
}
h1 a, h2 a, h3 a, h4 a {
  color: inherit;
  border: 0 !important;
}



/* Main
-------------------------------------------------- */
.main {
  position: absolute;
  top: 70px;
  bottom: 25px;
  left: 70px;
  right: 70px;
  overflow-y: auto;
}
.main hr {
  margin: 3em 0;
  height: 2px;
  background: #ddd;
}
.main p,
.main figure,
.main ul,
.main ol {
  margin-bottom: 1em;
}
.main a {
  border-bottom: 2px solid #ddd;
}
.main a:hover {
  border-color: #222;
}

/* Text blocks */
.text {
  padding-right: 10px;
}
.text ul,
.text ol {
  margin-left: 1em;
}
.text form input[type="text"] {
  font-size: 2em;
  border: 1px solid #bbb;
  margin-bottom: .5em;
  width: 100%;
}
.text form textarea {
  height: 500px;
}
.text .pageChildren li a {
  font-size: 120%;
  font-weight: bold;
  color: red; 
}
.text .pageChildren h2 {
  color: black;
}

table {
  border-collapse: collapse;
}
table td {
  border: 1px solid grey;
}
div.excerpt {
  margin-top: 10px;
  margin-bottom: 20px;
  background: rgba(210,200,200,.3);
}
div.excerpt br {
  display: block;
}


/* Project meta
-------------------------------------------------- */
.meta {
  margin-bottom: 1.5em;
}
.meta li {
  float: left;
  list-style: none;
  margin-right: 2em;
  color: red;
}
.meta li b {
  font-weight: 400;
  color: #000;
  padding-right: .25em;
}


/* Next/Prev nav
-------------------------------------------------- */
.nextprev {
  padding: 1em 0;
}
.nextprev a {
  border: 0;
}
.nextprev .prev {
  float: left;
}
.nextprev .next {
  float: right;
}


/* Footer
-------------------------------------------------- */
.footer {
  position: absolute;
  left:70px; 
  right: 70px;
  bottom: 0;
  height: 25px;
  border-top: 2px solid red;
  font-size: .8em;
}
.copyright {
  float: left;
}
.colophon {
  margin-top: -2px;
  float: right;
}
.colophon a b {
  color: red;
  padding-left: .25em;
}
.editButtons {
  float: left;
}
.editButtons img {
  height: 22px;
  float: left;
  margin-right: 1em;
  cursor: pointer;
}

/* login
-------------------------------------------------- */
.login fieldset {
  padding: 1em;
}
.login button {
  margin-top: 1em;
  padding: .7em 2em;
}
.login label {
  margin: 1em;
}
.login strong {
  float: left;
  display: block;
  width: 150px;
}
.login input {
  padding: .5em;
  border: 1px solid #222;
  margin: .2em;
}

@media print {
  body {
    margin: 70px 0 0 0;
    padding: 0;
    font-size: 9px;
    text-align: justify;
  }
  .main {
    position: relative;
    left: 0;
    right: 0;
    top: 0;
  }
  .header, .footer, nav {
    display: none;
  }
  .print {
    display: inline;
  }
  .printfooter {
    color: rgb(128,195,66);
    display: block;
    border-top: 3px solid red;
    text-align: center;
  }
  #logo {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
  }
}

