:root {
  --dark: #000;
  --light: #fff;
  --blackletter: "UnifrakturMaguntia", serif;
}

html, body {
  align-content: center;
  background-color: var(--dark);
  background-image: url('../assets/bg.jpg');
  background-position: center center;
  background-size: cover;
  box-sizing: border-box;
  color: var(--light);
  height: 100%;
  margin: 0;
  padding: 0;
}

header, footer {
  margin: 0 auto;
  text-align: center;
  width: 90%
}

footer {
  padding: 3rem 1rem;
}

footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 1em;
  justify-content: center;

  a {
    color: white;
    transition: .3s ease all;
  }
  a:hover, a:active, a:focus {
    color: tan;
    text-shadow: 1px 1px 3px #000;
  }
}

h1, h2, h3 {
  font-family: var(--blackletter);
}


header h1 {
  font-size: min(max(7.5vw), 22vw);
  position: relative;
  display: inline-block;
  padding: .15em;
  rotate: 1.2deg;
  z-index: 10;
  color: wheat;

  &:after {
    position: absolute;
    background: black;
    content: '';
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    rotate: -2.5deg;
    z-index: -1;
    display: block;
  }
}

.btn {
  background-color: var(--dark);
  border-radius: .15em;
  color: var(--light);
  display: inline-block;
  /* font-size: 2em; */
  font-size: min(max(1.25em), 2.75em);
  margin: .5em auto;
  padding: .5em .75em;
  text-decoration: navajowhite;
  text-transform: uppercase;
  transition: .3s ease-in-out all;

  &:hover {
    opacity: .75;
    box-shadow: 0 .15em .15em var(--dark);
    outline: .15em solid rgba(255,255,255,.12s);
    rotate: 1.25deg;
  }
}

.latest-playlists {
  margin: 1em auto;
  width: 90%;

  h2 {
    background: black;
    color: wheat;
    display: inline-block;
    margin: 0 0 -.25em 0;
    padding: .25em;
    position: relative;
    rotate: 2deg;
    transition: all ease-in-out .3s;
    z-index: 0;
  }

  .playlist:hover h2 {
    color: white;
  }
}

.playlist-container {
  display: grid;
  grid-auto-rows: 1fr;
  grid-column-gap: 1.25rem;
  grid-row-gap: 1.25rem;
  grid-template-columns: 1fr;

  @media screen and (min-width: 600px){
    grid-template-columns: 1fr 1fr;
  }
  @media screen and (min-width: 800px){
    grid-template-columns: 1fr 1fr 1fr;
  }

  .btn {
    display: inline-block;
    margin: 1.5em auto;
  }
}

.yt-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.yt-container::after {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.yt-container iframe {
  cursor: pointer;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

main {
  max-width: 38rem;
  padding: 0 2em;
  margin: 0 auto;
}