@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
}

a,
a:visited,
a:focus,
a:active,
a:link {
    text-decoration: none;
    outline: 0;
}

h1,
h2,
h3,
h4 {
    margin: 0;
}

ul {
    padding: 0;
    list-style: none;
}

strong {
    font-weight: 600;
}

html {
    background-color: rgb(0, 0, 0);
    color: #fff;
    font-family: "Montserrat", sans-serif;
}

body {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 70px 20px 20px 70px;
}

.main-container {
    position: relative;
    width: auto;
    max-height: 100%;
    display: flex;
    column-gap: 10px;
}

.main-container img#vinyl-logo {
    height: 100px;
    width: 100px;
    position: absolute;
    top: -50px;
    left: -50px;
   /* animation: rotate360 4s linear infinite; */
}
/* 
@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
} */

.main-container-playlist {
    flex: 1;
    display: flex;
    flex-direction: column;

    background-color: rgb(19, 19, 19);
    padding: 40px;
    border-radius: 15px;

    width: auto;
    max-width: 700px;
}

.main-container-track {
    display: none;
    flex: 1;
    flex-direction: column;

    background-color: rgb(19, 19, 19);
    padding: 20px;
    border-radius: 15px;

    width: auto;
    max-width: 500px;
}

/* ------- Emoji bouton & menu ------- */

.select-emoji-container {
    display: flex;
}

.select-emoji-container #emoji-btn {
    font-size: 28px;
    height: 50px;
    width: 50px;
    margin: 20px 0;
    border: none;
    border-radius: 5px;
    background-color: rgb(29, 29, 29);
    box-shadow: 0px 0px 0px 0px #00000000;
    transition: box-shadow 0.5s;
    transition: background-color 0.5s;
}

.select-emoji-container #emoji-btn:hover {
    box-shadow: 0px 0px 10px 0px #67219a;
    background-color: rgb(37, 37, 37);
}

.select-emoji-container #emoji-btn:active {
    transform: scale(0.95);
}

.select-emoji-container .emoji-container {
    position: relative;
}

.select-emoji-container #emoji-picker {
    position: absolute;
    top: 20px;
    left: 10px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ------- LOADER ------- */

.loader-container {
    display: flex;
    justify-content: center;
}

.loader-container .music-loader {
    position: relative;
    width: 50px;
    height: 50px;
}

.loader-container .line {
    width: 8px;
    position: absolute;
    border-radius: 5px;
    bottom: 0;
    background: linear-gradient(to bottom, #67219a, #1c2bc9);
}

.loader-container .line1 {
    left: 0;
    animation: dance 0.5s ease alternate infinite;
}

.loader-container .line2 {
    left: 20px;
    animation: dance 0.5s 0.2s ease alternate infinite;
}

.loader-container .line3 {
    left: 40px;
    animation: dance 0.5s 0.4s ease alternate infinite;
}

@keyframes dance {
    0% {
        height: 0;
    }
    100% {
        height: 80%;
    }
}

/* ------- PLAYLIST/TRACK CARD ------- */

.list-playlist,
.list-track {
    flex: 1;
    overflow-y: auto;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.card {
    display: flex;
    flex-direction: row;
    border-radius: 10px;
    overflow: hidden;
    height: 130px;
    margin-bottom: 10px;
    cursor: pointer;
}

.track-card {
    height: 100px;
}

.card img {
    width: 130px;
    height: 130px;
}

.track-card img {
    width: 100px;
    height: 100px;
}

.card:hover {
    background-color: rgb(29, 29, 29);
}

.card .body-card {
    display: flex;
    flex-direction: column;
    padding: 5px 10px;
    width: 100%;
}

.card .body-card .header-body-card {
    display: flex;
    justify-content: space-between;
}

.card .body-card .header-body-card .title-playlist, .card .body-card .header-body-card .title-track {
    font-size: 18px;
}

.card .body-card .header-body-card .number-tracks {
    font-size: 14px;
    white-space: nowrap;
    margin-left: 10px;
}

.playlist-card .body-card p.link {
    margin-bottom: 15px;
}

.card .body-card a {
    font-size: 14px;
    color: #fff;
    text-decoration: none;
}

.card .body-card a:hover {
    text-decoration: underline;
}

.playlist-card .body-card .description {
    font-size: 12px;
    color: #c1c1c1;
    overflow: scroll;
}

.track-card .body-card p.artists {
    font-size: 14px;
    color: #b3b3b3;
}

.track-card:hover .body-card p.artists {
    color: #fff;
}

.open-playlist-btn {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: 40px;
    margin-top: 20px;

    background-color: #1ed760;
    color: #fff;
    font-size: 15px;
    border: none;
    border-radius: 8px;
}

.open-playlist-btn:hover {
    background-color: #3be477;
}