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

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

body {
  position: relative;
  display: grid;
  place-items: center;
  background-color: #f6f6f6;
  padding-top: 6rem;
}

#container {
  width: min(95%, 25rem);
  height: min(90%, 30rem);
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
}

h1 {
  margin: 0.5rem;
  letter-spacing: 0.1rem;
}

#song-wrapper {
  position: relative;
  height: min(70%, 20rem);
}

img {
  color: #222;
  width: 100%;
  height: 100%;
  object-fit: fill;
  aspect-ratio: 1;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

#song-details {
  backdrop-filter: blur(50px);
  position: absolute;
  bottom: 0;
  width: 100%;
}

#song-details p {
  color: #fff;
  padding: 0 0.5rem;
}

#song-name {
  font-size: 1.5rem;
  font-weight: bold;
}

#song-details p:nth-of-type(2) {
  font-size: 1rem;
}

.anim {
  animation: music 10s linear infinite;
}

@keyframes music {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(-150%);
  }
}

#button-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 0.5rem;
  margin-top: 0.5rem;
}

.fa-solid {
  color: #222;
  cursor: pointer;
  font-size: 1.75rem;
}

audio {
  display: none;
}

/* 
Media queries
*/

@media (min-width: 480px) {
  .fa-solid {
    font-size: 2rem;
  }
}
@media (min-width: 1025px) {
  body {
    padding-top: 0;
    height: 100vh;
  }
}

@media (min-height: 700px) {
  body {
    padding-top: 10rem;
  }
}
@media (min-height: 800px) {
  body {
    padding-top: 12rem;
  }
}
@media (min-height: 900px) {
  body {
    padding-top: 15rem;
  }
}
