/*! HTML5 Boilerplate v6.0.1 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

/* ==========================================================================
   VRC Map
   ========================================================================== */

@font-face {
  font-family: "myriad-pro";
  font-style: normal;
  font-weight: 300;
  src: url("https://use.typekit.com/af/e00b4d/000000000000000000017098/27/l?subset_id=2&fvd=n3&v=3")
      format("woff2"),
    url("https://use.typekit.com/af/e00b4d/000000000000000000017098/27/d?subset_id=2&fvd=n3&v=3")
      format("woff"),
    url("https://use.typekit.com/af/e00b4d/000000000000000000017098/27/a?subset_id=2&fvd=n3&v=3")
      format("opentype");
}

body {
  font-family: "myriad-pro-n3", "myriad-pro", myriad, verdana, arial, sans-serif;
  font-weight: 300;
  text-rendering: optimizelegibility;
  background: #ab3901;
}

header#header {
  width: 100%;
  padding: 0;
  text-align: left;
  z-index: 1;
  height: 50px;
  background: #c44101;
}

header#header h1 {
  color: #fff;
  margin: 0;
  font-weight: 300;
  font-size: 14px;
  padding: 10px 10px;
  float: left;
}

ul#filters {
  width: 100%;
  float: left;
  clear: left;
  margin: 0;
  list-style: none;
  color: #fff;
  padding: 0;
  background: #ab3901;
  display: flex;
  flex-wrap: wrap;
}

ul#filters > li.filter-header {
  float: left;
  margin-left: 1px;
  position: relative;
  display: inline-block;
  flex: 0 1 77%;
}

ul#filters > li.filter-button {
  float: right;
  display: inline-block;
  cursor: pointer;
  flex: 0 1 10%;
  margin-left: auto;
}

ul#filters > li.filter-item {
  flex: 0 1 100%;
  margin: 1px 0;
  text-align: right;
}

ul#filters > li {
  float: left;
  margin-left: 1px;
  position: relative;
  display: none;
}

ul#filters > li > span {
  padding: 13px;
  display: block;
  height: 24px;
}

ul#filters > li > strong {
  background: #ab3901;
  padding: 13px;
  display: block;
  height: 24px;
  cursor: pointer;
}

ul#filters > li > strong:after {
  display: none;
  font-family: "Font Awesome 5 Solid";
  content: "\f107";
  margin-left: 15px;
}

ul#filters > li > strong .fa-angle-down {
  margin-left: 10px;
}

ul#filters > li ul {
  display: none;
  max-height: 300px;
  overflow: auto;
}

ul#filters > li:hover > strong {
  background: #772801;
}

ul#filters > li:hover ul {
  display: block;
  background: #772801;
  top: 50px;
  right: 0;
  z-index: 10;
  list-style: none;
  padding: 5px 0;
  margin: 0;
  min-width: 100%;
}

ul#filters > li ul label {
  padding: 5px 10px;
  display: block;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  width: 90%;
  justify-content: flex-end;
}

ul#filters > li ul label input {
  margin-right: 10px;

  order: 2;
  margin-left: 10px;
}

#map {
  height: calc(100vh - 100px);
  width: 100%;
}

.gm-fullscreen-control {
  z-index: 300;
  height: 33px !important;
  width: 33px !important;
  margin: 12px 10px !important;
}

body.moving #infowindow {
  display: none;
}

.gm-style-mtc div[role="button"] {
  /* font-size: 16px !important; */
  height: 30px !important;
  font-size: 14px !important;
  min-width: 200px !important;
  padding: 0 10px !important;
}

.gm-style-mtc {
  margin: 4px;
}

.gm-bundled-control-on-bottom .gmnoprint > div {
  width: 33px !important;
  height: 66px !important;
}

.gm-bundled-control-on-bottom .gmnoprint button {
  width: 33px !important;
  height: 33px !important;
}

.gm-bundled-control-on-bottom .gmnoprint div {
  margin: 0 2px !important;
}

.gmnoprint {
  z-index: 10;
}

@media only screen and (min-width: 768px) {
  header#header h1 {
    font-size: 20px;
  }

  ul#filters {
    display: inline-block;
  }

  ul#filters > li {
    display: inline-block;
  }

  ul#filters > li.filter-header {
    flex: unset;
  }

  ul#filters > li.filter-button {
    display: none;
  }

  ul#filters > li.filter-item {
    flex: unset;
    margin: 0;
    text-align: left;
  }

  ul#filters > li:hover ul {
    position: absolute;
  }

  ul#filters > li ul label {
    width: 80%;
    display: block;
    align-items: unset;
  }

  ul#filters > li ul label input {
    margin-right: 10px;
    margin-left: 0px;
  }

  .gm-fullscreen-control {
    height: 40px !important;
    width: 40px !important;
    margin: 10px !important;
  }

  .gm-style-mtc div[role="button"] {
    font-size: 18px !important;
    height: 40px !important;
    min-width: 225px !important;
    padding: 0 23px !important;
  }

  .gm-bundled-control-on-bottom .gmnoprint > div {
    width: 40px !important;
    height: 80px !important;
  }

  .gm-bundled-control-on-bottom .gmnoprint button {
    width: 40px !important;
    height: 40px !important;
  }
}

