/* General Setup */ 

  html, body {
    margin: 0;
    padding: 0;
  }

  body {
    margin: 0 0 5em 0;
  }
  .invisible {
    display: none !important;
    opacity: 0;
    transition: all 0.3s linear;
  }
  #calselector {
    display: none !important;
  }
/* Infobar */ 
  #barfooter {
    position: fixed;
    bottom: 1.5em;
    left: 0;
    margin: 0 1em;
    z-index: 100;
    display: grid;
    grid-auto-columns: max-content;
    grid-template-areas: 
    't t t t t'    
    'x l a . .'
    's s s . .';
  }
  #barfooter.project {
    grid-template-areas: 
    't t t t t'    
    's s s s s';
  }
  #barfooter.project #stylebar {
    display: flex !important;
  }
  #barfooter.project #expand {
    display: none !important;
  }
  @media only screen and (max-width: 600px) {
    #barfooter {
      bottom: 0;
      margin: 0;
      /*grid-template-areas: 
      't t t t t'    
      'x l a . .'
      ;*/
    }
    #statebar {
      max-width: 100vw !important;
    }
  }

  #infobartoggle {
    position: fixed;
    top: 1.5em;
    right: 0.75em;
    z-index: 140;
    transform: scale(2);
  }
  #infobartoggle > p {
    display: inline-block;
    margin: 0;
    cursor: pointer;
    padding: 0;
  }
  #expand {
    grid-area: x;
    width: max-content;
  }
  #stylebar {
    display: none !important;
    grid-area: s;
    width: max-content;
  }
  #stylebar.expand {
    display: flex !important;
  }
  #sedimentstoggle {
    grid-area: l;
    width: max-content;
    min-height: 2.1em;
  }
  #sedimentstoggle .toggler {
    display: inline-flex;
    justify-content: center;
    min-width: 1.5ch;
  }
  #projecttoggle {
    grid-area: p;
    width: max-content;
  }
  #sortfield {
    grid-area: a;
    width:max-content;
    transition: all 0.3s linear;
  }
  #projectindex.invisible ~ #barfooter #sortfield {
    display: none;
    width: 0px;
    opacity: 0;
    transition: all 0.3s linear;
  }
  #statebar {
    grid-area: t;
    max-width: calc(100vw - 2em);
    min-height: 2em;
  }
  #statebar p {
    margin: 0;
  }
  #sortbar div {
    padding: 0 0.5em;
  }
  #barfooter > div  {
    display: flex;
    align-items: center;
  }
  #barfooter > div:not(#statebar) {
    justify-content: center;
  }

/* Project list general  */

#liste {
    display: grid;
    grid-template-columns: 1fr;
    list-style: none;
    padding-left: 0 !important;
  }
  .externalmarker {
    transform: rotate(-33deg);
    display: inline-block;
  }
  .activity {
    display: none;
  }
  #liste .meta {
    display: inline-block;
  }
  #liste .meta span:nth-child(2) {
    cursor:help;
  }
/* Visit Algo */

#liste.visits {
    width: max-content;
    margin: 0 auto;
    display: block;
  }
  #liste.visits li {
    margin-bottom: 0.25em;
  }
  #liste.visits [data-external]::after{
    content: ' (Externally hosted projects are not included in the hit-list)';
  } 

  /* Alphabet algo */

  #liste.alphabet {
    height: 100vh;
    padding-top: 1em;
    min-height: calc(24* 1em);
    width: max-content;
    margin: 0 auto;
    grid-auto-rows: 1fr;
  }
  #liste.alphabet li {
    grid-area: auto !important;
  }

  /* Time algo */
  .slidecontainer {
    display: none;
    justify-content: center;
    padding: 1em 0 0 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
  }
  #liste.time + .slidecontainer {
    display: flex;
  }
  .slider {
    width: 60vw; /* Width of the outside container */
    margin: 0 auto;
  }
  #liste.time {
    display: block;
    padding: 0;
    width: 100vw;
  }
  #liste.time li {
    padding: 0.5em;
    width: 60vw;
    margin: 0 auto;
    display: grid;
    grid-auto-flow: column;
    left: 0;
    right: 0;
    transition: all 0.3s linear;
  }
  @media only screen and (max-width: 600px) {
    #liste.time li {
      width: 95vw;
    }
    #liste.alphabet, #liste.visits {
      padding-left: 0px !important;
    }
    #liste.visits {
      width: 100%;
    }
  }
  #liste.time li a {
    justify-self: start;
  }
  #liste.time li .meta {
    text-align: right;
  }
  /*#liste.time li {
    width: 80vw;
    height: 2em;
    margin: 0.5em 0;
    padding: 0.25em 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  */

