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

.html1, .body {
  margin: 0;
  padding: 0;
  width: 1200px;
  height: 400px;
}

.body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 10px;
  font-family: 'DM Sans', sans-serif;
}

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

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

.radio-container {
  width: 100%;
  max-width: 1200px;
  max-height: 400px;
  height: 100%;
  transform-style: preserve-3d;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

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

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

#radio-item-1:checked ~ .radio-cards #radio-song-3, #radio-item-2:checked ~ .radio-cards #radio-song-1, #radio-item-3:checked ~ .radio-cards #radio-song-2 {
  transform: translatex(-40%) scale(.8);
  opacity: .4;
  z-index: 0;
}

#radio-item-1:checked ~ .radio-cards #radio-song-2, #radio-item-2:checked ~ .radio-cards #radio-song-3, #radio-item-3:checked ~ .radio-cards #radio-song-1 {
  transform: translatex(40%) scale(.8);
  opacity: .4;
  z-index: 0;
}

#radio-item-1:checked ~ .radio-cards #radio-song-1, #radio-item-2:checked ~ .radio-cards #radio-song-2, #radio-item-3:checked ~ .radio-cards #radio-song-3 {
  transform: translatex(0) scale(1);
  opacity: 1;
  z-index: 1;
  

}



