@tailwind base;
@tailwind components;
@tailwind utilities;


@layer utilities {
    .no-scrollbar::-webkit-scrollbar {
        display: none;
    }

    .no-scrollbar {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

* {
    padding: 0;
    margin: 0;
    border: 0;
}

*,
*:before,
*:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

:focus,
:active {
    outline: none;
}

a:focus,
a:active {
    outline: none;
}

nav,
footer,
header,
aside {
    display: block;
}

html,
body {
    height: 100%;
    width: 100%;
    font-size: 100%;
    line-height: 1;
    font-size: 14px;
    -ms-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

input,
button,
textarea {
    font-family: inherit;
}

input::-ms-clear {
    display: none;
}

button {
    cursor: pointer;
}

button::-moz-focus-inner {
    padding: 0;
    border: 0;
}

a,
a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

ul li {
    list-style: none;
}

img {
    vertical-align: top;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
}

@font-face {
    font-family: 'SF-Pro';
    src: url('../dist/fonts/SF-Pro-Display-Medium.otf');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'SF-Light';
    src: url('../dist/fonts/SF-Pro-Display-Light.otf');
    font-weight: 400;
    font-style: normal;
}

body {
    font-family: 'SF-Pro';
    font-weight: 400;
    display: flex;
    flex-direction: row;
}





.hoverBtn {
    @apply py-[5px] pl-[5px] rounded-md hover:bg-gray-200;
}

.fontLight {
    font-family: 'SF-Light';
    font-weight: 400;
}

.range {
    -webkit-appearance: none;
    appearance: none;
    background: gray;
    height: 5px;
    border-radius: 5px;
}

.range::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 12px;
    width: 12px;
    background: #ff4747;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}
.gray{
    background-color: rgb(204, 203, 203);
}
.card{
    @apply bg-[#F5F5F5] flex flex-col gap-[10px] pb-[10px] max-w-[117px] xs:max-w-[200px] md:max-w-[250px] 2xl:max-w-[300px] relative overflow-hidden rounded-[20px] flex-shrink-0 text-center w-full;

}

.cardArtists{
    @apply flex flex-col justify-center items-center max-w-[117px] xs:max-w-[200px] md:max-w-[250px] 2xl:max-w-[300px] gap-[10px] flex-shrink-0 text-center w-full;
}

.imageArtist{
    @apply w-[300px] rounded-[50%];
    cursor: pointer;
}

.scrollbar-hide::-webkit-scrollbar{
    display: none;
}

.card .play-button, .openBtn, .openBtn-playlist {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    background-color: #e3342f;
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    pointer-events: auto;
}

.card:hover .overlay,
.card:hover .play-button,
.card:hover .openBtn{
    opacity: 1;
    pointer-events: auto;
}


.album:hover .overlay,
.album:hover .openBtn,
.card:hover .openBtn-playlist{
    opacity: 1;
    pointer-events: auto;
}
#searchInfo::-webkit-scrollbar-button{
    display: none;
}
#searchInfo::-webkit-scrollbar-thumb{
    width: 4px;
    background: gray;
    border-radius: 3px;
}
#searchInfo::-webkit-scrollbar{
    width: 4px;
    background: transparent;
}
.searchResultCard{
    @apply flex flex-row justify-center gap-[10px] items-center py-[5px] w-full bg-colorBack2 rounded-lg shadow-lg max-h-[100px] px-[15px] relative;
}
.searchResultCard:hover{
    @apply cursor-pointer bg-colorBack2Hover;
}
.searchResultCardImage{
    @apply w-[50px] rounded-md;
}
.imageAlbum{
    @apply w-[240px] lg:w-[270px] h-[240px] lg:h-[270px] flex-shrink-0 rounded-lg object-cover;
    box-shadow: 0 10px 18px -5px rgba(0,0,0,0.75);
}
.searchImgButton{
    @apply w-fit relative rounded-md;
}
.searchResultCard:hover .overlayAlbum,
.searchResultCard:hover .playButtonSearch{
    opacity: 1;
    pointer-events: auto;
}

.searchResultCard .overlayAlbum{
    position: absolute;
    top:0;
    right:0;
    bottom:0;
    left:0;
    background-color: rgba(128, 128, 128, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 8px;
}
.searchResultCard .playButtonSearch{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    background-color: #e3342f;
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    pointer-events: auto;
}
.card .overlay {
    position: absolute;
    top:0;
    right:0;
    bottom:48px !important;
    left:0;
    background-color: rgba(128, 128, 128, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.album .overlay{
    position: absolute;
    top:0;
    right:0;
    bottom:55px;
    left:0;
    background-color: rgba(128, 128, 128, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.trackAlbum{
    @apply bg-colorBack2 flex items-center  w-full pr-[28px] rounded-md p-[1em];
}
.trackPlaylist{
    @apply bg-colorBack2 flex items-center  w-full pr-[28px] rounded-md p-[1em];
}

.btnToPlay{
    @apply text-[20px] text-red-700;
}
.btnToPlayPlayList{
    @apply text-[20px] text-red-700;
}


#playRandom>svg:hover{
    color: #e3342f;
}

.gridSongs{
    column-gap: 7.5px;
    row-gap: 14px;
}

.playButtonTrackArtist{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    background-color: #e3342f;
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    pointer-events: auto;
}

.trackArtist:hover .overlayArtist,
.trackArtist:hover .playButtonTrackArtist{
    opacity: 1;
    pointer-events: auto;
}
.overlayArtist{
    position: absolute;
    top:0;
    right:0;
    bottom:0;
    left:0;
    background-color: rgba(128, 128, 128, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 8px;
}
.allTrackList{
    padding: 8px 15px 8px 12px !important;

}

.allTracks button{
    position: absolute;
    transform: translate(-50%,-50%);
    opacity: 0;
}


.allTracks:hover button{
    animation: buttonAnim .2s ease-in-out forwards;
}


@keyframes buttonAnim {
    0%{
        left: -20%;
    opacity: 0;
    } 25%{
    left: -15%;
    opacity: 0.25;
          }50%{
    left: -10%;
    opacity: 0.5;
                     } 75%{
    left: -5%;
    opacity: 0.75;
                                            }100%{
    left: 0;
    opacity: 1;

                                                                                         }
}
@keyframes asideAnimBack {
    0%{
        left: 0;
        opacity: 1;
    } 25%{
              left: -5%;
              opacity: 0.75;
      }50%{
           left: -10%;
           opacity: 0.5;
       } 75%{
                              left: -15%;
                              opacity: 0.25;
         }100%{
                                        left: -20%;
                                        opacity: 0;

          }
}

.active{
    display: flex;
}

#gridArtists{
    display: grid;
    column-gap: 25px;
    row-gap: 25px;
    @apply xs:grid-cols-2 lg:grid-cols-3;
}

.addToFavourite{
    z-index: 999;
}

.activeAside{
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    animation: buttonAnim .2s ease-in-out forwards;
}

header{
    z-index: 10000;
}


.headerMusic>.track,.author{
    @apply line-clamp-1;
}