
body {
  overflow-x: hidden; /* fix for google map extending beyond 100% width */
}

#content {
  position: relative; /* for positioning .loading-overlay */
  padding-top: 0;
}

.loading-overlay {
  background-color: white;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  transition: background-color 0.5s;
}

main {
  margin-top: 0;
  padding-top: 0;
}

/********* HERO *********/


.heroImgContainer {
  overflow-x: hidden;
  height: 50vw;
  background-image: url(/img/store-sm.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.heroTitle {
  text-align: center;
  background-image: radial-gradient(50% 40%, #0005, transparent);
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin-top: 10vw;
}

.heroTitle h1, .heroTitle h1 span {
  font-family: 'Baskerville', serif;
  font-size: min(70px, 8vw);
  color: white;
  text-decoration: none;
  font-weight: lighter;
  letter-spacing: 1vw;
  line-height: 0.9em;
  text-shadow: 0px 0px 5px black;
}

.heroTitle h1.hero-article {
  font-family: 'Baskerville', serif;
  font-size: min(30px,3vw);
  letter-spacing: 4px;
}

.heroTitle h1 span.less-spacing {
  letter-spacing: 0.3vw;
}

.heroTitle h2 {
  font-size: min(20px,max(14px,2vw));
  font-weight: normal;
  color: #e5e5e5;
  margin: 10px 0;
  letter-spacing: 2px;
  text-shadow: 0px 0px 3px black;
}

.heroTitle a {
  color: white;
  text-decoration: none;
}


.hero-icon {
  display: none;
}



#headline {
  width: 100%;
  background: #fff;
  color: #243f29;
  text-align: center;
  padding: 10px 1%;
  font-size: min(20px,max(1.3vw, 14px));
  border-style: solid;
  border-top-width: 1px;
  border-bottom-width: 1px;
  border-left-width: 0;
  border-right-width: 0;
  border-color: #555;
}



@media all and (min-width: 982px) {
  nav {
    position: fixed;
  }

  nav.nav-static #nav-top {
    background-image: linear-gradient(#000a, #0003);
  }

  nav.nav-static #product-categories {
    background-image: linear-gradient(#fff3, #fff1 50% 60%, #fff3);
  }

  .heroImgContainer {
    overflow-x: hidden;
    position: relative;
    height: 48vw;
    min-height: 300px;
    max-height: 80vh;
    background-image: url(/img/store0.jpg);
    background-attachment: fixed;
    background-size: max(600px, 100vw);
    background-repeat: no-repeat;
    background-position: top;
    z-index: 0;
  }

  .hero-icon {
    display: block;
    margin-right: 30px;
  }
  .heroTitle {
    position: absolute;
    z-index: 10;
    top: 0;
    bottom: 0;
    margin-top: 150px;
  }

  nav #nav-top li a:not(.attic-logo) {
    font-size: 1.1rem;
  }
  nav.nav-static {
    background-color: #0005;
  }
  nav.nav-static #nav-top, nav.nav-static #product-categories {
    border-bottom: 1px solid #2e2e2e;
  }
  nav.nav-static a {
    color: white;
  }
  nav.nav-static #nav-top {
    background: transparent;
  }
  nav.nav-static #nav-top li:not(:last-child):not(:first-child), nav.nav-static #nav-top li:first-child.current {
    border-right: 2px solid white;
  }
}

#store-window, .info-dark {
  background-color: rgb(219 204 151 / 56%);
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
}

#store-window {
  display: none;
  margin: 50px 0;
  padding: 30px 0;
}

#store-window>div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#store-window img {
  min-width: 280px;
  width: 28vw;
  max-width: 400px;
  transition: transform 1s;
  display: block;
}

.product-frame {
  overflow: hidden;
}

.window-product {
  display: flex;
  align-items: stretch;
  width: min-content;
  margin: 10px;
  text-align: center;
  background-color: var(--mainTheme);
  border: 2px solid white;
  border-radius: 3px;
  transition: border 0.5s cubic-bezier(0, 0, 0.2, 1);
}

