/* Balloon Styles */
.balloon {
    position: fixed;
    width: 60px;
    height: 75px;
    background: #ff69b4;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    z-index: 999;
    cursor: pointer;
    box-shadow: inset -10px -10px 15px rgba(0,0,0,0.1), 0 10px 15px rgba(0,0,0,0.1);
    animation: float 6s ease-in-out infinite;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.balloon::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 28px;
    width: 2px;
    height: 50px;
    background: rgba(0,0,0,0.2);
}

.balloon:hover {
    transform: scale(1.1);
}

.balloon.popped {
    animation: pop 0.3s forwards;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

@keyframes pop {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(0); opacity: 0; pointer-events: none; }
}

/* Polaroid Modal Styles */
.polaroid-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.polaroid-modal.show {
    display: flex;
    opacity: 1;
}

.polaroid-card {
    background: #fff;
    padding: 15px 15px 60px 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transform: rotate(-3deg) scale(0.5);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 90%;
    width: 320px;
}

.polaroid-modal.show .polaroid-card {
    transform: rotate(2deg) scale(1);
}

.polaroid-img-container {
    width: 100%;
    height: 280px;
    background: #eee;
    overflow: hidden;
    border: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.polaroid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.polaroid-placeholder {
    color: #999;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
}

.polaroid-caption {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: 'Brush Script MT', cursive, sans-serif;
    font-size: 24px;
    color: #333;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}
