/* ===================================
   공통 스타일 - Common Styles
   ================================== */

/* 기본 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #000;
    overflow: hidden;
    /* 동적 뷰포트 높이 사용 */
    height: calc(var(--vh, 1vh) * 100);
    min-height: calc(var(--vh, 1vh) * 100);
    width: 100vw;
}

/* 카메라 컨테이너 */
.camera-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Canvas 전체 화면 설정 */
#deepar-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    /* 동적 뷰포트 높이 사용 */
    height: calc(var(--vh, 1vh) * 100);
    min-height: calc(var(--vh, 1vh) * 100);
    object-fit: cover;
    z-index: 1; /* 배경에 위치하도록 설정 */
    background: #000;
}

/* 로딩 스타일 */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    z-index: 10;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
}

.loading.hidden {
    display: none;
}

/* 알림 메시지 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    max-width: 300px;
}

/* 디버그 패널 */
.debug-panel {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    border-radius: 10px;
    font-size: 12px;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    max-width: 250px;
}

.debug-panel.hidden {
    display: none;
}

/* 공통 버튼 스타일 */
.btn {
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    background: #333;
    color: white;
    border: 1px solid #666;
}

/* .btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

.btn:active {
    transform: scale(0.95);
} */

/* 숨김 클래스 */
.hidden {
    display: none !important;
} 