/* CSS Kalender Design Druck */

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

body {
  font-size: 18px;
}

#calendar th {
  text-align: left;
}

th {
  font-size: 140%;
}

#calendar td {
  vertical-align: top !important;
}

pre {
  display: block;
  font-family: monospace;
  white-space: pre;
  margin: 1em 0;
}

ul li:not(:first-child) {
  padding-top: 5px;
}

label,
#londm,
#latdm {
  font-size: 90%;
  font-weight: 900;
  font-family: 'Courier Prime', 'Courier New', Courier, monospace;
}

select {
  margin-top: 2px;
}



#lon,
#lat {
  width: 120px;
  margin-top: 10px;
  background: rgba(255, 0, 0, 0.2);
}

#yrs,
#mth {
  background: rgba(255, 255, 0, 0.5);

}

#tz {
  background: rgba(0, 255, 0, 0.2);

}

#calendar a,
#calendar a:hover {
  background: transparent;
}

#todayBtn,
#pBtn,
#resetBtn,
#setcookieBtn {
  margin: 5px 0;
}

#calcBtn {
  margin: 5px 0;
  padding: 5px 3rem !important;
}

.w3-table td, .w3-table th {
  vertical-align: top;
  border: 1px solid #999;
  padding: 3px !important;
}

.sett {
  background: rgb(255, 188, 143, 0.4);
}

.tdw {
  width: 100px !important;
  background: rgb(255, 188, 143, 0.2) !important;
  font-family: 'Courier Prime', 'Courier Prime', serif;
  font-size: 100%;
  font-weight: 900;
  color: #333;
  margin: 0;
}

.dstact {
  width: 100px !important;
  font-family: 'Courier Prime', 'Courier Prime', serif;
  font-size: 100%;
  font-weight: 900;
  color: #333;
  margin: 0;
  background-image: repeating-linear-gradient(-45deg, rgb(187, 229, 167), rgb(187, 229, 167) 5px, rgba(219, 219, 219, 0.5) 5px, rgba(219, 219, 219, 0.5) 10px) !important;
}

.dys {
  border: 1px solid #999;
  background: rgba(115, 183, 228, 0.4) !important;
  padding: 0 4px !important;
  font-size: 130%;
  color: #666;
  float: left;
}

.phaseimg {
  max-width: 100%;
  height: auto;
  border: none;
  padding-top: 3px;
  margin-top: 3px;
  display: inline-block !important;
  vertical-align: top !important;
}

#calendar .phaseimg {
  max-width: 100%;
  height: auto;
  border: none;
  padding: 0;
  margin-top: 3px;
  display: inline-block !important;
  vertical-align: top !important;
}

.tzodd {
  background-color: rgba(170, 170, 239, 0.55);
}

#info {
  font-size: 1rem;
  font-family: 'Courier Prime', 'Courier New', Courier, monospace;
}

.dat {
  width: 100%;
  height: auto;
  border: 1px solid #f00;
  border: none;
  font-size: 80% !important;
  font-weight: 900;
  font-family: 'Courier Prime', 'Courier New', Courier, monospace;
  text-align: right;
  line-height: 1.2rem;
  /* margin-top: 5px; */
}

.legende {
  color: #333;
  font-size: 85%;
  font-weight: 500;
  font-family: 'Courier Prime', 'Courier New', Courier, monospace;
}

#locs {
  width: 100%;
  height: 35px;
  padding: 8px;
  font-size: 16px;
  border: 1px solid #999;
  text-align: left;
}

textarea {
  font-family: 'Courier Prime', 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 5px 0 5px 0;
  padding: 5px 0 0 15px;
  border: 0;
  width: 100%;
  height: 100%;
  vertical-align: top;
  background-color: rgba(240, 101, 101, 0.1);
  border: 1px solid #666;
  white-space: pre;
  resize: none;
}

/* option {
  background: #fff;
  color: #000;
} */

/* ----- Modals ----- */
.modalGoogle,
.modalSave {
  width: 60%;
  height: 320px;
  padding: 0 2rem;
  background-color: rgb(242, 242, 146);
  text-align: left;
  border: 1px solid #999;
  border-radius: 5px;
  color: #333;
  overflow: auto;
}

.modalGoogle h3,
.modalSave h3 {
  padding-left: 0;
}

.modalGoogle img {
  margin-left: 2rem;
  float: right;
}

.modalSave {
  height: 240px;
}

.modalDayclick {
  width: 60%;
  height: 425px;
  padding: 0 1rem;
  background-color: rgb(242, 242, 146);
  text-align: left;
  border: 1px solid #999;
  border-radius: 5px;
  color: #333;
  overflow: auto;
}


#dayclickInfo,
#dayclickInfo2 {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
}

#dayclickInfo2 p {
  font-size: 90%;
  margin-top: 0;
}

#googleInfoOK,
#saveInfoOK,
#dayclickOK {
  font-size: 2rem;
  padding: 0.5rem 1rem;
}


@media print {
  body {
    background-color: none;
    background: none;
  }
  #calendar {
    transform: scale(0.95);
    transform-origin: 0 0; 
  }
  .dys {
    font-size: 80%;
  }
  .dat {
    font-size: 65% !important;
  }
  .dstact {
    background-image: repeating-linear-gradient(-45deg, #eee, #eee 5px, #fff 5px, #fff 10px) !important;
  }
  .phaseimg {
    width: 15px;
    height: 15px;
    padding: 0 0 2px;
    margin: 0;
    border: none;
    display: inline-block !important;
    vertical-align: middle !important;
  }
}

/*
@media only screen and (min-width: 960px) {
  .modalGoogle {
    width: 40%;
    height: 310px;
    top: 20%;
  }
  .modalSave {
    width: 40%;
    height: 260px;
    top: 20%;
  }
}
*/

@media only screen and (max-width: 1280px) {
  .modalDayclick {
    width: 80%;
    padding: 0;
  }
}

@media only screen and (max-width: 960px) {
  .tdw {
    font-size: 80%;
  }

  .dat {
    font-size: 65% !important;
  }

  .dys {
    font-size: 90%;
    margin-bottom: 5px;
  }
  #info {
    font-size: 60%;
  }
  .modalGoogle {
    width: 90%;
    height: 350px;
  }
  .modalSave {
    width: 75%;
    height: 310px;
  }
  .modalDayclick {
    width: 90%;
    padding: 0;
  }
}

@media only screen and (max-width: 460px) {
  body {
    font-size: 0.8rem;
  }
  h2 {
    font-size: 90%;
  }
  th {
    font-size: 80%;
  }
  label {
    font-size: 80%;
  }
  .tdw {
    font-size: 80%;
  }
  .dat {
    font-size: 65% !important;
  }
  .dys {
    font-size: 60%;
    margin-bottom: 5px;
  }
  #info {
    font-size: 60%;
  }
  .modalGoogle {
    width: 90%;
    height: 500px;
    top: 15%;
  }
  .modalSave {
    width: 75%;
    height: 300px;
    top: 15%;
  }
  .modalDayclick {
    width: 90%;
    padding: 0;
  }
  .phaseimg {
    width: 13px;
    height: 13px;
  }
  .footer {
    padding: 0.3rem 0 0 0;
    font-size: 70%;
    height: 25px;
  }
}