
 body { text-align: center; margin: 0; overflow: hidden; }

.game-container {
    position: relative;
    width: 240px;
    height: 260px;
    border: 0px solid black;
    margin: auto;
    overflow: hidden;
    image-rendering: pixelated;
    z-index: 3;
}
.game-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block; /* 블록 요소로 설정 */
    background-image: url('http://jubaekro.dothome.co.kr/game/background.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center; /* 중앙 정렬 */
    z-index: 1; /* 가장 뒤로 배치 */
}
 .character, .npc {
            position: absolute;
            width: 90px;
            height: 90px;
            background-size: cover;
	    z-index: 5; 
	    image-rendering: pixelated;
        }
.window-image {
    position: absolute;
    width: 168px;
    height: 78px;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -1; 
    image-rendering: pixelated;
}
.name-image {
    position: absolute;
    width: 134px;
    height: 36px;
    display: block; /* 블록 요소로 설정 */
    background-size: cover;
    background-repeat: no-repeat; 	
    z-index: 10;
    image-rendering: pixelated;
}
 .moving-image {
            position: absolute;
            width: 40px;
            height: 40px;
            background-size: cover;
            transition: transform 2s linear; /* 부드러운 이동 */
            left: 190px;
            top: 160px;
	    z-index: 4; 
            image-rendering: pixelated;
}
 .npc {
            left: 120px;
            top: 130px;
            background-image: url('http://jubaekro.dothome.co.kr/game/npc.gif'); /* 기본 NPC 이미지 */
            z-index: 5;
	 image-rendering: pixelated;
        }
 .heart-effect {
            position: absolute;
            width: 90px;
            height: 90px;
            background-image: url('http://jubaekro.dothome.co.kr/game/heart.png'); /* 하트 이펙트 이미지 */
            background-size: cover;
            display: none;
            opacity: 1;
            transform: translateY(0);
            transition: transform 0.5s ease-out, opacity 0.5s ease-out; /* 🔹 3초 동안 더 부드럽게 이동 */
	 image-rendering: pixelated;
            z-index: 10;
        }
.floating-image {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(2);
    width: 50px;
    height: 40px;
    max-width: 100%;  /* 컨테이너 크기 대비 최대 100% */
    max-height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 5;
    image-rendering: pixelated;
	}
 .message-box {
            position: absolute;
            top: 35px;
            left: 50%;
            transform: translateX(-50%);
            background: white;
            color: black;
            padding: 10px;
            border-radius: 5px;
	    border: 1px solid black;
            font-size: 12px;
            display: none;
            z-index: 15;
        }