@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');
*{
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #1d1d1d;
    background-position: center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    /* overflow: hidden; */
}
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(./src/banner.png);
    background-position: center center;
    background-size: cover;
    opacity: 0.3; /* Ajustez cette valeur entre 0 et 1 pour contrôler l'opacité */
    z-index: -1;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
}

.card {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    width: 300px;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
    /* overflow: hidden; */
}


@property --angle{
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(255, 255, 255, 0.20);
}

.album-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    
}

.album-cover-container{
    position: relative;
    margin-bottom: 20px;
    width: 300px;
    height: 300px;
}

.album-cover-container::before, .album-cover-container::after{
    display: block;
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    background-image: conic-gradient(from var(--angle), transparent 50%, rgb(81, 255, 249), #e778bb);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 1;
    padding: 0px;
    border-radius: calc(0px + 10px);
    animation: 12s spin linear infinite;
    opacity: 0;
    transition: padding 300ms ease-out , opacity 300ms ease-out 300ms;
}

.album-cover-container::after{
    filter: blur(14px);
    z-index: 1;
}

/* .album-cover-container[playing]::before, .album-cover-container[playing]::after {
    opacity: 1;
} */
.album-cover-container.playing::before, .album-cover-container.playing::after {
    opacity: 1;
    padding: 3px;
    border-radius: calc(3px + 10px);
    transition: opacity 300ms ease-out, padding 300ms ease-out 300ms;
}

.audio-controls{
    width: 100%;
    margin: 25px 0px 0px 0px;
}

h2 {
    position: relative;
    margin: 0 0 10px;
    font-size: 1.5em;
    color: #fff;
    z-index: 10;
}

p {
    position: relative;
    margin: 5px 0;
    color: #ddd;
    z-index: 10;
}

/* MODALS */
.modal-container {
    box-sizing: border-box;
    z-index: 999;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    padding: 10px;
    opacity: 0;
    pointer-events: none;
    transition: all 300ms ease-in-out;
}

.modal-container.show{
    opacity: 1;
    pointer-events: auto;
}

.modal-container > .modal{
    box-sizing: border-box;
    width: 100%;
    max-width: 800px;
    /* background: rgba(255, 255, 255, 0.2); */
    background: #1d1d1d;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
}

.modal a{
    color: #e778bb;
}

.modal > p {
    align-self: flex-start;
}

.btn {
    background: #ddd;   
    color: #1d1d1d;
    border: none;
    border-radius: 10px;
    padding: 10px 30px;
    transition: background 300ms ease-in-out;
    cursor: pointer;
}

.btn:hover{
    background: #a7a7a7;
}

italic{
    font-style: italic;
}



@keyframes spin{
    from{
        --angle: 0deg;
    }
    to{
        --angle: 360deg;
    }
}