/* 배경 */
body {
    height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(125deg,#c6ffdd,#fbd786,#f7797d);
    font-family: Arial, sans-serif; /* 나중에 Google Fonts 적용 가능 */
}

/* 제목 */
.div-home-1 {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
}

/* 케이크 GIF */
.div-home-3 img {
    width: 300px;
    height: 200px;
    display: block;
    margin: 20px auto 100px auto; /* 중앙 정렬 + 아래 공간 */
}

/* 메뉴 */
section {
    display: flex;
    justify-content: center;
    gap: 50px; /* 메뉴 사이 간격 */
}

.div-home-2 a {
    text-decoration: none;
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 15px;
    background-color: rgba(0,0,0,0.3); /* 반투명 버튼 느낌 */
    transition: 0.3s;
}

/* 마우스 올리면 색 변함 */
.div-home-2 a:hover {
    background-color: rgba(255,255,255,0.7);
    color: black;
}




.gift-container {
    display: flex;
    justify-content: center;
    gap: 50px; /* 상자 사이 간격 */
    margin-top: 50px;
}

.gift-box {
    width: 120px;
    height: 120px;
    background-color: #ff5e5e; /* 선물 상자 기본 색 */
    border-radius: 10px;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
}

/* 상자 띠(리본) */
.gift-box::before, .gift-box::after {
    content: '';
    position: absolute;
    background-color: #fff59d; /* 리본 색 */
}

/* 가로 리본 */
.gift-box::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 20px;
    transform: translateY(-50%);
}

/* 세로 리본 */
.gift-box::after {
    left: 50%;
    top: 0;
    width: 20px;
    height: 100%;
    transform: translateX(-50%);
}


.gift-box:hover {
    transform: scale(1.1); /* 마우스 올리면 살짝 커짐 */
}

/* 메시지를 편지 느낌으로 */
.gift-message {
    margin-top: 30px;
    font-size: 20px;
    text-align: center;
    min-height: 100px;
    color: #333;
    font-weight: bold;

    /* 편지 느낌 */
    background-color: #fff8dc;       /* 종이 색 */
    border: 2px solid #f4c542;      /* 테두리 */
    border-radius: 15px;             /* 둥근 모서리 */
    padding: 20px;                   /* 내부 여백 */
    box-shadow: 3px 3px 15px rgba(0,0,0,0.2); /* 입체감 */
    width: 250px;                    /* 적당한 편지 폭 */
    margin-left: auto;
    margin-right: auto;

    /* 편지 나타나는 효과 */
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s, transform 0.5s;
}

/* .open-message 클래스 추가 시 나타남 */
.gift-message.open-message {
    opacity: 1;
    transform: translateY(0);
}

.gift-box.open {
    transform: scale(1.2) rotateX(20deg); /* 상자 살짝 열림 */
    animation: shake 0.5s ease-in-out 0s 1; /* 클릭 시 0.5초 흔들림 */
}

@keyframes shake {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(-10deg); }
    30% { transform: rotate(8deg); }
    45% { transform: rotate(-6deg); }
    60% { transform: rotate(4deg); }
    75% { transform: rotate(-2deg); }
    100% { transform: rotate(0deg); }
}


body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #fce4ec;
    font-family: Arial, sans-serif;
    margin: 0;
}

h1 {
    margin-bottom: 20px;
    color: #ff4081;
    text-align: center;
}

/* 비디오 카메라 화면 */
.camera-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

video {
    width: 320px;
    height: 420px;
    border-radius: 20px;
    border: 5px solid #ff80ab;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

button {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    background-color: #ff4081;
    color: #fff;
    cursor: pointer;
}

button:hover {
    background-color: #ff80ab;
}

/* 사진 프레임 */
.frame-container {
    position: relative;
    width: 320px;
    height: 420px;
    border: 12px solid #ff80ab;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    background: linear-gradient(145deg, #ffe4ec, #ffc1e3);
    padding: 5px;
    margin-top: 20px;
}

.frame-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sticker {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 60px;
    height: 60px;
    background-image: url('sticker.png'); /* 꾸미기용 스티커 예시 */
    background-size: cover;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fce4ec;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

h1 {
    color: #ff4081;
    margin-bottom: 20px;
}

.frame-container {
    position: relative;
    width: 320px;
    height: 420px;
    border: 12px solid #ff80ab;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    background: linear-gradient(145deg, #ffe4ec, #ffc1e3);
    margin-bottom: 20px;
}

.frame-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sticker-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sticker {
    position: absolute;
    width: 60px;
    height: 60px;
    cursor: move;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

button, input {
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

button {
    background-color: #ff4081;
    color: white;
}

button:hover {
    background-color: #ff80ab;
}
