/* === Planet Finder 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 setup ========== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

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

.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: 700;
  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;
}

code {
  font-weight: 700;
}

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

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



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

.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;
  outline: 1px solid #999;   /* 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;
}

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

/* Dayslider z-index reset */
.sliderwrapper {
  z-index: 1;
}


/* ========== 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,
#planet,
#yrs,
#hrs,
#mins,
#timezone,
#lon,
#lat {
  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;
}

/* ---------- Planet select ---------- */

select[name=planet] > option {
  background-color: var(--astrored);
}

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

#yrs {
  width: 68px;
}

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

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

#timezone {
  width: 72px;
}


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

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

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

.locSelect {
  width: 28px;
  outline: 1px solid #999;
  border-radius: 4px;
  text-align: left;
  background: url('../imgs/earth_globe01.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); 
}


/* ========== Charts ========== */
.yearChartContainer {
  position: relative;
  margin: 0 auto 10px;
  width: 100%;
  height: 45vh;
  /* border: 2px dashed #00f; */  /* Tests */
}

.azimutChartContainer {
  position: relative;
  margin: auto;
  width: 100%;
  height: 30vh;
  /* border: 2px dashed #00f; */  /* Tests */
}

.overviewChartContainer {
  position: relative;
  margin: auto;
  width: 100%;
  height: 40vh;
}


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

#chartInfo {
  font-family: 'Courier Prime', 'Courier New', Courier, monospace;
  font-weight: 700;
  font-size: 1.1rem;
  color: #000;
  background-color: rgba(255, 255, 255, 0.6);
  padding: 8px 0 2px 0;
  text-align: center;
  margin: 0 auto;
  border-bottom: 1px solid #999;
  /* height: 50px; */
}

.dysSlider {
  width: 100%;
}

/* set dysSlider width */
.sliderwidth {
  width: 80%;
  padding: 0 10px 0 10px;
}

.sliderbuttonwidth {
  width: 12%;
  text-align: left;
}

/* dysSlider set vertical */
input[type=range] {
  margin-top: 7px;
}

#dayPlusBtn,
#dayMinusBtn,
#dataModalBtn {
  height: 26px;
  width: 26px;
  padding: 0;
  margin: 0;
  border: 1px solid #999;
  border-radius: 4px;
  background-color: #2f85f5;
  cursor: pointer;
}

#dayPlusBtn {
  background-image: url('../imgs/dayPlus.png');
  background-repeat: no-repeat;
  background-position: center;
}

#dayMinusBtn {
  background-image: url('../imgs/dayMinus.png');
  background-repeat: no-repeat;
  background-position: center;
}

#dataModalBtn {
  width: 40px;
  background-image: url('../imgs/calculator.png');
  background-repeat: no-repeat;
  background-position: center;
  background-color: rgb(0, 91, 133);
  margin: 0 0 0 8px;
}

#nowBtn {
  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;
}

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

#horizonBtn {
  height: 28px;
  width: 28px;
  padding: 0;
  border: 1px solid #ff0;
  border-radius: 4px;
  cursor: pointer;
  background-image: url('../imgs/horizon.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
  background-color: rgba(255, 0, 0, 0.25);

}

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

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

#resetYrs:hover,
#resetTime:hover,
#resetLoc:hover {
  color: #f00;
}

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

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

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

input.larger {
  transform: scale(1.5);
  margin-right: 4px;
}

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

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

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

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

.description {
  padding: 10px 20px;
  font-size: 1rem;
}

.description img {
  display: inline-block;
  vertical-align: baseline;
  margin-bottom: -0.2rem;
  outline: 1px solid #999;
}

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

.description {
  font-size: 20px;
}

