/* a minimalist set of CSS resets */

/* default to border-box */
html {
  box-sizing: border-box;
  font-size: 16px;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

/* adjust typography defaults */
body {
  margin: 1rem;
  font-family: sans-serif;
  line-height: 1.5;
}

/* images and videos max out at full width */
img,
video {
  height: auto;
  max-width: 100%;
}

/* Version 3 */

:root {
  --d: 700ms;
  --e: cubic-bezier(0.19, 1, 0.22, 1);
  --font-fam: courier, sans;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  display: grid;
  place-items: center;
  background-color: darkgray;
}

.page-content {
  display: grid;
  grid-gap: 1.5rem;
  padding: 1rem;
  max-width: 1024px;
  margin: 0 auto;
  font-family: var(--font-fam);
  font-size: 1rem;
}

.banner {
  position: absolute;
  top: 10px;
  background: rgba(255, 255, 255, 0.8) !important;
  padding: 0 5px;
  z-index: 30;
}
.banner h2 {
  color: black !important;
}

.hide {
  display: none !important;
}

.card, .block-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  width: 100%;
  height: 350px;
  background-color: whitesmoke;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 2px 2px rgba(0, 0, 0, 0.3),
    0 4px 4px rgba(0, 0, 0, 0.3), 0 8px 8px rgba(0, 0, 0, 0.3),
    0 16px 16px rgba(0, 0, 0, 0.3);
}
.block-card {
  background: rgba(0, 0, 0, 1) !important;
}

.card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 110%;
  background-size: cover;
  background-position: 0 0;
  transition: transform calc(var(--d) * 1.5) var(--e);
  pointer-events: none;
}

.card:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  pointer-events: none;
  background-image: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.009) 11.7%,
      rgba(0, 0, 0, 0.034) 22.1%,
      rgba(0, 0, 0, 0.072) 31.2%,
      rgba(0, 0, 0, 0.123) 39.4%,
      rgba(0, 0, 0, 0.182) 46.6%,
      rgba(0, 0, 0, 0.249) 53.1%,
      rgba(0, 0, 0, 0.32) 58.9%,
      rgba(0, 0, 0, 0.394) 64.3%,
      rgba(0, 0, 0, 0.468) 69.3%,
      rgba(0, 0, 0, 0.54) 74.1%,
      rgba(0, 0, 0, 0.607) 78.8%,
      rgba(0, 0, 0, 0.668) 83.6%,
      rgba(0, 0, 0, 0.721) 88.7%,
      rgba(0, 0, 0, 0.762) 94.1%,
      rgba(0, 0, 0, 0.79) 100%);
  transform: translateY(-50%);
  transition: transform calc(var(--d) * 2) var(--e);
}

.card.blissbite:before {
  background-image: url(images/bliss6.jpg);
}

.card.freddofrog:before {
  background-image: url(images/freddo-grey.jpg);
}

.card.chookychoc:before {
  background-image: url(images/ChookyChoc-solo-bright.jpg);
}

.card.chocksandwich:before {
  background-image: url(images/chocsandwich-square.jpg);
}

.card.sayit:before {
  background-image: url(images/shamim-red-square-small.jpg);
}

.card.nomads:before {
  background-image: url(images/nomads-square-small.jpg);
}

.card.givemesomelove:before {
  background-image: url(images/dancing-euphoric-small.jpg);
}

.card.limitededition:before {
  background-image: url(images/limited-edition.jpg);
}

.card.dancing-in-the-pain:before {
  background-image: url(images/dancing-in-the-pain.jpg);
}

.card.xmas:before {
  background-image: url(images/xmas1small.jpg);
}

.block-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1em;
  height: 100%;
  width: 100%;
  margin: 0;
}

.content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 1em;
  height: 100%;
  width: 100%;
  margin: 0;
  transition: transform var(--d) var(--e);
  z-index: 1;
}

.content>* {
  flex: 1 100%;
}

.content:hover {
  background: rgba(0, 0, 0, 0.5);
}

.title {
  font-weight: bold;
  line-height: 1.2;
  color: whitesmoke;
  margin: 0.5rem 0;
}

.copy {
  font-family: var(--font-fam);
  font-style: italic;
  line-height: 1.35;
  color: lightgray;
}

