html, body {
  margin: 0;
  padding: 0;
  background: #f0a0c5;
}

html, body, l-map {
  height: 100%;
  width: 100vw;
  font-family: Arial, sans-serif;
  color: #000;
}

figure {
  margin: 0;
}

button {
  outline: none;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: #000;
}

a {
  color: #000 !important;
}

/*scrollbars */
body{
  scrollbar-color: #000 transparent;
  scrollbar-width: thin;
}

body::-webkit-scrollbar {
  width: 12px;               /* width of the entire scrollbar */
}

body::-webkit-scrollbar-track {
  background: transparent;        /* color of the tracking area */
}

body::-webkit-scrollbar-thumb {
  background-color: #000;    /* color of the scroll thumb */
  border-radius: 20px;       /* roundness of the scroll thumb */
  border: 3px solid #000;  /* creates padding around scroll thumb */
}
.ps__rail-y {
  width: 11px;
  opacity: .3;
}

.ps .ps__rail-x.ps--clicking,
.ps .ps__rail-x:focus,
.ps .ps__rail-x:hover,
.ps .ps__rail-y.ps--clicking,
.ps .ps__rail-y:focus,
.ps .ps__rail-y:hover {
  background-color: transparent;
}

.ps--focus > .ps__rail-x,
.ps--focus > .ps__rail-y,
.ps--scrolling-x > .ps__rail-x,
.ps--scrolling-y > .ps__rail-y,
.ps:hover > .ps__rail-x,
.ps:hover > .ps__rail-y {
  opacity: 1;
}

.ps__thumb-x,
.ps__thumb-y {
  background-color: #000;
  border-radius: 0;
}

.ps__rail-x.ps--clicking .ps__thumb-x,
.ps__rail-x:focus > .ps__thumb-x,
.ps__rail-x:hover > .ps__thumb-x {
  background-color: #000;
  opacity: 1;
}

.ps__rail-y.ps--clicking .ps__thumb-y,
.ps__rail-y:focus > .ps__thumb-y,
.ps__rail-y:hover > .ps__thumb-y {
  background-color: #000;
  width: 6px;
}

.error {
  height: 100%;
  height: calc(100% - 115px);
  background: white;
  background: #f0a0c5;
  padding: 100px 15px 15px;
  text-align: center;
}

.error h1,
.error h2,
.error h3 {
  text-transform: uppercase;
  font-size: 20px;
}

.error .header {
  position: absolute;
  left: 0;
  top: 0;
}

.leaflet-container {
  background: #fefefe;
}

.leaflet-div-icon {
  border: none;
  background: transparent;
}

#l-map{
  background: #f0a0c5
}

.leaflet-tile-pane{
  opacity:0.8
}

.gps_position {
  border: 3px solid #fc046c;
  -webkit-border-radius: 100%;
  height: 100%;
  width: 100%;
}

.map-project div,
.map-exhibit div {
  text-align: center;
  display: inline-block;
  font-size: 0;
  height: 100%;
  width: 100%;
  position: relative;
  background: #000;
}

.map-project span,
.map-exhibit span {
  color: white;
  line-height: 30px;
  font-size: 18px;
  font-weight: bold;
}

.map-project-active div,
.map-exhibit-current div {
  background: #f0a0c5;
}

.exhibit-info{
  font-size: 14px;
}

.exhibit-info section{
  /*border-bottom: 1px solid #000;*/
}

.exhibit-info > button{
  /*text-transform: uppercase;*/
}

.exhibit-info.-expanded > button{
  margin-bottom: .5em;
}

.exhibit-info > button:before {
  /* position: relative; */
  /* top: -3px; */
  display: inline-block;
  height: 1em;
  width: 1.5em;
  content: "→";
  font-size: 14px;
  line-height: 1em;
}

.exhibit-info.-expanded > button:before {
  transform: rotate(90deg)
}


.header {
  min-width: 50px;
  background: transparent;
  z-index: 10000;
}

footer, .popup {
  width: 420px;
  max-width: 100%;
}

footer {
  max-height: 50px;
  transition: max-height 0.3s ease-out;
}

footer.has-popup{
  max-height: calc(75vh - 35px);
}

.footer {
  background: #000;
  z-index: 10000;
  height: 50px;
  line-height: 50px;
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
}

.footer > button {
  text-transform: uppercase;
  font-weight: bold;
  color: #fff;
}

.footer .button-artists {
  order: 1;
}

.footer .button-project {
  order: 2;
}

.popup {
  z-index: 10000;
  max-height: calc(75vh - 85px);
  overflow: hidden;
  background: #f0a0c5;
}

