@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;900&family=Noto+Serif+KR:wght@400;700&display=swap');

@font-face {
    font-family: 'Pretendard Variable';
    font-weight: 45 920;
    font-style: normal;
    font-display: swap;
    src: local('Pretendard Variable'), url('../fonts/PretendardVariable.woff2') format('woff2-variations');
}

@font-face {
    font-family: 'MapoGoldenPier';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/MapoGoldenPierA.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
    border-collapse: collapse;
    outline: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    -webkit-font-smoothing: antialiased;
    /*font-family: 'Pretendard Variable', sans-serif;*/
    /*font-family: 'MapoGoldenPier', serif;*/
    font-family: "Noto Serif KR", serif;
    word-break: keep-all;
    word-wrap: break-word;
}

a {
    text-decoration: inherit;
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    color: inherit;
}

html, body {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

img {
    vertical-align: middle;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    10% {
        transform: translateY(-8px); /* 첫 번째 점프 높이 */
    }
    20% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-18px); /* 두 번째 점프 높이 */
    }
    40% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-13px); /* 세 번째 점프 높이 */
    }
    60% {
        transform: translateY(0);
    }
    70% {
        transform: translateY(-3px); /* 네 번째 점프 높이 */
    }
    80% {
        transform: translateY(0);
    }
    90% {
        transform: translateY(0);
    }
}

html {
    font-size: 17px;
}

#layout {
    width: 100%;
    height: auto;
    min-height: 100%;
}

#symbol {
    z-index: 9;
    padding-top: 2rem;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#symbol > img {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    animation: bounce 2s infinite;
}

header {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 10rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    padding: 2rem 3rem 2rem 2rem;
}

header > div:nth-child(2) {
    padding-right: 6rem;
}

header #logo img {
    height: 8rem;
    cursor: pointer;
}

header #symbol-header img {
    height: 9.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

header i {
    cursor: pointer;
    font-size: 5rem;
}

main {
    padding: 11rem 8rem 2rem;
    position: relative;
    min-height: 91vh;
}

.grid-sizer,
.grid-item {
    width: 30%;
}

.gutter-sizer {
    width: 5%;
}

.grid-item {
    margin-bottom: 4%;
    cursor: pointer;
    border-bottom-left-radius: 0.6rem;
    border-bottom-right-radius: 0.6rem;
}

.grid-item:hover {
    background-color: #f9f9f9;
}

.grid-item img {
    width: 100%;
}

.grid-item > div {
    text-align: center;
    margin-bottom: 1.2rem;
    line-height: 1.5rem;
}

.grid-item .item-thumbnail {
    border: 1px solid #eee;
}

.grid-item .title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 2rem;
}

.grid-item .credit {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.grid-item .credit, .grid-item .description {
    color: #666;
}

.grid.item .title, .grid-item .credit, .grid-item .tags, .grid-item .description {
    padding: 0 0.6rem;
}

.grid-item .description {
    text-align: center;
    word-break: break-all;
}


.grid-item .posted-date {
    font-weight: 800;
    font-size: 1.2rem;
}

.grid-item .tag {
    display: inline-block;
    margin: 0 0.25rem 0.5rem;
    border: 1px solid #aaa;
    color: #666;
    font-size: 0.8rem;
    border-radius: 0.2rem;
    padding: 0.05rem 1rem 0 1rem;
    cursor: pointer;
}

.grid-item .tag:hover {
    background-color: #fff;
    border-color: #666;
}

article {
    display: flex;
    justify-content: center;
}

article #contents-wrapper {
    width: 50rem;
    padding-left: 5rem;
}

article div.article {
    margin-top: 5rem;
    /*font-size: 1.15rem;
    line-height: 1.75rem;*/
    font-size: 1.1rem;
    line-height: 1.9rem;
}

article figure.image {
    margin: auto;
}

article figure.media {
    padding: 0;
    margin: 1rem 0;
}

article .image-style-side {
    float: right;
    margin-left: 1rem !important;
}

article img {
    max-width: 100%;
    height: auto;
}

article figcaption {
    font-size: 0.8rem;
    text-align: right;
}

article div.article img {
    max-width: 100%;
}

article .title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 2rem;
}

article .credit {
    margin-bottom: 1rem;
}

article .tags {
    margin-bottom: 1rem;
}

article .tag {
    display: inline-block;
    margin-right: 0.5rem;
    border: 1px solid #aaa;
    color: #666;
    font-size: 1rem;
    border-radius: 0.2rem;
    padding: 0.3rem 1rem 0.2rem 1rem;
    cursor: pointer;
}

article .tag:hover {
    background-color: #fafafa;
    border-color: #666;
}

article .posted-date {
    font-weight: 900;
}

footer {
    width: 100%;
    padding: 1rem 0;
    border-top: 1px solid black;
    font-size: 0.8rem;
    line-height: 1.3rem;
    text-align: center;
}

#search-container {
    position: fixed;
    display: none;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
}

#search-container table {
    margin-bottom: 5rem;
}

#search-container td {
    padding: 0 0.5rem;
}

#search-container input {
    font-size: 2rem;
    padding: 0.5rem;
    border: 0.3rem solid black;
    border-radius: 0.5rem;
    background-color: white;
}

#search-container i {
    font-size: 4rem;
    cursor: pointer;
}

#search-container .btn-close {
    position: absolute;
    right: 3.5rem;
    top: 2.9rem;
}

/****** Mobile ******/

@media (max-width: 600px) and (orientation: portrait) {
    html {
        font-size: 16px;
    }

    header {
        height: 7rem;
        padding: 2rem
    }

    header > div:nth-child(1) {
        margin-left: -1.5rem;
    }

    header > div:nth-child(2) {
        padding-right: 1rem;
    }

    header #logo img {
        height: 4.2rem;
    }

    header #symbol-header img {
        height: 6rem;
    }

    header i {
        cursor: pointer;
        font-size: 3rem;
    }

    main {
        padding: 7.5rem 1rem 2rem;
    }

    .grid-sizer,
    .grid-item {
        width: 100%;
    }

    .gutter-sizer {
        width: 0;
    }

    article #contents-wrapper {
        width: 100%;
        padding-left: 0;
    }

    article div.article {
        margin-top: 4rem;
    }

    article .image-style-side {
        width: 100% !important;
        clear: both;
        margin-left: unset !important;
        margin-bottom: 2rem !important;
    }

    article .image_resized {
        width: 100% !important;
    }

    article img {
        width: 100%;
    }

    article .title {
        margin-bottom: 0.6rem;
    }

    footer {
        padding: 1rem;
        font-size: 0.6rem;
        line-height: 1rem;
        text-align: center;
    }

    #search-container table {
        margin-bottom: 0;
    }

    #search-container input {
        font-size: 1.1rem;
        border: 0.25rem solid black;
        border-radius: 0.4rem;
    }

    #search-container .btn-close {
        position: absolute;
        right: 1.5rem;
        top: 2rem;
    }


}
