@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jersey+10&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Silkscreen:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jersey+10&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Silkscreen:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jersey+10&family=Noto+Sans+KR:wght@100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Silkscreen:wght@400;700&display=swap');

* {
    box-sizing: border-box;
}
:root{
    --darkmode-foreground: #ccc;
    --darkmode-background: #000;
}
html, body {
    font-family: 'Barlow', 'Noto Sans KR', sans-serif;
    /* font-family: 'Noto Sans', sans-serif; */
    background-color: transparent;
    font-size: 16px;
    margin:0;
    padding:0;
    transition: background-color 0.6s;
}
body.dark-theme {
    color: var(--darkmode-foreground);
    background-color: var(--darkmode-background);
}
body.dark-theme input {
    background-color: var(--darkmode-background);
}
.container {
    min-height: 100vh;
    min-width: 1100px;
    width: 100%;
    display: grid;
    grid-template-columns: 260px auto;
}
aside a.identity-link {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 80px;
    padding: 10px 17px;
    text-align: left;
}
aside img.identity {
    margin: 10px 0;
    max-width: 100%;
    /* width: 100%; */
    max-height: 35px;
    min-height: 35px;
}
a {
    text-decoration: none;
    color: inherit;
    /* color: #000; */
}
h1{
    font-size: 1.7em;
}
h2{
    font-size: 1.4em;
}
h3{
    font-size: 1.0em;
}
.table-wrapper{
    max-width: 100%;
    overflow-y: auto;
}
#hbg{
    display: none;
}

/****************************************** 
 * GRID-SYSTEM 
 *****************************************/
.pe-grid {
    display: grid;
    row-gap: 30px;
    column-gap: 60px;
}
.pe-grid.grid-2 {
    grid-template-columns: 1fr 1fr;
}
.pe-grid.grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

/****************************************** 
 * NAV 
 *****************************************/
