/* 기본 스타일 */
body {
    font-family: 'Noto Sans KR', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #fff;
    background-color: #000;
    overflow: hidden; /* 스크롤 방지 */
}

h1, h2, p {
    margin: 0;
    line-height: 1.5;
}

.section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    text-align: center;
    box-sizing: border-box;
    padding: 0 5vw; /* 좌우 여백 */
}

/* 메인 배너 */
.main-banner {
    position: relative;
    background: url('https://raocnzzvbefnergydvxr.supabase.co/storage/v1/object/public/memories-images/1733359356303_20230812_163839.jpg') 
                no-repeat center center/cover;
}

.main-banner h1 {
    font-size: 4vw;
    white-space: nowrap;
}

.main-banner p {
    font-size: 2.5vw;
}

.scroll-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 30px solid #fff;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* 공통 텍스트 스타일 */
.section p {
    font-size: 2vw;
    white-space: nowrap; /* 줄바꿈 방지 */
}

/* 타임라인 섹션 */
.timeline-section {
    background-color: #111;
}

.timeline-section strong {
    color: #ff6f61;
    font-size: 2.5vw;
}

.timeline-section .timeline-image {
    margin-top: 2vh;
    max-height: 50vh;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

/* 갤러리 섹션 */
.gallery-section {
    background-color: #333;
}

.scroll-button {
    display: inline-block;
    margin-top: 2vh;
    padding: 15px 30px;
    font-size: 1.5vw;
    background-color: #ff6f61;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.scroll-button:hover {
    background-color: #e05c50;
}

/* 편지 섹션 스타일 */
.thank-you-section {
    background-color: #000;
    color: #fff;
    padding: 5vh 5vw;
    box-sizing: border-box;
}

.letter-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.8vw;
    line-height: 1.6;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.letter-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.letter-content p {
    margin-bottom: 1.5em;
    text-align: center;
    white-space: normal; /* 줄바꿈 가능 */
}

/* 랜덤 이미지 스타일 */
.random-images {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.random-images img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out;
}

.random-images img:hover {
    transform: scale(1.05);
}

/* 반응형 스타일 */
@media (max-width: 1024px) {
    .letter-content {
        font-size: 1.2rem;
    }

    .section p {
        font-size: 4vw;
    }
}

@media (max-width: 768px) {
    .main-banner h1 {
        font-size: 6vw;
    }

    .main-banner p {
        font-size: 4vw;
    }

    .timeline-section strong {
        font-size: 4.5vw;
    }

    .scroll-button {
        font-size: 4vw;
        padding: 10px 20px;
    }

    .letter-content {
        font-size: 1rem;
        line-height: 1.6;
    }

    .random-images img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .letter-content {
        font-size: 0.9rem;
    }

    .random-images img {
        width: 80px;
        height: 80px;
    }
}
