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

.main-container {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 10px;
  font-family: "DM Sans", sans-serif;
  transition: background 0.4s ease-in;
  background-color: #81e78e;
  width: 100%;
  height: 500px;
}
.main-container.blue {
  background-color: #71b6d1;
}

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

.card {
  position: absolute;
  width: 70%;
  height: 400px;
  left: 0;
  right: 0;
  margin: auto;
  transition: transform 0.4s ease;
  cursor: pointer;
}

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

.cards {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.sobre-img{
  box-sizing: border-box;
  position: relative;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.sobre-img a{
  color: white;
  border: 2px solid white;
  padding: 3px;
  text-decoration: none;
  margin-top: 30px;
}

.sobre-img a:hover{
  background-color: white;
  color: black;
}

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

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

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

@media(max-width: 910px){
  .cards {
    width: 80%;
  }
}

@media(max-width: 600px){
  .cards {
    width: 90%;
  }

  .sobre-img h2{
    font-size: 16px;
  }

  .sobre-img p{
    font-size: 14px;
  }

  .sobre-img{
    padding: 10px;
  }

  .card {
    width: 70%;
    height: 300px;
  }

  .main-container {
    height: 400px;
  }
}
