/* 메인 스타일 */
html, body {
    overflow-x: hidden; /* 가로 스크롤 방지 */
}

body {
    background-color: #f5f5f5;
    position: relative;
    overflow-x: hidden;
}
.intro_video{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color:#E9EEF2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.main-content {
    /* padding: 20px; */
    transition: margin-left 0.6s cubic-bezier(0.22, 1, 0.36, 1); /* 사이드바와 동일한 타이밍 */
}

/* 사이드바가 열렸을 때 메인 콘텐츠 이동 */
body.sidebar-open .main-content {
    margin-left: 960px;
}

/* 사이드바가 열려도 센터 버튼은 중앙 유지 */
body.sidebar-open .center-buttons-container {
    left: calc(50% - 480px); /* 960px / 2 = 480px */
}

/* 사이드바가 열렸을 때 body 스크롤 방지 (모바일) */
@media screen and (max-width: 768px) {
    body.sidebar-open {
        overflow: hidden;
    }
}

/* 공단소개 버튼 스타일 */
.intro-button {
    position: fixed;
    top: 32px;
    right: 32px;
    width: 156px;
    height: 59px;
    background-color: #007DC3;
    color: #ffffff;
    font-family: 'NanumSquareNeo', sans-serif;
    font-size: 24px;
    font-weight: 700;
    border: none;
    border-radius: 30px; /* 알약 모양 (높이 59px의 약 50%) */
    cursor: pointer;
    z-index: 900;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 125, 195, 0.3);
}

.intro-button:hover {
    background-color: #006bb0;
    box-shadow: 0 4px 12px rgba(0, 125, 195, 0.4);
    transform: translateY(-2px);
}

.intro-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 125, 195, 0.3);
}

/* 로고 스타일 */
.logo-link {
    position: fixed;
    top: 32px;
    left: 32px;
    height: 59px; /* 공단소개 버튼과 동일한 높이 */
    z-index: 900;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-image {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* 센터 버튼 컨테이너 */
.center-buttons-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 60px;
    z-index: 800;
}

/* 센터 버튼 */
.center-button {
    width: 280px;
    height: 120px;
    background-color: #ffffff;
    border: 3px solid #00a0df;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.center-button:hover {
    background-color: #00a0df;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 160, 223, 0.3);
}

.center-button:active {
    transform: translateY(-2px);
}

/* 센터 이름 - 한글 */
.center-name-ko {
    font-family: 'NanumSquareNeo', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #00a0df;
    transition: color 0.3s ease;
}

/* 센터 이름 - 영문 */
.center-name-en {
    font-family: 'NanumSquareNeo', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

/* 호버 시 텍스트 색상 변경 */
.center-button:hover .center-name-ko,
.center-button:hover .center-name-en {
    color: #ffffff;
}

/* 서남 섹션 클릭 가능 영역 */
.seonam-click-area {
    position: absolute;
    cursor: pointer;
    /* 개발용 시각적 표시 - 나중에 제거 */
    /* background-color: rgba(0, 123, 255, 0.2);
    border: 2px dashed rgba(0, 123, 255, 0.5); */
    transition: all 0.3s ease;
}

.seonam-click-area:hover {
    /* background-color: rgba(0, 123, 255, 0.3);
    border-color: rgba(0, 123, 255, 0.8); */
}
.seonam-click-area img{
    width:100%;
    height:100%;
    object-fit: contain;
}
.seonam-click-area .hover{
    position:absolute;
    top:0;
    left:0;
    opacity:0;
    transition: all 0.3s ease;
}

.seonam-click-area:hover .hover {
    opacity: 1;
}
/* 각 영역별 위치 및 크기 설정 */
#seonamArea1 { /* 축구장 */
    top: 2%;
    left: 55.5%;
    width: 6.5%;
    height: 10%;
}

#seonamArea2 { /* 물재생체험관 */
    top: 46%;
    left: 20.8%;
    width: 10%;
    height: 10%;
}

#seonamArea3 { /* 테니스장 */
    top: 71%;
    left: 41.8%;
    width: 8%;
    height: 10%;
}

