/* 전체 body 스타일 설정: 기본적으로 영어는 Times New Roman */
body {
    height: 100%;  /* 화면 높이를 100%로 설정 */
    margin: 8px;   /* 기본 마진 제거 */
}

/* 한글 텍스트에 대해서만 Apple SD Gothic Neo 사용 */
html[lang="ko"] body {
    font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

/* 영어 텍스트에 대해 Times New Roman 적용 */
h1 {
    font-family: 'Didot', serif;
}

a:link, a:visited {
    color: blue; /* 항상 파란색으로 유지 */
}
a:hover {
    color: red; /* 마우스를 올리면 빨간색으로 변경 */
}

.scroll {
    margin: 0;
    overflow: hidden; /* 스크롤 숨김 */
}

/* Flexbox를 사용하여 좌우 레이아웃 구성 */
.container {
    display: flex;
    height: 100vh;
    width: 100%;
    flex-direction: row; /* 기본적으로 좌우 배치 */
}

.left-frame {
    flex: 1; /* 비율 유지 */
    border: none;
    width: 100%;
    height: 100%;
    overflow-y: scroll; /* 세로 스크롤 항상 표시 */
    overflow-x: hidden; /* 가로 스크롤 숨기기 */
    box-sizing: border-box;
    scrollbar-width: thin; /* Firefox: 얇은 스크롤 표시 */
    scrollbar-color: auto; /* Firefox: 기본 색상 사용 */
}

/* 오른쪽 iframe의 비율을 1:1로 설정 */
.right-frame {
    flex: 1; /* 전체 비율의 1/3 */
    border: none;
    width: 100%; /* 너비 100% */
}

/* 이미지 컨테이너 스타일 */
.image-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 한 줄에 4개의 열 */
    gap: 6px; /* 이미지 간의 간격 */
    margin: 20px auto; /* 가운데 정렬 */
    max-width: 1000px; /* 최대 너비 설정 */
}

/* 이미지 스타일 */
.image-container img {
    width: 100%; /* 그리드 셀 크기에 맞게 조정 */
    height: auto; /* 이미지 비율 유지 */
    display: block;
}

/* 모바일 화면에서 아이프레임 비율 수정 */
@media (max-width: 768px) {
    .container {
        flex-direction: column; /* 세로로 배치 */
        min-height: 100vh; /* 최소 높이를 설정 */
    }

    .left-frame {
        flex: 6; /* 60% 비율 */
    }

    .right-frame {
        flex: 4; /* 40% 비율 */
        height: auto; /* 높이 자동 조정 */
    }

    .image-container {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Header 스타일 */
.site-header {
    border-bottom: 1px solid;
    font-size: 15px;
    height: 26px;
    margin: 0;
    left: 0;
    overflow: hidden;
    padding: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background-color: #fff;
    border-color: #666;
}

.site-header-navigation-links {
    float: left;
    height: 26px;
    list-style-type: none;
    margin: 0;
    padding: 0; 
    margin-left: 10px;
    vertical-align: middle;
}

.site-header-navigation-links li {
    display: inline;
    line-height: 26px;
    vertical-align: middle;
}

.site-header-announcement {
    float: right;
    line-height: 26px;
    margin-right: 10px;
    vertical-align: middle;
}

ul {
    margin: 0;
    padding-left: 5px;
    list-style-position: inside;
}

/* 이미지에 대해 반응형 스타일 추가 */
img {
    max-width: 100%;  /* 이미지가 화면 크기를 초과하지 않도록 설정 */
    height: auto;     /* 비율을 유지하면서 높이 자동 조정 */
}

p {
    line-height: 1.4; 
}
