/* styles.css - extracted from original inline styles */

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #fce4ec; /* Light pink background */
    overflow: hidden;
    position: relative;
}

/* Background Bubbles */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3) 5%, transparent 0),
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.3) 10%, transparent 0),
        radial-gradient(circle at 50% 70%, rgba(255, 255, 255, 0.3) 8%, transparent 0),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.3) 6%, transparent 0),
        radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.3) 4%, transparent 0);
    z-index: -1;
}

/* Screen containers */
.screen {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 400px;
    padding: 20px;
    animation: fadeIn 0.5s ease-in-out;
}

.screen.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Initial Screen */
#tap-heart-btn {
    background: none;
    border: 2px solid #e91e63;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse 1.5s infinite;
}

#tap-heart-btn .heart-icon {
    font-size: 40px;
    color: #e91e63;
}

#initial-screen p {
    margin-top: 20px;
    font-size: 1.2em;
    color: #555;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 20px rgba(233, 30, 99, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(233, 30, 99, 0); }
}

/* Carousel Screen */
.carousel-container {
    width: 90%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    padding: 20px;
    cursor: pointer;
}

.card {
    background-color: white;
    border: 3px solid #880e4f; /* Darker red-brown border */
    border-radius: 25px;
    padding: 30px 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-image-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid #ad1457;
    background-color: #fde8f0; /* Light pink background for circle */
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card p {
    font-size: 1.3em;
    color: #333;
    font-weight: 500;
}

#carousel-screen .instruction {
    margin-top: 20px;
    font-size: 1em;
    color: #777;
}

.dots-container {
    margin-top: 15px;
    display: flex;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #880e4f;
}

/* Heart Screen */
.big-heart {
    font-size: 150px;
    color: #ff4081;
    animation: heartBeat 1s infinite, glow 2s infinite alternate;
}

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

@keyframes glow {
    from { text-shadow: 0 0 10px #ff4081, 0 0 20px #ff4081; }
    to { text-shadow: 0 0 20px #ff4081, 0 0 40px #ff4081, 0 0 60px #ff80ab; }
}

#heart-screen p {
    margin-top: 20px;
    font-size: 1.5em;
    color: #555;
}

/* Final Message Screen */
#final-message-screen .card-image-container {
    margin-bottom: 30px;
}

.message-content h2 {
    font-family: 'Dancing Script', cursive; /* A more romantic font */
    font-size: 2.2em;
    color: #d81b60;
    margin-bottom: 15px;
}

.message-content p {
    font-size: 1.1em;
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Typing effect cursor */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background-color: #333;
    animation: blink 0.7s infinite;
    margin-left: 3px;
    position: relative;
    bottom: -2px;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Floating hearts animation */
.floating-heart {
    position: absolute;
    bottom: -50px;
    font-size: 20px;
    color: #ff80ab;
    animation: floatUp 5s linear forwards;
    pointer-events: none;
}

@keyframes floatUp {
    from {
        bottom: -50px;
        opacity: 1;
        transform: translateX(0);
    }
    to {
        bottom: 100vh;
        opacity: 0;
        transform: translateX(var(--drift));
    }
}

/* Footer Style */
.main-footer {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: #555;
    font-size: 0.9em;
    font-style: italic;
    z-index: 100;
}

/* Small optional footer tweak (merged from inline style) */
.main-footer {
    font-size: 10px;
    text-align: center;
    color: #555;
    padding: 10px;
}
