:root {
    --main-font: 'IBM Plex Mono', monospace;
}

body {
    background-color: #333; /* 초기 배경색 */
    margin: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
    font-family: var(--main-font);
    color: white;
    
    user-select: none;
    -webkit-user-select: none;
}

img {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* 배경 캔버스 */
#trail-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1; 
    pointer-events: none; 
}

/* 상단 중앙 메인 로고 */
#main-logo {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px; 
    height: auto;
    z-index: 1000;
    user-select: none;
    pointer-events: auto; 
    cursor: pointer;
}

/* 하단 중앙 메뉴 컨테이너 */
#bottom-nav {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 60px;
    z-index: 1000;
    user-select: none;
    font-size: 16px;
}

/* [Info] 섹션 */
#info-wrapper {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Info 토글 메뉴 */
#info-menu {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    gap: 10px;
    white-space: nowrap;
    text-align: center;
    padding-bottom: 10px;
    text-shadow: 0 0 5px rgba(0,0,0,0.8);
}

.menu-btn {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    text-transform: lowercase;
}
.menu-btn:hover {
    opacity: 1;
    text-decoration: none; 
}

/* [Color] 섹션 */
#color-wrapper {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 숨겨진 인풋 */
#color-input {
    position: absolute;
    opacity: 0;
    width: 100%; height: 100%;
    top: 0; left: 0;
    cursor: pointer;
}

/* 움직이는 로고 아이템 공통 */
.logo-item {
    position: absolute;
    background-color: transparent;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: grab;
    z-index: 10;
    pointer-events: auto;
    padding: 0;
    border: 0;
    appearance: none;
    -webkit-appearance: none;
    color: inherit;
}
.logo-item:focus-visible {
    outline: 2px solid white;
    outline-offset: 4px;
}
.logo-item:active {
    cursor: grabbing;
}

/* 오버레이 스타일 */
#project-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999; 
    background-color: rgba(0, 0, 0, 0.3); 
    backdrop-filter: blur(20px);          
    -webkit-backdrop-filter: blur(20px);
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#project-overlay.active {
    opacity: 1;
    visibility: visible;
}

#project-frame {
    width: 100%; height: 100%;
    border: none;
}
