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



* {
  box-sizing: border-box;
}

html, body {
  font-family: 'MainFont', Arial, Helvetica, sans-serif;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-size: 18px;
}

body {
  font-size: 18px;
  /* padding: 1rem 3em;
  padding: 1rem 3rem 100px 3rem; */
  margin: 0 auto;
  background-color: rgba(255, 255, 0, 0.15);
}

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

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

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

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

#map {
  width: auto;
  height: 600px;
  outline: 2px solid #999;
  border-radius: 5px;
  margin: 0.4rem;
}

input::placeholder {
  color: #333;
  opacity: 0.6;
}

/* ===========================================
   EphemPedia 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-Struktur unter Map
=========================================== */
.controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  font-size: 16px;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.input-group {
  display: flex;
  flex-direction: row;
  /* horizontal: Label links, Input rechts */
  align-items: center;
  /* vertikal zentriert */
  gap: 5px;
  /* Abstand zwischen Label und Input */
  margin: 0;
  padding: 0;
}

.input-group label {
  width: 100px;
  /* gleiche Breite für alle Labels */
  text-align: right;
  /* Text rechtsbündig, Input daneben */
}

/* ===========================================
   Inputfelder + Buttons
=========================================== */
#searchBtn,
#copyBtn,
#copyBtn2,
#copyDownBtn,
#setMarkerBtn {
  font-size: 16px;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  height: 32px;
  padding: 0 1rem;
}


#copyBtn,
#copyBtn2,
#copyDownBtn {
  background: rgba(226, 102, 102, 0.2);
}

#copyDownBtn {
  font-size: 24px;
}

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

#address,
#lon,
#lat,
#lonDMS,
#latDMS,
#inputLon,
#inputLat {
  height: 32px;
  padding: 4px 2px 0 2px;
  border: 1px solid #999;
  background: rgba(255, 255, 0, 0.2);
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  background: rgba(226, 102, 102, 0.2)
}

#address {
  font-size: 16px;
  max-width: 500px;
  background-color: #def0fc;
}

#inputLon,
#inputLat {
  background: rgba(0, 255, 0, 0.2);
}

button {
  text-transform: uppercase;
}



/* ===========================================
   Leaflet Karten 
=========================================== */
/* Layer Switch */
.leaflet-control-layers label {
  display: flex;
  align-items: center;
  gap: 6px;            /* Abstand zwischen Radio und Text */
  white-space: nowrap; /* optional, verhindert Umbruch */
}

/* Cursor */
/* Standard: normaler Pfeil */
.leaflet-container {
  cursor: default;
}

/* Während der Drag-Bewegung: 4-Pfeil-Cursor */
.leaflet-container.leaflet-dragging {
  cursor: move;
}

/* ===========================================
   Sticky Footer für (c)
=========================================== */
#sticky-footer {
    position: fixed;
    bottom: 0;             
    left: 0;               
    width: 100%;           
    background-color: rgba(0, 0, 0, 0.5); 
    color: #ffe;          
    text-align: center;    
    padding: 8px 0;        
    font-size: 0.85em;     
    z-index: 1000;         
}

#sticky-footer a {
    color: #ffd700;        
    text-decoration: none;
}

#sticky-footer a:hover {
    text-decoration: underline;
}

/* Optional: kleiner auf Mobilgeräten */
@media (max-width: 480px) {
  #sticky-footer {
    font-size: 0.7em;
    padding: 6px 0;
  }
}






/* ===========================================
   Media Queries
=========================================== */
@media only screen and (max-width: 992px) {
  .container {
    width: 100%;
    padding: 0;
  }
	.headerh {
    font-size: 1.3rem;
    padding-top: 1rem;
  }
  .subhead {
    font-size: 14px;
    margin-top: -6px;
  }
}
@media screen and (max-width: 620px) {
  body {
    padding: 0.5rem 0.5rem 100px 0.5rem;
    margin: 0 auto;
  }
	.container {
    width: 100%;
    padding: 0;
  }
	.headerh {
    font-size: 1.15rem;
    padding-top: 1rem;
  }
  .subhead {
    font-size: 14px;
    margin-top: -6px;
  }
  .row {
    flex-direction: column;
    align-items: stretch;
  }

  .input-group {
    min-width: 100%;
  }

  input,
  button {
    font-size: 18px;
    width: 100%;
  }

  #map {
    height: 400px;
    /* kleiner auf Smartphones */
  }
  .leaflet-control-layers label {
    flex-wrap: wrap;             /* Text darf umbrechen */
    white-space: normal;         /* Zeilenumbruch erlauben */
    gap: 4px;                    /* etwas enger für kleinere Bildschirme */
    justify-content: flex-start; /* alles links ausrichten */
  }
}

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

/* ===========================================
   Sweet Alert styles
=========================================== */
.swal-overlay {
  background-color: rgba(0, 0, 0, 0.2);
}

.swal-modal {
  /* background-color: rgb(185, 215, 250); */
  background-color: #FFFFD9;
  border: 1px solid #333;
}

.swal-title {
  font-size: 24px;
}

.swal-text {
  line-height: 2rem;
  background-color: #FFFFCC;
  padding: 17px;
  border: 1px solid #333;
  border-radius: 5px;
  display: inline-block;
  margin: 22px;
  text-align: center;
  color: #61534e;
  font-weight: 600;
}

.swal-button {
  padding: 7px 19px;
  border-radius: 2px;
  background-color: #009688;
  font-size: 14px;
  border: 1px solid #333;
}

/* äußere Kreisfarbe */
.swal-icon--success {
  border-color: #28a745;       /* z. B. kräftiges Grün */
  background-color: #FFFFD9;   /* gleiche Farbe wie dein Modal */
}

/* verdeckte Bereiche um das Häkchen herum */
.swal-icon--success:before,
.swal-icon--success:after {
  background: #FFFFD9;         /* Modal-Farbe einsetzen */
}

/* der Ring um den Kreis */
.swal-icon--success__ring {
  border: 4px solid #28a745;   /* Grün passend zum Häkchen */
}

.swal-icon--error {
  border-color: #dc3545;       /* Rot */
  background-color: #FFFFD9;   /* gleiche Farbe wie dein Modal */
}

.swal-icon--error:before,
.swal-icon--error:after {
  background: #FFFFD9;         /* Modal-Farbe einsetzen */
}

.swal-icon--error__line {
  background-color: #dc3545;   /* rote Linie vom X */
}
