body {
  font-family: "Montserrat", sans-serif;
  background-color: black;
  color: white;
  overflow: hidden;
}
/* Width */
::-webkit-scrollbar {
  width: 12px;
}

/* Track */
::-webkit-scrollbar-track {
  background: transparent;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #5a5a5a;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.main {
  display: flex;
  height: 100vh;
  margin: 0;
  padding: 0.5rem;
  justify-content: center;
}
.sidebar {
  background-color: black;
  width: 400px;
  border-radius: 1rem; /* 1 rem means 16px */
  margin-right: 0.5rem;
  height: 100%;
}
.main-content {
  background-color: #202020;
  width: 70%;
  border-radius: 1rem; /* 1 rem means 16px */
  overflow: hidden;
}
.main-content:hover {
  overflow: auto;
}
.music-player {
  background-color: black;
  bottom: 0px;
  position: fixed;
  width: 92%;
  height: 72px;
  z-index: 100;
}

.nav .nav-options a {
  text-decoration: none;
  color: white;
}

.nav {
  background-color: #121212;
  height: 112px;
  border-radius: 1rem; /* 1 rem means 16px */
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-content: space-evenly;
  padding: 0.5rem 0.75rem;
}

#home-button {
  opacity: 1;
}
.nav-options {
  /* line-height: 2.5rem; */
  opacity: 0.7;
  transition-duration: 0.25s;
  transition-timing-function: ease-in-out;
}

.nav-options:hover {
  opacity: 1;
}

.nav-options i {
  font-size: 1.25rem;
  margin-left: 1.5625rem;
}

.nav-options a {
  font-size: 1rem;
  margin-left: 0.9375rem;
  font-weight: 600;
}

.library {
  background-color: #121212;
  border-top-right-radius: 1rem;
  border-top-left-radius: 1rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  height: 6.25rem;
}
.library-options {
  display: flex;
  padding: 0.5rem 0.75rem;
  line-height: 2.5rem;
  justify-content: space-between;
  align-items: center;
}

.icons {
  display: flex;
  align-content: center;
}

.lib-option img {
  height: 1.25rem;
  width: 1.25rem;
}
.lib-option a {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
}
.library-options .lib-option {
  opacity: 0.75;
  margin-left: 1.1rem;
  transition-duration: 0.25s;
  transition-timing-function: ease-in-out;
}
.library-options .icons {
  font-size: 1.2rem;
}
.library-options .icons i {
  margin-right: 1rem;
  opacity: 0.75;
  transition-duration: 0.25s;
  transition-timing-function: ease-in-out;
}
.library-options .icons i:hover {
  opacity: 1;
}

.library-options .lib-option:hover {
  opacity: 1;
}

.library-buttons {
  display: flex;
  margin-left: 1.8rem;
  /* padding: 0.3rem 0.75rem; */
  margin-top: 0.625rem;
}

.library-buttons button {
  padding: 0.3rem 0.75rem;
  font-size: 0.875rem;
  margin-right: 0.625rem;
  color: white;
  background-color: rgba(255, 255, 255, 0.2);
  border: none; /* Set border to none */
  border-radius: 1.875rem;
  font-weight: 550;
  transition-duration: 0.25s;
  transition-timing-function: ease-in-out;
  cursor: pointer;
}

.library-buttons button:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.search-bar a {
  text-decoration: none;
  color: white;
  padding: 0.5rem;
}

.search-bar {
  display: flex;
  padding-top: 0.8rem;
  padding-left: 2rem;
  font-size: 0.8rem;
  font-weight: 400;
}

.recents {
  margin-left: 14.063rem;
  opacity: 0.5;
  transition-duration: 0.2s;
  transition-timing-function: ease-in-out;
}

.recents:hover {
  opacity: 1;
  transform: scale(1.05);
}

.songs-sidebar {
  height: 100%;
  overflow: hidden;
  background-color: #121212;
  z-index: 1;
  cursor: pointer;
}

.songs-sidebar:hover {
  box-shadow: 0px -2px 12px black;
  overflow: auto;
}

.songs img {
  height: 2.8rem;
  width: 2.8rem;
  border-radius: 0.25rem;
}

.songs ul div {
  display: flex;
  flex-direction: row; /* Make it a column layout */
  align-items: flex-start; /* Align items to the start of the column */
  margin-top: 0.938rem;
  position: relative;
  background-color: #121212;
  transition-duration: 0.2s;
  transition-timing-function: ease-in-out;
}
.songs ul div:hover {
  background-color: #252323;
}