#seonamArea4 { /* 탁구장 */
    top: 84%;
    left: 48%;
    width: 7%;
    height: 10%;
}

#seonamArea5 { /* 파크골프장 */
    top: 80%;
    left: 60%;
    width: 8.5%;
    height: 10%;
}

/* 탄천 섹션 클릭 가능 영역 */
.tancheon-click-area {
    position: absolute;
    cursor: pointer;
    z-index:2;
    /* 개발용 시각적 표시 - 나중에 제거 */
    /* background-color: rgba(0, 123, 255, 0.2);
    border: 2px dashed rgba(0, 123, 255, 0.5); */
    transition: all 0.3s ease;
}
.tancheon-click-area img{
    width:100%;
    height:100%;
    object-fit: contain;

}
.tancheon-gray-area img{
    width:100%;
    height:100%;
    object-fit:contain;
}
.tancheon-click-area .hover{
    position:absolute;
    top:0;
    left:0;
    opacity:0;
    transition: all 0.3s ease;
}

.tancheon-click-area:hover .hover {
    opacity: 1;
}

.tancheon-click-area:hover {
    /* background-color: rgba(0, 123, 255, 0.3);
    border-color: rgba(0, 123, 255, 0.8); */
}

/* 각 영역별 위치 및 크기 설정 */
#tancheonArea1 { /* 탄천센터 축구장 */
    top: 3%;
    left: 10%;
    width: 11%;
    height: 9%;
}

#tancheonArea2 { /* 탄천센터 테니스장 */
    top: 25%;
    left: 6%;
    width: 15.5%;
    height: 7%;
}

#tancheonArea3 { /* 마루공원 축구장 */
    top: 20%;
    left: 24%;
    width: 11.5%;
    height: 10%;
}

#tancheonArea4 { /* 마루공원 테니스장 */
    top: 30%;
    left: 30%;
    width: 15%;
    height: 8%;
}

#tancheonArea5 { /* 마루공원 농구장 */
    top: 52%;
    left: 12%;
    width: 14%;
    height: 7%;
}

#tancheonArea6 { /* 마루공원 풋살장 */
    top: 49%;
    left: 28%;
    width: 13.5%;
    height: 7%;
}

#tancheonArea7 { /* 에코파크 축구장 */
    top: 74%;
    left: 43.5%;
    width: 14%;
    height: 6.5%;
}

#tancheonArea8 { /* 에코파크 풋살장 */
    top: 69%;
    left: 62%;
    width: 14%;
    height: 7%;
}

#tancheonArea9 { /* 1단계 배드민턴장 */
    top: 79%;
    left: 62%;
    width: 15%;
    height: 7%;
}

#tancheonArea10 { /* 1단계 게이트볼장 */
    top: 83%;
    left: 54.5%;
    width: 12%;
    height: 10%;
}

.tancheon-gray-area{
    position: absolute;
    cursor: pointer;
    z-index:1;
    /* 개발용 시각적 표시 - 나중에 제거 */
    /* background-color: rgba(0, 123, 255, 0.2);
    border: 2px dashed rgba(0, 123, 255, 0.5); */
    transition: all 0.3s ease;
}

#tancheonGray1 {
    top: 32.5%;
    left: 20%;
    width: 9.75%;
    height: auto;
}

#tancheonGray2 {
    top: 40.5%;
    left: 29.5%;
    width: 7.5%;
    height: auto;
}

#tancheonGray3 {
    top: 66%;
    left: 40.5%;
    width: auto;
    height: 6.5%;
}

#tancheonGray4 {
    top: 59%;
    left: 54%;
    width: auto;
    height: 10%;
}

/* 서울물재생체험관 버튼 스타일 - PC 전용 */
.experience-button {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 215px;
    height: 43px;
    background-color: transparent;
    font-family: 'NanumSquareNeo', sans-serif;
    font-size: 24px;
    font-weight: 700;
    border: none;
    border-radius: 21.5px; /* 높이의 절반으로 알약 모양 */
    cursor: pointer;
    z-index: 900;
    transition: all 0.3s ease;
    overflow: hidden;
    isolation: isolate; /* 스태킹 컨텍스트 생성 */
}

