/* =======================================================
    mobile_main.css - m_sport_1.html (최종 수정)
    ======================================================= */

/* --- 기본 설정 및 초기화 --- */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Malgun Gothic', '맑은 고딕', sans-serif;
    color: white;
    overflow-x: hidden; /* 가로 스크롤 방지 */
    min-width: 320px;

    /* ⭐ [추가된 배경 이미지 속성] */
    background-image: url('image/img_02.png');
    background-position: left top; /* 상단 좌측 고정 */
    background-repeat: no-repeat; /* 반복 안 함 */
    background-size: 400px auto; /* 가로 100%, 세로는 비율에 맞게 자동 */
    background-position: left -50px;
    background-color: #293e85;
}

/* 💡 [수정] 부드러운 롤링 애니메이션 키프레임 (우측 -> 좌측 이동, 투명도 없음) */
@keyframes slideLeftOut { /* 키프레임 이름 변경 */
    0% {
        opacity: 0; /* 투명도 없음 */
        transform: translateX(50%); /* 💡 [수정] 우측 화면 밖에서 시작 */
    }
    20% {
        opacity: 1;
        transform: translateX(0); /* 중앙에 잠시 멈춤 */
    }
    80% {
        opacity: 1;
        transform: translateX(0); /* 중앙에 잠시 멈춤 */
    }
    100% {
        opacity: 0;
        transform: translateX(-50%); /* 💡 [수정] 좌측 화면 밖으로 사라짐 */
    }
}

/* 💡 버튼 애니메이션 키프레임 (유지) */
@keyframes fadeInUpButton {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-wrapper {
    min-height: 100vh;
    padding-top: 10px;
    padding-bottom: 70px; 
    box-sizing: border-box;
    position: relative; 
    overflow-x: hidden; 
    overflow-y: auto;
    background-image: none;
    opacity: 1; 
}

/* 💡 롤링 배경 이미지 사이즈 및 위치 조정 */
.rolling-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1; 
    
    background-image: url('image/sport_img1.png');
    background-repeat: no-repeat;
    
    /* 💡 [수정] 높이 430px 고정, 투명도 1.0 (없음) */
    background-size: auto 420px; /* 세로 430px 고정 */
    background-position: center bottom -50px; /* 💡 [수정] 하단 -50px 기본 정렬 */
    opacity: 1; /* 💡 [수정] 투명도 없음 */
    
    transition: background-image 0.3s ease-in-out; 
}

/* 💡 롤링 배경 애니메이션 동작 클래스 (JS에서 추가/제거) */
.rolling-background.rolling-animate {
    animation-name: slideLeftOut; /* 💡 [수정] 키프레임 이름 변경 */
    animation-duration: 3s;      
    animation-timing-function: linear; 
    animation-iteration-count: 1; 
}

/* 💡 헤더, 메인, 푸터가 롤링 배경 위에 오도록 z-index 설정 */
.top-header,
.content-container,
.intro-footer-logo {
    position: relative;
    z-index: 2;
    
}


/* --- 1. 헤더 영역 대체 및 제목 스타일 --- */
.main-content-header {
    padding: 20px 30px;
    margin-top: 0; 
}
.mobile-title-box {
    padding-top: 0px;
    margin-top: -20px;
    text-align: left;
}
.main-title, .sub-title {
    font-size: 46px; 
    margin: 0;
    line-height: 1.1;
}
.main-title { color: white; }
.sub-title { color: #4dd0e1; margin-bottom: 30px; }

/* --- 2. 액션 버튼 중앙 배치 및 너비 조정 --- */
.action-section.button-center-section {
    padding: 0; 
    display: flex;
    justify-content: center; 
    margin-top: -20px;
}
.action-buttons-center {
    width: 90%; 
    margin: 0 auto; 
    max-width: 500px; 
    display: flex;
    flex-direction: column;
    align-items: center; 
    position: relative;
    z-index: 15;
}
.action-buttons-center .mobile-buttons-ul {
    list-style: none;
    padding: 0;
    width: 100%; 
    margin: 0;
}
.action-buttons-center .mobile-buttons-ul li {
    width: 90%;
    margin-bottom: 0; /* 💡 [수정] 버튼 간격 제거 */
    opacity: 0; 
    animation: fadeInUpButton 0.6s ease-out forwards;
}

/* --- 3. 하단 로고 (수정) - 화면 하단에서 20px 올림 */
.intro-footer-logo {
    position: fixed; 
    left: 0;         
    right: 0;
    text-align: center; 
    z-index: 10;     
    opacity: 1; 
    height: 40px;
    bottom: 0px;
    padding :5px;
}

.intro-footer-logo img {
    height: 30px; 
    width: auto;
}




/* --- 4. 액션 버튼 스타일 (나머지 스타일 유지) --- */
.mobile-action-link-wrapper { 
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    width: 100%;
}
.mobile-action-link {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    width: 100%; 
    min-height: 0; 
    
    background-color: white;
    color: #333; 
    padding: 10px 20px; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px; 
}
.mobile-action-link .button-title {
    font-size: 19px; 
    font-weight: 600;
    color: #293e85; 
    line-height: 1.4;
}
.mobile-action-link .arrow-icon {
    font-size: 24px; 
    color: #76ff03; 
    font-weight: bold;
}
.button-description {
    font-size: 13px; 
    margin-top: 8px; 
    margin-left: 20px; 
    line-height: 1.5;
    color: white; /* 안내 문구 흰색 유지 */
}