.popup > div {
  position: relative;
  padding: 3em 0 1em 0;
}

.popup-header {
  position: absolute;
  left: 1.5em;
  top: 15px;
  font-size: 14px;
  line-height: 1em;
  vertical-align: middle;
}

.popup-header svg {
  width: 1em;
  height: 1em;
  position: relative;
  top: 1px;
}

.popup-header svg rect {
  width: 1em;
  height: 1em;
  fill: #000;
}

.popup-closer {
  position: absolute;
  right: 1.5em;
  top: 15px;
}


.popup-content {
  padding: 0 1.5em 1em;
  margin-bottom: 1em;
  box-sizing: border-box;
  max-height: calc(75vh - 85px - 4em);
  min-height: calc(60vh - 85px - 4em);
  font-size: 14px
}

.popup-content img {
  max-width: 100%;
}

.popup-content h1,
.popup-content h2,
.popup-content h3,
.popup-content h4,
.popup-content h5,
.popup-content p,
.popup-content figure {
  margin: 0 0 1em 0;
}

.popup-content h1,
.popup-content h2,
.popup-content h3 {
  text-transform: uppercase;
  font-size: 20px;
}

.popup-conten.scroll-area {
}

.artists-popup {
  background: #000;
  color: #fff
}

.artists-popup .popup-closer img{
  visibility: hidden;
}

.artists-popup .popup-closer{
  background: url("img/x-white.svg") no-repeat;
}

.artists-popup .ps__thumb-x,
.artists-popup .ps__thumb-y {
  background-color: #fff;
}

.artists-popup .ps__rail-x.ps--clicking .ps__thumb-x,
.artists-popup .ps__rail-x:focus > .ps__thumb-x,
.artists-popup .ps__rail-x:hover > .ps__thumb-x {
  background-color: #fff;
}

.artists-popup .ps__rail-y.ps--clicking .ps__thumb-y,
.artists-popup .ps__rail-y:focus > .ps__thumb-y,
.artists-popup .ps__rail-y:hover > .ps__thumb-y {
  background-color: #fff;
}

.exhibit-popup .exhibit-artist {
  margin-bottom: 0;
}

.exhibit-description,
.project-description,
.project-synopsis {
  font-size: 20px;
}

.project-synopsis {
  font-weight: bold;
}

.exhibit-instructions{
  text-transform: uppercase;
  font-weight: bold;
  display: flex;
}

.exhibit-instructions-content{
  width: 80%;
}

.exhibit-instructions-icon{
  width: 20%;
}

.exhibit-instructions ol{
  font-size: 0.9em;
  margin: 0;
  padding: 0 1.2em 0;
}

.exhibit-instructions h1{
  font-size: 0.9em;
  margin-bottom: 0;
}

.exhibit-marker{
  text-align: center;
}

.project-credits h1 {
  font-size: 1em;
  text-transform: none;
}

.artists-menu,
.artists-menu li,
.artists-menu button {
  margin: 0;
  padding: 0;
  font-size: 20px;
  list-style: none;
  font-weight: bold;
  color: #fff;
}

.artists-menu .unavailable{
  opacity: .5;
}

.artists-menu > li > button {
  text-transform: uppercase;
  text-align: left;
}

.artists-menu li,
.artists-menu ul {
  margin-top: .8em;
}

.error-popup img{
  width: 80%;
  margin: 10%;
}

.action-button{
  display: block;
  font-size: 20px;
  color: #fff!important;
  text-transform: uppercase;
  background: #000;
  height: 2em;
  text-align: center;
  line-height: 2em;
  text-decoration: none;
  margin: 1em 0;
}

/**Layout**/

header {
  position: absolute;
  z-index: 500;
  top: 0;
  width: 180px;
}

.header .project{
  width: 100%; /*strange firefox issue*/
}

header img{
  width: 100%
}

.where-am-i{
  position: absolute;
  right: 15px;
  bottom: 15px;
  z-index: 1000;
}

#projects {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#map {
  width: 100vw;
  flex-basis: calc(100vh - 50px);
  flex-grow: 1;
  position: relative;
}

#l-map {
  width: 100%;
  height: 100%;
}

footer {
  flex-basis: auto;
}

@media screen and (min-width: 501px) {
  #map {
    height: 100vh;
    width: 100vw;
  }

  footer {
    position: absolute;
    z-index: 500;
    bottom: 0;
  }

  .popup {
    position: absolute;
    z-index: 500;
    bottom: 49px;
  }
}
