/* style.css 파일 */

img {
    width: 90vw;
}
/* body의 min-height는 그대로 유지합니다. */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    min-height: calc(var(--vh, 1vh) * 100);
}

/* 헤더 스타일 */
.header {
    background-color: #565656;
    color: white;
    padding: 10px;
    display: flex;
    align-items: center;
    position: fixed; /* 헤더 고정 */
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100; /* 플로팅 메뉴보다 낮게 설정 */
    box-sizing: content-box; /* 패딩이 너비에 포함되도록 */

     /* 하드웨어 가속 강제 적용 */
     -webkit-transform: translateZ(0); /* iOS Safari 및 일부 안드로이드 브라우저 호환성 */
     transform: translateZ(0);
     /* 또는 transform: translate3d(0, 0, 0); */
     -webkit-backface-visibility: hidden; /* 깜빡임 방지 */
     backface-visibility: hidden;
     -webkit-perspective: 1000; /* 깜빡임 방지 */
     perspective: 1000;
}

.header a {
    color: white;
    text-decoration: none;
}

.menu-button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    margin-right: 15px;
    padding: 5px 10px;
}

/* 메인 컨텐츠 스타일 */
.content {
    /* 변경된 부분: 헤더 높이만큼 padding-top 추가 */
    padding: 60px 20px 20px; /* 예시: 헤더 높이(10px 패딩 포함) + 10px 여유 공간 */
    line-height: 1.6;
}


/* 플로팅 메뉴 스타일 */
.floating-menu {
    position: fixed;
    top: 0;
    left: -250px; /* 초기에는 화면 왼쪽 밖으로 숨김 */
    width: 250px;
    height: 100%;
    background-color: #f4f4f4;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    transition: left 0.3s ease-in-out; /* 부드러운 슬라이드 애니메이션 */
    z-index: 200; /* 오버레이보다 높게 설정 */
    display: flex;
    flex-direction: column;
    padding-top: 20px;
}

.floating-menu.active {
    left: 0; /* 메뉴 활성화 시 화면 안으로 이동 */
}

.close-menu-button {
    background: none;
    border: none;
    font-size: 30px;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    color: #555;
}

.floating-menu ul {
    list-style: none;
    padding: 0;
    margin-top: 50px; /* 닫기 버튼과의 간격 */
}

.floating-menu ul li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
}

.floating-menu ul li a:hover {
    background-color: #e0e0e0;
}

/* 오버레이 스타일 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0); /* 초기에는 투명 */
    z-index: 150; /* 플로팅 메뉴보다 낮게 설정 */
    visibility: hidden; /* 초기에는 숨김 */
    transition: background-color 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.overlay.active {
    background-color: rgba(0, 0, 0, 0.5); /* 활성화 시 어둡게 */
    visibility: visible; /* 활성화 시 보이게 */
}




.footer1 {
    background-color: #646464;
    padding: 10px 10px;
    
    font-size: var(--font-size-lg);
    text-align: center;
    font-weight: bold;
}

.footer1 li img {
    width: 10%;
    filter: invert(100%) sepia(8%) saturate(0%) hue-rotate(161deg) brightness(107%) contrast(100%);
}

.footer1 li {
    padding: 5px;
    list-style: none;
}

.footer1 li a {
    color: #fff;
    text-decoration: none;
}

.footer2 {
    background-color: #565656;
    color: #fff;
    padding: 10px 10px;
    font-size: 15px;
    text-align: center;
    list-style: none;
}

.list-container {
    background-color: #ffffff;
    padding: 5px 20px;
    border-radius: 12px;
    width: 90%;
    margin-bottom: 10px;
}

h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 25px;
    font-size: 2em;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.line-separated-list {
    list-style: none; /* 기본 목록 마커 제거 */
    padding: 0;
    margin: 0;
}

.list-item {
    padding: 12px 0; /* 상하 패딩 */
    border-bottom: 1px solid #e0e0e0; /* 각 항목을 구분하는 줄 */
    font-size: 1.1em;
    transition: all 0.3s ease; /* 모든 전환 효과 부드럽게 */
    cursor: pointer;
    position: relative; /* 호버 효과를 위한 기준점 */
}

.list-item:last-child {
    border-bottom: none; /* 마지막 항목의 하단 줄 제거 */
}

.list-item a {
    text-decoration: none; /* 링크 밑줄 제거 */
    color: #555; /* 링크 기본 색상 */
    display: block; /* 링크가 전체 항목 영역을 차지하도록 */
    width: 100%;
    padding: 0; /* a 태그 내부 패딩 제거 */
    margin: 0; /* a 태그 내부 마진 제거 */
}

/* 마우스 호버 시 효과 */
.list-item:hover {
    background-color: #f8f8f8; /* 살짝 배경색 변경 */
}

.list-item:hover a {
    font-weight: 600; /* 글자 굵기 변경 */
}


.list-item:hover::after {
    width: 100%; /* 호버 시 줄이 나타나도록 너비 100% */
}



.post-container {
    background-color: #ffffff;
    padding: 40px 10px; /* 내부 여백 증가 */
    border-radius: 12px;
    width: 95%;
    line-height: 1.7; /* 줄 간격 설정 */
    color: #444; /* 본문 텍스트 색상 */
}

.post-title {
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee; /* 제목 아래 구분선 */
    text-align: center;
    word-break: keep-all; /* 단어가 잘리지 않도록 */
}

.post-meta {
    text-align: right;
    color: #888;
    font-size: 0.9em;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee; /* 메타 정보 아래 점선 구분 */
}

.post-meta span {
    margin-left: 15px; /* 각 메타 정보 사이 간격 */
}

.post-content h3 {
    color: #2c3e50;
    font-size: 1.em;
    margin-top: 30px;
    margin-bottom: 10px;
    border-left: 3px solid #1890ff; /* 강조를 위한 왼쪽 라인 */
    padding-left: 7px;
}

.post-content p {
    margin-bottom: 1em; /* 단락 아래 여백 */
}

.post-content .signature {
    text-align: right;
    margin-top: 40px;
    font-style: italic;
    color: #666;
}

.post-image {
    max-width: 80%; /* 부모 요소의 너비를 넘지 않도록 */
    height: auto; /* 비율 유지 */
    border-radius: 8px; /* 둥근 모서리 */
    display: block; /* 가끔 이미지 아래 생기는 여백 제거 */
    margin: 0 auto; /* 블록 요소 중앙 정렬 */
}


.post-human-image {
    max-width: 40%; /* 부모 요소의 너비를 넘지 않도록 */
    height: auto; /* 비율 유지 */
    border-radius: 8px; /* 둥근 모서리 */
    display: block; /* 가끔 이미지 아래 생기는 여백 제거 */
    margin: 0 auto; /* 블록 요소 중앙 정렬 */
}