@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;800&display=swap');

:root {
    --primary-hsl: 350 89% 60%;
    --primary-color: hsl(var(--primary-hsl));
}

* {
    font-family: 'Poppins', sans-serif;
    color: #fff;
    box-sizing: border-box;
    user-select: none;
    overflow: hidden;
}

img {
    pointer-events: none;
    -webkit-user-drag: none;
}

#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: blur(0.5vh);
    backdrop-filter: blur(1vh);
}

.grid-container {
    display: grid;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    gap: 0.4vh; /* Odstępy między zdjęciami */
    padding: 0.4vh; /* Zapewnia czarne tło wokół całej siatki */
    background-color: black; /* Kolor odstępów */
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    grid-auto-rows: 1fr;
    box-sizing: border-box;
}

.grid-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    border-radius: 0.2vh; /* lub dodaj zaokrąglenia jeśli chcesz */
}

.center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

@keyframes zoom-in-out {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.center img {
    width: 20vw;
    height: 20vw;
    border-radius: 50%;
    z-index: 2;
    animation: zoom-in-out 3s infinite ease-in-out;
}

.progress-container {
    width: 60vw;
    height: 0.5vh;
    background-color: rgba(23, 23, 23, 0.7);
    border-radius: 0.5vh;
    position: fixed;
    bottom: 10vh;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
}

.progress-line {
    height: 0.5vh;
    width: 0%;
    background-color: #ff004e;
    border-radius: 0.5vh;
    transition: width 0.3s ease-in-out;
}

.loading-text {
    position: absolute;
    bottom: calc(10vh + 0.5vh);
    left: 20%;
    font-size: 1.2vh;
    font-weight: 500;
    color: #ffffff;
}

.song-display {
    position: fixed;
    bottom: calc(10vh - 1.2vh);
    left: 50%;
    transform: translate(-50%, 50%);
    text-align: center;
    z-index: 1000;
    color: #fff;
    width: 100%;
    max-width: 50vw;
    padding: 1.5vh;
    border-radius: 1vh;
}

.song-display-text {
    font-size: 1.2vh;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    opacity: 1;
    height: auto;
    overflow: hidden;
    white-space: normal;
    text-align: center;
    word-break: break-word;
}

.volume-status {
    position: fixed;
    bottom: 15vh;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1000;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 1vh 2vh;
    border-radius: 0.5vh;
    font-size: 1vh;
    font-weight: 500;
    backdrop-filter: blur(8px);
}

.fade-out { opacity: 0; transition: opacity 0.5s ease-out; }
.fade-in { opacity: 1; transition: opacity 0.5s ease-in; }

.mute-instruction {
    position: fixed;
    bottom: calc(10vh - 10.9vh);
    left: 50%;
    transform: translateX(-50%);
    font-size: 1vh;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0.9;
    text-align: center;
    width: 100%;
    max-width: 50vw;
}

.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    padding: 2.2vh 0;
    text-align: center;
    font-size: 1.4vh;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
}

.bottom-bar .bold {
    font-weight: 600;
    color: rgba(255, 255, 255, 1);
}