.songs ul div img {
  margin-right: 0.625rem;
}

.songs a {
  text-decoration: none;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 4px;
}

.songs ul div p {
  font-size: 0.8rem;
  color: #888888;
  position: absolute;
  left: 55px;
  top: 13px;
  font-weight: 600;
}

.songs div p i {
  color: #1ed760;
  transform: rotate(45deg);
}

.box {
  background-color: #232323;
  height: 8rem;
  border-radius: 0.75rem;
  margin: 1rem 0.5rem 2rem 0.5rem;
  padding: 0.75rem 1rem;
  transition-duration: 0.2s;
  transition-timing-function: ease-in-out;
}
.box:hover {
  background-color: #2e2b2b;
}

.box-p1 {
  font-size: 1rem;
  font-weight: 500;
}

.box-p2 {
  font-size: 0.85rem;
  opacity: 0.9;
}

.badge {
  background-color: white;
  border: none;
  border-radius: 100px;
  padding: 0.25rem 1rem;
  font-weight: 700;
  margin-top: 0.5rem;
  height: 2rem;
  width: fit-content;
  cursor: pointer;
}

.main-nav-bar {
  position: sticky;
  top: -1px;
  background-color: #202020;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0 1rem 0;
  z-index: 1;
}

.main-nav-bar-icons img {
  height: 1.5rem;
  width: 1.5rem;
  margin-left: 1.5rem;
  cursor: pointer;
}

.main-nav-bar-icons img:hover {
  background-color: #2e2c2c;
}

.main-nav-bar-options {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 0.5rem;
  cursor: pointer;
}

.main-nav-bar-options button:hover {
  transform: scale(1.1);
}
.main-nav-bar-options i:hover {
  transform: scale(1.3);
}

.margin-item {
  margin-right: 2rem;
}

.bg-black {
  background-color: black;
  color: white;
}

.cards {
  margin-left: 1.5rem;
}

.card {
  position: relative; /* Add this */
  background-color: #232323;
  width: 150px;
  border-radius: 0.5rem;
  padding: 1rem;
  transition-duration: 0.2s;
  transition-timing-function: ease-in-out;
  overflow: hidden; /* Add this */
  margin-left: 1.5rem;
  margin-top: 1rem;
  cursor: pointer;
}

.card:hover {
  background-color: #343131;
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
}

.card-image {
  width: 100%;
  border-radius: 0.5rem;
}
.card-overlay {
  position: absolute;
  top: 0;
  left: -27px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Align the icon to the right */
  padding: 0rem; /* Optional: Add padding for better spacing */
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.card-tittle {
  font-weight: 600;
}

.card-info {
  font-size: 0.7rem;
  opacity: 0.5;
}

.card:hover .card-overlay {
  opacity: 1;
  /* transform: translate(50%, 50%); Add this */
}

.card-icon {
  font-size: 2.5rem;
  color: #1ed760;
}

.footer {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column; /* Added to align links vertically */
}

.line {
  width: 90%;
  height: 1px; /* Adjusted height for a thin line */
  background-color: white;
  opacity: 0.4;
  margin-bottom: 20px; /* Added margin for separation from links */
}

.footer-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding-right: 45%;
}

.footer-link {
  color: white;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s ease-in-out;
  padding: 10px;
}

.footer-link:hover {
  opacity: 1;
}

.footer-write {
  display: flex;
  width: 100%;
  justify-content: flex-end;
  padding-right: 100px;
  opacity: 0.7;
}

.music-player {
  display: flex;
}

.left-player {
  width: 25%;
  background-color: #202020;
  display: flex;
  align-items: center;
}

.item {
  padding: 8px;
}
.item1 {
  position: relative;
  bottom: 40px;
  font-weight: 600;
}
.item2 {
  position: relative;
  bottom: 25px;
  right: 94px;
  font-weight: 500;
}
.item3 {
  position: relative;
  bottom: 30px;
  right: 60px;
  font-size: 20px;
}
.left-player div img {
  height: 60px;
  width: 60px;
  border-radius: 20%;
}
.left-player div a {
  text-decoration: none;
  color: white;
}
.font-size-big {
  font-size: 18px;
}
.font-size-small {
  font-size: 12px;
}

.player-controls {
  width: 50%;
  background-color: #202020;
}

.player-controls-icon {
  height: 1rem;
}
.upper-control {
  display: flex;
  /* justify-content: space-around; */
  justify-content: center;
  opacity: 1;
  padding-top: 15px;
  cursor: pointer;
}

