@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  color: white;
  font-family: 'Poppins', sans-serif;
  background: black;
  overflow: hidden;
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-thumb {
  border-radius: 15px;
  background-color: rgba(235, 221, 221, 0.4);
}
/* End scrollbar customization */

.container {
  display: flex;
  width: 100%;
  flex-direction: column;
}

.container.blur {
  filter: blur(10px);
  pointer-events: none;
}

.content {
  display: flex;
  width: 100%;
  height: 85vh;
}

/* Sidebar */

.sidebar {
  height: 100%;
  background: black;
  flex: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header {
  /* padding: 10px 5px; */
  /* margin: 15px auto; */
  height: 20%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header i {
  font-size: 40px;
  padding: 5px;
}

.header h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  padding: 5px;
}

/* Buttons */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  height: 35%;
  /* background: lightblue; */
}

.buttonContainer {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  margin: 2px 8px;
  border-radius: 20px;
  width: 90%;
  display: flex;
  padding: 5px;
  align-items: center;
  outline: none;
  border: none;
  color: white;
  background-color: Transparent;
  cursor: pointer;
}

.buttonContainer i {
  margin: 10px;
  font-size: 15px;
  transition: all 0.2s ease-out;
}

.buttonContainer h3 {
  margin: 5px;
  font-size: 18px;
  transition: all 0.2s ease-out;
}

.buttonContainer a {
  text-decoration: none;
  color: inherit;
}

.buttonContainer:hover i {
  font-size: 22px;
}
.buttonContainer:hover h3 {
  font-size: 20px;
}

/* .buttonContainer.active {
    background: rgba(216, 216, 216, 0.3);
} */

.breakLine {
  width: 80%;
  height: 2px;
  border-radius: 1px;
  background: gray;
  margin: 5px auto;
}

/* Playtists */
.playtists {
  width: 100%;
  padding: 5px;
  margin: 10px 0;
  overflow-y: scroll;
}

