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

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #f8e7e7 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Kaydırmayı kesin olarak engelleme */
html.no-scroll, 
body.no-scroll {
    overflow: hidden !important;
    height: 100% !important;
    position: fixed !important;
    width: 100% !important;
}

/* Sadece son sayfa için kaydırmayı etkinleştir */
body.allow-scroll {
    overflow-y: auto !important;
    position: relative !important;
    align-items: flex-start;
    padding: 50px 0;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1000px;
    padding: 20px;
    z-index: 10;
    position: relative;
}

.card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

h1 {
    font-family: 'Dancing Script', cursive;
    color: #e75480;
    font-size: 3rem;
    margin-bottom: 20px;
}

.message {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    font-weight: 300;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 117, 140, 0.4);
    margin: 0 10px;
}

.btn-secondary {
    background: linear-gradient(135deg, #a8c0ff 0%, #8e9ac2 100%);
    box-shadow: 0 5px 15px rgba(168, 192, 255, 0.4);
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 117, 140, 0.6);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(168, 192, 255, 0.6);
}

/* Kalp animasyonları */
.hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 5;
}

.heart {
    position: absolute;
    width: 30px;
    height: 30px;
    background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23ff7eb3' d='M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z'%3E%3C/path%3E%3C/svg%3E") no-repeat;
    opacity: 0.6;
    animation: heartFloat 15s linear infinite;
    top: -30px;
}

.heart:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.heart:nth-child(2) {
    left: 30%;
    animation-delay: 3s;
    animation-duration: 18s;
}

.heart:nth-child(3) {
    left: 50%;
    animation-delay: 6s;
    animation-duration: 12s;
}

.heart:nth-child(4) {
    left: 70%;
    animation-delay: 9s;
    animation-duration: 16s;
}

.heart:nth-child(5) {
    left: 90%;
    animation-delay: 12s;
    animation-duration: 14s;
}

@keyframes heartFloat {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(25vh) rotate(45deg) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translateY(50vh) rotate(90deg) scale(1);
        opacity: 0.6;
    }
    75% {
        transform: translateY(75vh) rotate(135deg) scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(180deg) scale(1);
        opacity: 0;
    }
}

/* Fotoğraf çerçevesi stili */
.photo-placeholder {
    margin: 25px 0;
    text-align: center;
}

.photo-frame {
    width: 250px;
    height: 200px;
    border: 2px dashed #e75480;
    border-radius: 10px;
    margin: 15px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(231, 84, 128, 0.05);
    transition: all 0.3s ease;
}

.photo-frame:hover {
    background-color: rgba(231, 84, 128, 0.1);
    transform: scale(1.02);
}

.photo-icon {
    opacity: 0.7;
}

.special {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: #e75480;
    font-weight: 700;
    margin: 30px 0;
}

/* Resim galerisi stili */
.image-gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.3);
}

.gallery-row {
    position: absolute;
    display: flex;
    height: calc(100% / 3);
    width: max-content;
}

.row1 {
    top: 0;
    animation: slideRight 120s linear infinite;
}

.row2 {
    top: calc(100% / 3);
    animation: slideLeft 100s linear infinite;
}

.row3 {
    top: calc(100% * 2/3);
    animation: slideRight 140s linear infinite;
}

.gallery-image {
    height: 100%;
    width: 20vw; /* Her satırda 5 resim görünecek şekilde */
    background-size: cover;
    background-position: center;
    margin: 0 5px;
    border-radius: 10px;
    opacity: 0.7;
    transition: all 0.3s ease;
    filter: brightness(0.7) blur(1px);
}

/* Mobil cihazlar için resim boyutlarını ayarlama */
@media (max-width: 768px) {
    .gallery-row {
        height: 30vh; /* Yüksekliği sabit değer olarak ayarla */
    }
    
    .row1 {
        top: 0;
    }
    
    .row2 {
        top: 31vh; /* Üstteki satırın hemen altında */
    }
    
    .row3 {
        top: 62vh; /* İkinci satırın hemen altında */
    }
    
    .gallery-image {
        width: 45vw; /* Her satırda 2 resim görünecek şekilde */
        height: 28vh; /* Yüksekliği biraz azaltalım ki tüm satırlar sığsın */
        margin: 0 5px;
        filter: brightness(0.8) blur(0px); /* Daha net görünüm */
    }
}

.gallery-image:hover {
    opacity: 1;
    filter: brightness(1) blur(0);
    transform: scale(1.05);
    z-index: 1;
}

@keyframes slideRight {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(calc(-100% + 100vw));
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(calc(-100% + 100vw));
    }
    100% {
        transform: translateX(0%);
    }
}

/* Sayfadaki diğer öğelerin z-index değerlerini artırıyoruz */
.container {
    position: relative;
    z-index: 10;
}

.hearts {
    z-index: 5;
}

/* Eski slayt gösterisi stilini kaldırıyoruz */
.slideshow-container,
.slideshow-image {
    display: none;
}

/* Müzik kontrol butonu stilleri */
.music-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.music-controls:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.9);
}

.music-icon {
    width: 24px;
    height: 24px;
    display: block;
}

/* Müzik iframe'i gizleme */
.music-frame {
    position: absolute;
    width: 0;
    height: 0;
    border: 0;
    visibility: hidden;
}

/* Ördek animasyonu */
.duck {
    position: absolute;
    width: 50px;
    height: 50px;
    background-image: url('resimler/duck.svg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
    z-index: 1;
    animation: float 15s linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(-100px) rotate(10deg);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) translateX(calc(100vw + 100px)) rotate(-10deg);
        opacity: 0.7;
    }
}

.duck:nth-child(1) {
    top: 10%;
    animation-duration: 15s;
}

.duck:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 17s;
    top: 20%;
}

.duck:nth-child(3) {
    animation-delay: -6s;
    animation-duration: 20s;
    top: 50%;
}

.duck:nth-child(4) {
    animation-delay: -9s;
    animation-duration: 22s;
    top: 70%;
}

.duck:nth-child(5) {
    animation-delay: -12s;
    animation-duration: 18s;
    top: 30%;
}

/* Mobil cihazlar için genel düzenlemeler */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 10px;
    }
    
    .card {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .message {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 20px;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .special {
        font-size: 1.3rem;
    }
    
    .music-controls {
        bottom: 15px;
        right: 15px;
    }
}

/* Çok küçük ekranlar için ek düzenlemeler */
@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 15px 10px;
    }
    
    .message {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 8px 12px;
        min-width: 80px;
    }
}
