:root {
  --font-color: #274289;
  --background-color: #fbbe84;
  --edge-color: #c95a32;
  --source-color: #de2133;
}

body {
  background-color: var(--background-color);
  color: var(--font-color);
  display: flex;
  flex-flow: column;
  align-items: center;
  margin: 0 5vw;
}

.banner {
  cursor: pointer;
}

img.banner {
  max-width: 90vw;
  width: 90rem;
  padding-top: 3rem;
  justify-content: center;
}

h1 {
  font-size: 3em;
  margin-top: 0.3em;
}

.slogan {
  font-style: italic;
  font-size: 1.1em;
  padding-bottom: 1.5em;
}

.description {
  max-width: 50vw;
  padding: 1em 0;
}

.name {
  font-weight: bold;
}

.images {
  max-width: 80vw;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.5em;
}

.images > img {
  max-width: 28.5em;
  padding: 0.3em;
  cursor: pointer;
  transition: transform 0.3s;
}

.images > img:hover {
  transform: scale(1.03);
}

.source {
  color: var(--source-color);
  font-weight: bold;
  padding: 1em 0;
}

.ingredients {
  font-weight: bold;
}

.copy > img {
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  cursor: pointer;
  transition: transform 0.2s;
}

.copy > img:hover {
  transform: scale(1.2);
}

.copy > img:active {
  transform: scale(0.9);
}

.download,
.store {
  display: flex;
  flex-flow: column;
  align-items: center;
  padding: 2em 0;
}

.download > .unavailable {
  font-style: italic;
}

.download > .available {
  font-weight: bold;
}

.download > a,
.store,
.disclaimer,
.copy > input {
  text-decoration: none;
  color: inherit;
  border-style: solid;
  border-color: var(--edge-color);
  border-radius: 0.5em;
  padding: 0.3em;
  margin: 0.1em;
  transition: transform 0.3s;
}

.copy > input {
  background: var(--background-color);
}

.download > a:hover,
.store:hover {
  transform: scale(1.1);
}

.store {
  color: inherit;
  margin: 1.5em;
}

.creator,
.copy {
  font-style: italic;
  padding-bottom: 2em;
  text-align: center;
}

.creator > a {
  text-decoration-style: wavy;
  text-decoration-color: var(--edge-color);
  text-decoration-thickness: 1px;
  color: inherit;
}

.href {
  color: inherit;
}

.href:hover,
.creator > a:hover {
  text-decoration: none;
}

.product-list {
  padding: inherit;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.product-item {
  display: flex;
  flex-flow: column;
  padding: 0.5em;
}

.product-link {
  padding: 1em;
  text-decoration: none;
  border-style: solid;
  border-color: var(--edge-color);
  border-radius: 1em;
  border-width: 2px;
  transition: transform 0.3s;
}

.product-link:hover {
  transform: scale(1.02);
}

.product-name {
  display: flex;
  justify-content: left;
  color: var(--font-color);
  text-decoration: none;
  font-size: 1.5em;
  padding-bottom: 0.1em;
}

.product-image {
  max-width: 40rem;
  position: relative;
  opacity: 1;
}

.product-image > img {
  transition: opacity 0.3s ease-in-out;
}

.product-image .hover {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
}

.product-image:hover > .hover {
  opacity: 1;
}

.product-image:hover > :not(.hover) {
  opacity: 0;
}

.product-image > img {
  max-width: 40rem;
}

.disclaimer {
  margin: 1.5em;
  border-width: 1px;
}

.disclaimer > a {
  color: inherit;
}

#disclaimer-text,
#close-disclaimer,
#disclaimer:target {
  display: none;
}

#disclaimer:target ~ #disclaimer-text,
#disclaimer:target ~ #close-disclaimer {
  display: inherit;
}

#disclaimer,
#close-disclaimer {
  font-style: italic;
  text-decoration: none;
}

#close-disclaimer {
  padding-bottom: 1em;
}

@media only screen and (max-width: 992px) {
  .description,
  .images,
  .product-image > img {
    max-width: 80vw;
  }

  img.banner {
    padding-top: 1.5em;
  }

  .columns {
    text-align: center;
  }
}

@media only screen and (min-width: 992px) {
  .columns {
    display: flex;
    flex-direction: row-reverse;
  }

  .product-info {
    position: sticky;
    top: 2em;
  }

  .images {
      max-width: calc(50vw - 1em);
  }
}

@font-face {
  font-family: "African";
  src: url(/shop/assets/African.woff2) format("woff2");
}

@font-face {
  font-family: "Museo Sans";
  src: url(/shop/assets/MuseoSansRounded.woff2) format("woff2");
}

@font-face {
  font-family: "Noto Serif";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(/shop/assets/NotoSerif.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 'gallery' thing */
.gallery {
  position: fixed;
  height: 100vh;
  width: calc(100vw - 2rem);
  inset: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.45);
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.gallery button {
  background-color: transparent;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
}

.gallery button.close {
  position: absolute;
  top: 1.5rem;
  right: 0;
}

.gallery .scroller {
  width: calc(100vw - 10rem);
  display: flex;
  align-items: center;
  translate: 0;
}

.gallery .scroller.animateFw {
  transition: translate ease 0.5s;
  translate: calc(-100vw - 10rem);
}

.gallery .scroller.bw {
  translate: calc(-100vw - 10rem);
}

.gallery .scroller.animateBw {
  transition: translate ease 0.5s;
  translate: 0;
}

.gallery img {
  min-width: calc(100vw - 10rem);
  max-width: calc(100vw - 10rem);
  max-height: calc(100vh - 1rem);
  margin-right: 20rem;
  object-fit: contain;
}

.gallery {
  display: none;
}

.gallery.open {
  display: flex;
}
