/* Used for Historic Everett's leaflet (leafletjs.com) maps */
/* S. Fox 2/1/23 */

html { box-sizing: border-box; }
body { margin: 0; }
.menu-items { display: block; } /* used for the hamburger diplay on/off */

main { /* map, sidebar and nav all go in here */
  height: 100vh;
  width: 100vw;
}
nav.inside-map {
  position: fixed;
  float: right;
  width: 320px; /*100%; /* extra px for the leaflet buttons left and right */
  text-align: center;
  /*margin-left: 50px; /* for left side leaflet buttons */
  /*margin-right: 10px;*/
  font-size: 1.25em;
  padding: 2px;
  z-index: 20000;
}
nav.back-to-map {
  position: fixed;
  z-index: 60000;
  display: none;
  text-align: right;
  margin: 0;
  left: auto;
  right: 0px;
  /* width: 110px; */
  max-width:max-content;
}
#map, .map {
  width: calc(100% - 300px);
  height: 100%;
  float: left;
}
#sidebar {
  float: right;
  width: 280px;
}
/*article { margin-top: 1em; }  overrides earlier CSS */
/*div.story {
  clear: both;
  float: none;
  min-height: 100vh;
  padding-top: 3em;
}*/
/*div.storytext { column-count: 2; }*/
span.phone { display: none; }
div.phone, hr.phone { display: none; }
span.notphone { display: inline; }
div.notphone, hr.notphone, p.notphone { display: block; }
/*.righto { float: right; }*/

@media screen and (max-width:750px) { /* smartphones */
  span.phone { display: inline; }
  div.phone, hr.phone, br.phone { display: block; }
  span.notphone, div.notphone, hr.notphone, p.notphone, br.notphone { display: none; }
  nav {
    float: none;
    position: fixed;
    /* width: calc( 100% - 88px ); */
    left: auto; right: 0;
    border: none;
    margin-left: 50px;
    margin-right: 10px;
    text-align: right;
    max-width: min-content;
  }
  #map, .map { width: 100%; }
  #sidebar { display: none; }
  h1 { font-size: 1.25em; text-align: left; }
  .menu-items { display: none; }
  div.storytext { column-count: 1; }
}

#opacity {
  width: 50%;
  margin: auto;
}

@media screen and (max-width: 800px)
  { div.storytext { column-count: 1; }
}


.leaflet-control-layers { display: none } /* this works, but let's hide it. */
/*@media screen and (max-width:750px){ /* small screens */
/*  .leaflet-control-layers-toggle { display: none; }
}*/
/* from https://github.com/ismyrnow/leaflet-groupedlayercontrol/blob/a6bdf9408d26820a584a0bd7738444efad8c1cfa/dist%2Fleaflet.groupedlayercontrol.min.css */
/*.leaflet-control-layers-group-name{font-weight:700;margin-bottom:.2em;margin-left:3px}.leaflet-control-layers-group{margin-bottom:.5em}.leaflet-control-layers-scrollbar{overflow-y:scroll;padding-right:10px}*/

.leaflet-container {
  font-size: 0.7em;
}
.leaflet-right, .leaflet-top, leaflet-left, leaflet-bottom {
  opacity: 0.90;
}
.leaflet-container a.leaflet-popup-close-button { font-size: 24px; width: 24px; height: 24px; }
.leaflet-popup-content { font-size: 1.3em;}

/* from https://github.com/ismyrnow/leaflet-groupedlayercontrol/blob/a6bdf9408d26820a584a0bd7738444efad8c1cfa/dist%2Fleaflet.groupedlayercontrol.min.css */
/*    .leaflet-control-layers-group-name{ font-weight:700; margin-bottom:.2em; margin-left:3px }
.leaflet-control-layers-group{ margin-bottom:.5em }
.leaflet-control-layers-scrollbar{ overflow-y:scroll; padding-right:10px }
*/    /* shrink the list of map (layers icon) */
/*    .leaflet-control-layers-base, .leaflet-control-layers-expanded, .leaflet-control-layers-list { background: rgba(255, 255,255, 0.7); }
.leaflet-control-layers { display: block }
.leaflet-control-layers label { font-size: 70%; }
.leaflet-container { font-size: 1em; line-height: normal; }
.leaflet-right, .leaflet-top, leaflet-left, leaflet-bottom { opacity: 0.90; }
*/

div.story {
  clear: both;
  float: none;
  min-height: 100vh;
  min-width: 100vw;
  z-index:50000;
  position: absolute;
  top: 0;
  padding-top: 2.5em;
  background-color: white;
}

article { margin-top: 0; margin-bottom: 2em; } /* overrides walking tour css, if this file is placed after it */

div.storytext { column-count: 2; }
@media screen and (max-width:750px) { /* smartphones */
  div.storytext { column-count: 1; }
}
div.audio {
  background-color: #e0b3af;
  position:fixed; 
  bottom: 00px; left: 30px; right: 30px; 
  /* margin-left:auto; margin-right: auto;  */
  width: calc(100%-300px); max-width: 800px; 
  z-index: 2000; 
  text-align: center;
  border: 2px solid var(--motif-color);
  border-radius: 10px;
}
@media screen and (max-width:750px) { /* smartphones */
  audio { bottom: 20px; }
}
audio {
  width: 100%; 
}
#map { height: 100%;}

.leaflet-div-icon {
  font-size: larger;
  color: yellow;
  text-shadow: 2px 2px 2px black; 
  background: none;
  border: none;
}

.leaflet-control-scale { bottom: 60px; } /* moves it up because phone covers up the very bottom */
#overlay-maps { display: flex; justify-content: space-between;}
