@import url("https://fonts.googleapis.com/css?family=DM+Sans:400,500,700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Rubik+Doodle+Shadow&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
}

nav{
  margin: 0;
  width: 100%;
  height: 60px;
  background-color: #2E294E;
  color: white;
  /* padding: 10px; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 5;
}
.logo{
  font-size: 22px;
  letter-spacing: 1px;
  margin-left: 30px;
  display: flex;
  align-items: center;
  a{
    font-family: "Rubik Doodle Shadow", system-ui;
    font-weight: 400;
    font-size: larger;
    font-style: normal;
    text-decoration: none;
    color: #FFD400;
}
  i{
      font-size: 28px;
      margin-right: 10px;
  }
}
nav ul{
  list-style: none;
  display: flex;
  gap: 5px;
  margin-right: 30px;
  a{
      text-decoration: none;
      color: inherit;
  }
  li{
      transition: all .3s ease;
      cursor: pointer;
      width: auto;
      padding: 10px;
      border-radius: 5px;
  }
}
nav ul li:hover{
  background-color: white;
  color: black;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 10px;
  font-family: 'DM Sans', sans-serif;
  transition: background .4s ease-in;
  background-color: #F1E9DA;
}

input[type=radio] {
  display: none;
}

.card {
  position: absolute;
  width: 60%;
  height: 100%;
  left: 0;
  right: 0;
  margin: auto;
  transition: transform .4s ease;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 800px;
  max-height: 600px;
  height: 100%;
  margin-top: 140px;
  /* margin-bottom: 100px; */
  transform-style: preserve-3d;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.cards {
  position: relative;
  width: 100%;
  height: 100%;
  margin-bottom: 20px;
}

img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

#item-1:checked ~ .cards #song-1,
#item-2:checked ~ .cards #song-2,
#item-3:checked ~ .cards #song-3,
#item-4:checked ~ .cards #song-4 {
  transform: translateX(0) scale(1);
  opacity: 1;
  z-index: 1;
  img {
    box-shadow: 0px 0px 5px 0px rgba(81, 81, 81, 0.47);
  }
}

#item-1:checked ~ .cards #song-2,
#item-2:checked ~ .cards #song-3,
#item-3:checked ~ .cards #song-4,
#item-4:checked ~ .cards #song-1 {
  transform: translateX(-25%) scale(0.8);
  opacity: 0.4;
  z-index: 0;
}

#item-1:checked ~ .cards #song-3,
#item-2:checked ~ .cards #song-4,
#item-3:checked ~ .cards #song-1,
#item-4:checked ~ .cards #song-2 {
  transform: translateX(25%) scale(0.8);
  opacity: 0.4;
  z-index: 0;
}

#item-1:checked ~ .cards #song-4,
#item-2:checked ~ .cards #song-1,
#item-3:checked ~ .cards #song-2,
#item-4:checked ~ .cards #song-3 {
  transform: translateX(50%) scale(0.6);
  opacity: 0.2;
  z-index: 0;
}

.player {
  background-color: #2E294E;
  border-radius: 8px;
  min-width: 320px;
  padding: 16px 10px;
  margin-bottom: 40px;
}

.title{
    display: flex;
}

.upper-part {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  height: 42px;
  overflow: hidden;
}

.play-icon {
    font-size: 24px;
    margin-left: 10px;
}

.song-info {
  width: 100%;
  height: 40px;
  display: block;
}

.song-info .title {
  color: #fff;
  font-size: 16px;
  line-height: 24px;
}

.sub-line {
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 16px;
  /* margin-bottom: 3px; */
}

.subtitle, .time {
  font-size: 12px;
  color: #c6c5c6;
}

.time {
  font-size: 12px;
  color: #a5a5a5;
  font-weight: 500;
  margin-left: auto;
}

.info-area {
  width: 100%;
  position: absolute;
  top: 0;
  left: 30px;
  transition: transform .4s ease-in;
}

#item-1:checked ~ .player #test {
    transform: translateY(0px);
}
#item-2:checked ~ .player #test {
  transform: translateY(-40px);
}

#item-3:checked ~ .player #test {
  transform: translateY(-80px)
}

#item-4:checked ~ .player #test {
    transform: translateY(-120px)
  }