:root {
    --bg-color: #F8C8DC; 
    --primary-color: #d81b60; 
    --fire: #ff4081; 
    --fire-alt: #ff7aa6; 
    --text-color: #5c0029; 
    --card-bg: rgba(255, 255, 255, 0.4); 
    --card-border: rgba(255, 255, 255, 0.7);
}

/* Ukrycie paska przewijania, ale z zachowaniem płynnego scrolla */
::-webkit-scrollbar {
    width: 0px;
    background: transparent; 
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at center top, #ffdceb 0%, var(--bg-color) 100%);
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    overflow-y: auto; /* Pozwala na scroll, jeśli jest taka potrzeba! */
    overflow-x: hidden;
}

/* Lewitujące serca w tle */
#floating-hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-particle {
    position: absolute;
    bottom: -15vh;
    animation: floatingUp linear infinite;
    opacity: 0;
    will-change: transform, opacity;
}

.floating-particle svg {
    fill: rgba(255, 64, 129, 0.15); /* Półprzezroczysty róż na tło */
    width: 100%;
    height: 100%;
}

@keyframes floatingUp {
    0% {
        transform: translateY(0) scale(0.5) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-120vh) scale(1.5) rotate(360deg);
        opacity: 0;
    }
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-in-out, visibility 1s;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
}

.screen.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

#main-content {
    padding-top: 5vmin;
    padding-bottom: 5vmin;
}

/* To pozwala treści głównej zachowywać się jako część dokumentu płynącego po wejściu, 
żeby ułatwić i umożliwić scrollowanie bez ucięć dolnych marginesów */
#main-content.active {
    position: relative; 
    height: auto;
}

/* Ekran powitalny - Serduszko */
.heart-container {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.heart-container:hover {
    transform: scale(1.05);
}

.neon-heart-svg {
    position: absolute;
    width: 220px;
    height: 220px;
    fill: transparent;
    stroke: var(--primary-color);
    stroke-width: 0.8;
    overflow: visible;
    animation: heartbeat 1.5s infinite, burning 0.15s infinite alternate;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.1); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
    60% { transform: scale(1); }
    100% { transform: scale(1); }
}

@keyframes burning {
    0% {
        filter: drop-shadow(0 0 5px var(--fire)) drop-shadow(0 -5px 15px var(--fire-alt)) drop-shadow(0 -10px 25px var(--fire));
        stroke: var(--primary-color);
    }
    100% {
        filter: drop-shadow(0 0 8px var(--fire-alt)) drop-shadow(0 -10px 20px var(--fire)) drop-shadow(0 -20px 35px var(--fire-alt));
        stroke: #ff1a66;
    }
}

.heart-text {
    position: relative;
    z-index: 2;
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 20px rgba(255,255,255,0.5);
    pointer-events: none;
    margin-top: -15px;
}

/* Ekran pośredni */
.message-container {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 40px rgba(216, 27, 96, 0.2);
    text-align: center;
    max-width: 600px;
    width: 80%;
    z-index: 2;
}

.romantic-text {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
    text-shadow: 0 0 5px rgba(255,255,255,0.7);
    line-height: 1.3;
}

.proceed-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: 15px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(216, 27, 96, 0.4);
}

.proceed-btn:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 8px 20px rgba(216, 27, 96, 0.6);
}

/* Główna Zawartość */
.main-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    margin-bottom: 2vmin;
    text-shadow: 0 0 10px rgba(255,255,255,0.6);
    text-align: center;
    z-index: 2; /* nad serduszkami w locie */
}

.gallery-container {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5vmin;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 40px rgba(216, 27, 96, 0.2);
    margin-bottom: 5vmin;
    max-width: 800px;
    width: 90%;
    z-index: 2;
}

.gallery-slider {
    flex: 1;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.gallery-item {
    display: none;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s;
    width: 100%;
    padding: 10px;
}

.gallery-item.active {
    display: flex;
}

/* Styl Polaroid / Instax */
.polaroid-frame {
    background: #ffffff;
    padding: 15px 15px 40px 15px; /* Najwięcej białego miejsca na dole (jak w polaroidzie) */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15), 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: rotate(-3deg); /* Lekkie obrócenie, żeby leżało "niedbale" */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
    max-width: 90%;
}

.polaroid-frame:hover {
    transform: rotate(0deg) scale(1.03); /* Po najechaniu ładnie wędruje do przodu i się prostuje */
    box-shadow: 0 15px 40px rgba(216, 27, 96, 0.3), 0 5px 15px rgba(0,0,0,0.1);
}

.polaroid-frame img {
    width: 100%;
    height: 40vh;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid #e2e2e2;
}

.polaroid-caption {
    margin-top: 15px;
    text-align: center;
    width: 100%;
}

.polaroid-desc {
    font-family: 'Dancing Script', cursive; /* Odręczny podpis jak markerem! */
    font-size: 2rem;
    color: #2b2b2b;
    line-height: 1.1;
}

.polaroid-date {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: #999999;
    margin-top: 6px;
    letter-spacing: 1px;
}

.nav-btn {
    background: #ffffff;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    flex-shrink: 0;
    margin: 0 10px;
}

.nav-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 0 20px var(--primary-color);
}

/* Licznik */
.timer-container {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 20px;
    padding: 30px 40px;
    backdrop-filter: blur(15px);
    text-align: center;
    box-shadow: 0 10px 40px rgba(216, 27, 96, 0.2);
    z-index: 2;
    margin-bottom: 3vmin;
}

.timer-container h2 {
    font-family: 'Dancing Script', cursive;
    margin-top: 0;
    font-size: 2.5rem;
    color: var(--text-color);
    text-shadow: 0 0 5px rgba(255,255,255,0.7);
}

.timer {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.time-block {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.7);
    padding: 15px 20px;
    border-radius: 15px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    min-width: 70px;
    border: 2px solid rgba(255,255,255,0.9);
    color: var(--primary-color);
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.time-block:hover {
    transform: translateY(-5px);
}

.time-block span {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--text-color);
}

.footer-msg {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
    margin-top: 10px;
    z-index: 2;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .main-title { font-size: 2.5rem; }
    .timer { gap: 8px; }
    .time-block { min-width: 50px; padding: 10px 12px; }
    .time-block span { font-size: 1.8rem; }
    .gallery-container { padding: 15px; }
    .gallery-item img { height: 35vh; }
    .nav-btn { width: 40px; height: 40px; margin: 0 5px; }
}
