* {
  padding: 0;
  margin: 0;
  font-family: sans, sans-serif;
}

button, input, textarea {
  -webkit-appearance: none;
-moz-appearance: none;
appearance: none;
outline-style: none;
  min-width: 25px;
}

body {
  align: center;
  position: relative;
  font-size: 16px;
}

.tiny {
  font-size: 33%;
  vertical-align: top;
  white-space: nowrap;
}

#noscript-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  box-sizing: border-box;
  background: black;
  z-index: 999;
  text-align: center;
  color: #c9c9c9;
  line-height: 150%;
  font-size: 2vw;
  padding-top: calc(50vh - 5vw);
}

#noscript-container a {
  color: #1f9b92;
}

#noscript-container a:hover {
  color: white;
}

#mapControls {
  position: fixed;
  width: 100vw;
  bottom: 0;
  background: black;
  padding: 0;
  box-sizing: border-box;
  z-index: 3;
}

#mapControls button {
  color: #1fb9b2;
  border: none;
  background: black;
  font-size: min(5vh, 8vw);
  padding-left: 0.5ch;
  padding-right: 0.5ch;
  border: solid 1px black;
  border-bottom: solid 0.1em black;
}

#mapControls .activeBtn,
#mapControls button:hover {
  color: white;
  border-bottom: solid 0.1em #1f9b92;
}

#mapControls button:focus {
  border: dotted 1px #1f9b92;
  border-bottom: solid 0.1em #1f9b92;
}

#subControls {
  backgorund: transparent;
  float: right;
  padding: 0;
  box-sizing: border-box;
}

#map {
  display: block;
  position: relative;
  height: 100vh;
  width: 100vw;
  z-index: 1;
}

#createOverlay-container {
  background: #000000;
  color: white;
  position: fixed;
  width: 100%;
  max-width: 800px;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  height: auto;
  max-height:  100vh;
  overflow: auto;
  z-index: 4;
  text-align: left;
  display: none;
}

.modalHeader {
  position: sticky;
  top: 0;
  width: 100%;
  height: auto;
  background: black;
}

#createOverlay-container h2,
#import-export-container h2 {
  text-align: left;
  font-size: 200%;
  font-weight: normal;
  text-transform: uppercase;
  line-height: 2em;
  margin-left: 1em;
}

#createOverlay-container .multiBtn-container {
  display: none;
}

#createOverlay-content {
  margin: 2em;
    text-align: right;
}

#createOverlay-content label{
  display: block;
  float: left;
  text-transform: uppercase;
  color: white;
}

#createOverlay-content #radius-container {
  display: none;
}

#createOverlay-content input[type="text"],
#createOverlay-content textarea,
#createOverlay-content input[type="number"],
#import-export-container textarea {
  display: block;
  width: 100%;
  font-size: 150%;
  color: white;
  border: none;
  margin-bottom: 1em;
  font-family: sans-serif;
  box-sizing: border-box;
  padding: 0.5em;
  background: #222222;

}

#createOverlay-content textarea,
#import-export-container textarea {
  resize: none;
  height: 8em;
}


#createOverlay-content input[type="number"] {
  width: 12ch;
  text-align: right;
}

.closeBtn {
  float: right;
  background: transparent;
  font-size: 200%;
  border: none;
  color: #c9c9c9;
  padding: 0.5em;
  padding-left: 1em;
  padding-right: 1em;
}

.closeBtn:hover,
.closeBtn:focus {
  color: crimson;
}

#createOverlay-container .multiBtn-container button,
#createOverlay-submitBtn,
.positive-btn,
.negative-btn,
#set-home-btn,
#import-btn,
#export-all-btn {
  font-size: 150%;
  background: transparent;
  color: white;
  border: solid 2px dimgray;
  position: relative;
  margin-left: auto;
  padding: 0.25em;
  text-transform: uppercase;
}

#createOverlay-container .multiBtn-container button:hover,
#createOverlay-container .multiBtn-container button:focus,
#createOverlay-container submitBtn:hover,
#createOverlay-container submitBtn:focus,
#set-home-btn:hover,
#set-home-btn:focus,
#import-btn:hover,
#import-btn:focus,
#export-all-btn:hover,
#export-all-btn:focus {
  background: white;
  color: black;
  border: solid 2px white;
}

