/* 全域樣式設定 */
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: radial-gradient(circle, #222222, #000000);
    font-family: Arial, sans-serif;
    color: #ffffff;
}

/* 3D 場景容器樣式 */
#container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 資訊區域樣式 */
#info {
    position: absolute;
    top: 10px;
    width: 100%;
    text-align: center;
    color: #ffffff;
    padding: 5px;
    font-family: 'Arial', sans-serif;
    text-shadow: 0 0 5px rgba(0, 162, 255, 0.8);
    z-index: 100;
    pointer-events: none; /* 讓滑鼠事件穿透到下面的 canvas */
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    max-width: 500px;
    margin: 0 auto;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* 資訊區域標題樣式 */
#info h1 {
    margin: 0;
    padding: 5px 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 資訊區域文字樣式 */
#info p {
    margin: 5px 0 0 0;
    padding: 0 10px 10px;
    font-size: 14px;
    opacity: 0.8;
}

/* 控制面板樣式 */
.dg.ac {
    z-index: 1000 !important;
}

/* 讓 GUI 控制面板更現代化 */
.dg.main .close-button {
    background-color: #333;
}

.dg.main .close-button:hover {
    background-color: #555;
}

/* 給控制面板添加玻璃效果 */
.dg.main {
    background: rgba(17, 17, 17, 0.8) !important;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
}

/* 自訂滾動條樣式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(80, 180, 255, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(80, 180, 255, 0.8);
}

/* 載入提示樣式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: white;
    font-size: 24px;
}

.loading-spinner {
    border: 6px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top: 6px solid #00a2ff;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 20px;
    font-family: 'Arial', sans-serif;
    letter-spacing: 2px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    #info h1 {
        font-size: 18px;
    }
    
    #info p {
        font-size: 12px;
    }
}