@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;1,100;1,300;1,400;1,500;1,700&display=swap");

:root {
  --background: rgb(47, 47, 47);
  --background-color: #21232d;
  --gray-color: #666666;
  --blue-color: #246dec;
  --red-color: #cc3c43;
  --green-m-color: #367952;
  --yellow-color: #f5b74f;
  --item-bg: #303030;
  --text-color: #ddd;
  --black: #1a1919;
  --primary-color: #794920;
  --secondary-color: #0d0c25;
  --alpha-color: rgb(0, 0, 0, 0.5);
  --hover-color: rgba(255, 255, 255, 0.2);
  --shadow: 0 15px 40px var(--alpha-color);
  --secondary-text-color: #999;
  --green-color: #2d5;
  --2nd-green: #349c4b;
  --padding: 5px;
  --border: 0.1rem solid rgb(255, 255, 255, 0.3);
  --box-shadow: 0.5rem 1rem rgb(0, 0, 0, 0.1);
  --outline: 0.1rem solid rgb(0, 0, 0, 0.1);
  --outline-hover: 0.2rem solid var(--black);
}

* {
  font-family: "Roboto", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
  text-transform: capitalize;
  transition: all 0.2s linear;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-padding-top: 7rem;
  scroll-behavior: smooth;
  /* line-height: 1.4; */
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: var(--background-color);
  color: #666666;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.material-icons-outlined {
  vertical-align: middle;
  line-height: 1px;
}

.font-weight-bold {
  font-weight: 600;
}

svg {
  width: 25px;
  height: 25px;
}

.grid-container {
  display: grid;
  grid-template-columns: 240px 1fr 1fr 1fr;
  grid-template-rows: 0, 2fr 3fr;
  grid-template-areas:
    "sidebar header header header"
    "sidebar main main main";
  height: 100vh;
}

/* -------- HEADER -------- */

.header {
  grid-area: header;
  height: 70px;
  background-color: var(--alpha-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px 0 30px;
  box-shadow: 0 6px 7px -4px rgba(0, 0, 0, 0.2);
}

.menu-icon {
  display: none;
}
/* Left side header  */
.header .header-left {
  display: flex;
  gap: 5px;
  align-items: center;
  box-shadow: var(--box-shadow);
}

.header .header-left input {
  height: 100%;
  width: 100%;
  border-radius: 5rem;
  font-size: 1.6rem;
  padding: 0 2rem;
}

/* ---- Right Side Header ---- */

/* View Account */

.header #viewList {
  /* top: 110%; */
  /* right: -110%; */
  /* display: none; */
  top: 7.7%;
  right: -5%;
  background: var(--item-bg);
  height: 22rem;
  position: absolute;
  width: 12.5rem;
  margin-top: 2rem;
  box-shadow: var(--box-shadow);
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
}

.header .header-right .activeProfile {
  /* display: inline !important;
  position: absolute; */
  right: 1.5rem;
  transition: 0.4s linear;
}

.header #viewList li {
  list-style: none;
  margin-top: 15px;
  font-size: 15px;
  font-weight: 600;
  padding: 5px;
}

.header #viewList li a {
  color: var(--secondary-text-color);
}

.header #viewList li:hover {
  background-color: var(--hover-color);
  /* cursor: pointer; */
}

.header .header-right {
  display: flex;
  gap: 1rem;
}

/* Reg and Login Button */
.header_button_container {
  display: flex;
  gap: 1rem;
}
.header .header-right .regButton,
.loginButton {
  background: var(--gray-color);
  padding: 5px;
  border-radius: 5px;
}

.header .header-right .regButton a,
.loginButton a {
  display: flex;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 700;
  padding: 5px;
}

.header .header-right .regButton:hover,
.loginButton:hover {
  background: var(--hover-color);
}

.header .header-right .loginButton {
  background: var(--primary-color);
}

/* Cart and Profile Button */
.header .header-right .cartButton,
#profile-btn {
  padding: 5px;
}

/* Dropdown button */
.drop_btn {
  /* background-color: #4CAF50; */
  font-size: 16px;
  border: none;
  cursor: pointer;
}

.drop_btn a {
  color: whitesmoke;
}