.upper-control img {
  margin-left: 20px;
  margin-right: 20px;
}
.scale {
  transform: scale(2);
}
.playbackbar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 15px;
}

.progressbar {
  width: 70%;
  appearance: none;
  background-color: transparent;
  cursor: pointer;
}
.opacity {
  opacity: 0.7;
}

.progressbar::-webkit-slider-runnable-track {
  background-color: #ddd;
  border-radius: 100px;
  height: 0.2rem;
}

.progressbar::-webkit-slider-thumb {
  appearance: none;
  height: 1rem;
  width: 1rem;
  background-color: #1bd760;
  border-radius: 50%;
  margin-top: -6px;
}

.progressbar1 {
  width: 30%;
  appearance: none;
  background-color: transparent;
  cursor: pointer;
}

.progressbar1::-webkit-slider-runnable-track {
  background-color: #ddd;
  border-radius: 100px;
  height: 0.2rem;
}

.progressbar1::-webkit-slider-thumb {
  appearance: none;
  height: 1rem;
  width: 1rem;
  background-color: #1bd760;
  border-radius: 50%;
  margin-top: -6px;
}
/* This will edit later */
.right-player {
  width: 25%;
  background-color: #202020;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.controlicon {
  padding-left: 3px;
  padding-right: 5px;
  font-size: 13px;
  opacity: 0.7;
}

.controlicon:hover {
  opacity: 1;
}

.hide_pc {
  display: none;
}

