:root {
  --foreground-color: #282839;
  --secondary-color: #40404a;
  --link-color: darkred;
  --background-color: #FFFFFF;
  --secondary-background-color: ghostwhite;
  --border-color: lightgray;
  --box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
}

html {
    margin: 0px;
    padding: 0px;
    height: 100%;
    scrollbar-gutter: stable;
}

body {
    margin: 0px;
    padding: 0px;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* 100% of the viewport height */
    background-color: var(--background-color);
    font-family: Arial, Helvetica, sans-serif;
    color: var(--foreground-color);
}

.title-bar {
    height: 3rem;
    padding: .5rem;
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--secondary-background-color);
    border-bottom: 1px solid var(--border-color);
}

.container {
    width: 80%;
    max-width: 1250px;
    margin: auto;
}

.full-spread {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.title {
    color: var(--link-color);
    text-decoration: none;
    font-size: 2rem;
    font-weight: bold;
}

.nav-bar {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

main {
    flex: 1;
}

a {
  position: relative;
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  color: var(--link-color);
}

a::before {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--link-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

a:hover::before {
  transform: scaleX(1);
}

.card {
    padding: 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--secondary-background-color);
    border-radius: 7px;
    box-shadow: var(--box-shadow);
}

.album-display {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
}

.album-cover {
    border-radius: 7px;
    height: 300px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.liner-notes {
    font-size: 1.5rem;
    padding: 1rem;
    width: 66ch;
}

.track-listing {
    font-size: 1.5rem;
}

.track-listing li:hover {
    background-color: lightyellow;
}

.album-track {
    display: flex;
    max-width: 500px;
    justify-content: space-between;
}

.centered-div {
    margin: auto;
}

.song-image-link::before {
  display: none;
}

.song-image-link img {
  margin-bottom: 1rem;
}

.lyrics {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.chorus {
    padding: 1rem 2rem;
    background-color: var(--secondary-background-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    width: fit-content;
}

.breadcrumbs {
    font-size: 1.25rem;
    margin-top: .5rem;
    margin-bottom: .5rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.notes {
    font-size: 1.5rem;
    column-width: 45ch;
    column-gap: 2em;
}

.notes p:first-of-type {
    margin-top: 0px;
}

.bio {
    width: 66ch;
}

footer {
    height: 2rem;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    background-color: var(--secondary-background-color);
}

@media(prefers-reduced-motion: no-preference) {
 
  @view-transition {
    navigation: auto;
  }

  ::view-transition-group(page-content) {
    perspective: 1200px;
    animation-duration: 1s;
    animation-timing-function: ease;
  }

  ::view-transition-old(page-content) {
    perspective: 1200px;
    animation-name: flip-out;
  }

  ::view-transition-new(page-content) {
    perspective: 1200px;
    animation-name: flip-in;
  }

  main {
    view-transition-name: page-content;
    transform-style: preserve-3d;
  }

  @keyframes flip-out {
    0% {
      transform: perspective(600px) rotateY(0deg);
      opacity: 1;
    }
    100% {
      transform: perspective(600px) rotateY(-180deg);
      opacity: 0;
    }
  }

  @keyframes flip-in {
    0% {
      transform: perspective(600px) rotateY(180deg);
      opacity: 0;
    }
    100% {
      transform: perspective(600px) rotateY(0deg);
      opacity: 1;
    }
  }
}
