
/* =============== Fonts =============== */
/*
.eot    IE9 Compat Modes, IE6-IE8
.woff2  Super Modern Browsers
.woff   Modern Browsers
.ttf    Safari, Android, iOS
.svg    Legacy iOS
*/
@font-face {
  font-family: 'Mainfont';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/mainfont.eot');
  src: local(''),
       url('./fonts/mainfont.eot?#iefix') format('embedded-opentype'),
       url('./fonts/mainfont.woff2') format('woff2'),
       url('./fonts/mainfont.woff') format('woff'),
       url('./fonts/mainfont.ttf') format('truetype'),
       url('./fonts/mainfont.svg#Mainfont') format('svg');
}

/* courier-prime-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/courier-prime-v7-latin-regular.eot'); /* IE9 Compat Modes */
  src: url('./fonts/courier-prime-v7-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('./fonts/courier-prime-v7-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('./fonts/courier-prime-v7-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('./fonts/courier-prime-v7-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('./fonts/courier-prime-v7-latin-regular.svg#CourierPrime') format('svg'); /* Legacy iOS */
}



/* ========== Custom properties ========== */

:root {
  --astrored: rgba(224, 102, 102, 0.7);
  --astrogreen: rgba(170, 239, 170, 1);
  --astroyellow: rgb(242, 242, 145);
  --astroblue: rgba(115, 183, 228, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  font-family: 'MainFont', Arial, Helvetica, sans-serif;                                                     
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-size: 18px;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Mainfont', sans-serif;
  color: rgba(44, 44, 44, 0.8);
  background-color: rgba(255, 255, 0, 0.15);
  /* background: url(../imgs/hintergrund.jpg);
  background-repeat: repeat;
  background-size: contain;
  background-attachment: fixed; */
  line-height: 1.6rem;
}

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: 'Courier Prime', 'Courier', sans-serif;
  color: rgba(44, 44, 44, 0.8);
  line-height: 1.5;
  padding: 10px 0 0 0;                    
}

h1 {
  font-size: 2.1rem;
  font-weight: 700;
}

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

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

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 {
  width: 100%;
  height: 100%;
  font-family: 'Courier Prime', monospace;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  padding: 5px 0 0 15px;
  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 Prime', 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: 80%;
  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 {
  padding: 0;
  height: 88px;
  border-bottom: 1px solid #999;
  background-color: #f5deb3;
}

.headerh {
  padding-top: 6px;
  margin: 0;
  border: none;
  background-color: transparent;
}

.logoimg {
  float: left;
  margin: 4px 1rem 4px 4px;
  border: none;
  width: 80px;
  height: auto;
}

.logoimg::after {
  clear: both;
}

.subhead {
  font-size: 18px;
  margin-top: -15px;
}

.subhead a {
  color: inherit;
  text-decoration: underline;
}

.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-Box --------------- */

.flex-wrapper {
  font-family: "Courier Prime", monospace;
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
  font-weight: 700;
  background-color: rgba(153, 218, 170, 1);
  background-color: rgba(115, 183, 228, 1);
  position: sticky;
  top: 0;
  z-index: 10;
  outline: 1px solid #999;
}

.flex-container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: left;
  margin: 0;
  padding: 0;
  text-align: initial;
  border: none;
}

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

.flex-container > div {
  margin: 0;
  padding: 0.4rem;
}

.flex-container > * {
  flex-grow: 0;
}



.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 Prime', 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);*/
}

.w3-button {
  padding: 5px 20px 1px 20px;
}

footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: #f5deb3;
  color: #333;
  text-align: center;
  margin: 0 auto;
  padding: 7px 0 0 0;
  border-top: 1px solid #999;
  font-family: 'Courier Prime', Courier, monospace;
  font-size: 80%;
  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; 
}

.garant {
  font-size: 80%;
  font-style: italic;
}

@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: 980px) {
  h1 {
    font-size: 1.4rem;
  }
}

@media only screen and (max-width: 680px) {
  .w3-button {
    margin-bottom: 6px;
  }
}

@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.25rem;
  }
  h2 {
    font-size: 1.15rem;
  }
  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;
  }
}



@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;
  }
}


