:root {
  --main-size: 1rem;
  --main-pd: 0.5rem;
  --seconary-pd: 1rem;
  --main-mg: 1rem;
  --secondary-mg: 0.5rem;
  --main-br: 0.75rem;
  --main-theme: #faf7f5;
  --secondary-theme: #44ebd3;
  --main-color: #5bc5f7;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  line-height: 1.4;
  font-family: sans-serif;
}

body {
  background-color: var(--main-theme);
}

a:link {
  text-decoration: none;
}

.container {
  text-align: center;
}

ul {
  list-style-type: none;
  padding-left: 0;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.hero-title {
  font-size: 2rem;
  font-weight: 500;
}

.hero-auth {
  display: flex;
  gap: 0.75rem;
  font-size: 1rem;
}

.hero-btn {
  padding: 0.5rem;
  background-color: #00aaaa;
  color: #fff;
  border: none;
  border-radius: var(--main-br);
  font-weight: 600;
  cursor: pointer;
}

.rounded-img {
  width: 60%;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  padding: 0.6em;
  margin-bottom: 1em;
}

.navbar-nav {
  list-style-type: none;
  display: flex;
  gap: 20px;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: var(--main-mg);
}

/* Albums Page */
.albums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.album {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.album-title {
  font-size: 1.75rem;
}

.album-cover {
  width: 25rem;
  height: 25rem;
  object-fit: cover;
  border-radius: var(--main-br);
}

.album-tracklist__title {
  text-align: center;
  font-size: 18px;
}

.track-summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding-left: 24px;
}

.track-summary .open {
  display: none;
}

details[open] .track-summary .close {
  display: none;
}

details[open] .track-summary .open {
  display: inline-block;
}

.track-summary::before {
  position: absolute;
  left: 0;
  top: 50%;
}

.track-lyrics {
  white-space: pre-wrap;
  padding: 16px;
  font-style: italic;
  background: #f9f9f9;
}

details .track-lyrics {
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

details[open] .track-lyrics {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsive Design */

/* 1280px */
@media (max-width: 1280px) {
  .album-cover {
    width: 20rem;
    height: 20rem;
  }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
  .hero {
    gap: 1rem;
    padding: 0.5rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-auth {
    font-size: 0.9rem;
    gap: 0.5rem;
  }

  .hero-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .rounded-img {
    width: 80%;
    max-width: 300px;
  }

  .navbar-nav {
    gap: 15px;
    font-size: 18px;
    flex-wrap: wrap;
  }

  /* Albums Grid */
  .albums {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 1rem;
  }

  .album-title {
    font-size: 1.5rem;
  }

  .album-cover {
    width: 15rem;
    height: 15rem;
  }

  .track-summary {
    font-size: 12.5px;
  }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
  .hero {
    gap: 0.5rem;
    padding: 0.25rem;
  }

  .hero-title {
    font-size: 1.2rem;
  }

  .hero-logo img {
    max-width: 75px;
  }

  .hero-auth {
    font-size: 0.7rem;
    gap: 0.25rem;
  }

  .hero-btn {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
  }

  .rounded-img {
    width: 90%;
    max-width: 250px;
    padding: 0.4em;
  }

  .navbar-nav {
    gap: 10px;
    font-size: 16px;
    flex-wrap: wrap;
  }

  .navbar-nav li {
    flex: 0 1 auto;
  }

  /* Albums Grid */
  .albums {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.5rem;
  }

  .album-title {
    font-size: 1.2rem;
  }

  .album-cover {
    width: 12rem;
    height: 12rem;
  }

  .track-summary {
    font-size: 0.9rem;
  }

  .album-tracklist__title {
    font-size: 16px;
  }

  .track-lyrics {
    padding: 12px;
    font-size: 0.9rem;
  }
}

/* Mobile phones (376px and below) */
@media (max-width: 376px) {
  .hero {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.25rem;
  }

  .hero-logo {
    display: none;
  }

  .hero-auth {
    align-self: end;
  }
}

/* 321px and below */
@media (max-width: 321px) {
  .track-summary {
    font-size: 0.75rem;
  }
}

#footer {
  background-color: #002222;
  color: #fff;
  font-size: 0.75rem;
  display: flex;
  justify-content: center;
  padding: var(--main-pd);
  margin-top: var(--main-mg);
}
