/* Provides the Google fonts for cross-browser compatability */
/* latin-ext */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  src: local('Raleway'), local('Raleway-Regular'), url(https://fonts.gstatic.com/s/raleway/v12/1Ptug8zYS_SKggPNyCMIT5lu.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  src: local('Raleway'), local('Raleway-Regular'), url(https://fonts.gstatic.com/s/raleway/v12/1Ptug8zYS_SKggPNyC0ITw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*  -------------------------------------------------------------------------------------------------------------------------------*/
/* Styles the base layout */
html, body {
  height: 100%;
  margin: 0;
  padding:0;
  background-color: #FDFDFD;
  font-family: 'Raleway', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.container {
  min-height: 100%;
  display: grid;
  grid-template-columns: 21% auto auto 21%;
  grid-template-rows: 10% auto fr auto;
  grid-template-areas:
    "header1 header2 header3  header4"
    "nav1 nav2 nav3 nav4"
    "content1 content2 content3 contents4"
    "footer1 footer2  footer3 footer3";
}

header {
  grid-row: 1;
  grid-column: 1 / 5;
  background-color:#143E4F;
  min-height: 100%;
  position: relative;
}

nav {
  grid-row: 1;
  grid-column: 2 / 4;
  position:relative;
}

nav ul {
  list-style-type: none;
  padding: 0;
  overflow: hidden;
  position: absolute;
  right:0;
  bottom:0;
  margin: 0;
  line-height: 1em;
  font-size: 1.2em;
  text-indent: 0;
}

nav li {
  float: left;
  line-height: 1em;
  text-indent: 0;
    margin: 0;
}

nav li a {
  display: block;
  color: white;
  text-align: center;
  padding: 0.5em;
  text-decoration: none;
  font-family: 'Raleway', sans-serif;
}

nav li a:hover:not(.active) {
  background-color: #051328;
  opacity: 0.5;
}

article {
  grid-row: 3;
  grid-column: 1 / 5;
  background-color:
  #FDFDFD;
}

main {
  grid-row: 3;
  grid-column: 2 / 4;
  background: #FDFDFD;
  min-height: 63vh;
  margin: 0 2% 5% 2%;
}

footer {
  grid-row: 4;
  grid-column: 1 / 5;
  background: #EEEEEE;
  min-height: 20vh;
}

.footer-text {
  grid-row: 4;
  grid-column: 2 / 5;
  margin: 2% 8% 4% 2%;
}

/*  -------------------------------------------------------------------------------------------------------------------------------*/
/* Styles the dropdown navigation */
.dropdown {
  display: none;
}

.jack {
  display: none;
  background-color: #143E4F;
  color: white;
  padding: 0.4em;
  margin: 1rem 1rem 0em 0em;
  font-size: 1.1em;
  cursor: pointer;
  float: right;
}

.dropdown {
  position: relative;
  bottom:0;
  right:0;
  display: inline-block;
}

.dropdown:hover {
  position: relative;
}

.dropdown-content {
  display: none;
  float: none;
  background-color:  #051328;
  opacity: 0.9;
  min-width: 50vh;
  min-height: 250cm;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  position: absolute;
  top:-10%;
  text-align: left;
  padding-right: 10px;
  text-indent: 1rem;
  font-weight: bold;
  font-size: 1.4em;
  line-height: 2.5;
  overflow: hidden;
}

.dropdown-content a {
  color: #FDFDFD;
  text-decoration: underline;
  display: block;
}

.dropdown-content a:hover {
  background-color: #051328;
}

.dropdown:hover .jack {
  background-color: #143E4F;
}

#close {
  font-size: 1.3em;
  margin-top: 3rem;
}

.george {
  width: 30px;
  height: 4px;
  background-color: white;
  margin: 3px 0;
}


/*  ------------------------------------------------------------------------------------------------------------------------------*/
/* Typography */
html {font-size: 60%; }
body {font-size: 1.7rem;}

@media (max-width: 1200px) {
  html {
    font-size: 55%;
  }
}

@media (max-width: 750px) {
  html {
    font-size: 50%;
  }
}

a {
  color:#AC0A0A;
  text-decoration: none;
}

p {
  color: black;
  line-height: 2;
  margin-top: 2rem;
  margin-bottom: 2rem;
  font-family: "Raleway";
  font-size: 1.1em;
}

ul, li, ol {
  line-height: 2;
  font-family: "Raleway";
  margin-left: 2%;
  margin-right: 2%;
  font-size: 1.03em;
}

ul {
  list-style: circle inside;
}

ol {
  list-style: decimal inside;
}

li {
  text-indent: -1em;
  margin-bottom: 1.5%;
}

h1, h2, h3, h4, h5, h6 {
  color:#143E4F;
  font-weight: 300; }

h1{
  font-size: 4rem;
  margin-top: 7rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 3rem;
  margin-top: 4rem;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 2.5rem;
  margin-top: 4rem;
  margin-bottom: 0.5rem;
}

h4 {color:#143E4F; }

code, .codehilite {
  /* padding: 2rem 0.5rem 2rem 0.5em; */
  /* margin-left: 2rem;
  margin-right: 2rem; */
  font-size: 90%;
  border: 1px solid #E1E1E1;
  border-radius: 4px;
  min-width: 70%;
  text-indent: 0;
  /* margin-top: 1rem; */
}


pre > code {
  display: block;
  padding: 1rem 1.5rem 1rem 1.5rem;
    background: #F1F1F1;
}

pre {
  white-space: pre-wrap;
  white-space: -moz-pre-wrap;
  white-space: -pre-wrap;
  white-space: -o-pre-wrap;
  word-wrap: break-word;
}

img {width: 70%;}

/*-------------------------------------------------------------------------------------------------------------------------------  */
/* Special typography */
.site-title {
  color: #FDFDFD;
  text-decoration: none;
  margin: 0;
  font-size:2.5em;
}

.title {
  float: left;
  margin-left: 1.6%;
  margin-bottom: 0.4em;
  margin-top: 4rem;
}

.site-title:hover {
  background-color: #051328;
  opacity: 0.5;
  padding: 6% 2% 2% 0%;
}

#title1{
  font-weight: bold;
}

#title2 {
  font-style: italic;
}

