@import url('https://fonts.googleapis.com/css2?family=Didact+Gothic&family=Roboto+Slab:wght@500&display=swap');


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-size: 18px;
}

body {
  font-family: 'Didact Gothic', sans-serif;
  padding-top: 0;
  color: rgba(44, 44, 44, 0.8);
  background-color: #f2f292;
  background: url(../imgs/hintergrund.jpg);
  background-repeat: repeat;
  background-size: contain;
  background-attachment: fixed;
}

a {
  color: #900;
  background: rgba(255, 255, 255, 0.25);
  padding: 0 0.4rem 2px;
  text-decoration: none;
}

a:hover {
  background: rgba(255, 255, 255, 0.7);
}

a.extern::after {
  content: "\2197 ";
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', sans-serif;
  color: rgba(44, 44, 44, 0.8);
}

h1 {
  font-size: 2.4rem;
  font-weight: 500;
  /* border-top: 1px solid #999;
  border-bottom: 1px solid #999; */
  padding: 0.4rem 0 0.5rem 0;
}

h1.top {
  padding: 0.25rem 0 1rem 0;
}

h2 {
  font-size: 1.6rem;
  font-weight: 500;
}

h2.title {
  margin-top: 2rem;
}

h3 {
  font-size: 1.3rem;
  border-left: 4px solid #666;
  padding-left: 0.5rem;
  margin-top: 2rem;
}

h4 {
  font-size: 1.1rem;
  margin-top: 1rem;
}

textarea {
  font-family: 'Courier New', monospace;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  padding: 5px 0 0 15px;
  width: 100%;
  height: 100%;
  vertical-align: top;
  background-color: rgba(70, 70, 239, 0.2);
  border: 1px solid #666;
  white-space: pre;
  resize: none;
}

hr {
  height: 0;
  border-top: 1px solid #999;
  text-align: center;
  margin: 2rem auto;
}

hr.short {
  width: 40%;
}

ul {
  list-style: square;
  background-color: rgba(222, 184, 135, 0.5);
  border: 1px solid #999;
  border-radius: 5px;
  padding: 0 10px 1rem 30px;
}

ul li, ol li {
  padding-top: 1rem;
}

ul.norm {
  list-style: circle;
  padding: 0 10px 0 20px;
  background: none;
  border: none;
}

ul.norm li {
  padding: 0;
}

ul.nodot {
  list-style: none;
  padding: 0 10px 0 20px;
  background: none;
  border: none;
  line-height: 1.2rem;
}

ol {
  background-color: rgba(222, 184, 135, 0.5);
  border: 1px solid #999;
  border-radius: 5px;
  padding: 0 10px 1rem 30px;
}

ul li ul {
  background: none;
  border: none;
  list-style-type: circle;
}

ul li ul li {
  margin: 0;
  padding-top: 0.5rem;
}

img {
  padding: 3px;
  border: 1px solid #999;
}

img.responsive {
  max-width: 100%;
  height: auto;
}

img.logo {
  border: none;
  margin-right: 0.5rem;
}

img.noborder {
  border: none;
}

code {
  margin: 0;
  padding: 0;
}

cite {
  display: block;
  padding: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  background-color: rgba(190, 255, 192, 0.75);
}

figure {
  margin: 1em 0px;
} 

pre {
  display: block;
  font-family: 'Courier New', monospace;
  white-space: pre-wrap;
  margin: 0;
  padding: 0 1rem 0;
  border: 1px solid #999;
  background-color: rgba(70, 70, 239, 0.2);
}

code {
  font-weight: 700;
  padding: 0 3px;
}

code > a,
a > code {
  text-decoration: none;
}

#myCanvas {
  background-color: rgba(158, 167, 184, 0.5);
  border: 1px solid #999;
  width: 500px;
}

.container {
  width: 50%;
  margin: 0 auto;
  margin-bottom: 50px;
  border-left: 1px solid cadetblue;
  border-right: 1px solid cadetblue;
  border-bottom: 1px solid cadetblue;
  padding: 0.5rem 1rem;
  background-color: rgb(170, 239, 172);
}

.headerdiv {
  height: 108px;
  border-bottom: 1px solid #999;
  background-color: rgba(115, 183, 228, 0.75);
}

.headerh {
  padding-top: 0;
  margin: 0;
  border: none;
}

.logoimg {
  float: left;
  margin: 0 1rem 0 0;
  border: none;
}

.logoimg::after {
  clear: both;
}

.subhead {
  font-size: 18px;
  font-style: italic;
  margin-top: -1rem;
}

.right {
  text-align: right !important;
  font-weight: 600;
  color: #333;
  width: 120px;
}

.mid {
  text-align: left;
  width: 110px;
}

/* Image with figure caption */
.figure {
  display: table;
  margin: 0 auto;
}

.figure img {
  max-width: 100%;
  margin: 0 auto;
}

/* figure caption width like img */
.figcaption {
  display: table-caption;
  caption-side: bottom;
  background: rgba(0, 0, 0, 0.07);
  padding: 10px;
}

.img {
  text-align: center;
  margin: 0 auto;
}

