﻿html, body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(-45deg, #fdeef4, #f9d5e5, #f7c7d9, #f9dbe7);
    background-size: 400% 400%;
    animation: gradientBG 20s ease infinite;
    overflow-x: hidden;
    height: 100vh;
    position: relative;
    color: #4a4a4a;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Buton */
.birthday-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #f48fb1;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(244, 143, 177, 0.6);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

    .birthday-button:hover {
        background-color: #ec407a;
    }

.birthday1-button {
    position: fixed;
    top: 70px;
    right: 20px;
    background-color: #f48fb1;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(244, 143, 177, 0.6);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.birthday1-button:hover {
    background-color: #ec407a;
}


/* Container */
.container {
    max-width: 900px;
    margin: 100px auto;
    padding: 20px;
    background-color: rgba(255,255,255,0.8);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

/* Fotoğraf galerisi div */
.photo-gallery {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Resimler orantılı, aynı yükseklik */
.gallery-image {
    height: 150px;
    width: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* Cake resmi */
.cake-image {
    width: 100%;
    height: auto;
    border-radius: 0 0 30px 30px;
}

/* Kalpler arka plan container */
#hearts-container {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
}

/* Kalp stili */
.heart {
    position: absolute;
    width: 20px;
    height: 20px;
    transform: rotate(-45deg);
    opacity: 0.7;
    animation: fall linear forwards;
    background-color: var(--heart-color, red);
}

    .heart::before,
    .heart::after {
        content: "";
        position: absolute;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background-color: var(--heart-color, red);
    }

    /* Pseudo element pozisyonları */
    .heart::before {
        top: -10px;
        left: 0;
    }

    .heart::after {
        top: 0;
        left: 10px;
    }

/* Kalpler aşağıya salınım ve düşme animasyonu */
@keyframes fall {
    0% {
        transform: translateX(0) translateY(-30px) rotate(-45deg);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    100% {
        transform: translateX(50px) translateY(110vh) rotate(-45deg);
        opacity: 0;
    }
}

/* Modal */
#modal-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Cake container */
#cake-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    width: 400px;
    max-width: 90vw;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

/* Mum */
#candle {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 120px;
    background: #fffacd;
    border-radius: 6px;
    box-shadow: 0 0 8px #fffacd;
    z-index: 10;
}

#flame {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    background: radial-gradient(circle at center, #ffae00 20%, transparent 80%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flicker 1s infinite alternate;
    filter: drop-shadow(0 0 6px orange);
    transition: opacity 1s ease-out;
    z-index: 11;
}

@keyframes flicker {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-48%) scale(1.05);
        opacity: 0.8;
    }
}

/* Konfeti canvas */
#confetti-canvas {
    position: fixed;
    pointer-events: none;
    top: 0;
    left: 0;
    width: 100vw;
    height: 300px;
    z-index: 10000;
    display: none;
}

/* Yıldızlar canvas */
#stars-canvas {
    position: fixed;
    pointer-events: none;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10001;
    display: block;
    opacity: 0.3;
    transition: opacity 1s ease;
}
