/* === Sternzeit 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 */
}


/* ========== Main setup ========== */
* {
  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: #f5deb3;
  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: 100%;
  margin: 0 auto;
  margin-bottom: 38px;
  padding: 0;
  background-color: rgb(170, 239, 172);
}

.container p {
  font-size: 20px;
}

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

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


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


/* ========== Tags, IDs, Classes ========== */

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button {  
  opacity: 1;
}

input[type="checkbox"] {
  accent-color: dodgerblue;
}

select,
#yrs,
#mth,
#dys,
#hrs,
#mins {
  font-family: 'Courier Prime', 'Courier New', Courier, monospace;
  font-weight: 700;
  font-size: 0.9rem;
  color: #000;
  text-align: center;
  border: 1px solid #999;
  height: 32px;
  background-color: rgba(255, 255, 0, 0.15);
}

#yrs, #mth, #dys, #hrs, #mins {
  width: 85px;
  height: 32px;
  text-align: center;
  font-size: 1.0rem;
} 

#yrs {
  margin-left: 1.4rem;
}

#hrs, #mins {
  width: 60px;
}

select {
  font-weight: 900;
  background-color: #f2f292;
}

option {
  background-color: #f2f292;
  padding-left: 5px;
  font-size: 1rem;
  font-weight: 600;
}


/* ========== This and that ========== */
.row {
  display: flex;
}

.column {
  flex: 20%;
  padding: 10px;
}

textarea {
  font-family: 'Courier Prime', Courier, monospace;
  font-size: 16px;
  font-weight: 700;
  width: 100%;
  height: 90vh;
  resize: none;
}

select, input, button {
  font-family: 'Courier Prime', Courier, monospace;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 7px;
}

button {
  padding: 4px 10px;
  margin-left: 4px;
}

#resetBtn {
  color: #eee;
  background-color: #900;
}

#out1 {
  background-color: rgba(255, 0, 0, 0.05);
}

#out2 {
  background-color: rgba(0, 255, 255, 0.05);
}

#out3 {
  background-color: rgba(0, 255, 0, 0.05);
}

#out4 {
  background-color: rgba(255, 0, 255, 0.05);
}

#out5 {
  background-color: rgba(255, 255, 0, 0.05);
  color: #ddd;
  height: 86.5vh;
}

.diff {
  font-size: 90%;
  font-weight: 700;
  padding: 9px 0;
  margin: 0;
  color: #ddd;
}

li {
  line-height: 2rem;
}

div.column h3 {
  font-size: 1.25rem;
  color: #000;
  padding: 4px;
  margin: 10px 0 20px 0;
}

hr {
  width: 60%;
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #999;
  margin: 1rem auto 2rem auto;
  padding: 0;
}

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


/* =============== Media queries =============== */
@media only screen and (max-width: 992px) {
  .container {
    width: 100%;
    padding: 0;
  }
  h2 {
    font-size: 1.6rem;
    padding: 1rem 0 0.5rem 10px;
  }
}

@media only screen and (max-width: 570px) {
  h4 {
    font-size: 1.1rem;
  }
}

@media only screen and (max-width: 480px) {
  .logoimg {
    transform: scale(0.75);
    margin: 4px;
  }
  .container {
    width: 100%;
    padding: 0;
  }
  .headerh {
    font-size: 1.6rem;
    padding-top: 1rem;
  }
  .subhead {
    font-size: 16px;
    margin-top: -6px;
  }
  .footer {
    font-size: 60%;
  }
}

/* ♫ So long, Marianne */