/* 그라데이션 보더 효과 */
.experience-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1px;
    background: linear-gradient(90deg, #00A0DF 0%, #00B451 100%);
    border-radius: 21.5px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: exclude;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: 1;
}

/* 물결 컨테이너 */
.experience-button > div {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    border-radius: 21.5px;
    overflow: hidden;
    z-index: 0;
}

/* 버튼 텍스트 - 그라데이션 */
.experience-button span {
    position: relative;
    z-index: 2;
    background: linear-gradient(90deg, #00A0DF 0%, #00B451 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease 0.3s; /* 물결이 퍼진 후 색상 변경 */
}



.experience-button:hover span {
    background: #ffffff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 물결 효과를 div 내부로 이동 */
.experience-button > div::after {
    content: '';
    position: absolute;
    /* '울' 글자 위쪽 위치에서 시작 */
    top: -4px; /* 글자 위쪽 */
    left: 56px; /* '서울'에서 '울' 글자의 대략적인 위치 */
    width: 0;
    height: 0;
    background: radial-gradient(circle at center, #00A0DF 0%, rgba(0, 160, 223, 0.8) 30%, #00B451 60%, rgba(0, 180, 81, 0.8) 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1), height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 호버 시 div 내부 물결 확산 */
.experience-button:hover > div::after {
    width: 350px;
    height: 350px;
}

/* 모바일에서는 숨기기 */
@media screen and (max-width: 768px) {
    .experience-button {
        display: flex !important; /* 모바일에서도 표시 */
        position: fixed;
        bottom: 16px;
        right: 16px;
        width: 139px; /* 가로 크기 139px로 변경 */
        height: 40px;
        font-size: 14px;
        font-weight: 700;
        align-items: center;
        justify-content: center;
        border-radius: 20px; /* 둘근 버튼 */
        box-shadow: 0 2px 10px rgba(0, 160, 223, 0.3);
    }
    
    /* 그라데이션 텍스트 */
    .experience-button span {
        font-size: 14px;
    }
}

/* 모바일 반응형 */
@media screen and (max-width: 768px) {
    .center-buttons-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .center-button {
        width: 240px;
        height: 100px;
    }
    
    .center-name-ko {
        font-size: 28px;
    }
    
    .center-name-en {
        font-size: 16px;
    }
}

/* 센터 섹션 공통 스타일 */
.center-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1500;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

/* 섹션이 표시될 때 */
.center-section.active {
    display: block;
}

.center-section.show {
    opacity: 1;
}

/* 탄천 섹션 배경 */
#tancheonSection {
    height:100vh;
    background-image: url('../assets/images/bg_tancheon.png');
}

/* 서남 섹션 배경 */
#seonamSection {
    height:100vh;
    background-image: url('../assets/images/bg_seonam.png');
}

/* 돌아가기 버튼 - 공단소개 버튼과 동일한 스타일 */
.back-button {
    position: fixed;
    top: 32px;
    left: 32px;
    width: 156px;
    height: 59px;
    background-color: #007DC3;
    color: #ffffff;
    font-family: 'NanumSquareNeo', sans-serif;
    font-size: 24px;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    z-index: 1600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 125, 195, 0.3);
}

.back-button:hover {
    background-color: #006bb0;
    box-shadow: 0 4px 12px rgba(0, 125, 195, 0.4);
    transform: translateY(-2px);
}

.back-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 125, 195, 0.3);
}