.img .left {
  float: left;
  margin: 0 1rem 0 0;
}

.img.right {
  float: right;
  margin: 0 0 0 1rem;
}

.smaller {
  width: 40%;
  
}

.w3-table td,
.w3-table th {
  display: table-cell;
  text-align: left;
  vertical-align: middle;
  border: 1px solid #999;
  padding: 5px !important;
  background-color: rgba(255, 255, 255, 0.2);
}

.w3-table th {
  background-color: rgba(153, 153, 255, 0.2);
}

.flex-container {
  display: flex;
  flex-wrap: wrap;
  text-align: center;
  margin: 0 auto;
  padding: 0.5rem;
  margin-bottom: 8px;
  border: 1px solid #999;
}

.flex-item {
  padding: 5px;
  flex: 20%;
}

.pseudo {
  display: block;
  margin: 2rem 0 1px;
  padding: 0.5rem;
  border: 1px solid #999;
  background-color: rgb(222, 184, 135, 0.5);
}

.jscr {
  display: block;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  margin: 2rem 0 1px;
  padding: 0 0 0 .5rem;
  border: 1px solid #999;
  background-color: rgba(10, 154, 238, 0.5);
}

.book {
  width: 150px;
  text-align: center !important;
}

.emph {
  margin: 2rem 0 1px;
  padding: 0 0 0 .5rem;
  border: 1px solid #999;
  background-color: rgba(255, 154, 10, 0.25);
}
/*
.w3-table th,
  .w3-table td,
  .w3-table-all th,
  .w3-table-all td {
  padding: 1rem;
}
*/

.w3-row {
  padding: 0.5rem;
  /* border: 1px solid #999; 
  background-color: rgb(70, 70, 239, 0.2);*/
}
.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: #F6D775;
  color: #333;
  text-align: center;
  margin: 0 auto;
  padding: 0;
  border-top: 1px solid #999;
  font-family: 'Courier New', Courier, monospace;
  font-size: 95%;
  font-weight: 400;
  height: 40px;
}

.calculator {
  text-align: center;
  margin: 0 auto;
  background-image: url(../imgs/calculator2.png);
  background-repeat: no-repeat;
  background-position: center; 
}
/*
.w3-sidebar {
  height: 100%;
  width: 100%;
  background-color: #AAEFAA;
  position: fixed !important;
  z-index: 100;
  overflow: auto;
}

#closeBtn {
  background-color:#E06666;
}*/

@media only screen and (max-width: 1280px) {
  body {
    font-size: 18px;
  }
  textarea, pre {
    display: block;
    font-size: 14px;
  }
  h1 {
    font-size: 2.0rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  h3 {
    font-size: 1.25rem;
  }
  .container {
    width: 95%;
    border-bottom: 1px solid cadetblue;
  }
  .book {
    width: 90%;
  }
  ul.nodot {
    line-height: 1rem;
  }
}

@media only screen and (max-width: 430px) {
  body {
    font-size: 16px;
    background: none;
    background-color: #f2f292;
  }
  img.logo {
    width: 50px;
  }
  .logoimg {
    margin: 0.2rem 1rem 0 0;
  }
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.333rem;
  }
  h3 {
    font-size: 1.1rem;
  }
  h4 {
    font-size: 1rem;
  }
  ul.nodot {
    line-height: 1.2rem;
  }
  .headerdiv {
    height: 70px;
  }
  .subhead {
    font-size: 13px;
    font-style: italic;
    margin-top: -0.8rem;
  }
  .footer {
    height: 35px;
    font-size: 80%;
    border: 1px solid #999;
  }
}

/* ========== Stile für seitliche Navigationsleiste ========== */
.sidenav {
  width: 0;
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  background-color: rgb(170, 239, 172);
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
  height: calc(100vh - 40px);
  overflow: hidden;
}

.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.sidenav a:hover {
  color: #fff;
  
}

.sidenav .closebtn {
  position: absolute;
  width: 100%;
  height: 108px;
  top: 0;
  color: #222;
  font-size: 3.6rem;
  font-weight: 900;
  background-color:#E06666;
  padding: 0 15px 0 0;
  text-align: right;
}

a.closebtn:hover {
  background-color: #333;
}

.menubtn {
  font-size: 2rem;
  cursor: pointer;
  position: fixed;
  top: 0;
  right:0px;
  color:#fff;
  background-color:#E06666;
  height: 108px;
  padding: 24px;
  vertical-align: middle;
}

iframe {
  border: none;
  background: #AAEFAA;
  margin-top: 48px;
  height: 85vh;
  overflow: hidden;
}

@media screen and (max-height: 450px) {
  .sidenav {
    padding-top: 15px;
  }

  .sidenav a {
    font-size: 18px;
  }

}

@media screen and (max-width: 430px) {
  .menubtn {
    font-size: 1.2rem;
    height: 70px;
    padding: 16px;
  }

  .sidenav {
    padding-top: 22px;
  }

  .sidenav .closebtn {
    height: 70px;
    font-size: 2.5rem;
    font-weight: 900;
    padding: 0 15px 0 0;
  }
}


