.body { margin: 0; padding: 0; width: 100%; height: 42.53vw; display: flex; align-items: center; justify-content: center; padding: 30px 10px; transition: background 0.4s ease-in; } input[type=radio] { display: none; } .card { position: absolute; width: 33.697vw; height: 33.697vw; left: 0; right: 0; margin: auto; transition: transform 0.4s ease; cursor: pointer; } .container { width: 66.467vw; height: 50.872vw; transform-style: preserve-3d; display: flex; justify-content: center; flex-direction: column; align-items: center; } .cards { /* position: relative; */ width: 100%; height: 33.697vw; margin-bottom: 1.636vw; } .img_doc { width: 33.697vw; height: 33.697vw; border-radius: 2.726vw; object-fit: cover; } #item-1:checked ~ .cards #doc-3, #item-2:checked ~ .cards #doc-1, #item-3:checked ~ .cards #doc-2 { transform: translatex(-40%) scale(0.8); opacity: 0.4; z-index: 0; } #item-1:checked ~ .cards #doc-2, #item-2:checked ~ .cards #doc-3, #item-3:checked ~ .cards #doc-1 { transform: translatex(40%) scale(0.8); opacity: 0.4; z-index: 0; } #item-1:checked ~ .cards #doc-1, #item-2:checked ~ .cards #doc-2, #item-3:checked ~ .cards #doc-3 { transform: translatex(0) scale(1); opacity: 1; z-index: 1; } #item-1:checked ~ .cards #doc-1 img, #item-2:checked ~ .cards #doc-2 img, #item-3:checked ~ .cards #doc-3 img { box-shadow: 0px 0px 5px 0px rgba(81, 81, 81, 0.47); } .player { background-color: #DEEAEC; border-radius: 2.726vw; min-width: 33.697vw; padding: 16px 10px; height: 7.197vw; font-family: "Commissioner-SemiBold", Helvetica; } .upper-part { position: relative; display: flex; align-items: center; margin-top: 0.654vw; height: 5.016vw; overflow: hidden; } .song-info { width: 100%; display: block; align-items: center; text-align: center; } .song-info .title { color: #403d40; font-size: 1.745vw; line-height: 2,94vw; width: 100%; margin-top: 0.8vw; margin-bottom: 0.526vw; } .sub-line { display: flex; width: 100%; } .subtitle { font-size: 1.527vw; line-height: 2,036vw; color: #97B8A5; width: 100%; text-align: center; margin-bottom: 0.654vw; } .info-area { width: 100%; position: absolute; top: 0; transition: transform 0.4s ease-in; } #item-2:checked ~ .player #test { transform: translateY(0); } #item-2:checked ~ .player #test { transform: translateY(-5.781vw); } #item-3:checked ~ .player #test { transform: translateY(-11.562vw); }