* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    word-break: keep-all;
}

body {
    font-family: "GMarketSans";
    font-weight: 300;
    line-height: 1.6;
    color: #333;
    background: none;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; 
}

@font-face {
    font-family: 'GMarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansLight.woff') format('woff');
    font-weight: 300;
    font-display: swap;
}
@font-face {
    font-family: 'GMarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'GMarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

/* --- Background Layers --- */
#bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: background-image 0.5s ease-in-out; 
}

#bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(165, 211, 238, 0.4) 0%, 
        rgba(130, 202, 243, 0.8) 100%   
    );
    opacity: 1; 
    z-index: 2; 
    pointer-events: none;
    backdrop-filter: blur(5px);
   mask: linear-gradient(to bottom, black 0%, transparent 15%, transparent 70%, black 100%);
    -webkit-mask: linear-gradient(to bottom, black 0%, transparent 15%, transparent 70%, black 100%);
}

/* --- Centering Layout --- */
.centering-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 20px; 
    position: relative;
    z-index: 10;
}

/* Progress Bar */
.progress-area {
    width: 100%; 
    height: 10px;
    background-color: rgba(0,0,0,0.1);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    flex-shrink: 0;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4169e1 0%, #cff4fe 99%);
    width: 0%;
    transition: width 0.3s ease-out;
    border-radius: 3px;
}

/* Main Row */
.main-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.left-column {
    display: flex;
    flex-direction: column;
    width: auto;
    position: relative;
    align-items: flex-start;
}
.content-row {
    display: flex;
    gap: 20px;
    align-items: flex-start; /* 위쪽 라인 맞춤 */
}
/* Card Window */
.card-window {
    width: 800px;
    height: 50vh; 
    min-height: 400px;
    background-color: transparent;

    border-radius: 8px;
    border: none;
    box-shadow: 0 0 25px rgba(127, 165, 255, 0.4);
    overflow: hidden;
    position: relative; 
}

/* 개별 섹션 - Fade 효과 */
.content-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    background-color: transparent; 
    z-index: 1;
}

.content-section.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

/* ▼▼▼ Split Layout (좌우 분할) ▼▼▼ */
.split-container {
    display: flex;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2); 
    backdrop-filter: blur(10px);
}

/* 왼쪽: 제목 영역 */
.card-left {
    width: 28%;
    background-color: rgba(240, 242, 245, 0.4);
    backdrop-filter: blur(5px);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-right: 1px solid #e1e1e1;
    flex-shrink: 0;
    position: relative; 
}

.card-left h1 {
    font-size: 2em;
    font-weight: 500;
    color: #4169e1;
    line-height: 1.3;
    margin: 0;
}

/* ▼▼▼ 수정: bg-location-name을 화면 고정 위치로 변경 (Fixed) ▼▼▼ */
.bg-location-name {
    position: absolute; 
    top: -60px;
    left: -60px;
    z-index: 101; /* 항상 최상단에 보이게 */
    
    font-family: "GMarketSans";
    font-size: 0.95em;
    color: #888;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.6);
    padding: 4px 30px;
    border-radius: 20px;
}

/* 오른쪽: 본문 영역 */
.card-right {
    width: 78%;
    padding: 40px 50px;
    overflow-y: auto;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px); 
    outline: none; 
}

/* --- Content Styles --- */
.main-text {
    font-size: 1rem;
    line-height: 1.55;
    color: #333;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 0.5px solid #4169e1;
    margin-bottom: 30px;
    font-weight: 500;
}
.small-text-in-box {
    font-size: 0.8em; 
    color: #666;
    display: block; 
    margin-top: 10px;
}

h3, h2{font-weight: 500;}

p {font-size: 0.95em;}

.intro-text {
    font-size: 1em;
    margin-bottom: 10px;
    font-weight: 500;
}

.sub-section h3 {
    color: #333;
    font-size: 1em;
}

