@font-face {
  font-family: "NotoMusic";
  src: url(../fonts/NotoMusic-Regular.ttf);
}

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

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('background.avif') no-repeat center center fixed;
  background-size: cover;
  filter: blur(7px);
  z-index: -1;
  transform: scale(1.1);
}

.header, footer {
  position: fixed;
  width: 100%;
  left: 0;
  background-color: rgba(81, 90, 71, 1);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.header {
  top: 0;
}

footer {
  bottom: 0;
}

.header img, footer img {
  width: 55%;
}

.BackToHome {
  width: 160px;
  text-align: center;
  font-family: "NotoMusic", sans-serif;
  text-decoration: none;
  border: solid;
  border-radius: 20px;
  font-weight: bold;
  padding: 5px;
  color: white;
}

.BackToHome:hover {
  color: rgba(144, 156, 130, 1);
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 25%;
  height: 100vh;
  background-color: rgba(81, 90, 71, 0.5);
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 100px; 
}

.menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
}

.menu img {
  width: 45%;
  margin: 3% 0;
  border-radius: 10px;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease-in-out;
}

.menu .first-image {
  margin-left: -70%;
  margin-top: 20px;
}

.menu img:hover {
  transform: scale(1.05);
}

.now-playing {
    font-size: 60px;
    font-weight: bold;
    color: white;
    position: absolute;
    left: -450px; 
    top: 20px;
    white-space: nowrap;
    font-family: Arial, sans-serif;
}

.content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 120px); 
  padding-top: 80px; 
  padding-bottom: 50px;
  margin-left: 200px;
}

.image1 {
  display: flex;
  align-items: center;
}

.image1 img {
  width: 350px;
  height: 280px;
  border: 5px solid white;
  border-radius: 10px;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.7);
  margin-left: 50px;
}

.image-text {
  margin-left: 40px;
  color: white;
  font-family: Arial, sans-serif;
}

.title {
  font-size: 40px;
  font-weight: bold;
}

.subtitle {
  font-size: 30px; 
  margin-top: 5px;
}

.music-controls {
    position: fixed;
    bottom: 150px; 
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 10px;
    z-index: 10000 !important;
    pointer-events: auto !important;
  
}

#progress-bar {
    width: 200px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: white;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

#progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

.music-buttons {
    display: flex;
    gap: 15px;
}

.control-button {
    background: none;
    border: none;
    font-size: 26px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
}

.control-button:hover {
    transform: scale(1.15);
}

#favorite:hover {
    transform: scale(1.15);
    color: red;
}

@media (max-width: 1024px) {

  .sidebar {
    display: none;
  }

  .content {
    margin-left: 0;
    padding: 60px 20px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .image1 img {
    width: 300px;
    height: auto;
    margin-left: 0;
    margin-top: 100px;
  }

  .image-text {
    margin-left: 0;
    margin-top: 15px;
  }

  .title {
    font-size: 35px;
  }

  .subtitle {
    font-size: 28px;
  }

  .now-playing {
    font-size: 45px;
    left: 0;
    text-align: center;
    position: relative;
  }

  .music-controls {
    bottom: 120px;
    padding: 12px 18px;
  }

  #progress-bar {
    width: 160px;
  }
}

@media (max-width: 768px) {
  .header, footer {
    flex-direction: column;
    text-align: center;
    padding: 10px;
  }

  .header img, footer img {
    width: 60%;
  }

  .BackToHome {
    width: 120px;
    font-size: 14px;
  }

  .image1 img {
    width: 250px;
  }

  .title {
    font-size: 30px;
  }

  .subtitle {
    font-size: 24px;
  }

  .music-controls {
    bottom: 100px;
    padding: 10px 14px;
  }

  .control-button {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .header img, footer img {
    width: 70%;
  }

  .BackToHome {
    width: 100px;
    font-size: 12px;
  }

  .content {
    padding: 30px 5px;
  }

  .image1 img {
    width: 200px;
  }

  .title {
    font-size: 24px;
  }

  .subtitle {
    font-size: 18px;
  }

  .music-controls {
    bottom: 80px;
  }

  .control-button {
    font-size: 20px;
  }
}