/* Relation algo */

  #liste.relation {
    grid-template-columns: repeat(16, 1fr);
    margin: 1em 0.5em 0;
    min-height: 100vh;
    min-width: 100ch;
    /*grid-auto-rows: 3em;*/
  }
/*
  #liste.relation {
    grid-template-areas: 
    "P36 P36 .   .   u63 u63 .   .   .   .   .   .   .   .   .   .   "
    ".   W52 W52 .   u53 u53 .   .   u44 u44 .   .   O36 O36 O36 .   "
    ".   G50 G50 .   .   U43 U43 .   .   .   .   .   S44 S44 S44 .   "
    ".   .   .   .   .   C53 C53 .   N33 N33 .   .   S53 S53 S53 .   "
    ".   .   .   .   .   .   k39 k39 .   .   .   .   .   H57 H57 H5  "
    ".   .   .   .   .   .   .   .   .   .   P44 P44 .   .   E54 E54 "
    ".   .   .   .   T30 T30 .   .   .   .   Z46 Z46 .   .   .   .   "
    ".   .   .   .   m42 m42 .   .   .   .   .   .   .   .   .   .   "
    ".   .   .   .   .   .   .   W54 W54 .   .   .   .   .   .   .   "
    ".   .   .   .   .   .   .   a49 a49 .   .   .   .   .   .   .   "
    ".   .   I46 I46 .   .   .   �51 �51 .   .   .   .   .   .   .   "
    ".   .   W41 W41 .   .   .   .   .   .   .   .   .   .   .   .   "
    ".   .   P38 P38 .   .   .   .   .   .   .   .   .   .   .   .   "
    "A31 A31 .   .   .   .   .   .   .   .   .   .   .   .   .   .   ";
    */
    /*". . . . un . . . . . . . . L . . . . . ."
    ". . . . Gn . . . . . . . . . . . . . . ."
    ". Pe . . Ue . . . . . Ne . . . . . . . . ."
    ". . . . Ce Os . . . . . . . . . . . . . ."
    ". . G . kg Si . . . B . . . . . . . . . ."
    ". . . . . Se . . . . . . . . . . . . . ."
    ". . . Tr . . Hn . . . . . . . . . . . . ."
    ". . . me . . Ea . . . . . . . . . . . . ."
    ". . . . . . . . . . Pa . Ws . . . . . . ."
    ". . . . . . . . . . Ze . ad . . . . . . ."
    ". . . . . . . . . . . . . . . . . . . M"
    ". . . . . . . . . . . . . . . . . . . ."
    ". . . . . . . . . . . . . . . . . . . ."
    "X . . . . . . . . . . . . . . . . . . .";   */


  /*
  #liste.relation [data-group="1"] {
    grid-column: 1 / span 4;
  }
  #liste.relation [data-group="2"] {
    grid-column: 1 / span 4;
    grid-row: 7;
  }
  #liste.relation [data-group="3"] {
    grid-column: 7 / span 4;
  }
  #liste.relation [data-group="4"] {
    grid-column: 16 / span 4;
  }
  #liste.relation [data-group="0"] {
    grid-column: 14 / span 4;
  }
  #liste.relation [data-group="5"] {
    grid-column: 20 / span 4;
  }
  #liste.relation [data-group="6"] {
    grid-column: 17 / span 4;
  }
  #liste.relation [data-group="7"] {
    grid-column: 5 / span 4;
  }
  #liste.relation [data-group="8"] {
    grid-column:9 / span 4;
  }
  #liste.relation [data-group="9"] {
    grid-column: 18 / span 4;
  }
  #liste.relation [data-group="10"] {
    grid-column: 23 / span 2;
    grid-row: 24;
  }
  #liste.relation [data-group="11"] {
    grid-column: 13 / span 4;
    grid-row: 2;
  }*/
  /*#liste.relation [data-group="1"]:first-of-type {
    background: red;
  }*/

