@font-face {
  font-family: 'Baskerville';
  src: url('../fonts/BaskervilleBT.ttf') format('truetype');
}


:root {
  --mainTheme: #365d3e;
  --mainHighlight: #ffc848; /* #ffc848; */
  --secondaryTheme: #ddd;
}


* {
  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(--mainTheme);
}




/********* HERO *********/

.heroTitle {
  text-align: center;
  background-image: radial-gradient(50% 40%, #0005, transparent);
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  z-index: -1;
  margin-top: 150px;
}

.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;
}



/*********** NAV **********/

#nav {
  position: fixed;
  top: 0;
  z-index: 100;
  width: 100%;
  transition: background-color 1s;
  background-color: #faf6e8; /* #ede5c7; */
}

#nav.displayNav {
  position: fixed;
}

#nav-top li {
  transition: padding 1s;
}
#product-categories {
  transition: padding 1s;
  text-align: center;
  /* display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap; */
}

#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;
  background: #753;
  border-radius: 6px;
}
#nav-top img.attic-icon {
  width: 60px;
}

#nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  background: linear-gradient(to top, #fda2, #fda6);
  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: #444;
  position: absolute;
  top: 18px;
  right: 4px;
}
.flex-balancer {
  flex: 1;
}
#nav .nav-toggler-balancer {
  flex: 1;
}

#nav .nav-toggler:active {
  color: var(--mainHighlight);
}

#nav a {
  color: #333;
}

#nav ul {
  padding-left: 0;
}

#nav:not(.displayNav) ul li.current {
  display: block;
}

#nav.displayNav ul li {
  display: block;
}

#nav li {
  display: none;
  list-style: none;
  padding: 3px 1vw;
}

#nav li {
  transition: border 0.5s;
}
#nav li a {
  transition: color 0.5s;
}

#nav-top a {
  display: block;
  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: #c78f27;
}

#nav.displayNav #product-categories {
  /* border-top: 2px solid #3b2205; */
  border-bottom: 2px solid #3b2205;
  padding: 10px 0;
}

#product-categories ul {
  display: inline;
  text-align: left;
  font-size: 0px; /* remove whitespace between links */
  /* list-style: none;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  overflow: auto;
  flex-basis: 900px; */
}

#nav.displayNav #product-categories ul {
  flex-direction: column;
  align-items: flex-start;
  /* background: rgba(0, 0, 0, 0.3); */
}

#product-categories li {
  padding: 3px 1%;
  text-align: left;
  font-size: 16px;
}

#product-categories a {
  font-family: 'Baskerville', serif;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
}

#product-categories a:hover {
  color: var(--mainHighlight);
}

#store-search {
  background: white;
  display: inline-block;
  border-radius: 5px;
  padding: 5px;
  margin: 3px 10px;
  border: 1px solid grey;
}

#store-search svg {
  vertical-align: middle;
}

#store-search-input {
  border: none;
  outline: none;
}



/*********************/

#headline {
  width: 100%;
  background: #fff;
  color: #243f29;
  text-align: center;
  padding: 10px 0;
  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;
}

main {
  margin: 150px auto 0;
  padding: 30px 0;
  color: white;
}

main a {
  color: white;
  text-decoration: none;
}

#user-customised {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 30px auto;
  max-width: 1000px;
}
.user-image {
  max-width: 250px;
  max-height: 250px;
}
.user-text {
  margin-left: 10px;
}

#user-customised .user-text a {
  font-weight: bold;
  text-decoration: underline;
}
#user-customised .user-text a:hover {
  color: var(--mainHighlight);
}

.return-link {
  text-align: center;
}
.return-link a {
  font-size: 0.9em;
  text-decoration: underline;
  color: #ccc;
}


#social-media-links {
  text-align: center;
  margin: 20px auto;
  display: flex;
  justify-content: space-around;
  max-width: 1000px;
}
#social-media-links a {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  font-size: 0.9rem;
}
#social-media-links a span {
  display: none;
}






/********** FOOTER ***********/

footer {
  font-size: 0.9em;
  color: #333;
  background-color: var(--secondaryTheme);
  text-align: center;
  width: 100%;
  padding-top: 20px;
}

#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;
}

.footer-address {
  margin-top: 25px;
}

#footer-legal div {
  margin: 10px 0;
}






/********** RESPONSIVE: wide screens ***********/

@media all and (min-width: 792px) {
  #social-media-links a span {
    display: inline;
  }
  #footer-navigation {
    flex-direction: row;
    align-items: center;
  }
  .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-top {
    justify-content: center;
    align-items: center;
  }
  #nav-top ul {
    display: flex;
    align-items: center;
  }
  #nav-top ul li.current.navHeader {
    display: none;
  }
  #nav.displayNav #nav-top {
    align-items: center;
  }
  #nav ul li, #nav.displayNav ul li {
    display: inline;
    white-space: nowrap;
  }
  #nav #nav-top li:not(:last-child):not(:first-child), #nav #nav-top li:first-child.current {
    border-right: 2px solid #666;
  }
  #nav li.current a {
    color: #c78f27;
  }
  #nav #nav-top li a:not(.attic-logo) {
    font-size: min(1.1rem, calc(1.4vw));
  }
  #nav-top a.attic-logo {
    margin-right: 2vw;
  }
  #nav.nav-static #nav-top li {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  #nav.nav-static #product-categories {
    padding: 20px 0;
  }
  #product-categories {
    text-align: center;
    background-image: linear-gradient(#fff2, transparent 30% 70%, #fff2);
    border-bottom: 1px solid #553612;
  }
  #nav.displayNav #product-categories ul {
    flex-direction: row;
    align-items: center;
    background: transparent;
  }
  #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;
  }
  #product-categories a {
    padding: 10px 0;
  }
  
  #user-customised {
    flex-direction: row;
    justify-content: center;
  }
}

@media all and (min-width: 1400px) {
  #nav-top a.attic-logo {
    margin-right: 8vw;
  }
}


.notifications {
  display: inline-block;
  background: red;
  text-decoration: none;
  font-weight: bold;
  color: white;
  padding: 0 3px;
  border-radius: 10px;
}
.notifications:empty {
  padding: 0;
}