/* === Main CSS File ====
   2024 | hc greier | Graz Austria
*/

/* Main Font */
@font-face {
  font-display: swap;
  font-family: 'MainFont';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/mainfont.eot'); /* IE9 Compat Modes */
  src: url('./fonts/mainfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('./fonts/mainfont.woff2') format('woff2'), /* Super Modern Browsers */
       url('./fonts/mainfont.woff') format('woff'), /* Modern Browsers */
       url('./fonts/mainfont.ttf') format('truetype'), /* Safari, Android, iOS */
       url('./fonts/mainfont.svg#CourierPrime') format('svg'); /* Legacy iOS */
}
/* courier-prime-regular - latin */
@font-face {
  font-display: swap;
  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: rgba(242, 242, 145, 1);
  --astroblue: rgba(115, 183, 228, 1);
}


/* ========== Main styles ========== */
* {
  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;
  color: rgba(44, 44, 44, 0.8);
  background-color: rgba(255, 255, 0, 0.15);
  /* background-color: #E7ECE6; */
  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);
}

p {
  padding: 0;
}

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

.container p {
  font-size: 20px;
  padding: 0 1rem;
}

/* ========== Headings ========== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(44, 44, 44, 0.8);
  padding: 10px 0 0 1rem;
}

h1 {
  font-size: 2.1rem;
  font-weight: 700;
  background-color: rgba(0, 0, 255, 0.1);
  border-bottom: 1px solid #999;
  border-radius: 5px 5px 0 0;
}

h2 {
  font-size: 1.74rem;
  font-weight: 700;
  border-bottom: 1px solid #999;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 5px 5px 0 0;
  padding: 0.5rem 0 0 1rem;
  margin: 0;
}

h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -1px;
  background-color: rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #999;
  border-radius: 5px 5px 0 0;
}

h4 {
  font-size: 1.32rem;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 1rem;
  background-color: rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #999;
  border-radius: 5px 5px 0 0;
}

/* ========== Astro Header ========== */
.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;
}
/* ============================== */

textarea {
  font-family: 'Courier New', monospace;
  font-size: 17px;
  font-weight: 900;
  margin: 0;
  padding: 5px 0 0 15px;
  width: 100%;
  height: 60vh;
  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: 1.5rem 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;
  margin: 0 1rem;
}

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

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

td > img {
  border: none;
}

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

code {
  font-family: 'Courier Prime', 'Courier New', Courier, monospace;
  margin: 0;
  padding: 0;
  font-weight: 700;
}

pre {
  display: block;
  font-family: 'Courier Prime', '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);
}

/* ========== ID's und Klassen ========== */

.w3-row {
  padding: 0.5rem;
}

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

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

.emph {
  padding: 0.5rem;
  border: 1px solid #999;
  background-color: rgba(255, 154, 10, 0.25);
}

.achtung {
  text-indent: 46px;
  background-image: url(../imgs/achtung.png);
  background-repeat: no-repeat;
  background-size: 48px 41px;
  background-position: 4px 8px;
  border: 1px dotted #f00;
  background-color: rgba(255, 255, 90, 0.5);
  padding: 0.5rem;
  line-height: 1.8rem;
}

.calculator {
  background-image: url(../imgs/calculator.png);
  background-repeat: no-repeat;
  background-position: 15px center;
}

.note {
  font-size: 80%;
  font-style: italic;
  padding: 5px;

}

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

/* ========== FLEX-BOX ========== */
.flex-wrapper {
  font-family: 'Courier Prime', Courier, monospace;
  color: #333;
  font-size: 0.9rem;
  font-weight: 700;
  background-color: rgba(153, 218, 170, 1);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.flex-container > div {
  margin: 0;
  padding: 0.4rem;
  text-align: center;
  outline: 1px solid cadetblue;    /* Tests */
}

.description .flex-container > div {
  margin: 0 2px;
  padding: 0.4rem;
  outline: none;
  border: 1px solid #999;
  text-align: center;
}

.flex-container div.checkboxes {
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0;
  padding-left: 10px;
  background-color: rgb(255, 255, 255, 0.4);
}

.flex-container div.checkboxes input:not(:first-child) {
  margin-left: 10px;
}

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

#calcBtn {
  font-size: 2rem;
  height: 3.5rem;
  padding-top: 10px;
}

#startMinBtn {
  font-size: 1.3rem;
  width: 30px;
  height: 30px;
  background-image: url(../imgs/minbtn.png);
  background-repeat: no-repeat;
  background-position: center center;
}

#resetStartBtn,
#resetEndBtn {
  font-size: 1.3rem;
  width: 30px;
  height: 30px;
  background-image: url(../imgs/resetBtn.png);
  background-repeat: no-repeat;
  background-position: center center;
}

#startMaxBtn {
  font-size: 1.3rem;
  width: 30px;
  height: 30px;
  background-image: url(../imgs/maxbtn.png);
  background-repeat: no-repeat;
  background-position: center center;
}



/* =============== Media queries =============== */
@media only screen and (max-width: 1280px) {
  body {
    font-size: 18px;
  }
  h1 {
    font-size: 2.0rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  h3 {
    font-size: 1.25rem;
  }
  .container {
    width: 95%;
    border-bottom: 1px solid cadetblue;
  }
}

@media only screen and (max-width: 800px) {
  h1.headerh {
    font-size: 1.5rem;
  }
  .subhead {
    font-size: 16px;
    margin-top: -10px;
  }
  textarea {
    font-size: 14px;
  }
}

@media only screen and (max-width: 640px) {
  h1.headerh {
    font-size: 1.1rem;
  }
}

@media only screen and (max-width: 430px) {
  body {
    font-size: 16px;
    background: none;
    background-color: #f2f292;
  }
  .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;
  }
  td {
    font-size: 70%;
  }
  .headerdiv {
    height: 70px;
  }
  .subhead {
    font-size: 13px;
    font-style: italic;
    margin-top: -0.8rem;
  }
  footer {
    font-size: 80%;
    border: 1px solid #999;
  }
}


/* ========== MathJax ========== */
.MathJax {
  color: rgb(0, 69, 116);
}


/* So long, Marianne */
