@import url('https://fonts.googleapis.com/css2?family=Jersey+10&display=swap');

:root {
    --bg-image: url('ilovethis.png');
    --pink: #ff00f2;
    --purple: #6f00ff;
}

* { box-sizing: border-box; }

body {
    text-align: center;
    font-family: 'Jersey 10', cursive;
    background-color: #000;
    color: var(--pink);
    margin: 0;
    padding: 30px 16px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.8)),
        var(--bg-image) center / cover no-repeat;
    filter: blur(3px);
    transform: scale(1.05); /* hides blurred edges */
    z-index: -1;
}

.card {
    position: relative;
    z-index: 1;
    max-width: 900px;
    width: 100%;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.45);
    border: 2px solid rgba(255, 0, 242, 0.35);
    border-radius: 20px;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 30px rgba(255, 0, 242, 0.25), inset 0 0 30px rgba(111, 0, 255, 0.15);
}

h1, h2, p, h3 {
    margin: 10px;
    text-shadow: 0 0 10px rgba(255, 0, 242, 0.7);
}

h1 { font-size: 3rem; letter-spacing: 1px; }
h2 { font-size: 1.8rem; font-weight: normal; }
p  { font-size: 1.3rem; }
h3 { font-size: 1.6rem; font-weight: normal; color: #fff; }

.hearts {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.heart {
    width: 80px;
    height: 80px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(255, 0, 242, 0.8));
}

.beat { transform: scale(1.15); }

.label {
    font-size: 18px;
    margin-top: 5px;
}

.heart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.frame {
    width: 220px;
    height: 220px;
    border: 10px solid var(--purple);
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(111, 0, 255, 0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.frame:hover {
    transform: translateY(-6px) rotate(-2deg);
    box-shadow: 0 0 30px rgba(255, 0, 242, 0.8);
}

.frame:nth-child(2):hover { transform: translateY(-6px) rotate(2deg); }

.frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.heart-wrapper {
    position: relative;
    display: inline-block;
}

.number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}

.snowflake {
    position: fixed;
    top: -10px;
    background: #b57bff;
    border-radius: 50%;
    opacity: 0.8;
    pointer-events: none;
    z-index: 2;
    animation: fall linear infinite;
}

@keyframes fall {
    0%   { transform: translateY(0) translateX(0); opacity: 0.8; }
    100% { transform: translateY(105vh) translateX(30px); opacity: 0.2; }
}

/* Music controls (button + volume slider) */
.music-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px 6px 14px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--pink);
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(255, 0, 242, 0.6);
}

.volume {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 0, 242, 0.35);
    outline: none;
    cursor: pointer;
}
.volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 8px var(--pink);
}
.volume::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 8px var(--pink);
}

/* Music button */
.music-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--pink);
    background: rgba(0, 0, 0, 0.7);
    color: var(--pink);
    font-size: 22px;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.music-btn:hover { transform: scale(1.1); }
.music-btn.playing { background: var(--pink); color: #000; }

@media (max-width: 600px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.4rem; }
    .heart { width: 64px; height: 64px; }
    .photo-gallery { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .snowflake { display: none; }
}

/* Falling red hearts */
.falling-heart {
    position: fixed;
    top: -30px;
    color: #ff2a3d;
    text-shadow: 0 0 8px rgba(255, 42, 61, 0.8);
    opacity: 0.85;
    pointer-events: none;
    z-index: 2;
    animation: fall-heart linear infinite;
}

@keyframes fall-heart {
    0%   { transform: translateY(0) translateX(0) rotate(-15deg); opacity: 0.9; }
    50%  { transform: translateY(55vh) translateX(-25px) rotate(15deg); }
    100% { transform: translateY(110vh) translateX(10px) rotate(-15deg); opacity: 0.2; }
}

/* Enter screen */
body.locked { overflow: hidden; }

.enter-screen {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.enter-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.enter-btn {
    font-family: inherit;
    font-size: 2.2rem;
    color: var(--pink);
    background: transparent;
    border: 3px solid var(--pink);
    border-radius: 14px;
    padding: 14px 44px;
    cursor: pointer;
    text-shadow: 0 0 10px rgba(255, 0, 242, 0.8);
    box-shadow: 0 0 20px rgba(255, 0, 242, 0.5), inset 0 0 20px rgba(255, 0, 242, 0.2);
    animation: pulse 1.6s ease-in-out infinite;
    transition: background 0.2s ease, color 0.2s ease;
}
.enter-btn:hover { background: var(--pink); color: #000; text-shadow: none; }

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
}

@media (max-width: 600px) {
    .volume { width: 70px; }
}

@media (prefers-reduced-motion: reduce) {
    .falling-heart, .enter-btn { animation: none; }
}