.value-item {
    margin-bottom: 25px;
    padding: 20px;
    background-color: rgba(248, 249, 250, 0.9);
    border: 0.5px solid #4169e1;
    border-left: 2px solid #4169e1;;
    border-radius: 10px;
}
.value-item h3 { margin: 0 0 10px 0; font-size: 1.1em; color: #333; }

.chart-section { margin-bottom: 40px; }
.chart-section h2 { font-size: 1.2em; color: #555; margin-bottom: 15px; }
.chart-container { position: relative; height: 200px; width: 100%; }

.management-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.mgmt-item {
    padding: 15px;
    border: 0.5px solid #4169e1;
    border-radius: 8px;
    background-color: rgba(255, 255, 255,0.9)

}
.mgmt-title { font-weight: bold; margin-bottom: 5px; font-size: 1.1em; }
.type-absolute .mgmt-title { color: #e74c3c; }
.type-semi .mgmt-title { color: #f39c12; }
.type-usable .mgmt-title { color: #27ae60; }
.type-dev .mgmt-title { color: #3498db; }

/* Side Nav */
.side-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 150px;
}
.nav-item {
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s;
}

.btn {
    font-size: 1.5rem;
    padding: 12px 15px;
    min-height: 65px;
    width: 400px;
    border-radius: 8px;
    border: 1.5px solid #fff;
    cursor: pointer;
    font-weight: 500;
    background-color: rgba(202, 238, 255, 0.5);
    -webkit-backdrop-filter: blur(10px); 
    backdrop-filter: blur(10px);
    box-shadow: inset 0px 0px 15px #fff;
    transition: all 0.1s;
    overflow: hidden;
    text-align: center;    
    text-decoration: none; 
    color: #fff;

    display: block;
    margin: 45px auto 0 auto;
    animation: pulse-white 2s infinite;
}

.btn:hover {
    background-color: #fff;
    color: #4169e1;
    box-shadow: 0 6px 20px rgba(83, 128, 233, 0.6);
    animation: none;
}

@keyframes pulse-white {
    0% {
        box-shadow: 0 0 0 0 rgb(255, 255, 255);
    }
    70% {
        box-shadow: 0 0 0 18px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}


@keyframes push {
    50% {       transform: scale(.8);   }
    100% {      transform: scale(1);}
}

.push {
    display: inline-block;    vertical-align: middle;
}

.push:hover {
    animation-name: push;
    animation-duration: 0.5s;
    animation-timing-function: linear;
    animation-iteration-count: 1;
}

.round-corners {
    display: inline-block;
    transition-duration: 0.5s;
    transition-property: border-radius;
}

.round-corners:hover {
    border-radius: 1.5em;
}

.nav-item:hover { background-color: white; transform: translateX(5px); }
.nav-item.active { background-color: white; color: #71a8e3; box-shadow: inset 0px 0px 10px #4789cf;}


@media (max-width: 768px) {
    .split-container { flex-direction: column; }
    .card-left { width: 100%; height: auto; border-right: none; border-bottom: 1px solid #eee; padding: 20px; }
    .card-right { width: 100%; }
    .main-row { flex-direction: column; }
    .card-window { width: 100%; height: 50vh; }
    .side-nav { flex-direction: row; width: 100%; overflow-x: auto; }
}



/* --- 영해기점 카드 내부 스타일 --- */
.tp-container {
    text-align: left;
    width: 100%;
    padding: 10px;
}

.tp-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: #4169e1;
    margin-bottom: 5px;
}

.tp-desc {
    font-size: 1rem;
    line-height: 1.55;
    color: #333;
    word-break: keep-all;
}

.tp-desc strong {
    font-weight: 500;
    background: linear-gradient(to top, #e3eeff 50%, transparent 50%);
}

.tp-types {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #555;
    background-color: #f4f4f4;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
}

.tp-types .highlight {
    font-weight: 700;
    color: #222;
}

/* 이미지 레이아웃 */
.tp-images {
    display: flex;
    flex-direction: row;     
    justify-content: center; 
    align-items: center;     
    width: 100%;             
    gap: 20px;               
    margin-top: 30px;        
    flex-wrap: wrap;         
}

.img-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.img-box img {
    width: 150px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.img-box img:hover {
    transform: translateY(-5px);
}

.caption {
    font-size: 0.9em;
    font-weight: 500;
    color: #555;
}

/* [추가] 스크롤 안내 팝업 스타일 */
.scroll-popup {

    position: fixed;
    top: 100px;
    left: 50%;
    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
    width: 300px;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 10px 40px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 2000;
    transition: opacity 0.3s ease;
    animation: bounce 2s infinite;

    margin: 0;
}

.scroll-popup p {
    margin: 0;
    font-weight: 500;
    color: #555;
    font-size: 0.95em;
}

/* 둥둥 떠다니는 애니메이션 */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-5px);}
    60% {transform: translateX(-50%) translateY(-3px);}
}

/* --- BGM 버튼 스타일 --- */
.bgm-btn {
    position: fixed;
    top: 30px;
    right: 230px; 
    z-index: 2000;
    width: 40px;
    height: 40px;
    border-radius: 100px; 
    border: none;
    background-color: rgb(240, 240, 240, 0.8); 
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bgm-btn img {
    width: 16px;
    height: 16px;
    display: block;
}

.bgm-btn:hover {
    background-color: #b5daff;
    box-shadow: 0 2px 8px rgb(143, 194, 244, 0.8);
}

.main-page-title {
    width: 365px;
    top: 0px;
    left: 0px;
    z-index: 100;
    text-align: center;
    margin: 0 0 10px 0;

    font-family: "GMarketSans";
    color: #ffffff;
    font-size: 2.4rem;
    font-weight: 300;
    background-color: rgb(255, 255, 255, .0);
    backdrop-filter: blur(6px);
    padding: 10px 20px;
    pointer-events: none;
    max-width: 100%; 
    box-sizing: border-box;
}

/* 화면이 좁아져서 800px 고정이 깨질 때 대응 */
@media (max-width: 850px) {
    .scroll-popup {
        left: 50%;
        margin-left: 0;
        transform: translateX(-50%); /* 그냥 화면 중앙 정렬 */
    }
}

.scroll-popup p {
    margin: 0;
    font-weight: 500;
    color: #555;
    font-size: 0.95em;
}
