/* Regular */
@font-face {
  font-family: 'tex_gyre';
  src: url('../font/texgyrepagella-regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Bold */
@font-face {
  font-family: 'tex_gyre';
  src: url('../font/texgyrepagella-bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* Italic */
@font-face {
  font-family: 'tex_gyre';
  src: url('../font/texgyrepagella-italic.otf') format('opentype');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

/* Bold Italic */
@font-face {
  font-family: 'tex_gyre';
  src: url('../font/texgyrepagella-bolditalic.otf') format('opentype');
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

html,body {
  height: 100%;
  font-family: "tex_gyre", Arial, serif;
}
div {
  box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

#header {
  position: fixed;
  left: 0px;
  top: 0px;
  background-color: white;
  height: 100px;
  width: 100%;
  color: black;
  border-bottom: 2px solid black;
}
#header #logo img {
  height: 80px;
  float: left;
  padding: 10px;
}
#header #titlecontainer {
  padding: 10px;
}
#header #title {
  font-size: 2.5em;
  max-width: 350px;
}
#header #subtitle {
  font-size: 1em;
  max-width: 350px;
}

#navigation {
    position: fixed;
    width: 100%;
    left: 0px;
    bottom: 0px;
    border-top: 2px solid black;
    display: flex;
}

#navigation a {
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.menu-item {
    float: left;
    width: 100%;
    border-left: 1px solid black;
    border-right: 1px solid black;
    height: 75px;
    text-align: center;
    color: black;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.menu-item:hover {
    border-top: 3px solid darkgreen;
}

.menu-text {
    display: block;
    font-size: 14px;
}



#terms {
  text-align: center;
  border-top: 2px solid black;
  display: block;
  height: 50px;
  padding-bottom: 110px;
  margin: none;
  padding-top: 10px;
  color: darkgreen;
}
#terms:hover {
  border-top: 3px solid darkgreen;
}

#article {
  padding: 10px;
}


#content {
  padding-top: 80px;
  min-height: calc(100vh - 80px);
  height: auto;
}

#termsandcontent {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  height: auto;
}

.dropdown {
  position: fixed;
  top: 10px;
  right: 20px;
  display: block;
}
.dropdown img {
  display: block;
  height: 40px;
  width: 40px;
  margin-left: auto;
  margin-right: auto;
}
.dropdown > input[type="checkbox"] {
  display: none;
}
.dropdown > label,
.dropdown > a[role="button"] {
  display: block;
  height: 60px;
  padding: 6px 6px;
  text-decoration: none;
  border: 2px solid darkgreen;
  cursor: pointer;
}
.dropdown > label:hover,
.dropdown > a[role="button"]:hover,
.dropdown > a[role="button"]:focus {
  border-top: 3px solid darkgreen;
  border-bottom: 1px solid darkgreen;
}
.dropdown > label:after,
.dropdown > a[role="button"]:after {
  display: inline-block;
}

.dropdown > ul {
  position: fixed;
  z-index: 999;
  display: block;
  left: -200vw;
  top: 80px;
  border-bottom: 2px solid darkgreen;
  border-top: 2px solid darkgreen;
  padding: 6px;
  list-style: none;
  width: 100%;
  text-align: center;
  background-color: lightgrey;
}

.dropdown > ul a {
  display: block;
  padding: 6px 15px;
  text-decoration: none;
  color: #333;
}


.dropdown > ul a:hover,
.dropdown > ul a:focus {
  background: #ececec;
}

.dropdown > input[type="checkbox"]:checked ~ ul,
.dropdown > ul:target {
  left: 0;
}

.dropdown > [type="checkbox"]:checked + label:after,
.dropdown > ul:target ~ a:after {
}

.dropdown a.close {
  display: none;
}

.dropdown > ul:target ~ a.close {
  display: fixed;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  text-indent: -100vw;
  z-index: 1000;
}

@media (min-width: 720px) {
  #header {
    height: 150px;
    border-bottom: 2px solid black;
  }
  #header #logo img {
    height: 120px;
  }
  #header #titlecontainer {
    padding: 20px;
  }
  #header #title {
    font-size: 3em;
  }
  #header #subtitle {
    font-size: 1.5em;
  }
  #navigation {
        position: fixed;
        left: 10px;
        top: 170px;
        width: 200px;
        height: auto;
        display: block;
        flex-direction: column;
    }
    
    #navigation a {
        display: block;
        width: 100%;
    }
    
    .menu-item {
        width: 100%;
        border: 1px solid black;
        height: 75px;
    }
    
    #content {
        margin-left: 220px;
        margin-top: 52px;
    }
  #terms {
    padding-bottom: 10px;
  }
}

@media (min-width: 1300px) {
  #article {
    max-width: 1000px;
  }
}

@media (min-width: 1630px) {
  #schematic {

    background-image: url(../img/schematic.svg);
    background-position: right top;
    background-repeat: repeat-y;
    background-size: 600px;
    min-height: calc(100vh - 200px);
  }
  #article {
    width: 60%;
    max-width: 1000px;
  }
  #content {
    width: 100%;
  }
  #termsandcontent {
    float: left;
    width: calc(100% - 220px);
  }
  #terms {
    display: inline-block;
    width: 1075px;
    margin-left: 220px;
  }
  #header #titlecontainer {
    padding: 10px;
  }
  #header #title {
    font-size: 5em;
    display: inline;
    margin-left: 20px;
  }
  #header #subtitle {
    font-size: 1.5em;
    display: inline;
    padding-left: 5px;
  }
  #header #logo {
    margin-left: 50px;
  }
}


