/*
@import url("observablehq:default.css");
@import url("observablehq:theme-air.css");
@import url("observablehq:theme-wide.css");

*/

/* @import url("observablehq:theme-dashboard.css"); */

@import url("ion.rangeSlider.min.css");
@import url("maplibre-gl.css");



.brand img{filter:grayscale(1);
  height: 50px !important;
  aspect-ratio: 1 ;
}

#alert-waiters {margin-top: 1em}

.observablehq--inspect {visibility: hidden;} /* don't display errors */

.nav-bar {
    display: flex;
    justify-content: left;
    align-items: center;
    height: 3em;
    width: 100%; /* Full width */
    background-color: #fff;
    padding: 0.5rem 1rem; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
    position: fixed; 
    top: 0;
    left: 0;
    z-index: 1000;
    border-width: 0px;
  }


  .nav-bar a {
    text-decoration: none; 
    color: #007bff; 
    font-size: rem; 
    font-weight: 500; 
    margin: 0 1rem; 
    transition: color 0.2s ease; /* Smooth hover transition */
  }


sl-card{margin:1em; width:100%}
sl-card::part(image){height: 100px; aspect-ratio: 12/1;}

/* "mehr anzeigen"-Knopferl: */
sl-details::part(summary-icon){
border:solid 1px grey; border-radius: 1em; margin:1em; padding:.2em
}


*::part(base){}


*::part(header){  
  position: relative;
  background-size: cover;
}


.atmosphere::part(base){border:none;} 
.atmosphere::part(header) {
  background-image: url('/data/images/atmosphere-light.png');
}


.biosphere::part(base){border:none}  
.biosphere::part(header) {
  background-image: url('/data/images/biosphere-light.png');
}

.geosphere::part(base){border:none}  
.geosphere::part(header){
  background-image: url('/data/images/geosphere-light.png');
}

@media (prefers-color-scheme: dark) {
  .atmosphere::part(header) {
    background-image: url('/data/images/atmosphere.png');
  }
  .biosphere::part(header) {
    background-image: url('/data/images/biosphere.png');
  }
  .geosphere::part(header) {
    background-image: url('/data/images/geosphere.png');
  }  
}


h1, h2, h3, h4 {
  color: "222222";
  font-family: 'OpenSans', sans-serif;
}

.prose{
  font-size: .8em; 
  /* color: darkslategray; */
  font-style: italic; text-align: justify;
  margin-bottom: 2em;
}

.drawer_legend::part(panel){
  font-size: .8em;
  /*margin: 1em;*/
  padding: 2em;
  background-color: #f0f0f0 !important;
  color: black
}

.control-pane { /* the control panel */
    position: -webkit-sticky; /* for safari */
    position:sticky !important;
    top: 90%;
    z-index: 10000 !important;
    background-color: var(--theme-background-alt);
    box-shadow: 3px 2px 2px grey;
    border-radius: 4px;
    padding: .5em;
    /*
    position:absolute;
    left: 2em; bottom: 2em;
    z-index: 1000 !important;
*/
}


#footer {
    background-color:#f0f0f0; padding: 2rem;
    justify-content: space-between;
    display:flex;
}



.credits {font-family: var(--sans-serif);
          color: var(--theme-foreground-faint);
          font-size: small; text-align: left;
          margin-left: 1em;
        }


.hidden {display: none;}




.warning, .warning::before {
    color: #fd9c1b
}



.impressum {
    position: fixed;
    font-size: large;
    right: 3rem;    
    bottom: 3rem;
    background-color: #e0e0e0;
}

.waiting {
    position: absolute;
    z-index: 100;
    background-color: #ffffff !important;
    height: 80%;
    width: 100% !important;
    opacity: 1;
    transition-duration: 1s;
    transition-property: opacity;
}

.waiting.fadeOut {opacity: 0;}


.spinner{
    animation: rotate 2s linear infinite;
    z-index: 2;
    position: absolute;
    top: 2em;
    left: 2em;
    margin: 0 0 0 0;
    width: 50px;
    height: 50px;    
  }
  
  @keyframes rotate {
    100% {
      transform: rotate(360deg);
    }
  }
  

.control {
    position: fixed;
    width: 80%;
    z-index: 1000;
    bottom: 10;
    left: 20;
    background-color: '#ff0000';
}

.tip::before {content : ''}

.note::before {content : 'Hinweis'}

/* style range slider, skin 'flat' */
.irs--flat .irs-bar {
    top: 25px;
    height: 12px;
    background-color: #2b8cbe;
}


.irs--flat .irs-from,
.irs--flat .irs-to,
.irs--flat .irs-single {
    color: white;
    font-size: 10px;
    line-height: 1.333;
    text-shadow: none;
    padding: 1px 5px;
    background-color: #2b8cbe;
    border-radius: 4px;
}


.irs--flat .irs-handle>i {
    position: absolute;
    display: block;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    margin-left: -1px;
    background-color: #2b8cbe;
}


.irs--flat .irs-from:before,
.irs--flat .irs-to:before,
.irs--flat .irs-single:before {
    position: absolute;
    display: block;
    content: "";
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 0;
    margin-left: -3px;
    overflow: hidden;
    border: 3px solid transparent;
    border-top-color: #2b8cbe;
}



/* markdown headings (#) are converted to anchors 
to construct TOC, but we hide these for the
sake of addtl. styled headings */
.observablehq-header-anchor {
    visibility: collapse; 
}
/*

.key {
    padding: .2em;
    margin : 0em .2em;
    border-radius: .2em;
    border-color: black;
    border: solid black 1px;
    background-color: #e0e0e0;
}

/* style loader placeholder */
.shimmer {
  padding: 2em;
  width: 100%;
  height: 20px;
  background: linear-gradient(
    to right,
    #f0f0f0 0%,
    #e0e0e0 20%,
    #f0f0f0 40%,
    #f0f0f0 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 10px;
}

@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}
