@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
:root {scroll-behavior: smooth;}

body {
    font-family: "Merriweather", serif;
    background: url('./img/background/grass.gif');
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.page-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.album-sidebar {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: 120px;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  border-left: 2px solid #333;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.album-sidebar::-webkit-scrollbar {
  display: none;
}

.album-sidebar img {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.album-sidebar img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.main-content {
  max-width: 800px;
  padding: 20px;
  margin-right: 55%;
}



.album-card {
    background-color: #fff;
    display: flex;
    width: 700px;
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.album-cover {
    width: 200px;
    height: 200px;
    object-fit: cover;
    padding: 10px;
    align-self: center;
    cursor: pointer;
}

.album-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.album-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
    font-family: "Montserrat", sans-serif;
}

.album-quickinfo p {
  font-size: 15px;
  color: inherit;
  margin: 0 0 5px 0;
}

.album-quickinfo p:last-child {
  margin-bottom: 0;
}

.album-quickinfo {
  margin-bottom: 20px;
}


.review-text {
    position: relative;
    max-height: 70px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.review-text.fade::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--fade-color, white));
}

#scroll-txt::before {
  content: "↓ scroll ↓";
  text-shadow: 2px 2px 5px black;
}


.see-more-btn {
    background-color: transparent;
    color: inherit;
    border: none;
    padding: 8px 12px;
    margin: 10px auto 0;
    cursor: pointer;
    width: fit-content;
    display: block;
    text-align: center;
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .album-card {
        flex-direction: column;
        width: 100%;
    }

    .album-cover {
        width: 100%;
        height: auto;
        padding: 0;
    }

    .album-info {
        padding: 15px;
    }

    .album-title {
        font-size: 20px;
    }

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

    .album-sidebar {
  position: fixed;
  top: auto;
  bottom: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: auto;
  flex-direction: row;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px 0;
  border-left: none;
  border-top: 2px solid #333;
  z-index: 100;
}

.album-sidebar img {
  width: 60px;
  height: 60px;
  margin: 0 10px;
}

.main-content {
  margin-right: 0;
  margin-bottom: 100px; /* adds room for the bottom sidebar */
}

#scroll-txt::before {content: "→ touch →";}

}
