/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    overflow: hidden;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #FFC1CC, #FFDDE1);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}

/* Valentine Container */
.valentine-container {
    position: absolute;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

/* Cute Bear Image */
.valentine-box img {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
}

/* Text Styling */
h1 {
    font-size: 2em;
    color: #D63384;
}

/* Button Container */
.buttons {
    margin-top: 20px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    font-size: 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.btn.yes {
    background: #FF69B4;
    color: white;
}

.btn.no {
    background: #FF6B6B;
    color: white;
}

/* Forced "Yes" Joke */
.bigger-yes {
    font-size: 24px;
    padding: 15px 30px;
}

.btn:hover {
    opacity: 0.8;
}

/* Floating "Made with ❤️" - Now Clickable */
.made-with {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.7);
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    transition: background 0.3s ease-in-out;
    cursor: pointer;
    display: inline-block; /* Ensures full clickable area */
    text-align: center;
}

/* Hover Effect */
.made-with:hover {
    background: rgba(255, 255, 255, 1);
}

/* Ensures link inside is clickable */
.made-with a {
    color: inherit;
    text-decoration: none;
    display: block; /* Full clickable area */
    padding: 10px 15px; /* Expands clickable area */
}


/* Canvas for Animated Hearts */
canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Floating Hearts Animation */
.floating-heart {
    position: fixed;
    bottom: -30px; /* Start below the screen */
    background-color: rgba(255, 105, 180, 0.8); /* Pink Heart */
    width: 20px;
    height: 20px;
    clip-path: polygon(
        50% 0%, 61% 35%, 98% 35%, 68% 57%, 
        79% 91%, 50% 70%, 21% 91%, 32% 57%, 
        2% 35%, 39% 35%
    ); /* Heart shape */
    animation: floatUp linear infinite;
    opacity: 0.7;
}

/* Heart Floating Animation */
@keyframes floatUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh); /* Move up the entire screen */
        opacity: 0;
    }
}

/* Floating Hearts (Fixed Shape) */
.floating-heart {
    position: fixed;
    bottom: -40px; /* Start below the screen */
    background-color: rgba(255, 105, 180, 0.8); /* Pink Color */
    width: 20px;
    height: 20px;
    clip-path: path(
        "M50,15
        C65,-10,110,10,100,40
        C90,60,50,100,50,100
        C50,100,10,60,0,40
        C-10,10,35,-10,50,15Z"
    ); /* True Heart Shape */
    animation: floatUp linear infinite;
    opacity: 0.8;
}

/* Glowing Hearts (More Stylish) */
.glowing-heart {
    position: fixed;
    bottom: -40px;
    background-color: rgba(255, 50, 150, 0.6); /* Brighter pink */
    box-shadow: 0 0 10px rgba(255, 50, 150, 0.8);
    width: 25px;
    height: 25px;
    clip-path: path(
        "M50,15
        C65,-10,110,10,100,40
        C90,60,50,100,50,100
        C50,100,10,60,0,40
        C-10,10,35,-10,50,15Z"
    );
    animation: floatUpGlowing linear infinite;
    opacity: 0.9;
}

/* Heart Floating Up Animation */
@keyframes floatUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh);
        opacity: 0;
    }
}

/* Glowing Heart Floating Up Animation */
@keyframes floatUpGlowing {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh);
        opacity: 0.5;
    }
}
 

/* Music Button (Bottom Left) */
.music-btn {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background: #FF69B4;
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
    z-index: 10;
}

.music-btn:hover {
    background: #D63384;
}

/* Music Player Box */
.music-container {
    position: fixed;
    bottom: 50px;
    left: 10px;
    width: 300px;
    height: 200px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-in-out;
    z-index: 10;
}

/* Hide music player initially */
.hidden {
    display: none;
}

/* Ensure YouTube player fits */
#youtubePlayer {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Leaderboard Styling */
.leaderboard {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-align: center;
    min-width: 150px;
    z-index: 5;
}

.leaderboard h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.leaderboard p {
    font-size: 18px;
    margin: 5px 0;
}

/* Prevent leaderboard from breaking layout */
@media (max-width: 600px) {
    .leaderboard {
        left: 10px;
        font-size: 16px;
    }
}