.positive-btn, .negative-btn {
  font-size: 150%;
  margin-top: 1em;
}

.positive-btn {
  border: solid 2px #1f9b92 !important;
  float: left;
}

.positive-btn:hover,
.positive-btn:focus {
  color: black !important;
  background: #1f9b92 !important;
}

#createOverlay-submitBtn,
#import-export-container #import-export-ok-btn,
#import-export-container #import-export-cancel-btn {
  float: none;
  font-size: 150%;
}

.negative-btn {
  float: right;
}

.negative-btn:hover,
.negative-btn:focus {
  color: black;
  background: crimson;
  border: solid 2px crimson;
}

#cancel-container, #confirm-container, #info-container {
  position: fixed;
  bottom: min(9vh, 12vw);
  display: none;
  left: 50%;
  transform: translateX(-50%);
  background: black;
  z-index: 10;
  color: white;
  padding: 0.5em;
  width: auto;
  max-width: 100vw;
}

#info-content, #cancel-msg, #confirm-msg {
  font-size: 200%;
}

#info-content {
  float: left;
  line-height: 200%;
}

#info-container .closeBtn {
  font-size: 200%;
  padding: 0;
  margin-left: 1ch;
}

#import-export-container {
  position: fixed;
  width: 100%;
  max-width: 800px;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  height: auto;
  max-height: 100vh;
  background: black;
  color: white;
  z-index:4;
  box-sizing: border-box;
}

#import-export-content {
  padding: 1em;
}

#import-export-container .multiBtn-container {
  text-align: right;
}

#import-export-error {
  color: crimson;
  display: none;
}

#overlays-menu-container {
  position: fixed;
  height: 100vh;
  right: 0;
  top: 0;
  width: 100%;
  max-width: 800px;
  background: black;
  color: white;
  z-index:2;
  display: none;
  padding: 1em;
  font-size: 150%;
  box-sizing: border-box;
  grid-template-rows: 1fr auto;
}

#overlays-menu-container .multiBtn-container {
  text-align: center;
  grid-row: 2;
  margin-bottom: min(9vh, 12vw);
}

#overlays-menu-container button {
  margin-top: 0.2em;
  margin-bottom: 0.2em;
  font-size: 100%;
}

#overlays-list {
  font-size: 125%;
  grid-row: 1;
  max-height: 100%;
  overflow: auto;

}

#overlays-list details summary {
  outline-style: none;
  border-bottom: solid 1px black;
}

#overlays-list details summary:hover {
  color: #1f9b92;
}

#overlays-list details summary:focus {
  border-bottom: dotted 1px #1f9b92;
}

#overlays-list ul {
  list-style: none;
  margin: 0.5em;
}

#overlays-list a {
  color: white;
  text-decoration: none;
  outline-style: none;
  border-bottom: solid 1px black;
}

#overlays-list a:hover {
  color: #1f9b92;
}

#overlays-list a:focus {
  border-bottom: dotted 1px #1f9b92;
}
#overlays-list details {
  margin: 1em;
}

#import-export-container {
  display: none;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  color: white;
  background: black;
  border-radius: 0;
}

.leaflet-popup-close-button {
  color: #c9c9c9 !important;
}

.leaflet-popup-close-button:hover,
.leaflet-popup-close-button:focus {
  color: crimson !important;
}

.leaflet-control-attribution {
  position: fixed;
  z-index: 2;
  top: 0;
  right: 0;
  text-align: right;
  background: rgba(0,0,0,0.8) !important;
  color: white !important;
}
.leaflet-control-attribution a {
  color: #1f9b92 !important;
}
.leaflet-control-attribution a:hover {
  color: white !important;
}
@media screen and (max-width: 600px), screen and  (max-height: 600px) {
  body {
    font-size: 75%;
  }
  
  #cancel-container,
  #confirm-container,
  #info-container {
    font-size: 80%;
  }
}