.side-nav ul, 
.side-nav li {
    margin: 0;
    padding: 0;
    list-style: none;
}
.side-nav ul section{
    margin: 0 0 10px 0;
    padding: 5px 0 10px;
    border-top: 2px solid #000;
}
body.dark-theme .side-nav ul section {
    border-top: 2px solid var(--darkmode-foreground);
}
.side-nav ul {
    margin: 10px 20px;
}
.side-nav li {
    display: block;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: capitalize;
    padding: 3px 0;
    font-size: 1em;
}
.side-nav a {
    text-decoration: none;
    /* color: #000; */
}
.lang-btn{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid rgba(0,0,0,0);
    position: relative;
    padding: 5px 10px;
    border: 2px solid #000;
    border-radius: 16px;
    background-color: #e7e7e7;
}
.lang-btn.selected {
    background-color: #000;
    color: #fff;
}
body.dark-theme .lang-btn {
    color: #fff;
    background-color: rgba(0,0,0,0);
}
body.dark-theme .lang-btn.selected {
    border-color: #fff;
}
.side-nav li.language{
    position: fixed;
    top: 30px;
    right: 30px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    column-gap: 10px;
    z-index: 100;
}
.sort-by-year{
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 5px;
    border-bottom: 2px solid #333;
    margin-top: -2px;
}
body.dark-theme .sort-by-year {
    border-bottom: 2px solid var(--darkmode-foreground);
}
.sort-by-year > .year-button{
    cursor: pointer;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 100px;
    border: 2px solid #333;
    margin-top: -9px;
    margin-bottom: 9px;
    transition: 0.3s;
}
.sort-by-year > .year-button.selected{
    color: #fff;
    background-color: #333;
}
.side-nav .darkmode-button{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border: 2px solid #000;
    padding: 0px;
    border-radius: 100px;
    background-color: #e7e7e7;
}
.side-nav .darkmode-indicator {
    min-width: 15px;
    min-height: 15px;
    background-image: url(/assets/images/moon-black.svg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
body.dark-theme .side-nav .darkmode-button {
    border-color: #fff;
    background-color: #000;
}

body.dark-theme .side-nav .darkmode-indicator{
    background-image: url(/assets/images/moon-white.svg);
}


/****************************************** 
 * COMMON 
 *****************************************/
.content-body {
    padding: 0 30px 120px;
    overflow: auto;
    width: 100%;
}
.content-body.animated {
    position: relative;
    animation: expandContent 0.8s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}
.content-body h1 {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 91px;
    font-size: 40px;
    margin: 0 0 20px 0;
    padding: 12px 0 22px;
    border-bottom: 2px solid #000;
    font-weight: 500;
    letter-spacing: 0.01em;
}
body.dark-theme .content-body h1 {
    border-bottom: 2px solid var(--darkmode-foreground);
}
.medium-title {
    font-size: 1.4em;
    font-weight: 700;
    margin: 20px 0 10px;
}
.content-body .body-area {
    width: 800px;
    font-size: 1em;
    line-height: 1.8em;
    text-align: justify;
    font-weight: 500;
    position: relative;
    opacity: 0;
    animation: expandContent 0.8s cubic-bezier(0.645, 0.045, 0.355, 1) 0.2s forwards;
}
.content-body .body-area h3{
    text-align: left;
}
.content-body .body-area.full-width {
    width: 100%;
}
.content-body p.period {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    font-weight: bold;
}
.body-area img.intro-image {
    max-width: 100%;
    display: block;
    object-fit: cover;
    width: 100%;
    height: 220px;
    border: 1px solid #efefef;
}
body.dark-theme .body-area img.intro-image {
    border: 0;
}
.body-area .article-list-body h3 {
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 365px;
}
p.body {
    font-size: 1em;
    font-weight: 500;
}
p.body.en{
    font-weight: 600;
}
.text-body{
    max-width: 600px;
    line-height: 1.8em;
    text-align: justify;
    opacity: 0;
    position: relative;
    animation: expandContent 0.8s cubic-bezier(0.645, 0.045, 0.355, 1) 0.2s forwards;
}

/****************************************** 
 * COMMON : MAIN
 *****************************************/
 .main-grid{
    display: flex;
    justify-content: center;
    align-items: center;
 }

 .main-grid .overprint{
    width: 90vw;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    margin-top: -50px;
    mix-blend-mode: multiply;
    z-index: 100;
 }
 .main-grid .overprint > img{
    width: 100%;
    height: 100%;
 }
 .main-grid .grid-images{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    height: 100vh;
    overflow-y: hidden;
 }
 .main-grid .grid-images > div {
    /* width: 100px; */
    height: 25vh;
    background-size: cover;
    opacity: 0;
 }
 .main-slider{
    width: 100%;
    height: 100%;
 }
 .main-slider .slider-container{
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-image: url(/assets/images/identity.svg);
    background-position: center;
    background-size: 300px;
    background-repeat: no-repeat;
    overflow: hidden;
 }
 .main-slider .slider-container > .slider-content {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    position: absolute;
    opacity: 0;
    transition: 0.75s;
 }
 .main-slider .slider-container > .slider-content.show {
    opacity: 1;
 }
 @keyframes maingrid-animate {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
 }
/****************************************** 
 * COMMON : PUBLICATION
 *****************************************/
.publications-grid{
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    column-gap: 10px;
}
.publication-item{
    opacity: 0;
    position: relative;
    animation: itemFadeIn 1s forwards;
}
.publications-grid .publication-item{
    display: flex;
    height: 230px;
    background-color: #999;
    align-items: flex-start;
    justify-content: center;
    width: 160px;
    margin: 0 auto;
}
.publications-grid .publication-item:before{
    display: block;
    content: '';
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    width: 10px;
    background-color: rgba(0,0,0,0.2);
}
.publication-item .publication-item-content{
    background-color: #fff;
    color: #000;
    display: flex;
    gap: 16px;
    margin-top: 15px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 150px;
    width: 100%;
    border-right: 1px solid #efefef;
}
.publication-item .publication-item-content h3.title{
    font-size: 16px;
}
.publication-item .publication-item-content p.author{
    font-size: 13px;
}
.publication-item .publication-item-content h3.title,
.publication-item .publication-item-content p.author{
    text-align: left;
    margin: 0;
    line-height: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    word-wrap: break-word;
    padding: 0 20px;
    position: relative;
    left: 3px;
}

.publication-item .identity{
    position: absolute;
    max-width: 60px;
    bottom: 20px;
    left: calc(50% - 27px);
}

@keyframes itemFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/****************************************** 
 * COMMON : Library
 *****************************************/
table.library-table{
    border-collapse: collapse;
    margin-top: -16px;
}

table.library-table td,
table.library-table th{
    text-align: left;
    padding: 10px 30px 10px 10px;
    line-height: 25px;
}

/* table.library-table tr:nth-child(even) {
    background-color: #ddd;
}

body.dark-theme table.library-table tr:nth-child(even) {
    background-color: #111;
} */
table.library-table td {
    border-bottom: 1px solid #ccc;
}
table.library-table th{
    text-transform: capitalize;
    border-bottom: 1px solid #000;
}

/****************************************** 
 * COMMON : LOGIN
 *****************************************/
.login-wrapper{
    display: flex;
    justify-content: center;
    align-items: center;
}
.login-wrapper .logo {
    display: block;
    margin: 0 auto 35px;
    width: 50%;
    max-width: 100%;
}
.login-wrapper .login-form{
    width: 100%;
    max-width: 500px;
    padding: 20px;
}
.login-wrapper .login-form label{
    display: block;
    text-transform: uppercase;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #999;
}
.login-wrapper .login-form input {
    display: block;
    width: 100%;
    border: 1px solid #aaa;
    border-radius: 5px;
    padding: 10px 8px;
    margin: 5px 0 20px;
    font-size: 1em;
}
body.dark-theme .login-wrapper .login-form input {
    background-color: #ccc;
}
.login-form .error-message {
    color: red;
    font-size: 0.9em;
    line-height: 1.5em;
    margin: 5px 0 20px;
    text-align: center;
}
.login-wrapper button.btn {
    border: 0;
    border-radius: 5px;
    padding: 15px 10px;
    width: 100%;
    font-size: 0.8em;
    text-transform: uppercase;
    font-weight: 700;
    margin: 5px auto;
    cursor: pointer;
}
.login-wrapper button.btn.login {
    background-color: #333;
    color: #fff;
}
.login-wrapper button.btn.logout {
    background-color: #ccc;
    color: #999;
}
.login-wrapper .login-status{
    text-align: center;
    font-size: 1.1em;
    font-weight: 700;
    padding-top: 15px;
    border-top: 1px solid #ccc;
}

/****************************************** 
 * COMMON : Partner
 *****************************************/
.partner-logo {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 3;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    background-image: url(/assets/images/2x4_CCF_LOGO_SMALL_BLACK.png);
    margin-bottom: 40px;
}
body.dark-theme .partner-logo {
    background-image: url(/assets/images/2x4_CCF_LOGO_SMALL_WHITE.png);
}

/****************************************** 
 * COMMON : Contact
 *****************************************/
ul.contact,
ul.contact li {
    list-style-type: none;
    padding: 0;
}
ul.contact li {
    font-size: 1.2em;
    line-height: 1.7em;
}
ul.contact li > a {
    text-decoration: underline;
}

/****************************************** 
 * COMMON : MARKDOWN CONTENT
 *****************************************/
.markdown-content{
    resize: vertical;
    min-height: 50vh;
}
.markdown-content.output h1{
    border: 0;
}
.markdown-content.output h1,
.markdown-content.output h2,
.markdown-content.output h3,
.markdown-content.output h4,
.markdown-content.output h5 {
    margin: 1em 0;
    font-weight: 700;
}
.markdown-content.output p,
.markdown-content.output ul,
.markdown-content.output li{
    font-weight: 500;
}
.markdown-content.output p{
    line-height: 1.8em;
}
.markdown-content.output blockquote{
    margin: 10px 0;
    padding: 10px 30px;
    border: 1px solid #888;
}
.markdown-content img {
    max-width: 100%;
    pointer-events: none;
}

@keyframes expandContent {
    0% {
        opacity: 0%;
        top: 2%;
    }
    100% {
        opacity: 100%;
        top: 0%;
    }
}

/**************************
*    mobile-900
***************************/
@media all and (max-width: 900px) {
    h2{
        font-size: 1.2em;
    }
    #hbg{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        position: absolute;
        right: 17px;
        top: 23px;
        width: 40px;
        height: 25px;
        border: 0;
        background-color: transparent;
    }
    #hbg > div{
        height: 2px;
        width: 100%;
        background-color: #333;
    }
    body.dark-theme #hbg > div {
        background-color: var(--darkmode-foreground);
    }
    .medium-title{
        font-size: 1.3em;
    }
    .container{
        display: block;
        max-width: 100vw;
        min-width: 100%;
    }
    aside{
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        padding: 0 20px;
        z-index: 500;
        background-color: #e7e7e7;
        transition: background-color 0.7s;  
    }
    body.dark-theme aside {
        background-color: var(--darkmode-background);
    }
    aside a.identity-link{
        height: 60px;   
        padding: 10px 17px 10px 0;
    }
    aside img.identity{
        margin: 0 0 0 -6px;
    }
    .side-nav.active > ul{
        height: calc(100vh - 60px);
        padding-top: 20px;
    }
    .side-nav ul{
        transition: 0.5s;
        overflow: hidden;
        height: 0;
        margin: 0;
    }
    .side-nav li{
        padding: 5px 0;
        font-size: 1em;
    }
    .side-nav ul section {
        padding-bottom: 0;
    }
    .side-nav li.language {
        position: static;
        justify-content: flex-start;
        margin-bottom: 30px;
    }
     .main-grid {
        height: 100vh;
     }
    /* .lang-btn{
        display: inline-flex;
        justify-content: center;
        align-items: center;
        border-bottom: 2px solid rgba(0,0,0,0);
        position: relative;
    }
    .lang-btn::after{
        left: 30px;
        top: 3px;
    }
    .lang-btn::after{
        position: absolute;
        display: inline-block;
        left: 25px;
        width: 15px;
        height: 15px;
        background-image: url(/assets/images/checkmark.svg);
        background-size: cover;
        background-position: center center;
        content: " ";
        opacity: 0;
        transition: 0.3s;
    } */
    body.dark-theme .lang-btn::after{
        background-image: url(/assets/images/checkmark-gray.svg);
    }
    .lang-btn.selected::after{
        opacity: 1;
    }
    .content-body h1{
        padding-bottom: 10px;
    }
    .content-body .body-area {
        width: 100%;
    }
    .body-area #articles.pe-grid {
        display: block;
    }
    .content-body{
        padding: 0 13px 50px;
        margin-top: 75px;
    }
    .content-body h1{
        font-size: 2em;
        padding-top: 0;
        height: auto;
    }
    .content-body .body-area{
        text-align: left;
        word-break: keep-all;
    }
    .main-grid .grid-images > div {
        height: 10vh;
    }
    .main-grid .overprint{
        width: 80vw;
        margin-top: 5vh;
    }
}

@media all and (max-width: 768px) {
    .publications-grid{
        grid-template-columns: repeat(3, 1fr);
    }
}

@media all and (max-width: 600px) {
    .publications-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media all and (max-width: 480px) {
    .publications-grid{
        display: block;
    }
    .publications-grid .publication-item{
        margin: 10px auto 20px;
    }
}
@media all and (max-width: 360px) {
    aside img.identity{
        min-width: 200px;
        max-width: 80%;
    }
}