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

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

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
}

.image-container {
    position: relative;
    width: 650px;
    height: 650px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-image {
    width: 650px;
    height: 650px;
    object-fit: contain;
    cursor: grab;
    transition: transform 0.1s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.main-image:active {
    cursor: grabbing;
}

.hidden-image {
    position: absolute;
    width: 650px;
    height: 650px;
    object-fit: contain;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 10;
    pointer-events: none;
}

.hidden-image.show {
    bottom: 0;
    opacity: 1;
}

.main-image.hide {
    opacity: 0;
    transform: scale(0.8);
}

/* 드래그 중일 때의 스타일 */
.dragging {
    transform: scale(1.1);
    z-index: 5;
}

/* 토끼 내려가는 애니메이션 */
@keyframes tokkiDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100px);
        opacity: 0;
    }
}

/* 고구마 올라오는 애니메이션 */
@keyframes gogumaRise {
    from {
        bottom: -100px;
        opacity: 0;
        transform: translateX(-50%) scale(0.5);
    }
    to {
        bottom: 0;
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

.tokki-down {
    animation: tokkiDown 0.6s ease-out forwards;
}

.goguma-rise {
    animation: gogumaRise 0.6s ease-out forwards;
    pointer-events: auto;
}

/* 텍스트 메시지 스타일 */
.text-message {
    position: fixed;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    color: black;
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 0;
    transition: none;
    z-index: -1;
    font-weight: 500;
}

.text-message.show {
    bottom: 50px;
    opacity: 1;
}

.text-message.rise-up {
    animation: textRiseUp 6s linear forwards;
}

@keyframes textRiseUp {
    0% {
        bottom: 50px;
        opacity: 1;
    }
    100% {
        bottom: 100vh;
        opacity: 1;
    }
}