/* Dropdown button on hover & focus */
.drop_btn:hover,
.drop_btn:focus {
  transform: translate(0.02);
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: block;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  right: 0px;
  /* padding-top: 10px; */
  background-color: #f9f9f9;
  min-width: 140px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 15px;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  background-color: orange;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .drop_btn {
  background-color: orange;
}

.alert {
  color: #2d0505;
  background-color: #e86868;
  padding: 10px 20px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.header .header-right .cartButton svg,
#profile-btn svg {
  width: 3rem;
  height: 3rem;
  color: var(--gray-color);
}

.header .header-right .cartButton svg:hover,
#profile-btn svg:hover {
  cursor: pointer;
}

/* -------- SIDEBAR -------- */

#sidebar {
  grid-area: sidebar;
  height: 100%;
  background-color: var(--black);
  color: #9799ab;
  overflow-y: auto;
  transition: all 0.5s;
  -webkit-transition: all 0.5s;
}

.sidebar-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 20px 20px;
  margin-bottom: 30px;
}

.sidebar-title > span {
  display: none;
}

.sidebar-brand {
  margin-top: 15px;
  font-size: 20px;
  font-weight: 700;
}

.close-icon {
  fill: var(--secondary-text-color);
}

.sidebar-list {
  padding: 0;
  margin-top: 15px;
  list-style-type: none;
}

.sidebar-list-item {
  display: flex;
  padding: 20px 20px 20px 20px;
  gap: 20px;
}

.sidebar-list a {
  color: #d2d2d3;
  font-size: 1.5rem;
}

.sidebar-list-item:hover {
  background-color: var(--hover-color);
  cursor: pointer;
}

.sidebar-responsive {
  display: inline !important;
  position: absolute;
}

/* Nav menu */
#top_song_section {
  display: none;
}

#artists_section {
  display: none;
}

#album_section {
  display: none;
}

#new_release_section {
  display: none;
}

#liked_song_section {
  display: none;
}

/* -------- MAIN -------- */

.main-container {
  grid-area: main;
  overflow-y: auto;
  padding: 5px 5px;
  padding-bottom: 20rem;
}

/* main section */

/**** Carousel style ****/
.main .carousel {
  width: 100%;
  height: 200px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  object-fit: cover;
  border-radius: 10px;
}

.carousel img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  opacity: 0;
  transition: 1s;
}

.carousel img.active {
  opacity: 1;
}
/**** End carousel style ****/

.main .content {
  text-align: center;
  width: 60rem;
  color: var(--text-color);
}

.main .content h3 {
  font-size: 3rem;
  width: 60rem;
}

.main .content p {
  font-size: 1.7rem;
  padding: 1rem 0;
  line-height: 1.8;
}

/* List Content */

.scrollBg {
  width: 100%;
  /* height: 100%; */
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.scrollDiv {
  width: 100%;
  height: 600px;
  overflow: hidden;
  overflow-y: scroll;
}
.item {
  font-size: 16px;
  padding: 29px;
}

.item__container {
  background-color: var(--black);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--padding);
  position: relative;
  height: 6rem;
  color: var(--text-color);
}

i {
  color: var(--secondary-text-color);
}
i:hover {
  color: var(--text-color);
}
.list-bar {
  position: absolute;
  left: var(--padding);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  width: 70%;
}

.list-infos {
  display: flex;
  align-items: center;
  gap: 1em;
}

.s-play {
  opacity: 0;
}

.s-no {
  font-size: 16px;
}
.item__container:hover .s-no {
  display: none;
}
.item__container:hover .s-play {
  opacity: 1;
  color: aliceblue;
}

/*** Don't Forget ***/
.list_detail_container {
  display: flex;
}

.item__container .image-container img {
  width: 5rem;
  height: 5rem;
  fill: var(--text-color);
  /* padding-bottom: 7px; */
  border-radius: 2px;
  object-fit: cover;
}

.item__container {
  cursor: pointer;
  border-bottom: 1px solid rgb(69, 60, 60);
}

.item__container:hover {
  background: rgb(56, 56, 56, 0.45);
  transition: 0.3s;
}

.list-description p {
  margin: 0.2em;
}
.title,
.artist {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  font-size: 1.7rem;
  padding-left: 1rem;
}
.title:hover,
.artist:hover {
  text-decoration: underline;
}
.artist {
  color: var(--secondary-text-color);
}

.list-description span {
  align-items: center;
  padding-top: 5px;
}

.list-description span svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: blue;
  stroke: white;
}

/*** Don't Forget ***/
.name_verify_container {
  display: flex;
}

.extra_action {
  position: absolute;
  right: 150;
  display: flex;
}

.like_container,
.comment_container,
.share_container {
  display: flex;
  padding-left: 20px;
}