.nav-list li {
  font-size: 1.1em;
}

.portrait {
  float: left;
  margin: 3rem 3rem 1rem 1rem;
  width: 150px;
  height: auto;
}

/* -------------------------------------------------------------------------------------------------------------------------------- */
/* Styles the blog posts */

.post-title {
  margin-bottom:
  0em;
}

.post-date {
  margin-top: 0;
  margin-left: 0rem;
  color:#AC0A0A;
}

.simon {
  margin-top: 0;
  margin-left: 1rem;
  color:#AC0A0A;
}

.simon-post {
  margin-left: 1rem;
}

.deutsch {
  color: #AC0A0A;
}

/*  ------------------------------------------------------------------------------------------------------------------------------*/
/* Styles the Blog page */
.accordion {
  cursor: pointer;
  padding: 0.1em;
  width: auto;
  border:none;
  text-align: left;
  outline: none;
  font-family: 'Raleway', sans-serif;
  font-size: 1.7rem;
  transition: 0.2s;
  margin-bottom: 2rem;
  margin-left: 0%;
  margin-right: 0%;
  text-indent: 0.5em;
  text-decoration: underline;
  background-image: linear-gradient(#EEEEEE, #FDFDFD);
}

.panel {
  padding: 0 18px;
  display: none;
  background-color: #FDFDFD;
  overflow: hidden;
  margin-left: 0%;
  margin-right: 0%;
  margin-top: 0;
  margin-bottom: 2em;
}

.plus {
  float: right;
  font-size: 3rem;
  color:#AC0A0A;
  margin-right: 1em;
  margin-bottom: 1em;
}

.blog-ul {
  line-height: 2em;
  margin-bottom: 1em;
}

.post {
  font-family:'Raleway', sans-serif;
  font-weight: bold;
  font-size: 1em;
}

.preview {
  color:#143E4F;
  text-decoration: underline;
  padding: 1rem;
  margin: 0;
}

.categories {
  margin-top: 9rem;
  margin-bottom: 0.5rem;
  margin-left: 0%;
}

.kachel {
  background-color: #EEEEEE;
  margin-bottom: 0.4rem;
  font-size: 0.9em;
  margin-left: 0%;
  margin-right: 0%;
  background-image: linear-gradient(#EEEEEE, #FDFDFD);
}

.read-more {
  margin-left: 40%;
  text-decoration: underline;
  font-size: 2rem;
}

/*  ------------------------------------------------------------------------------------------------------------------------------*/
/* Styles the Art Page */
/* Styles the thumbnail */
.gallery {
  float:left;
  background-color: #EEEEEE;
  width: 180px;
  height: 200px;
  margin: 1rem;
  border: solid;
  border-width: 3px;
  border-color: #EEEEEE;
  background-color: #EEEEEE;
}

a.lightbox img {
  height: 150px;
  border: 3px solid white;
  border-radius: 9px;
  box-shadow: 0px 0px 8px rgba(0,0,0,.3);
  margin: 25px 12px 12px 12px;
}

a.lightbox img:hover {
  border: 3px solid rgba(0,0,0,.3)
}

/* Styles the lightbox, removes it from sight and adds the fade-in transition */
.lightbox-target {
  position: fixed;
  z-index: 9999;
  width: 100%;
  height: 100%;
  top: -100%;
  left: 0;
  background: #051328; opacity: 0.5;
  opacity: 0;
  -webkit-transition: opacity .5s ease-in-out;
  -moz-transition: opacity .5s ease-in-out;
  -o-transition: opacity .5s ease-in-out;
  transition: opacity .5s ease-in-out;
  overflow: hidden;
}

/* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition
and makes it responsive using a combination of margin and absolute positioning */
.lightbox-target img {
  padding: 3%;
  width: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* margin-right: 5%;
  margin-left: 5%; */
  max-height: 100%;
  max-width: 100%;
  /* border: 3px solid white; */
  /* box-shadow: 0px 0px 8px rgba(0,0,0,.3); */
  box-sizing: border-box;
  -webkit-transition: .5s ease-in-out;
  -moz-transition: .5s ease-in-out;
  -o-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
}

/* Styles the close link, adds the slide down transition */
a.lightbox-close {
  display: block;
      width:50px;
      height:50px;
      box-sizing: border-box;
      background: #143E4F;
      color: black;
      text-decoration: none;
      position: fixed;
      top: -180px;
      right: 0;
      -webkit-transition: .5s ease-in-out;
      -moz-transition: .5s ease-in-out;
      -o-transition: .5s ease-in-out;
      transition: .5s ease-in-out;
      }

/* Provides part of the "X" to eliminate an image from the close link */
a.lightbox-close:before {
  content: "";
  display: block;
  height: 30px;
  width: 3px;
  background: white;
  position: absolute;
  left: 26px;
  top:10px;
  -webkit-transform:rotate(45deg);
  -moz-transform:rotate(45deg);
  -o-transform:rotate(45deg);
  transform:rotate(45deg);
}

/* Provides part of the "X" to eliminate an image from the close link */
a.lightbox-close:after {
  content: "";
  display: white;
  height: 30px;
  width: 3px;
  background: white;
  position: absolute;
  left: 26px;
  top:10px;
  -webkit-transform:rotate(-45deg);
  -moz-transform:rotate(-45deg);
  -o-transform:rotate(-45deg);
  transform:rotate(-45deg);
}

/* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */
.lightbox-target:target {
  opacity: 1;
  top: 0;
  bottom: 0;
}

.lightbox-target:target img {
  max-height: 100%;
  max-width: 100%;
}

.lightbox-target:target a.lightbox-close {
    top: 0px;
}

.thumbs {
  height: 100px;
  width: 150px;
  overflow: hidden;
}

/*  -------------------------------------------------------------------------------------------------------------------------------*/
/* Style the footer text */

.footer-text ul {
  margin: 0;
}

.footer-text li {
  line-height: 1.5em;
  margin: 0;
}



/*  --------------------------------------------------------------------------------------------------------------------------------*/
/* 404 */

.wrapper404 {
  text-align: center;
}

#return {
  font-size: 1.4em; text-decoration: underline;
}

/*  --------------------------------------------------------------------------------------------------------------------------------*/
/* Media quiries for base layout */
@media screen and (max-width: 1200px) {
  .container {
    grid-template-columns: 100%;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "header1"
      "nav1"
      "content1"
      "footer1";
  }

  header {
    grid-row: 1;
    grid-column: 1;
    background-color:#143E4F;
  }

  nav {
    grid-row: 1;
    grid-column: 1;
  }

  nav {
        grid-area: header1;
  }

  main {
  grid-area: content1;
  margin-bottom: 7rem;
  }

  .footer-text {
    grid-area: footer1;
  }
}

@media screen and (max-width: 750px) {
  .nav-list {display: none;}
  .dropdown {display: inline;}
  .jack {display: inline;}
  .footer-text {margin-left: 6%;}
}
