@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nanum+Myeongjo&display=swap');

:root {
    --main-container-max-width: 600px;
    --header-container-height: 80px;
    --nav-bottom: 0px;
}

* {
    box-sizing: border-box;
    outline: none;
    word-break: keep-all;
    word-wrap: break-word;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    -webkit-font-smoothing: antialiased;
    padding: 0;
    margin: 0;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: black;
}

html {
    font-size: 20px;
}

#header-container {
    width: 100%;
    height: var(--header-container-height);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9;
}

#header {
    width: 100%;
    max-width: var(--main-container-max-width);
    height: 100%;
    border-left: 1px solid white;
    border-right: 1px solid white;
    border-bottom: 1px solid white;
    margin: auto;
    background-color: black;
}

#header table {
    width: 100%;
    height: 100%;
}

#header td:first-child, #header td:last-child {
    width: 15%;
}

#header #logo-container {
    text-align: center;
    vertical-align: middle;
}

#header #logo {
    width: auto;
    height: calc(var(--header-container-height) * 0.7);
    cursor: pointer;
}

#header #menu-button {
    color: white;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 35px;
    font-weight: 400;
    text-align: right;
    padding-right: 12px;
    cursor: pointer;
}

#main-container {
    width: 100%;
    max-width: var(--main-container-max-width);
    min-height: calc(100% - var(--header-container-height));
    border-left: 1px solid white;
    border-right: 1px solid white;
    margin: auto;
    padding-top: var(--header-container-height);
}

#main {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: clamp(18px, 5vw, 24px);
    line-height: 1.6em;
    color: white;
    padding-bottom: 60px;
}

#main article {
    padding: 24px;
}

#main article.interview section {
    padding-bottom: 4em;
    font-size: 0.8em;
    line-height: 1.5em;
}

#main article.interview section.left {
    padding-right: 4em;
}

#main article.interview section.right {
    padding-left: 4em;
    text-align: right;
}

#main img {
    width: 100%;
    line-height: 0;
}


#main article > img {
    filter: grayscale(100%);
    transition: filter 0.4s ease;   /* 부드러운 전환 */
}

#main article > img:hover {
    filter: grayscale(0%);
}

#main a {
    color: #00FFFF;
    text-decoration: none;
}

#main .footnote {
    font-size: 0.9em;
    line-height: 1.6em;
}

#main .footnote hr {
    border: none;
    height: 1px;
    background-color: white;
    width: 50%;
    margin: 40px 0;
}

#main #title-container {
    width: 100%;
    border-bottom: 1px solid white;
    display: flex;
    align-items: center;
    height: var(--header-container-height);
    padding-left: 24px;
    font-weight: 900;
}

#main .sub-title, #main strong {
    font-weight: 900;
}

#main .sub-title a {
    border-bottom: 1px solid #00FFFF;
}

#main .map-list {
    margin-bottom: 10px;
}

#main .map-list td {
    padding-right: 10px;
}

#main .map-list .location {
    color: black;
    background-color: white;
    padding: 1px 10px 3px 10px;
}

#main #map {
    width: 100%;
    height: 400px;
    /*filter: grayscale(1) contrast(1.1) brightness(0.95);
    -webkit-filter: grayscale(1) contrast(1.1) brightness(0.95);
    */
}

#main table.inner {
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
    margin: 0;
}

#main table.inner td {
    font-size: 0.6em;
    border: 1px solid white;
    text-align: center;
}

#footer-container {
    width: 100%;
    height: var(--header-container-height);
}

#footer {
    width: 100%;
    max-width: var(--main-container-max-width);
    height: 100%;
    border-left: 1px solid white;
    border-right: 1px solid white;
    border-top: 1px solid white;
    margin: auto;
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 4px;
}

#footer img {
    width: auto;
    height: 90%;
}

#navigator-container {
    position: fixed;
    z-index: 99;
    bottom: var(--nav-bottom, 0px);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--main-container-max-width);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0;
    padding-left: 24px;
    padding-right: 24px;
    transition: bottom 0.25s ease;
}

#navigator {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#navigator > div {
    border: 1px solid white;
    padding: 5px 10px 3px 10px;
    margin-right: 10px;
    background-color: black;
    font-size: 0.9em;
    cursor: pointer;
}

#top-button-container {
    font-size: 2.4em;
    color: white;
    cursor: pointer;
}

nav {
    width: 100%;
    max-width: var(--main-container-max-width);
    min-height: 100%;
    border-left: 1px solid white;
    border-right: 1px solid white;
    margin: auto;
    color: white;
    font-family: 'Noto Sans KR', sans-serif;
}

nav a {
    color: inherit;
    text-decoration: none;
}

nav .menu {
    width: 80%;
    min-height: 100vh;
    border-right: 1px solid white;
}

nav .menu, nav .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav .menu li {
    transition: background 0.3s;
    line-height: 1.6em;
}

nav .menu li a {
    padding: 2px 12px 2px 24px;
    display: block;
    transition: background 0.3s;
}

nav .menu li.active > a {
    background: #00FFFF;
    color: black;
}

nav .menu li.bt {
    border-top: 1px solid white;
}

nav .menu li.bb {
    border-bottom: 1px solid white;
}

nav .menu li.mt {
    margin-top: 10px;
}

nav .menu li.mb {
    margin-bottom: 10px;
}

nav .menu li.title {
    font-size: 1.3em;
    border-bottom: 1px solid white;
}

nav .menu li.title a {
    padding: 8px 0 8px 24px;
}

nav .sub-menu {
    display: none;
}

nav .sub-menu a {
    padding-left: 48px !important;
}

#close-button {
    color: white;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 35px;
    font-weight: 400;
    cursor: pointer;
    position: fixed;
    top: 0;
    right: 20px;
    z-index: 99;
    display: none;
}

@media (max-width: 600px) and (orientation: portrait) {
    #header, #footer, #main-container {
        border-left: none;
        border-right: none;
    }

    #header #logo {
        height: calc(var(--header-container-height) * 0.6);
    }

    #main article, #main #title-container {
        padding: 24px 12px;
    }

    #main article > img {
        filter: none;
    }

    #main article > img.bw {
        filter: grayscale(100%);
    }

    #navigator-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    nav {
        border-left: 0;
        border-right: 0;
    }
}