@media (max-width: 1000px) {
  .hide {
    display: none;
  }

  .hide_pc {
    display: block;
  }

  .card {
    position: relative; /* Add this */
    background-color: #232323;
    width: 80%;
    border-radius: 0.5rem;
    padding: 1rem;
    transition-duration: 0.2s;
    transition-timing-function: ease-in-out;
    overflow: hidden; /* Add this */
    margin-top: 1rem;
    margin-right: 2rem;
  }
  .cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .cards {
    margin-left: 1.5rem;
  }

  body {
    background-color: #202020;
  }

  .left-player {
    width: 100%;
    background-color: #202020;
    display: flex;
    align-items: center;
    border: none;
    justify-content: center;
    margin-left: 5px;
    margin-right: 5px;
  }

  .popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    z-index: 999; /* Ensure the popup is on top of other elements */
    overflow: scroll;
    transition-duration: 1s;
  }

  .popup.active {
    display: flex;
  }

  .popup .popup-content {
    padding: 20px;
    border-radius: 5px;
    text-align: center;
  }

  .popup .close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 50px;
    cursor: pointer;
  }

  .popup .sidebar {
    width: 100%; /* Adjust the width as needed */
    margin-left: 10px;
    height: 100%;
  }
  .sidebarone {
    background-color: transparent;
    width: 100vw;
    border-radius: 1rem; /* 1 rem means 16px */
    margin-right: 0.5rem;
    height: 100%;
    padding: 20px;
    padding-top: 800px;
  }
  .nav .nav-options a {
    text-decoration: none;
    color: white;
  }

  .nav {
    background-color: #121212;
    height: 112px;
    border-radius: 1rem; /* 1 rem means 16px */
    display: flex;
    flex-direction: row;
    justify-content: center;
    justify-content: space-evenly;
    align-items: center;
    padding: 0.5rem 0.75rem;
    position: sticky;
    top: 0;
    z-index: 1500;
  }

  #home-button {
    opacity: 1;
  }
  .nav-options {
    /* line-height: 2.5rem; */
    opacity: 0.7;
    transition-duration: 0.25s;
    transition-timing-function: ease-in-out;
  }

  .nav-options:hover {
    opacity: 1;
  }

  .nav-options i {
    font-size: 1.25rem;
    margin-left: 1.5625rem;
  }

  .nav-options a {
    font-size: 1rem;
    margin-left: 0.9375rem;
    font-weight: 600;
  }

  .library {
    background-color: #121212;
    border-top-right-radius: 1rem;
    border-top-left-radius: 1rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    height: 6.25rem;
  }
  .library-options {
    display: flex;
    padding: 0.5rem 0.75rem;
    line-height: 2.5rem;
    justify-content: space-between;
    align-items: center;
  }

  .icons {
    display: flex;
    align-content: center;
  }

  .lib-option img {
    height: 1.25rem;
  }
  .lib-option a {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
  }
  .library-options .lib-option {
    opacity: 0.75;
    margin-left: 1.1rem;
    transition-duration: 0.25s;
    transition-timing-function: ease-in-out;
  }
  .library-options .icons {
    font-size: 1.2rem;
  }
  .library-options .icons i {
    margin-right: 1rem;
    opacity: 0.75;
    transition-duration: 0.25s;
    transition-timing-function: ease-in-out;
  }
  .library-options .icons i:hover {
    opacity: 1;
  }

  .library-options .lib-option:hover {
    opacity: 1;
  }

  .library-buttons {
    display: flex;
    margin-left: 1.8rem;
    /* padding: 0.3rem 0.75rem; */
    margin-top: 0.625rem;
  }

  .library-buttons button {
    padding: 0.3rem 0.75rem;
    font-size: 0.875rem;
    margin-right: 0.625rem;
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    border: none; /* Set border to none */
    border-radius: 1.875rem;
    font-weight: 550;
    transition-duration: 0.25s;
    transition-timing-function: ease-in-out;
  }

  .library-buttons button:hover {
    background-color: rgba(255, 255, 255, 0.25);
  }

  .search-bar a {
    text-decoration: none;
    color: white;
    padding: 0.5rem;
  }

  .search-bar {
    display: flex;
    padding-top: 2rem;
    padding-left: 4rem;
    font-size: 0.8rem;
    font-weight: 400;
  }

  .recents {
    margin-left: 14.063rem;
    opacity: 0.5;
    transition-duration: 0.2s;
    transition-timing-function: ease-in-out;
  }

  .recents:hover {
    opacity: 1;
    transform: scale(1.05);
  }

  .songs-sidebar {
    height: 100%;
    overflow: hidden;
    background-color: #121212;
    z-index: 1;
  }

  .songs-sidebar:hover {
    box-shadow: 0px -2px 12px black;
    overflow: auto;
  }

  .songs img {
    height: 2.8rem;
    width: 2.8rem;
    border-radius: 0.25rem;
  }

  .songs ul div {
    display: flex;
    flex-direction: row; /* Make it a column layout */
    align-items: flex-start; /* Align items to the start of the column */
    margin-top: 0.938rem;
    position: relative;
    background-color: #121212;
    transition-duration: 0.2s;
    transition-timing-function: ease-in-out;
  }
  .songs ul div:hover {
    background-color: #252323;
  }

  .songs ul div img {
    margin-right: 0.625rem;
  }

  .songs a {
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 4px;
  }

  .songs ul div p {
    font-size: 0.8rem;
    color: #888888;
    position: absolute;
    left: 70px;
    top: 13px;
    font-weight: 600;
  }

  .songs div p i {
    color: #1ed760;
    transform: rotate(45deg);
  }

  .box {
    background-color: #232323;
    height: 8rem;
    border-radius: 0.75rem;
    margin: 1rem 1rem 2rem 1rem;
    padding: 0.75rem 1rem;
    transition-duration: 0.2s;
    transition-timing-function: ease-in-out;
    cursor: pointer;
  }
  .box:hover {
    background-color: #2e2b2b;
  }

  .box-p1 {
    font-size: 1rem;
    font-weight: 500;
  }

  .box-p2 {
    font-size: 0.85rem;
    opacity: 0.9;
  }
  .sima {
    background-color: transparent;
    border: none;
    size: 5px;
    padding-left: 60px;
  }
  .sima img {
    height: 30px;
    width: 30px;
  }
  .footer-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding-right: 0;
  }

  .footer-link {
    color: white;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease-in-out;
    padding: 10px;
  }
  .footer-write {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    padding-right: 30px;
    opacity: 0.7;
  }
  .card-overlay {
    position: absolute;
    top: 140px;
    left: -27px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Align the icon to the right */
    padding: 0rem; /* Optional: Add padding for better spacing */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }
  ::-webkit-scrollbar {
    width: 5px; /* Set it to 'auto' to use the default scrollbar width for mobile */
  }

  ::-webkit-scrollbar-thumb {
    background: transparent; /* Change the background color for mobile */
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #999; /* Change the hover background color for mobile */
  }
  .music-player {
    background-color: black;
    bottom: 0px;
    position: fixed;
    width: 1480px;
    height: 72px;
    z-index: 100;
  }
  .main {
    display: flex;
    height: 100vh;
    margin: 0;
    padding: 0.5rem;
  }
  .main-content {
    background-color: #202020;
    width: 1300px;
    border-radius: 1rem; /* 1 rem means 16px */
    overflow: auto;
  }
}
