body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#info {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 5px;
    z-index: 2;
    transition: opacity 0.5s;
}

#info h1 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

#info p {
    margin: 0;
    font-size: 16px;
}

/* 5초 후 정보창 숨기기 */
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.fade-out {
    animation: fadeOut 2s forwards;
    animation-delay: 5s;
}

/* 화면 아래 가운데 미술관 이름 표시 */
#museum-title {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 18px;
    z-index: 100;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
    pointer-events: none; /* 마우스 이벤트가 통과하도록 설정 */
}

/* 화면 아래 가운데 미술관 이름 표시 */
#museum-body {
    color: white;
    font-size: 11px;
    font-weight: normal;
}

/* 배경음악 재생 안내 메시지 */
.music-instruction {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    text-align: center;
    z-index: 100;
    pointer-events: none;
    animation: pulse 2s infinite;
}

/* 바탕소리 후광효과 */
@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* 작품 팝업창 스타일 */
.artwork-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    transition: background-color 1.2s ease;
}

.artwork-popup.show {
    display: flex;
    background-color: rgba(0, 0, 0, 0.7);
}

.popup-content {
    background-color: rgba(20, 20, 30, 0.9);
    color: #f0f0f0;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(50px);
    opacity: 0;
    transition: transform 1s ease, opacity 1s ease;
    backdrop-filter: blur(10px);
}

.show .popup-content {
    transform: translateY(0);
    opacity: 1;
}

.close-popup {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-popup:hover {
    color: white;
}

#popup-title {
    margin-top: 10px;
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 24px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

#popup-description {
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 16px;
}

#popup-technique {
    font-style: italic;
    color: #cccccc;
    font-size: 14px;
}

/* 십자선 스타일 */
#crosshair {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    z-index: 100;
    pointer-events: none; /* 클릭 이벤트가 십자선을 통과하도록 설정 */
    display: none; /* 처음에는 숨김 상태 */
}

.crosshair-vertical {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 20px;
    background-color: white;
    transform: translateX(-50%);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
}

.crosshair-horizontal {
    position: absolute;
    top: 50%;
    left: 0;
    width: 20px;
    height: 2px;
    background-color: white;
    transform: translateY(-50%);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
}