@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Noto+Emoji:wght@600&display=swap');

body {
  font-family: "Noto Sans", sans-serif;
  background: #111 url('images/bg.jpg') top center no-repeat fixed;
  background-size: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 3rem;
}

.accordion {
  width: 100%;
  border-radius: 2rem;
}

.accordion input[name=panel] {
  display: none;
}

.accordion label {
  position: relative;
  display: block;
  padding: 0 1rem;
  border-top: 2px solid rgba(238,238,238,0.5);
  border-bottom: 2px solid rgba(17,17,17,0.2);
  font-size: 1.8rem;
  line-height: 5rem;
  height: 5rem;
  font-family: "Josefin Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  text-transform: uppercase;
  color: #111;
  background-color: #AAA;
  cursor: pointer;
  transition: max-height 0.4s ease-in-out;
}

.accordion label:after {
  font-family: "Noto Emoji", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-size: 2.5rem;
  content: "🔻";
  position: absolute;
  top: 0;
  right: 1.5rem;
  width: 2rem;
  height: 2rem;
  color: #666;
  text-align: center;
  border-radius: 50%;
  background: transparent;
}

.accordion label:hover {
  background-color: #888;
}

.accordion label:hover::after {
  color: #333;
}

.accordion input:checked + label:after {
    font-family: "Noto Emoji", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    content: "🎵";
    font-size: 2rem;
  line-height: 5rem;
  color: snow;
}

.accordion input[name=panel]:checked + label {
  color: white;
  background-color: indigo;
}

.accordion input[name=panel]:checked ~ .content {
  display:block;
  max-height: 1500px;
  height: fit-content;
}

.content {
  overflow: hidden;
  max-height: 0;
  position: relative;
  padding: 0;
  transition: all 0.4s ease-in-out;
}

.content .album-details {
    display: flex;
    flex-direction: column;
    align-items: left;
    padding: 1.5rem;
    gap: 1.5rem;
    background: snow;
    color: #111;
}

.content .cover img { 
  box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
}

.content .tracklist {
  font-size: 1.8rem;
  line-height: 3.5rem;
  flex-grow: 2;
}

.content .tracklist ol {
  list-style-position: inside;
}

.content .tracklist em {
  font-style: italic;
  color: #666;
}

header {
    background-color: rgba(17, 17, 17, 0.6);
    color: white;
    width: 100%;
    border-radius: 1rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
}

header img {
    width: 100%;
    aspect-ratio: 1/1;
}

header div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

h1 {
    font-size: 5rem;
    font-family: "Josefin Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
    text-transform: uppercase;
}

h2 {
    font-size: 3rem;
    font-family: "Josefin Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
    text-transform: uppercase;
}
h3 {
  font-size: 1.4rem;
  font-family: "Josefin Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: italic;
  text-transform: uppercase;
  opacity: 0.5;
}

footer {
  color: rgba(255,250,250,0.8);
  background: rgba(17,17,17,0.8);
  font-size: 1.6rem;
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin: 3rem 0 0 0;
  padding: 2rem;
  border-radius: 2rem;
}

footer a:link, footer a:visited {
  color: blueviolet;
  text-decoration: none;
}

footer a:hover, footer a:active {
  color: white;
}

/* MEDIA QUERIES
------------------------------- */
@media (min-width: 768px) {
  header {
    flex-direction: row;
  }
  header img {
    width: 150px;
  }
  .accordion, header, footer {
    max-width: 900px;
  }
  .content .album-details {
    flex-direction: row;
  }
  .content .cover {
    max-width: 40%;
  }
  .content .tracklist {
    max-width: 60%;
  }
}