.description > div {
  outline: 1px solid #999;
  border-radius: 5px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.light {
  background-color: rgba(255, 255, 255, 0.15);
}

p {
  padding: 0 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;
}


  /* ========== Draggable Data Modal ========== */

  #dataModal {
    width: 40%;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    color: #333;
    position: fixed;  /* Not scrolling on page scroll */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    background-color: #f1f1f1;
    text-align: left;
    outline: 2px solid #666;
    border-radius: 6px;
  }

  #dataModalheader {
    font-size: 1.2rem;
    height: 64px;
    padding: 10px;
    cursor: move;
    z-index: 10;
    background-color: rgba(115, 183, 228, 1);
  }

  #dataModalheader > p {
    padding: 0;
    margin: 10px 0 0 0;
    font-size: 1.5rem;
  }

  #dataModal a {
    color: rgb(0, 91, 151);
  }

  #dataModalcontent {
    padding: 10px;
    background-color: rgba(242, 242, 145, 1);
    color: #333;
  }

  #closeModalBtn,
  #closeMoonModalBtn {
    font-size: 28px;
    font-weight: 900;
    padding: 0;
    margin: 0;
    width: 40px;
    height: 40px;
    color: #fff;
    background-color: #000;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    border: none;
    border-radius: 0 6px 0 6px;
  }

  #closeModalBtn:hover,
  #closeMoonModalBtn:hover {
    background-color: rgb(224, 102, 102);
  }

  /* ----- Data Table Layout ----- */

  table, th, td {
    border: 1px solid #333;
    font-family: 'Courier Prime', 'Courier New', Courier, monospace;
    font-size: 0.8rem;
  }
  
  table {
    width: 100%;
    border-collapse: collapse;
  }

  tr > th {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 0.30rem 0 0 0;
  }

  td {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
    padding: 5px 0 0 0;
    width: 20%;
  }

  th.firstbox {
    background-color: transparent;
  }

  .firstcol {
    width: 40%;
    text-align: right;
    font-weight: 900;
    padding: 2px 10px 2px 0;
    background-color: rgba(0, 0, 0, 0.1);
  }

  .planetcol {
    background-color: rgba(255, 0, 0, 0.2);
  }

  .suncol {
    background-color: rgba(255, 255, 0, 0.2);
  }

  .mooncol {
    background-color: rgba(0, 0, 0, 0.1);
  }

  /* ========== Draggable Moon phase Modal ========== */
  #moonModal {
    width: 280px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    color: #333;
    position: fixed;  /* Not scrolling on page scroll */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    background-color: #f1f1f1;
    text-align: left;
    outline: 2px solid #666;
    border-radius: 6px;
  }

  #moonModalheader {
    font-size: 1.2rem;
    height: 64px;
    padding: 10px;
    cursor: move;
    z-index: 15;
    background-color: rgba(115, 183, 228, 1);
  }

  #moonModalheader > p {
    padding: 0;
    margin: 10px 0 0 0;
    font-size: 1.5rem;
  }

  #moonModalcontent {
    padding: 5px;
    background-color: rgba(242, 242, 145, 1);
    color: #333;
  }

  #moonData {
    font-size: 0.85rem;
    font-weight: 700;
  }

  #moonModalcontent > div:first-child {
    text-align: center;
    margin: 0 auto;
    background-color: var(--astroyellow);
  }

  #moonModalcontent > div:nth-child(2) {
    line-height: 1.1rem;
    background-color: var(--astrogreen);
  }

  img.sunCBLabel,
  img.moonCBLabel,
  img.elongCBLabel {
    margin-bottom: -4px;
  }

  /* ========== Draggable Overview Modal ========== */

  #overviewModal {
    width: 60%;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    color: #333;
    position: fixed;  /* Not scrolling on page scroll */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 998;
    background-color: #f1f1f1;
    text-align: left;
    outline: 2px solid #666;
    border-radius: 6px;
  }

  #overviewModalheader {
    font-size: 1.2rem;
    height: 64px;
    padding: 10px;
    cursor: move;
    z-index: 10;
    background-color: rgba(115, 183, 228, 1);
  }

  #overviewModalheader > p {
    padding: 0;
    margin: 10px 0 0 0;
    font-size: 1.5rem;
  }

  #overviewModalcontent {
    padding: 10px;
    background-color: rgba(242, 242, 145, 1);
    /* background-color: rgb(170, 239, 172); */
    color: #333;
  }

  #closeOverviewModalBtn {
    font-size: 28px;
    font-weight: 900;
    padding: 0;
    margin: 0;
    width: 40px;
    height: 40px;
    color: #fff;
    background-color: #000;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    border: none;
    border-radius: 0 6px 0 6px;
  }

  #closeOverviewModalBtn:hover {
    background-color: rgb(224, 102, 102);
  }
  




/* =============== Media queries =============== */
@media only screen and (max-width: 992px) {
  .container {
    width: 100%;
    padding: 0;
  }
  h2 {
    font-size: 1.6rem;
  }
  .flex-wrapper {
    width: 100%;
  }
  .sliderwidth {
    width: 60%;
  }
  #dataModal {
    width: 60%;
  }
  #moonModal {
    width: 265px;
  }
  #chartInfo {
    font-size: 0.9rem;
  }
}

/* Für Data Modal */
@media only screen and (max-width: 650px) {
  #dataModal {
    width: 90%;
  }
  .description {
    font-size: 0.9rem;
  }
  ul {
    padding-left: 10px;
  }
}
@media only screen and (max-width: 570px) {
  table {
    font-size: 0.8rem;
  }
  #dataModalheader > p {
    font-size: 1.1rem;
  }
  .description {
    font-size: 0.8rem;
  }
}

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

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


/* ♫ So long, Marianne */