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

body {
    background-color: white;
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 50px;
}

.container {
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
}

.main-text {
    font-size: 2.5rem;
    color: #333;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 30px;
}

.main-image {
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
    order: 2;
}

.food-image {
    max-width: 520px;
    height: auto;
    max-height: 400px;
    border-radius: 10px;
    order: 1;
}

/* 떠다니는 이미지들 */
.floating-images {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.floating-img {
    position: absolute;
    pointer-events: auto;
    cursor: pointer;
    transition: left 6s linear, top 6s linear;
    max-width: 140px;
    max-height: 140px;
    width: auto;
    height: auto;
    display: block;
}

.floating-img:hover {}

.special-img {}

/* (원본 크기 유지: 별도 떠다니는 CSS 애니메이션 제거) */

/* 오버레이 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.overlay.show {
    display: flex;
    animation: fadeInOverlay 0.5s ease-in-out;
}

.overlay-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.5);
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .main-text {
        font-size: 1.8rem;
        padding: 0 20px;
    }
    
    .food-image {
        max-height: 300px;
    }
    
    .floating-img {
        max-width: 110px;
        max-height: 110px;
    }

    .container {
        flex-direction: column;
        align-items: center;
    }

    .main-image {
        max-width: 80%;
        margin-bottom: 12px;
    }

    .food-image {
        max-width: 70%;
    }
}

@media (max-width: 480px) {
    .main-text {
        font-size: 1.4rem;
    }
    
    .food-image {
        max-height: 250px;
    }
    
    .floating-img {
        max-width: 90px;
        max-height: 90px;
    }
}