.extra_action a {
  color: white;
  font-size: 15px;
}

.likes.active {
  fill: var(--red-color);
}

.actionContainer {
  position: absolute;
  right: 20;
  /* display: flex; */
  flex-direction: row;
}

.list-action-bar {
  display: flex;
  align-items: center;
}

.add_to_cart {
  width: 8rem;
  height: 4rem;
  border-radius: 3px;
  /* margin: 10px; */
}

.add_to_cart:hover {
  cursor: pointer;
  background: var(--primary-color);
}

.add_to_cart p {
  font-size: 14px;
}

.actionContainer svg {
  width: 1.8rem;
  height: 1.8rem;
}

.s-pause {
  display: none;
  color: aliceblue;
}

.queue.active {
  background: rgb(56, 56, 56, 0.45);
}

.active .s-pause {
  display: inline;
}

.active .s-play {
  /* background: rgb(56, 56, 56, 0.45); */
  display: none;
}

.active .s-no {
  /* background: rgb(56, 56, 56, 0.45); */
  display: none;
}

/* Pricing Table Style */

#pricingContainer .topHead {
  text-align: center;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

#pricingContainer .topHead h2 {
  font-size: 4rem;
  padding: 1rem;
}
#pricingContainer .topHead p {
  font-size: 1.8rem;
}

.pricing-table {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
}
.box {
  flex: 25%;
  padding: 10px;
  width: 320px;
  box-sizing: border-box;
}

.table {
  background: var(--item-bg);
  color: var(--text-color);
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px #00000070;
  border-radius: 1rem;
}

/* .table:hover {
  background: var(--hover-color);
  color: var(--text-color);
  cursor: pointer;
  transition: 0.3s;
} */

.table h2 {
  text-transform: uppercase;
  font-size: 16px;
}

.table ul {
  margin: 0;
  padding: 0;
}

.table ul li {
  padding: 10px 0;
  list-style: none;
  font-size: 14px;
}

.price {
  font-size: 18px;
  margin-bottom: 20px;
}
.table span {
  display: block;
  font-size: 14px;
}
.table button {
  text-decoration: none;
  color: #2c3e50;
  border: 2px solid #2c3e50;
  /* display: block; */
  padding: 10px;
  border-radius: 10px;
  text-transform: uppercase;
  font-size: 14px;
  transition: 0.5s;
}

.table button:hover {
  background: #2c3e50;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}
.best {
  background: #2c3e50;
  color: #fff;
  transform: rotate(40deg);
  padding: 10px 40px;
  position: absolute;
  top: 10px;
  right: -38px;
}
@media screen and (max-width: 980px) {
  .box {
    flex: 50%;
  }
}

@media screen and (max-width: 700px) {
  .box {
    flex: 100%;
  }
}

/* Footer */
.footerContainer {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 40px 20px;
  background: var(--item-bg);
}

footer .col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
}

footer h4 {
  font-size: 16px;
  padding-bottom: 20px;
}

footer p {
  font-size: 14px;
  text-decoration: none;
  color: var(--text-color);
  margin-bottom: 10px;
}

footer a {
  font-size: 14px;
  text-decoration: none;
  color: var(--text-color);
  margin-bottom: 10px;
}

footer .copyright {
  width: 100%;
  text-align: center;
}

/* End List Style */

/* Bottom Player */
.music-player {
  background-color: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 7rem;
  padding: var(--padding);
  color: var(--text-color);
}

svg {
  color: var(--secondary-text-color);
}
svg:hover {
  color: var(--text-color);
}
.song-bar {
  position: absolute;
  left: var(--padding);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  width: 50%;
}

.song-infos {
  display: flex;
  align-items: center;
  gap: 1em;
}
.image-container {
  --size: 4.5em;
  flex-shrink: 0;
  width: var(--size);
  height: var(--size);
}
.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.song-description p {
  margin: 0.5em;
  font-size: 15px;
}
.current-song-name,
.artist-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  font-size: 10px;
}
.current-song-name:hover,
.artist-name:hover {
  text-decoration: underline;
}
.artist-name {
  color: var(--secondary-text-color);
}

.progress-controller {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  /* gap: 1.5em; */
  /* color: var(--secondary-text-color); */
}
.control-buttons {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 2em;
}

.progress-controller .control-buttons .play-btn,
.pause-btn,
.next-btn,
.previous-btn {
  margin: 0 5px;
  display: none;
  cursor: pointer;
}