/* Wheel algo */  
  #liste.wheel li {
    transform-origin: left;
    
  }
  #liste.wheel {
    grid-template-columns: none;
    padding: 0;
    align-items: center;
    height: 100vh;
    margin: 0 auto;
    width: 0%;
  }
  body.go {
    /*height: 100vh;
    overflow: hidden;*/
  }
  body.go:before {
    content: '◀';
    font-size: 3vw;
    position: absolute;
    top: calc(50% - 2vw);
    right: 1%;
    z-index: 10;
  }
  @keyframes wheel {
      from {
        transform: rotate(0deg);
      }
      to {
        transform: rotate(720deg);
      }
  }
  div#projectindex.nogo.go {
    animation: none !important;
  }
  div#projectindex.go {
    animation-name: wheel;
    animation-duration: 6s;
    animation-fill-mode: forwards;
    animation-delay: 0s;
  }
  #liste.wheel li {
    padding: 0.25em;
  }

 
/* sediments */  
#sediments {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 15;
  overflow: hidden;
}
#sediments:not(.invisible) ~ div#projectindex {
  position: fixed !important;
}
@media only screen and (max-width: 600px) {
  #sediments div {
    width: 100vw;
    padding: 1.5em;
  }
  #about {
    padding: 0 5vw 5em 5vw !important;
  }
}
#sediments div {
  width: 90vw;
  padding: 2em;
  margin: 1.5em auto;
}
#about {
  position: fixed;
  padding: 0 20vw;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 30;
  overflow-y: auto;
}
#about div.overlay {
  display: grid;
  align-items: center;
  min-height: 100vh;
}
#infobartoggle.invisible {
  display: block !important;
  opacity: 1 !important;
}
    /* Select */
     .select select, select {
      appearance: none;
      border: none;
      background: transparent;
      margin: 0;
      font-family: inherit;
      font-size: inherit;
      line-height: inherit;
      cursor: pointer;
      display: inline-block;
      padding: 0;
  }
  .select {
      display: inline-flex;
      border: 0px !important;
      padding: 0 !important;
  }
   .select::after {
      /*justify-self: end;
      position: absolute;*/
      content: "☰";
  }
 #stylebar span, #statebar a {
    cursor: pointer;
  }  
   h3,  a,  #stylebar span,  #statebar a,  .toggler {
    cursor: pointer;
    }
.tippy-content img {
  max-width: 60vw; 
  max-height: 60vh; 
  object-fit: contain;
}
#stylebar span {
  padding: 0 0.1em;
}
#stylecontroller {
  border: 1px transparent solid;
}
#fontdecrease:hover {
  font-size: 0.8em !important;
}
#fontincrease:hover {
  font-size: 1.2em !important;
}
#sediments #logo {
  border-radius: 50%;
  width: 6em;
  aspect-ratio: 1/1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
#sediments #logo p {
  font-size: 3em;
  margin: 0;
  padding-top: 0.2em;
}
#sediments .intro {
  width: max-content;
  padding: 0.75em 1.75em;
  margin: 0.5em auto 1em;
  text-align: center;
  border-radius: 3em;
}
#sediments div:nth-child(3) {
  margin-bottom: 3.5em !important;
} 

@media only screen and (max-width: 600px) {
  #sediments .intro {
    width: 90vw;
  }
}