body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #330C15; /* Ciemne tło */
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow: hidden;
    flex-direction: row;
}

/* Rozmazane serce w tle */
body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="%23ff69b4"><path d="M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
    filter: blur(40px);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: -1;
}

/* Pokazywanie tła po najechaniu na przycisk */
body:has(.btn-heart:hover)::before {
    opacity: 0.5;
}

/* Animacja wyostrzania przy wejściu */
@keyframes sharpen {
    0% {
        filter: blur(15px);
        transform: scale(1.05);
        opacity: 0;
    }
    100% {
        filter: blur(0px);
        transform: scale(1);
        opacity: 1;
    }
}

.container {
    text-align: center;
    animation: sharpen 2s ease-out forwards;
    background: rgba(153, 96, 110, 0.1); /* Półprzezroczysta ramka */
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(153, 96, 110, 0.2);
    backdrop-filter: blur(10px); /* Efekt szkła */
}

h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: white;
}

p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 30px;
}


button {
    padding: 12px 25px;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid #99606E;
    border-radius: 8px;
    background: #662C39;
    color: white;
    transition: 0.3s;
}

.btn-heart:hover {
    background: #ff4d4d;
    border-color: #ff4d4d;
    color: white;
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.4);
}


footer {  
  animation: sharpen 2s ease-out forwards;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  color: white;
  text-align: center;
  border-top: 0.5vh solid rgba(153, 96, 110, 0.3);
  background: rgba(51, 12, 21, 0.3);
}

footer p {
  margin: 1rem 0;
  font-size: 1rem;
}



/* Kontener dla przycisków */
.buttons {
    display: flex;
    gap: 1.25rem; /* 20px */
    justify-content: center;
    margin-top: 2rem;
}

/* Podstawowy styl przycisku (zintegrowany z glow-on-hover) */
.btn-heart {
    padding: 12px 25px;
    border: 1px solid #99606E;
    border-radius: 8px;
    height: 3.125rem; /* 50px */
    outline: none;
    color: #fff;
    background: #662C39; /* Twój ciemniejszy kolor bazowy */
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 0.625rem; /* 10px */
    font-size: 1rem;
    transition: 0.3s;
}

/* Warstwa świecąca (gradient dopasowany do różu #FFC5D3) */
.btn-heart:before {
    content: '';
    /* Gradient: Różowy -> Czerwony -> Biały -> Różowy */
    background: linear-gradient(45deg, #FFC5D3, #99606E, #662C39, #330C15, #662C39, #99606E, #FFC5D3);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: 0.625rem;
}

/* Stan aktywny (kliknięcie) */
.btn-heart:active {
    color: #000;
}

.btn-heart:active:after {
    background: transparent;
}

/* Pokazanie poświaty po najechaniu */
.btn-heart:hover:before {
    opacity: 1;
}

/* Wypełnienie przycisku, aby tekst był czytelny */
.btn-heart:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #662C39; /* Kolor tła przycisku */
    left: 0;
    top: 0;
    border-radius: 0.625rem;
}

/* Animacja przesuwania gradientu */
@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