.progress-controller .control-buttons .play-btn,
.pause-btn {
  width: 4rem;
  height: 4rem;
}

.progress-controller .control-buttons svg.active {
  display: inline;
}

.progress-controller .control-buttons .play-btn:hover,
.pause-btn:hover {
  transform: scale(1.1);
  color: var(--2nd-green);
}

.progress-controller .control-buttons .random-btn:hover,
.prev-btn:hover,
.next-btn:hover,
.repeat-btn:hover {
  transform: scale(1.1);
  color: var(--text-color);
}

.shuffle-btn,
.repeat-btn {
  cursor: pointer;
}

/* Example styles for active buttons */
.shuffle-btn.active,
.repeat-btn.active {
  color: var(--2nd-green); /* Highlight active buttons */
}

.progress-container {
  position: absolute;
  top: -3;
  width: 100%;
  padding-top: 0%;
  padding-left: 1rem;
  padding-right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
}

.progress-bar {
  height: 4px;
  border-radius: 10px;
  width: 100%;
}
.seek-bar {
  -webkit-appearance: none;
  height: 6px;
  width: 100%;
  border-radius: 10px;
  background-color: #ccc4;
  overflow: hidden;
  cursor: pointer;
}

.seek-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 5px;
  height: 10px;
  background: var(--2nd-green);
  box-shadow: -500px 0 0 500px var(--2nd-green);
}

.other-features {
  position: absolute;
  right: var(--padding);
  display: flex;
  flex-direction: row;
  gap: 1em;
}

.volume-container {
  padding-left: 1rem;
  padding-right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vol-bar {
  padding-top: 1rem;
  height: 4px;
  border-radius: 10px;
  width: 50%;
}

.vol-slider {
  -webkit-appearance: none;
  height: 5px;
  width: 100%;
  border-radius: 10px;
  background: var(--secondary-text-color);
  overflow: hidden;
  cursor: pointer;
}

.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 5px;
  height: 10px;
  background: var(--2nd-green);
  box-shadow: -400px 0 0 400px var(--2nd-green);
}

.volume-icon {
  display: inline-block;
  cursor: pointer;
}

.hidden {
  display: none;
}

/* ------- MEDIA QUERIES */

/* Medium <= 992px */

@media screen and (max-width: 992px) {
  .grid-container {
    grid-template-columns: 1fr;
    grid-template-rows: 0.2fr 3fr;
    grid-template-areas:
      "header"
      "main";
  }
  #sidebar {
    display: none;
  }
  .menu-icon {
    display: inline;
  }
  .sidebar-title > span {
    display: inline;
  }
}

/* Medium <= 768px */

@media screen and (max-width: 768px) {
  #menu-btn,
  #search-btn {
    display: inline-block;
  }

  .header .navbar.active {
    left: 2rem;
    transition: -0.3s ease-in-out;
  }

  .header .navbar a {
    font-size: 2rem;
    margin: 2rem 2.5rem;
    display: block;
  }

  #sidebar {
    position: absolute;
    /* content: ""; */
    display: none;
    width: 25rem;
    height: 91.6%;
    transition: 0.1s;
    z-index: 1;
  }

  #sidebar.active {
    display: block;
  }
  .menu-icon {
    display: inline;
  }
  .sidebar-title > span {
    display: inline;
  }

  /* .header .navbar {
    position: absolute;
    top: 110%;
    left: 110%;
    width: 30rem;
    box-shadow: var(--box-shadow);
    border-radius: 0.5rem;
    background: var(--item-bg);
  } */

  /* #navbar li a.active::after,
#navbar li a:hover::after {
  content: "";
  width: 30%;
  height: 2px;
  background: var(--item-bg);
  position: absolute;
  bottom: -4px;
  left: 20px;
} */

  .main-cards {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 0;
  }

  .carousel {
    width: 100%;
    height: 200px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
  }

  .control-buttons {
    position: absolute;
    right: 4%;
  }

  .other-features {
    display: none;
  }
}

.item__container {
  padding-bottom: 2px;
}

/* Extra Small <= 576px */
@media screen and (max-width: 576px) {
  .header-left {
    display: none;
  }
}

/* html::-webkit-scrollbar {
  width: 0.7rem;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: var(--text-color);
  border-radius: 5rem;
} */

@media (max-width: 991px) {
  html {
    font-size: 55%;
  }
  .header {
    padding: 2rem;
  }

  section {
    padding: 2rem;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 50%;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 50%;
  }
}