.playtist {
  width: 100%;
  height: 40px;
  border-radius: 15px;
  margin: 5px 5px;
  padding: 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.playtist h4 {
  font-family: 'Roboto', sans-serif;
  margin-left: 20px;
}

/* End sidebar */

/* Music player section */
.musicPlayerContainer {
  width: 100%;
  height: 15vh;
  background: black;
  display: flex;
  justify-content: space-between;
  position: relative;
}

.musicPlayerContainer * {
  height: 100%;
  padding: 5px;
  display: flex;
  align-items: center;
}

/* Music Info */
.musicInfo {
  width: 25%;
  justify-content: space-between;
}

.musicInfo img {
  height: 80px;
  width: 80px;
}

.musicDetail {
  font-family: 'Source Sans Pro', sans-serif;
  height: 40%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  text-align: center;
  line-height: 1.6;
}

.musicDetail h4,
.musicDetail h5 {
  margin-top: 8px;
}

.musicDetail h5 {
  color: rgba(235, 221, 221, 0.521);
}

.musicInfo i {
  cursor: pointer;
}

/* Music Player */
.musicPlayer {
  width: 40%;
  justify-content: center;
  flex-direction: column;
}

.navigation {
  width: 100%;
  height: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.action-btn {
  color: white;
  background: none;
  border: 0;
  font-size: 15px;
  padding: 7px;
  margin: 0 20px;
  cursor: pointer;
}

.action-btn-big {
  font-size: 20px;
}

.action-btn:focus {
  outline: 0;
}

.progressContainer,
.volumeInfo {
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  margin: 10px 0;
  padding: 0;
  height: 7px;
  width: 80%;
}

/* Volume and progress section */
.progress,
.volume {
  padding: 0;
  background-color: gray;
  border-radius: 2px;
  height: 100%;
  width: 0%;
  transition: width 0.1s linear;
}

.funcContainer {
  width: 25%;
  display: flex;
  padding: 3rem;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.volumeInfo {
  width: 40%;
  height: 4px;
  padding: 0;
}

.volume {
  width: 100%;
  height: 4px;
  padding: 0;
  background-color: lightcoral;
}

#playtist {
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.queue {
  position: absolute;
  min-height: 30vh;
  padding: 20px 0;
  top: 0;
  right: 0;
  width: 25%;
  pointer-events: none;
  opacity: 0;
  /* opacity: 0; */
  transform: translate(100%, -100%);
  display: block;
  background: black;
  overflow-y: scroll;
  transition: all 0.4s ease-in;
}

.queue.queue-active {
  pointer-events: all;
  opacity: 1;
  transform: translateY(-100%);
}

.queue-title {
  height: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.queue-title i {
  padding: 0 20px;
  min-height: 50px;
  font-size: 25px;
  cursor: pointer;
  transform: rotate(90deg);
  color: lightcoral;
}

.playing-songs {
  display: block;
  width: 100%;
}

.playing-songs li {
  width: 100%;
  padding: 2px 20px;
  height: 50px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.playing-songs li:hover {
  background: rgb(70, 68, 68);
}

.playing-songs .beat-container {
  margin-left: auto;
}

.playing-songs .stroke {
  display: block;
  padding: 0;
  height: 50%;
  min-width: 4px;
  background-color: #b5411d;
  margin: 0 1px;
  opacity: 0;
}

li.playing {
  color: #b5411d;
}

li.playing .stroke {
  opacity: 1;
  animation: beating 0.7s linear infinite;
}

@keyframes beating {
  50% {
    height: 10%;
  }
  100% {
    height: 50%;
  }
}

li.playing .stroke:nth-child(1) {
  animation-delay: 0.1s;
}
li.playing .stroke:nth-child(2) {
  animation-delay: 0.3s;
}
li.playing .stroke:nth-child(3) {
  animation-delay: 0.1s;
}
/* End musicplayer section */

/* Musics container */
.musicContainer {
  flex: 9;
  height: 100%;
  background-image: linear-gradient(180deg, rgb(48, 47, 47), rgb(12, 12, 12));
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
}

.musicContainer section {
  width: 95%;
  margin: 10px auto;
  padding: 10px;
}

.hide {
  display: none;
}

.sectonTitle {
  font-weight: 500;
}

/* Nav bar */
nav {
  padding: 2rem 2rem;
  height: 10vh;
  background-color: black;
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 1rem;
}

.logo-container {
  width: 3rem;
  height: 3rem;
  margin-left: auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  width: inherit;
  height: inherit;
  border-radius: 50%;
  cursor: pointer;
}

.logo-links {
  background: white;
  padding: 1rem 0;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 400%;
  transform: translate(-75%, 100%);
  background-color: black;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s linear;
}

.logo-active {
  transform: translate(-75%, 105%);
  opacity: 1;
  pointer-events: all;
}

.logo-links h3 {
  font-family: 'Roboto', sans-serif;
  font-size: 1.5rem;
  padding: 0.5rem 0;
  color: #b5411d;
}

.logo-links li {
  width: 100%;
  text-align: center;
  display: flex;
}

.logo-links a {
  text-decoration: none;
  color: whitesmoke;
  width: 200%;
  padding: 0.2rem 0.2rem;
  transition: all 0.1s ease;
  cursor: pointer;
  z-index: 2;
}

.logo-links a:hover {
  transform: scale(1.05);
}

/* Login modal */
.login-modal {
  position: absolute;
  width: 50%;
  height: 50vh;
  border-radius: 5px;
  background: rgb(24, 24, 24);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  display: flex;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: all 0.5s ease-in-out;
}

.login-modal.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%);
}

.login-modal__logo,
.login-modal__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.login-modal__info {
  position: relative;
}

.login-modal__logo i {
  font-size: 150px;
  color: #b5411d;
  margin: 20px 0;
}

.login-modal__info .login {
  padding: 5px 20px;
  border-radius: 20px;
  text-decoration: none;
  color: white;
  margin-top: 20px;
  background-color: #b5411d;
}

.login-modal__info .signup {
  color: white;
  margin-top: 20px;
  font-size: 12px;
}

.login-modal .close {
  position: absolute;
  cursor: pointer;
  top: 0;
  right: 0;
  padding: 0 10px;
  font-size: 30px;
  transform: rotate(45deg);
}