@media only screen and (min-width: 1024px) {
  ul#filters {
    clear: none;
    float: right;
    width: auto;
    background: transparent;
  }
  #map {
    height: calc(100vh - 50px);
  }
  header#header h1 {
    padding: 10px 20px;
  }
}

@media only screen and (max-width: 768px) {
  .gm-style > div > div > div {
    transform: none !important;
  }
  #infowindow {
    position: fixed !important;
    bottom: 40px !important;
    left: 20px !important;
    right: 20px !important;
    width: auto !important;
  }
  #infowindow:before {
    display: none !important;
  }
}

. {
  z-index: 10;
}

#latlng {
  width: 498px;
  height: 50px;
}

.gm-style .gm-style-iw {
  max-width: 400px;
  font-size: 14px;
  line-height: 20px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4);
  border-radius: 0;
  background: #fff;
  padding: 10px 20px;
}

.ref {
  color: #999;
  font-weight: normal;
}
.meta {
  font-size: 11px;
  color: #999;
}

.closebutton {
  top: 22px !important;
}

.arrow {
  margin-top: -5px;
  z-index: 10;
}

#latlng {
  display: none;
}

#infowindow {
  position: absolute;
  width: 350px;
  font-size: 12px;
  line-height: 18px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4);
  border-radius: 0;
  background: #fff;
  padding: 10px 20px;
  z-index: 999999;
  bottom: 51px;
  left: -20px;
}

#infowindow:before {
  border: solid;
  border-color: #fff transparent;
  border-width: 12px 12px 0 12px;
  bottom: -6px;
  content: "";
  left: 29px;
  margin-left: -10px;
  position: absolute;
  z-index: 99;
}

#infowindow .close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-weight: bold;
  color: #999;
}

#infowindow .close:hover {
  color: #000;
}

/* ==========================================================================
   Tooltip
   ========================================================================== */

.tooltip {
  display: inline;
  position: relative;
}

.tooltip:hover:after {
  background: #fff;
  background: #fff;
  border-radius: 0;
  bottom: 40px;
  color: #333;
  content: attr(title);
  left: 0;
  padding: 5px 15px;
  position: absolute;
  z-index: 98;
  width: 180px;
  text-align: center;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
  font-size: 14px;
  margin-left: -95px;
}

.tooltip:hover:before {
  border: solid;
  border-color: #fff transparent;
  border-width: 6px 6px 0 6px;
  bottom: 35px;
  content: "";
  left: 50%;
  margin-left: -6px;
  position: absolute;
  z-index: 99;
}

/* ==========================================================================
   Menu
   ========================================================================== */

.filter-button:focus,
.menu:focus {
  outline: none;
}

.menu {
  padding: 12px 15px 8px;
  display: inline-block;
  cursor: pointer;
  transition-property: opacity, filter;
  transition-duration: 0.15s;
  transition-timing-function: linear;
  font: inherit;
  color: inherit;
  text-transform: none;
  background-color: transparent;
  border: 0;
  margin: 0;
  overflow: visible;
  opacity: 0.7;
}
.menu:hover {
  opacity: 0.7;
}
.menu.is-active:hover {
  opacity: 0.7;
}
.menu.is-active .menu-inner,
.menu.is-active .menu-inner::before,
.menu.is-active .menu-inner::after {
  background-color: #fff;
}

.menu-animation .menu-inner {
  top: 2px;
  transition-duration: 0.275s;
  transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.menu-animation .menu-inner::before {
  top: 9px;
  transition: opacity 0.125s 0.275s ease;
}
.menu-animation .menu-inner::after {
  top: 18px;
  transition: transform 0.275s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.menu-animation.is-active .menu-inner {
  transform: translate3d(0, 10px, 0) rotate(135deg);
  transition-delay: 0.075s;
}
.menu-animation.is-active .menu-inner::before {
  transition-delay: 0s;
  opacity: 0;
}
.menu-animation.is-active .menu-inner::after {
  transform: translate3d(0, -18px, 0) rotate(-270deg);
  transition-delay: 0.075s;
}

.menu-box {
  width: 31px;
  height: 15px;
  display: inline-block;
  position: relative;
}

.menu-inner {
  display: block;
  top: 50%;
  margin-top: -2px;
}

.menu-inner,
.menu-inner::before,
.menu-inner::after {
  width: 31px;
  height: 4px;
  background-color: #fff;
  border-radius: 4px;
  position: absolute;
  transition-property: transform;
  transition-duration: 0.15s;
  transition-timing-function: ease;
}

.menu-inner::before,
.menu-inner::after {
  content: "";
  display: block;
}

.menu-inner::before {
  top: -10px;
}

.menu-inner::after {
  bottom: -10px;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap; /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  -webkit-clip-path: none;
  clip-path: none;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
  white-space: inherit;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
  content: " "; /* 1 */
  display: table; /* 2 */
}

.clearfix:after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]:after {
    content: " (" attr(href) ")";
  }

  abbr[title]:after {
    content: " (" attr(title) ")";
  }

  /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

.hover {
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