.long {
  font-size: smaller;
}

.genre {
  margin: 0;
}

.credits {
  margin: 0;
  margin-bottom: 1rem;
  align-self: stretch;
}

.credits p {
  font-family: var(--font-fam);
  font-style: italic;
  color: lightgray;
  margin: 0;
  margin-bottom: 0.2rem;
}

.credits a.insta {
  font-family: var(--font-fam);
  font-weight: bold;
  font-style: normal;
  font-size: 1.1rem;
  /*1.5 or more doesn't look good on smart phones*/
  text-decoration: none;
  color: rgba(238, 220, 233, 0.8);
  margin: 0;
  padding: 0;
}

.credits a.insta:hover {
  color: rgba(238, 220, 233);
}

.credits a.insta:before {
  font-family: "FontAwesome";
  content: "\f16d";
  padding: 0 0.3rem;
}

i.fa-instagram {
  color: grey;
}

i.fa-soundcloud {
  color: orange;
}

i.fa-spotify {
  color: green;
}

i.fa-apple {
  color: whitesmoke;
}

i.fa-medium-m,
i.fa-medium {
  color: lightblue;
}

.links {
  /*   flex-grow: 1; */
  align-self: stretch;
  display: flex;
  flex-direction: column-reverse;
  justify-content: left;
  flex-wrap: wrap;
}

.link {
  cursor: pointer;
  letter-spacing: 0.02rem;
  text-transform: uppercase;
  text-decoration: none;
  text-align: left;
  color: lightgray;
  background: rgba(0, 0, 0, 0.3);
  margin: 0;
  margin-top: 0.5rem;
  padding: 0.5rem 0.1rem;
  font-weight: bold;
}

.link:last-child {
  margin-top: auto;
  /*to push the link down the page if there's only one*/
}

.link i {
  margin-bottom: 0;
  padding: 0 0.5rem;
}

.link span {
  font-style: italic;
  font-weight: normal;
  text-transform: none;
}

.link.soundcloud-demo {
  padding-left: 10px;
  background: rgba(255, 255, 255, 0.7);
}

.link.medium:hover {
  background: rgba(81, 154, 177, 0.2);
}

.link.spotify:hover {
  background: rgb(30, 215, 96, 0.2);
}

.link.soundcloud:hover {
  background: rgb(255, 85, 0, 0.2);
}

.link.bandcamp:hover {
  background: rgb(29, 160, 195, 0.3);
}

.link.apple:hover {
  background: rgba(250, 2250, 250, 0.2);
}

.link span.time {
  font-size: smaller;
  color: darkgray;
  font-weight: normal;
  padding-left: 4px;
  margin-bottom: 4px;
  float: right;
}

/*---- Responsive Attributes for bigger screens (Mobile First Design) ----*/
@media (min-width: 600px) {
  .page-content {
    grid-template-columns: repeat(1, 1fr);
    font-size: 1.25rem;
  }

  .content {
    padding: 1rem;
  }

  .card, .block-card {
    padding: 0rem;
    height: 500px;
  }

  .link {
    margin-top: 0.5rem;
    padding: 1rem;
  }
}

@media (min-width: 800px) {
  .page-content {
    grid-template-columns: repeat(2, 1fr);
    font-size: 1.25rem;
  }
}

@media (hover: hover) and (min-width: 800px) {
  .card:after {
    transform: translateY(0);
  }

  .content {
    transform: translateY(calc(100% - 4.5rem));
  }

  /*   .content > *:not(.title) {
    opacity: 0;
    transform: translateY(1rem);
    transition: transform var(--d) var(--e), opacity var(--d) var(--e);
  } */

  .card:hover:before,
  .card:focus-within:before {
    transform: translateY(-4%);
  }

  .card:hover:after,
  .card:focus-within:after {
    transform: translateY(-50%);
  }

  .card:hover .content,
  .card:focus-within .content {
    transform: translateY(0);
  }

  /*   .card:hover .content > *:not(.title),
  .card:focus-within .content > *:not(.title) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--d) / 8);
  } */

  .card:focus-within:before,
  .card:focus-within:after,
  .card:focus-within .content,
  .card:focus-within .content>*:not(.title) {
    transition-duration: 1s;
  }
}