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

html,
body {
    margin: 0;
    padding: 0;
}


#banner {
    display: flex;
    padding: 30px 10px;
    transition: background 0.4s ease-in;
}

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

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

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

#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);
}

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

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

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

h2 {
    text-align: left;
    margin-bottom: 20px;
}

#recommend1 {
    margin-top: 250px;
    margin-bottom: -100px;
}

#recommend2 {
    margin-top: 150px;
    margin-bottom: -100px;
}
#recommend3 {
    margin-top: 150px;
    margin-bottom: -100px;
}
#gen{
    margin-top: 0;
}

.recommend {
    margin-top: 100px;
    padding: 20px;
    text-align: center;
    justify-content: center;
}
h2 {
    text-align: left;
    margin-bottom: 20px;
}

.recommend-section1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    max-width: 1150px;
    margin: 0 auto;
}

.recommend-card-link {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
    text-decoration: none;
    color: inherit;
    display: flex;
}

.recommend-card {
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    height: 154px;
    /* Fixed height */
}

.recommend-card img {
    width: 150px;
    height: 130px;
    border-radius: 7px;
    object-fit: cover;
    margin-right: 10px;
    flex-shrink: 0;
}

.recommend-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    flex-grow: 1;
    overflow: hidden;
}

.recommend-card h5 {
    font-size: 18px;
    color: #333;
    margin: 0 0 5px 0;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.recommend-card p {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.recommend-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

a {
    text-decoration: none;
    color: #454040;

}

h2 a:hover {
    color: #1a1515;
    border: #1a1515 solid  1px;
    border-radius: 10px;
    padding: 10px;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.category-tag {
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    color: white;
    font-weight: bold;
}

.description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* You'll need to assign specific background colors to each category */
.category-tag:nth-child(1) { background-color: #4e5be8; }
.category-tag:nth-child(2) { background-color: #ff6b6b; }
.category-tag:nth-child(3) { background-color: #00BFA5; }
.category-tag:nth-child(4) { background-color: #FF4081; }
.category-tag:nth-child(5) { background-color: #FFC107; }
.category-tag:nth-child(6) { background-color: #8E24AA; }
.category-tag:nth-child(7) { background-color: #3F51B5; }
.category-tag:nth-child(8) { background-color: #FF5722; }
.category-tag:nth-child(9) { background-color: #009688; }

