@font-face {
  font-family: 'Baskerville';
  src: url('../fonts/BaskervilleBT.ttf') format('truetype');
}


:root {
  --mainHighlight: #ffc745;
  --secondaryTheme: #e0e0e0;
}


* {
  box-sizing: border-box;
  font-family: Verdana, Geneva, Tahoma, sans-serif, serif;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: white;
  min-height: 100vh;
}

#content {
  width: 100%;
  flex: 1;
  background-color: var(--secondaryTheme);
}








/*********** NAV **********/

#nav {
  position: sticky;
  top: 0;
  z-index: 1001;
  width: 100%;
  transition: background-color 1s;
  background-color: #4370a5;
}

#nav.displayNav {
  position: fixed;
}

#nav-top li {
  transition: padding 1s;
}

#nav.displayNav ul li.hack {
  display: none;
}

#product-categories {
  transition: padding 1s;
}

#nav.displayNav .attic-header {
  display: none;
}

#nav-top a.attic-logo, #nav-top span.attic-title {
  font-variant: small-caps;
  font-size: 1.4em;
  font-weight: bold;
  display: none;
  text-align: center;
}
#nav-top img.attic-icon {
  display: block;
}
#nav-top img.attic-icon {
  width: 60px;
}
#nav-top a.attic-logo {
  margin-right: 8vw;
}

#nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.15), rgba(0,0,0,0.25));
  border-bottom: 1px solid #764c1a;
}
#nav-top div, #nav-top ul {
  margin: 0 8px;
}
#nav.displayNav #nav-top {
  flex-flow: column-reverse;
  align-items: start;
}

#nav .nav-toggler {
  cursor: pointer;
  color: white;
  position: absolute;
  top: 18px;
  right: 4px;
}
.flex-balancer {
  flex: 1;
}
#nav .nav-toggler-balancer {
  flex: 1;
}

#nav .nav-toggler:active {
  color: var(--mainHighlight);
}

#nav ul {
  padding-left: 0;
}
#nav:not(.displayNav) ul {
  display: flex;
  align-items: center;
}

#nav:not(.displayNav) ul li.current {
  display: block;
}

#nav.displayNav ul li {
  display: block;
}

#nav li {
  display: none;
  list-style: none;
  padding: 0px 1vw;
  transition: padding 0.5s;
}

#nav li a {
  transition: color ease-out 0.5s;
}

#nav-top a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-family: 'Baskerville', serif;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-right: -3px; /* compensate for letter-spacing on last letter */
}

#nav li a:hover, #nav li a:hover span, #nav.displayNav li.current a {
  color: var(--mainHighlight);
}

#nav.displayNav li {
  padding-top: 10px;
  padding-bottom: 10px;
}





/*********************/


main {
  margin: 0 auto 0;
  padding: 30px 0;
  color: black;
}

main a {
  color: #222;
  text-decoration: none;
}






/********** FOOTER ***********/

footer {
  font-size: 0.9em;
  color: #333;
  background-color: #fff;
  text-align: center;
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid #999;
}

#footer-navigation {
  display: flex;
  flex-direction: column;
}

.footer-nav {
  flex: 1;
  text-align: center;
  margin: 20px 1%;
}
.footer-nav ul {
  list-style: none;
  padding: 0;
}
.footer-nav a {
  color: black;
  text-decoration: none;
  font-weight: bold;
}
.footer-nav a:hover {
  text-decoration: underline;
}
.footer-nav.footer-contact a {
  font-family: 'Baskerville', serif;
  font-size: 1.3em;
  font-variant: small-caps;
}






/********** RESPONSIVE: wide screens ***********/

@media all and (min-width: 792px) {
  #footer-navigation {
    flex-direction: row;
  }
  .footer-nav:first-child {
    text-align: left;
  }
  .footer-nav:last-child {
    text-align: right;
  }
}
@media all and (min-width: 982px) {
  .responsive-small {
    display: none;
  }
  .attic-header {
    display: inline;
  }
  #nav, #nav.displayNav {
    position: sticky;
  }
  #nav #nav-top, #nav.displayNav #nav-top {
    justify-content: center;
    align-items: center;
  }
  #nav li {
    display: inline;
    float: left;
    white-space: nowrap;
  }
  #nav #nav-top li:not(:last-child):not(:first-child), #nav #nav-top li.current {
    border-right: 2px solid #ccc;
  }
  #nav.displayNav ul li.hack {
    display: block;
  }
  #nav li.current a {
    color: var(--mainHighlight);
  }
  #nav.nav-static #nav-top li {
    padding-top: 15px;
    padding-bottom: 15px;
  }
  #nav-top li:not(.current) a.home-nav {
    display: none;
  }
  #nav-top li:not(.current) a.attic-logo {
    display: block;
  }
  #nav-top span.attic-title {
    display: block;
  }
  
}

div.routenav {
  background-color: #0003;
  padding: 10px 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

ul.routenav {
  list-style: none;
  display: flex;
  padding: 0;
  width: 100%;
  max-width: 800px;
  justify-content: space-around;
  align-items: center;
  margin: 0 10px;
}

div.routenav span {
  margin: 0 5px;
}

ul.routenav li {
  background-color: #2e567d;
  transition: background-color ease-out .5s;
  flex: 1;
  text-align: center;
  margin: 1px;
  border-radius: 3px;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

ul.routenav li.current {
  background-color: #3584c5;
}

ul.routenav li:not(.current):hover {
  background-color: #10838b;
}

div.routenav span a {
  font-weight: bold;
  color: #28496b;
}

ul.routenav a {
  color: white;
  display: block;
  padding: 6px 0;
}


@media all and (max-width: 791.9999px) {
  div.routenav {
    flex-direction: column;
    padding: 1%;
  }
  div.routenav span {
    margin-bottom: 15px;
  }
  ul.routenav {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  }
}




#map-container {
  position: relative;
  width: 800px;
  max-width: 90vw;
  height: 600px;
  max-height: min(85vh,70vw);
}
#map {
  width: 800px;
  max-width: 90vw;
  height: 600px;
  max-height: min(85vh,70vw);
  position: relative;
  box-sizing: border-box;
  border: 3px solid #444;
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}
#map-container #stage_link {
  width: 800px;
  max-width: 90vw;
  height: 600px;
  max-height: min(85vh,70vw);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}
#map-container #stage_link[href=""] {
  pointer-events: none;
}