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

body {
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    height: 100vh;
}

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* 배경 이미지 */
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* 편지 봉투 */
.envelope {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.envelope:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.envelope img {
    max-width: 300px;
    max-height: 300px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* 봉투 애니메이션 제거됨 */

/* 편지지 */
.letter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.letter:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.letter img {
    max-width: 450px;
    max-height: 600px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

/* 편지지 페이드인 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.letter.show {
    animation: fadeIn 0.5s ease-out;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .envelope img {
        max-width: 250px;
        max-height: 250px;
    }
    
    .letter img {
        max-width: 350px;
        max-height: 500px;
    }
}

@media (max-width: 480px) {
    .envelope img {
        max-width: 200px;
        max-height: 200px;
    }
    
    .letter img {
        max-width: 280px;
        max-height: 400px;
    }
}