/* 섹션 콘텐츠 영역 */
.section-content {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* 모바일 반응형 */
@media screen and (max-width: 768px) {
    /* 모바일에서 센터 섹션 스크롤 가능하게 설정 */
    .center-section {
        background: none;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth; /* 부드러운 스크롤 */
    }
    
    /* 스크롤 가능한 배경 이미지 컨테이너 */
    .center-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        height: 100vh;
        width: 177.78vh; /* CSS 변수 사용, 기본값 200vw */
        min-width: 100vw; /* 최소한 화면 너비는 유지 */
        background-size: auto 100%;
        background-position: left center;
        background-repeat: no-repeat;
        z-index: -1;
    }
    
    /* 탄천 섹션 모바일 배경 */
    #tancheonSection::before {
        background-image: url('../assets/images/bg_tancheon.png');
    }
    
    /* 서남 섹션 모바일 배경 */
    #seonamSection::before {
        background-image: url('../assets/images/bg_seonam.png');
    }
    


    #seonamArea1 {
        top: 7%;
        left: 54.5%;
        width: auto;
        height: 10%;
    }

    #seonamArea2 {
        top: 46%;
        left: 20%;
        width: auto;
        height: 10%;
    }

    #seonamArea3 {
        top: 68%;
        left: 41.8%;
        width: auto;
        height: 10%;
    }
    #seonamArea4 {
        top: 80%;
        left: 48.5%;
        width: auto;
        height: 10%;
    }
    #seonamArea5 {
        top: 76%;
        left: 60%;
        width: auto;
        height: 10%;
    }



    #tancheonArea1 {
        top: 10%;
        left: 9%;
        width: auto;
        height: 10%;
    }

    #tancheonArea2 {
        top: 27%;
        left: 5%;
        width: auto;
        height: 6.5%;
    }

    #tancheonArea3 {
        top: 20%;
        left: 24%;
        width: auto;
        height: 10%;
    }

    #tancheonArea4 {
        top: 29%;
        left: 31%;
        width: auto;
        height: 6.5%;
    }

    #tancheonArea5 {
        top: 52%;
        left: 11%;
        width: auto;
        height: 6.5%;
    }

    #tancheonArea6 {
        top: 49%;
        left: 27%;
        width: auto;
        height: 6.5%;
    }

    #tancheonArea7 {
        top: 74%;
        left: 40.5%;
        width: auto;
        height: 6.5%;
    }

    #tancheonArea8 {
        top: 69%;
        left: 63%;
        width: 14%;
        height: 7%;
    }



    #tancheonArea9 {
        top: 79%;
        left: 62%;
        width: auto;
        height: 6.5%;
    }

    #tancheonArea10 {
        top: 83%;
        left: 53.5%;
        width: auto;
        height: 10%;
    }

    #tancheonGray1 {
        top: 33.5%;
        left: 17%;
        width: auto;
        height: 6.5%;
    }
    #tancheonGray2 {
        top: 40.5%;
        left: 29.5%;
        width: auto;
        height: 6.5%;
    }

    #tancheonGray3 {
        top: 66%;
        left: 39.5%;
        width: auto;
        height: 6.5%;
    }

    #tancheonGray4 {
        top: 58%;
        left: 53.5%;
        width: auto;
        height: 10%;
    }

    /* 섹션 콘텐츠를 스크롤 가능하게 설정 */
    .center-section .section-content {
        width: 177.78vh; /* CSS 변수 사용 */
        min-width: 100vw; /* 최소 화면 너비 */
        height: 100vh;
        overflow: visible;
        position: relative;
    }
    
    /* 돌아가기 버튼 모바일 - 고정 위치 */
    .back-button {
        position: fixed;
        width: 120px;
        height: 48px;
        font-size: 18px;
        top: 20px;
        left: 20px;
    }
    
    /* 모바일 스크롤바 스타일링 */
    .center-section::-webkit-scrollbar {
        height: 8px;
    }
    
    .center-section::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
    }
    
    .center-section::-webkit-scrollbar-thumb {
        background: rgba(0, 160, 223, 0.5);
        border-radius: 4px;
    }
    
    .center-section::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 160, 223, 0.8);
    }
    
    /* 스크롤 히트 아이콘 */
    .scroll-hint {
        display: none;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 24px;
        color: rgba(255, 255, 255, 0.8);
        background: rgba(0, 0, 0, 0.5);
        padding: 8px 16px;
        border-radius: 20px;
        animation: pulse 2s infinite;
        pointer-events: none;
        z-index: 1600;
    }
    
    .center-section.active .scroll-hint {
        display: block;
    }
    
    @keyframes pulse {
        0%, 100% { opacity: 0.5; }
        50% { opacity: 1; }
    }
}
