/* ======= FONTS INIT ======== */

@font-face {
    font-family: 'Campton';
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    src: url('./woff2/CamptonLight.woff2') format('woff2');
}

@font-face {
    font-family: 'Campton';
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url('./woff2/CamptonBook.woff2') format('woff2');
}

@font-face {
    font-family: 'Campton';
    font-weight: 900;
    font-style: normal;
    font-display: swap;
    src: url('./woff2/NeueCamptonBlack.woff2') format('woff2');
}

/* ======= COMMON INIT ======== */

* {
    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;
    font-family: 'Campton', sans-serif;
    padding: 0;
    margin: 0;
}

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

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

html {
    font-size: 1vw;
}

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

img {
    vertical-align: middle;
}

form {
    padding: 0;
    margin: 0;
}

/* ======= COMMON LAYOUT ======== */

body {
    font-weight: 700;
    font-size: 2.1rem;
    line-height: 2.7rem;
}

#logo {
    position: absolute;
    left: 0;
    top: 0;
    padding: 4rem;
    z-index: 10;
}

#logo a {
    display: inline-block;
}

#logo img {
    width: 3.5rem;
}

nav {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 10;
    padding: 3.5rem 12rem 4rem 0;
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 900;
    width: 35rem;
}

nav.white {
    color: white;
}


.thumbnail_large {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.thumbnail_large.visible {
    opacity: 1;
    transform: translateY(0);
}

.background-blue {
    background-color: rgb(0,0,225);
}

.background-black {
    background-color: rgb(0,0,0);
}

/* ======= BUTTONS ASIDE ======== */

#btn-arrow-container, #btn-list-container {
    position: fixed;
    bottom: 0;
    padding-bottom: 4rem;
    z-index: 10;
}

#btn-arrow-container {
    left: 50%;
    transform: translateX(-50%);
}

#btn-arrow, #btn-list {
    display: inline-block;
    cursor: pointer;
}

#btn-arrow img {
    width: 3rem;
}

#btn-list-container {
    right: 4rem;
}

#btn-list img {
    width: 7rem;
}

/* ======= MAIN PAGE ======== */

main {
    background-color: #beff00;
    width: 100%;
    display: flex;
}

main a {
    display: inline-block;
}

main section {
    padding: 4rem;
    width: 50vw;
    height: auto;
    min-height: 100vh;
}

main #main-title {
    font-size: 3.6rem;
    line-height: 4.5rem;
    padding-top: 13rem;
    font-weight: 900;
}

main #main-text {
    line-height: 3.1rem;
    padding-top: 3rem;
}


#list-main li {
    padding: 4rem 4rem 8rem 4rem;
    background-color: #000000;
}

#list-main a:hover .title {
    color: #beff00;
}

#list-main .title {
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.8rem;
    padding-top: 0.5rem;
}

#list-main .thumbnail_large img {
    width: 100%;
}

/* ======= VIEW PAGE ======== */

#view-container {
    color: white;
    width: 100%;
    height: auto;
    /*min-height: 100vh;*/
}

#article-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 4.5rem;
    text-align: center;
    padding: 17rem 10rem 0 10rem;
}

article {
    display: flex;
}

article#contents {
    padding-top: 4rem;
    font-size: 1.6rem;
    line-height: 2.4rem;
}

article section {
    width: 50vw;
}

article section.left {
    padding: 0 1rem 0 4rem;
}

article section.right {
    padding: 0 4rem 0 1rem;
}

article#description {
    color: white;
    padding-top: 4rem;
    font-size: 1.3rem;
    line-height: 2.2rem;
}

#copyright {
    text-align: center;
    color: white;
    padding: 7rem 0 10rem 0;
    font-size: 1.3rem;
}

#list-view {
}

#list-view li {
    padding: 4rem 4rem 0 4rem;
}

#list-view .thumbnail_large img {
    width: 100%;
}

#list-view li .caption{
    color: white;
    text-align: right;
    font-size: 1.3rem;
    padding-top: 0.6rem;
}

/* ======= LIST PAGE ======== */

#list-container {
    width: 100%;
    height: auto;
    min-height: 100vh;
    padding: 4rem;
}

#list-container ul {
    padding-top: 13rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

#list-container li {
    width: 32.4%;
    margin-bottom: 4rem;
}

