/* gift.css */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Great+Vibes&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&family=Montserrat:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    overflow: hidden;
    background-color: black;
}

.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.heart {
    position: absolute;
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff1493" stroke="%23ff1493" stroke-width="2"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"/></svg>') no-repeat center;
    background-size: contain; /* Ensures the SVG scales correctly */
    opacity: 0.7;
}

.gift-container {
    position: fixed;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%) scale(0.8); /* Start slightly scaled down */
    z-index: 10;
    opacity: 0; /* Initially transparent */
    visibility: hidden; /* Initially hidden */
    transition: opacity 1s ease, transform 1s ease; /* Smooth transition for opacity and scale */
}

.gift-container.show {
    opacity: 1; /* Fully visible */
    visibility: visible; /* Make it interactable */
    transform: translateX(-50%) scale(1); /* Scale to original size */
}

.gift-icon {
    cursor: pointer;
    transition: transform 0.3s;
}

.gift-icon:hover {
    transform: scale(1.1);
}

.gift-icon.animate-bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}



.letter-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at top left, transparent 10%, rgba(0,0,0,0.05) 100%),
        radial-gradient(circle at bottom right, transparent 10%, rgba(0,0,0,0.05) 100%);
    pointer-events: none;
    opacity: 0.5;
}

/* Add a subtle paper fold effect */


.letter-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    height: 70%;
    background-color: #f5f5dc;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.2),
        inset 0 0 20px rgba(0,0,0,0.1);
    display: none;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 20;
    background-image: 
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    border: 1px solid rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.love-letter {
    font-family: 'Great Vibes', 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: #5a2b2e;
    line-height: 1.6;
    text-align: left;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding-right: 1rem;
    padding-top: 1rem; /* Adjust this value to control starting position */
    padding-left: 1rem;
    padding-bottom: 1rem;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
}





/* Custom scrollbar to blend with paper texture */
.love-letter::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, and Opera */
}

.love-letter::-webkit-scrollbar-track {
    background: rgba(139, 26, 93, 0.1);
    border-radius: 10px;
}

.love-letter::-webkit-scrollbar-thumb {
    background: rgba(139, 26, 93, 0.3);
    border-radius: 10px;
}

.love-letter::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 26, 93, 0.5);
}
.letter-cursor {
    animation: blink 0.7s infinite;
    display: inline-block;
    margin-left: 3px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes float {
    0% { 
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    100% { 
        transform: translateY(100vh) rotate(720deg) scale(0.8);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .letter-container {
        width: 90%;
        padding: 1rem;
    }

    .love-letter {
        font-size: 1.2rem;
    }
}


