@import url(//db.onlinewebfonts.com/c/860c3ec7bbc5da3e97233ccecafe512e?family=Circular+Std+Book);
* {
  box-sizing: border-box;
  font-family: "circular std book", sans-serif;
}

body {
  text-align: center;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  flex-direction: column;
  display: flex;
  font-size: 14px;
}
.content {
  background: linear-gradient(
    to bottom,
    red 30%,
    #2d5aff71 33%,
    blue 63%,
    #ff6708 66%, 
    rgb(255, 182, 46) 100%);
  background-size: cover;
  flex: 1;
}

/* header */
header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 75px;
  background-color: #000000;
  color: white;
  text-align: center;
  padding: 10px;
  overflow: hidden;
}
.header-container{
  display: flex;
}
header h1 {
  z-index: 2;
  font-size: 24px;
  color:white;
}
header img {
  position: absolute;
  height: 100%;
  width: auto;
  max-height: 100%;
  object-fit: contain;
  z-index: 1;
}

/* for h1 "Alberovich.com" */
h1 {
  font-family: 'Lobster', sans-serif; 
  font-size: 3rem;
  text-align: center;
  color: #000000;
}
.no-underline {
  text-decoration: none;
}

 /* search bar */
form input[type="text"] {
  width: 70%;
  max-width: 400px;
  padding: 10px 15px;
  font-size: 1.2rem;
  border-radius: 30px;
  border: none;
  margin-top: 5px;
  background: #ffffff;
}

.image-container {
  --size: 4.5em;
  flex-shrink: 0;
  width: var(--size);
  height: var(--size);
}
.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Message Pop-Up */
.popup{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #333;
  color: white;
  padding: 20px 45px;
  border-radius: 5px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  text-align: center;
  display: none;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  display: none;
}

/* Main div for controls area */
.music-player {
  --primary-color: #ddd;
  --secondary-color: #999;
  --green-color: white;
  --padding: 1em;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 7rem;
  padding: var(--padding);
  color: var(--primary-color);
  z-index: 1000;
}
i{
  color: var(--secondary-color);
}
i:hover{
  color: var(--primary-color);
}

/* Song Details */
.song-bar {
  position: absolute;
  left: var(--padding);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  width: 25%;
}
.song-infos {
  display: flex;
  align-items: center;
  gap: 1em;
}
.song-description p {
    margin: 0.2em;
}
.title,
.artist {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    /*-webkit-line-clamp: 1;*/
    overflow: hidden;
}
.artist{
    color: var(--secondary-color);
}

/* Controls */
.progress-controller{
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
    color: var(--secondary-color);
}
.control-buttons{
    display: flex;
    align-items: center;
    gap: 2em;
}
.play-pause{
    display: inline-block;
    padding: 1em;
    background-color: var(--primary-color);
    color: #111;
    border-radius: 50%;
    cursor: pointer;
}
.next,
.prev{
  cursor: pointer;
}
.play-pause:hover{
    transform: scale(1.1);
    color: #111;
}

/* Progress Bar */
.progress-container{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
}
.progress-bar{
    height: 4px;
    border-radius: 10px;
    width: 30%;
    appearance: none;
    background-color: #ccc4;
    cursor: pointer;
    position: relative;
    /*height: 100%;
    width: 30%;
    border-radius: 10px;*/
    background-color: var(--secondary-color);
}
.progress-bar:hover{
    background-color: var(--green-color);
}
.progress-bar:hover .progress::after{
    content: "";
    position: absolute;
    --size: 1em;
    width: var(--size);
    height: var(--size);
    right: 0;
    border-radius: 50%;
    background-color: var(--primary-color);
    transform: translate(50%, calc(2px - 50%));
}

/* Volume Bar */
.other-features{
  position: absolute;
  right: var(--padding);
  display: flex;
  flex-direction: row;
  gap: 1em;
}
.volume-bar{
    display: flex;
    align-items: center;
    gap: .7em;
}
.volume-bar .progress-bar{
    width: 6em;
}
.volume-bar .progress-bar:hover .progress::after{
    --size: .8em;
}