#list-container li .thumbnail_small {
    width: 100%;
    aspect-ratio: 4 / 2.8;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#list-container li .title {
    font-size: 1.2rem;
    color: white;
    padding-top: 0.6rem;
}

#list-container li:hover .title {
    color: #beff00;
}

#list li {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

#list li.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ======= CONTACT PAGE ======== */

#contact-container {
    background-color: #beff00;
    width: 100%;
    height: auto;
    min-height: 100vh;
    padding: 4rem;
}

#contact-info {
    padding-top: 7rem;
    display: flex;
    justify-content: space-between;
}

#contact-info section {
    width: 48%;
}

#contact-sns {
    margin-top: 4rem;
}

#contact-info {
    margin-top: 3rem;
}

#contact-info .contact-title {
    font-size: 3.5rem;
    line-height: 4.2rem;
    font-weight: 900;
    padding: 3rem 0 2rem 0;
}

#contact-info .contact-text {
    font-size: 1.5rem;
    line-height: 2.4rem;
}

/* 태블릿 이하 (최대 1024px) */
@media (max-width: 1024px) {
    html {
        font-size: 1.5vw;
    }

    #logo {
        padding: 2rem;
    }

    #logo img {
        width: 4rem;
    }

    nav {
        font-size: 1.5rem;
        line-height: 3rem;
        font-weight: 900;
        width: 40rem;
        padding: 1.5rem 10rem 2rem 0;
    }


    /* MAIN PAGE */

    main {
        display: block;
    }

    main #main-title {
        padding-top: 10rem;
    }

    main section {
        width: 100%;
        padding: 2rem;
    }

    main #main-right {
        display: none;
    }

    #list-main {
        background-color: black;
        padding-top: 1rem;
        padding-bottom: 10rem;
    }

    #list-main .title {
        font-size: 1.5rem;
    }

    #list-main li {
        padding: 2rem 2rem 2rem 2rem;
    }

    #list-container li {
        width: 49%;
    }

    #list-container li .title {
        padding-top: 1rem;
        line-height: 2rem;
    }

    /* VIEW PAGE */

    article section.left {
        padding: 0 1rem 0 2rem;
    }

    article section.right {
        padding: 0 2rem 0 1rem;
    }

    #list-view {
        padding-top: 3rem;
    }

    #list-view li {
        padding: 2rem 2rem 0 2rem;
    }

    /* LIST PAGE */
    #list-container {
        padding: 4rem 2rem 4rem 2rem;
    }

    /* CONTACT PAGE */
    #contact-container {
        padding: 4rem 2rem 4rem 2rem;
    }

}

/* 모바일+ (최대 768px) */
@media (max-width: 768px) {
    html {
        font-size: 1.6vw;
    }

}


/* 모바일 전용 (최대 480px) */
@media (max-width: 480px) {
    html {
        font-size: 2.5vw;
    }

    #logo img {
        width: 4rem;
    }

    nav {
        padding: 1rem 3rem 2rem 0;
        display: flex;
        justify-content: space-between;
        font-size: 1.5rem;
        line-height: 3.2rem;
        font-weight: 900;
        width: 27rem;
    }

    /* ======= VIEW PAGE ======== */

    #article-title {
        padding: 14rem 4rem 4rem 4rem;
    }

    article {
        display: block;
    }

    article#contents {
        padding-top: 0;
        font-size: 2rem;
        line-height: 3rem;
    }

    article section {
        width: 100%;
    }

    article section.left, article section.right {
        padding: 1rem 2rem;
    }

    article#description {
        padding-top: 3rem;
        font-size: 1.8rem;
        line-height: 2.6rem;
    }

    #copyright {
        font-size: 1.5rem;
    }

    /* ======= LIST PAGE ======== */

    #list-container ul {
        padding-top: 10rem;
        display: block;
    }

    #list-container li {
        width: 100%;
    }

    #list-container li .thumbnail_small {
        width: 100%;
        aspect-ratio: 4 / 2.8;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    #list-container li .title {
        font-size: 1.8rem;
        line-height: 2.5rem;
        padding-top: 1rem;
    }

    /* ======= CONTACT PAGE ======== */

    #contact-info {
        padding-top: 5rem;
        display: block;
    }

    #contact-info section {
        width: 100%;
    }

    #contact-info section.right {
        padding-top: 3rem;
    }


    #contact-info .contact-text {
        font-size: 2rem;
        line-height: 3rem;
    }

}