
body {
  overflow-x: hidden; /* fix for google map extending beyond 100% width */
}

#content {
  background-color: transparent;
  position: relative; /* for positioning .loading-overlay */
}

.loading-overlay {
  background-color: white;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  transition: background-color 0.5s;
}

main {
  background-color: var(--mainTheme);
  margin-top: 0;
}

#nav.nav-static {
  position: fixed;
}

.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: none;
}



@media all and (min-width: 600px) {
  .heroImg {
    width: 100%;
    margin-left: 0;
  }
  .heroTitle {
    position: absolute;
    top: 0;
    bottom: 0;
  }
}
@media all and (min-width: 982px) {
  #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;
  }
  .hero-icon {
    display: block;
    margin-right: 30px;
  }
}

#store-window, .info-dark {
  background-color: rgba(0, 0, 0, 0.25);
  border-top: 3px solid #222;
  border-bottom: 3px solid #222;
}

#store-window {
  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;
}
.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 #102a10;
}

.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;
}

#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;
  border: 2px solid #ccc;
}
.openingTimes tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.15);
}
.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;
}
#storeInfo p {
  margin: 5px 0;
  display: flex;
  align-items: center;
}
#storeInfo svg {
  margin-right: 10px;
  width: 40px;
  flex-shrink: 0;
}



@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");
}