/* Copy link button */
.copy {
  background-color: white;
  color: black;
  font-weight: bold;
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 5px 10px;
  gap: 3px;
  border: solid black;
  outline: none;
  cursor: pointer;
}
.copy-icon{
  width: 20px;
  height: 20px;
}
.copy :active{
  background: white;
}
#copy-link :hover{
  background-color: #ccc;
}
.copy:disabled{
  background: white;
  cursor: not-allowed;
}
#copy-link {
  text-decoration: none;
}
  
/* song list container */
ul {
  width: 50%;
  padding: 0%;
  padding-left: 40%;
  padding-right: 40%;
}
#song-list {
  list-style-type: armenian;
  width: 75%;
  max-width: 400px;
  padding-top: 10px;
  padding: 60px;
  margin: 20px auto; 
  background-color:rgba(255, 255, 255, 0.5); 
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 
              0 2px 4px rgba(0, 0, 0, 0.1); 
  backdrop-filter: blur(20px);
  max-height: 100vh;
  overflow-y:auto;
} 
#song-list li {
  padding: 10px;
  margin: 5px 0;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}
#song-list li:hover {
  background-color: rgba(157, 129, 29, 0.4);
}

/* icon & images */
.left-image {
  left: 10px;
}
.right-image {
  right: 10px;
  transform: scaleX(-1); 
}
.icons {
  margin-top: 10px;
}
.icons a {
  margin: 0 10px; 
  display: inline-block; 
}
.icons img {
  width: 60px; 
  height: auto;
}

/* footer */
footer {
    text-align: center;
    padding: 10px;
    background: #000000;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 7rem;
}
footer a {
  color: #ffd700;
}

@media (max-width: 768px) {
  form input[type="text"] {
    width: 70%;
    font-size: 0.9rem;
  }
  .music-player {
    font-size: smaller;
    height: 6.5rem;
    padding: 0.5em;
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  footer {
    margin-bottom: 6.5rem;
  }

  .song-bar {
    width: auto;
    justify-content: flex-start;
    left: 0;
    text-align: left;
    padding-left: 1em;
  }

  .song-description {
    text-align: left;
    align-items: center;
    gap: 8px;
    margin-right: 110px;
  }
  .song-infos{
    margin-bottom: 1em;
  }

  .title {
    font-size: 1rem;
    color: white;
    margin: 0;
  }

  .artist {
    font-size: 0.8rem;
    color: #ccc;
    margin: 0;
  }

  .progress-controller {
    width: auto;
    gap: 1em;
    position: static;
    flex-direction: row;
    align-items: center;
    margin-bottom: 1em;
  }

  .control-buttons {
    margin-right: 0em;
    position: absolute;
    right: var(--padding);
    display: flex;
    flex-direction: row;
    gap: 1em;
  }

  .play-pause {
    font-size: 15px;
    padding: var(--padding);
    background-color: white;
    color: black;
  }
  .prev{
    font-size: 20px;
  }
  .next{
    font-size: 20px;
  }

  .progress-container {
    position: absolute;
    bottom: 0.3em;
    left: 0;
    right: 0;
    width: 90%;
    margin: 0 auto;
  }
  .progress-bar {
    width: 100%;
    height: 4px;
    background-color: #555;
  }
  .progress-bar:hover {
    background-color: white;
  }
  #current-time,
  #duration {
    font-size: 0.8rem;
    color: #ccc;
  }
  .copy{
    height: 20px;
    margin-left: -0.5em;
    margin-top: -5px;
    padding: 4px 6px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: left;
    text-decoration: none;
  }
  .other-features{
    left: 6.5em;
    top: var(--padding);
    text-align: left;
    align-items: center;
    gap: 8px;
  }
  /* .copy{
    height: 20px;
    margin-left: -0.5em;
  } */
  .copy-icon{
    width: 13px;
    height: 13px;
  }
  .copy-label{
    font-size: smaller;
  }
  .volume-bar{
    display: none;
  }
  .image-container {
    --size: 4.5em;
  }
}
@media screen and (max-width: 500px) {
  .copy{
    height: 20px;
    margin-top: -12px;
    margin-left: -5.25em;
    padding: 4px 6px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: left;
    text-decoration: none;
  }
}
@media screen and (max-width: 468px) {
  .song-description p{
    font-size: 14px;
  }
}
@media screen and (max-width: 300px) {
    .song-description p{
      font-size: 10px;
    }
    .prev{
      font-size: smaller;
    }
    .next{
      font-size: smaller;
    }
    .play-pause {
      font-size: smaller;
    }
}