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



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

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

p {
  padding: 0;
}

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

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

h5 {
  font-size: 1.2rem;
  margin-top: 1rem;
  background-color: rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #999;
  border-radius: 4px 4px 0 0;
  padding: 6px 0 0 1.5rem;
}

code {
  font-weight: 700;
}

ul {
  padding-left: 20px;
}

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

.guarantee {
  font-size: 13px;
  font-style: italic;
  padding: 0 0 0 10px;
}


/* ========== FLEX-BOX ========== */
.flex-wrapper {
  color: #333;
  font-size: 0.9rem;
  font-weight: 700;
  background-color: rgba(153, 218, 170, 1);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #666;
}

.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;
  border-bottom: 1px solid #999;
  text-align: left;
}

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


/* ========== Checkbox Toggle Switch ========== */

/* The switch - the box around the slider */
.switchNS {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  vertical-align: text-top;
  background-image: url('../imgs/northsouth_bgr.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50px 24px;
}

.switchEW {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  vertical-align: text-top;
  background-image: url('../imgs/eastwest_bgr.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50px 24px;
}

/* Hide default HTML checkbox */
.switchNS input, 
.switchEW input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: transparent;
  -webkit-transition: .2s;
  transition: .2s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: #fff;   /* Thumb color */
  -webkit-transition: .2s;
  transition: .2s;
}

input:checked + .slider {
  background-color: transparent;   /* bgr image! */
}

input:focus + .slider {
  box-shadow: 0 0 1px transparent; /* bgr image! */
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* ==================================== */



/* ---------- Day Slider + Buttons ---------- */
.flexslider-container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  margin: 0;
  padding: 0;
  text-align: center;
  border: none;
}

.flexslider-container > * {
  flex: 1 1 auto;
}

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

label {
  padding: 0;
  margin: 0;
}

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,
#secs,
#timezone,
#lond,
#lonmins,
#lonsecs,
#latd,
#latmins,
#latsecs {
  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: 28px;
}

select {
  font-size: 1rem;
  font-weight: 900;
}

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

/* ---------- Time stepper ---------- */

#yrs {
  width: 78px;
}
#mth,
#dys {
  width: 50px;
}

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

#secs {
  width: 68px;
}

#quickHrs {
  width: 78px;
}



/* ---------- Long/Lat stepper ---------- */
#lond,
#latd {
  width: 58px;
}

#lonmins,
#lonsecs,
#latmins,
#latsecs {
  width: 50px;
}


/* ---------- Timezone select ---------- */

#timezone {
  width: 72px;
}


/* ========== Location ========== */

#lon {
  width: 100px;
  background-color: #cfe7f7;
}

#lat {
  width: 90px;
  background-color: #cfe7f7;
}

.locSelect {
  width: 28px;
  border: 1px solid #999;
  border-radius: 4px;
  text-align: left;
  background: url('../imgs/earth_globe.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
  background-color: transparent;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color: transparent;  /* Keine Farbe weil Icon */
  cursor: pointer;
}

.locSelect > option {
  color: #333;       /* Für Orte Farben zurücksetzen */
  font-size: 1rem;
  font-weight: 600;
  background-color: rgba(115, 183, 228, 1); 
}


/* ========== This and that ========== */

#todayBtn {
  height: 28px;
  width: 28px;
  padding: 0;
  border: 1px solid #999;
  border-radius: 4px;
  cursor: pointer;
  background-image: url('../imgs/today.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
} 

#nowTimeBtn {
  height: 28px;
  width: 28px;
  padding: 0;
  border: 1px solid #999;
  border-radius: 4px;
  cursor: pointer;
  background-image: url('../imgs/pc_time.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
} 

#realTimeBtn {
  height: 28px;
  width: 28px;
  padding: 0;
  border: 1px solid #999;
  border-radius: 4px;
  cursor: pointer;
  background-image: url('../imgs/realTimeBtn.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
} 

/* Time display superscript */
.hms {
  font-size: 0.75rem;
  vertical-align: text-bottom;
}


#resetYrs,
#resetMth,
#resetDys,
#resetTime,
#resetLoc {
  text-decoration: none;
  color: #333;
}

#resetYrs:hover,
#resetMth:hover,
#resetDys:hover,
#resetTime:hover {
  color: #fff;
}

#resetLoc:hover {
  color: #f00;
}


/* ============ Output ============ */
.output {
  font-family: 'Courier Prime', 'Courier New', Courier, monospace;
  font-weight: 700;
}


.outputDiv {
  margin-bottom: 1rem;
  padding: 0.5rem 0 0 0.7rem;
  text-align: center;
}


#datetime,
#lonval {
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  background-color: rgba(116, 177, 235, 0.75);
  text-align: center;
  border-bottom: 1px solid #999;
}

.name {
  font-size: 1.2rem;
}

#greenwich {
  border-bottom: 1px solid #999;
  padding: 0;
}

#local {
  background-color: rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid #999;
  border-left: 1px solid #999;
  padding: 0;
}


#gwmeanOut,
#gwmeanOutdd,
#gwmeanOutdeg,
#gwappOut,
#gwappOutdd,
#gwappOutdeg,
#meanOut,
#meanOutdd,
#meanOutdec,
#appOut,
#appOutdd,
#appOutdec,
#diffOut {
  color: #333;
  font-family: 'Courier Prime', 'Courier New', Courier, monospace;
  font-weight: 700;
  font-size: 1rem;
  background-color: #eee;
  outline: 1px solid #333;
  border-radius: 4px;
  padding: 4px;
  width: 200px;
  margin: 4px auto;
  padding: 0;
  text-align: center;
}

#gwmeanOutdeg,
#meanOutdec,
#gwappOutdeg,
#appOutdec {
  padding-top: 8px;
}

#gwmeanOut,
#gwmeanOutdd,
#gwmeanOutdeg,
#gwappOut,
#gwappOutdd,
#gwappOutdeg {
  background-color: rgba(200, 255, 170, 1);
}

#diffOut {
  display: inline-block;
  padding: 0;
  margin: 0;
  width: 85px;
  
}


#meanOut,
#meanOutdd,
#meanOutdec,
#appOut,
#appOutdd,
#appOutdec {
  background-color: var(--astroyellow);
}

.clock {
  text-align: center;
  margin: 0 auto;
}
/* ================================= */

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

/* Main colors CI */
.astrored {
  background-color: var(--astrored);
}

.astrogreen {
  background-color: var(--astrogreen);
}

.astroyellow {
  background-color: var(--astroyellow);
}

.astroblue {
  background-color: var(--astroblue);
}

img.info {
  outline: none;
  width: 36px;
  height: 36px;
  margin-bottom: -0.6rem;
  margin-right: 5px;
}

img.float {
  float: left;
  margin: 10px 14px 2px 0;
}

img.float2 {
  float: right;
  margin: 10px 0 2px 14px;
}

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;
  }
  .flex-wrapper {
    width: 100%;
  }
}

/* Für Data Modal */
@media only screen and (max-width: 650px) {
  ul {
    padding-left: 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;
  }
  .flex-wrapper {
    width: 100%;
  }
  .headerh {
    font-size: 1.6rem;
    padding-top: 1rem;
  }
  .subhead {
    font-size: 16px;
    margin-top: -6px;
  }
  .footer {
    font-size: 60%;
  }
}

/* ♫ So long, Marianne */