.window-product a {
  transition: color 0.5s cubic-bezier(0, 0, 0.2, 1);
  padding: 5px;
  transition: background-color 0.5s cubic-bezier(0, 0, 0.2, 1);
}

.window-product a:hover {
  background-color: #0004;
}
.window-product a:hover img {
  transform: scale(110%);
}

.product-caption {
  margin-top: 5px;
}
.product-name {
  font-weight: bold;
}

.window-product a {
  text-decoration: none;
  color: white;
}


.infoSection {
  margin: 40px 0;
  padding: 30px 0;
}


.infoTitle {
  text-align: center;
  font-family: 'Baskerville';
  font-size: 1.3em;
}
.infoTitleTop {
  margin: 10px 0;
}
.infoTitle a {
  font-family: 'Baskerville';
}
.infoSection a {
  font-weight: bold;
  text-decoration: underline;
  color: #333;
}
.infoSection a:hover {
  text-decoration: none;
}

.infoBoxes {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.imageBox {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 500px;
  height: 400px;
  position: relative;
  background-size: cover;
  background-position: center;
  margin: 10px 0;
  box-shadow: 0 0 4px 4px #252525;
  color: white;
}

.imageBox::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-image: radial-gradient(ellipse 120% 50%, rgba(0, 0, 0, 0.6) 25%, rgba(0,0,0,0.2));
}

.imageBox ul {
  list-style: none;
  padding-left: 15px;
}
.imageBox .boxTitle {
  font-weight: bold;
  font-size: 1.2em;
}


.boxText {
  position: relative; /* to appear above the ::before */
  font-weight: bold;
}



#storeLocation {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  max-width: 1500px;
  margin: 0 auto;
}

#google-map {
  display: flex;
  justify-content: center;
}

gmp-map {
  height: 350px;
  max-width: 500px;
  width: 100vw;
}



.white-info-icon {
  background: white;
  padding: 3px;
  border-radius: 50%;
}


.openingTimes {
  padding: 20px 0;
}
.openingTimes table {
  font-size: 1.2em;
  border-collapse: collapse;
  color: #333;
}
.openingTimes tbody {
  border: 3px solid #333;
}
.openingTimes tr:nth-child(odd) {
  background: rgb(255 246 223);
}
.openingTimes tr:nth-child(even) {
  background: rgb(233 224 203);
}
.openingTimes td {
  padding: 2px 10px;
}
.openingTimes caption {
  font-weight: bold;
  padding-bottom: 3px;
}
.openingTimes td:first-child {
  padding-right: 15px;
  text-align: right;
}

#storeInfo {
  padding: 2% 2% 0;
  display: flex;
  justify-content: center;
  color: #333;
}
#storeInfo p {
  margin: 5px 0;
  display: flex;
  align-items: center;
}
#storeInfo svg {
  margin-right: 10px;
  width: 40px;
  flex-shrink: 0;
  border: 1px solid var(--darkGreen);
  border-radius: 50%;
}
#storeInfo svg.storeInfo-noBorder {
  border: none;
}

#google-360 {
  text-align: center;
  margin: 0 0 60px 0;
}
#google-360 iframe {
  max-width: 90%;
}



@media all and (min-width: 1200px) {
  .infoBoxes {
    max-width: 1400px;
    margin: 0 auto;
    flex-direction: row;
    justify-content: space-evenly;
  }
  .imageBox {
    width: 500px;
  }
}

@media all and (min-width: 975px) {
  #storeLocation {
    flex-direction: row;
  }
  #storeInfo {
    margin: 30px 0 0;
  }
}


.miniaturesBox {
  background-image: url("../img/spearhead.jpg");
}
.suppliesBox {
  background-image: url("../img/measurement.jpg");
}
.gamingBox {
  background-image: url("../img/gaming.jpg");
}
.servicesBox {
  background-image: url("../img/carcassonne.jpg");
}