/* 글꼴: link.php 에서 Pretendard 동적 서브셋(woff2, 필요한 글자만 내려받음)을 불러온다. 예전 1.1MB woff 는 제거 */
* {
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

.wrap {
    /* display: flex; */
    /* justify-content: center; */
    padding: 50px;
    max-width: 768px;
    width: 100%;
    margin: 0px auto;
    background-color: white;
    min-height: 100vh;
    height: auto;
    overflow-y: auto;
    position: relative;
    flex-wrap: wrap;
}

.wrap > h2 {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
    white-space: nowrap;
}

.wrap > p {
    text-align: center;
    margin-bottom: 30px;
}

.swiper {
    height: auto;
}

.swiper-slide {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    /* border: 2px solid RGBA(0, 0, 0, 0.2); */
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 244 / 75;
}

.bottom {
    display: none;
}

.bottom div {
    width: 20%;
    font-size: 12px;
    padding-top: 10px;
    cursor: pointer;
    opacity: 0.3;
}

.bottom div.on {
    opacity: 1;
}
.bottom div i {
    width: 100%;
    font-size: 20px;
}

#itemList ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

#itemList li {
    width: 100%;
}

#itemList .card {
    width: 49%;
    position: relative;
    cursor: pointer;
    height: auto;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 1px 5px 12px 0px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.single .flex {
    justify-content: center;
}

.card img {
    width: 100%;
}

.card div {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    /* border-radius: 100px; */
    height: 30px;
    line-height: 30px;
    white-space: nowrap;
    /* background-color: rgba(255, 255, 255, 0.788); */
    /* border: 1px solid #444; */
}

.banner {
    width: 100%;
    height: 100px;
    margin-bottom: 30px;
    cursor: pointer;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
}

.not_open {
    cursor: default;
    position: relative;
}
.not_open::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    content: "Coming Soon";
    color: white;
    transform: translate(-50%, -50%) rotate(-15deg);
    z-index: 2;
}

.not_open::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    content: "";
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    border-radius: 10px;
}

.pre {
    text-align: left;
    width: 100%;
    word-break: keep-all;
    margin-top: 50px;
}

body {
    position: relative;
}
.wrap,
footer {
    max-width: 650px;
}
.floating {
    position: fixed;
    bottom: 10%;
    right: 5%;
    border-radius: 50%;
    border: 1px solid #444;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
input {
    margin-bottom: 30px;
    box-shadow: 1px 5px 12px 0px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    outline: none;
    border: 0;
    font-size: 20px;
}
ul {
    margin-bottom: 50px;
}
li {
    height: auto;
    margin-bottom: 20px;
    box-shadow: 1px 5px 12px 0px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 10px;
}
li img {
    height: 60px;
    width: 60px;
    object-fit: cover;
    border-radius: 4px;
    overflow: hidden;
}
li h2 {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 15px;
}
li .flex {
    gap: 20px;
    align-items: center;
}
li a {
    color: #444;
}
.search-box {
    position: relative;
}
.search-box i,
.search-box svg {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 14px;
    color: #444;
    width: 36px;
    height: 36px;
}
.profile_img {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    overflow: hidden;
    /* border:2px solid #444; */
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0px 6px 10px 5px rgba(0, 0, 0, 0.1);
}
#searchInput {
    font-size: 14px;
}
li.card .flex {
    flex-wrap: wrap;
}
li.card h2 {
    text-align: center;
    width: 100%;
}
.card img {
    height: 100px;
}

.wrap {
    position: relative;
}

.share_btn {
    position: absolute;
    top: 70px;
    left: 50px;
    width: calc(100% - 100px);
    justify-content: space-between;
}

pre {
    margin-bottom: 30px;
    font-size: 14px;
}

.back {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    z-index: 8;
    background-color: rgba(0, 0, 0, 0.4);
}
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 50px;
    height: auto;
    width: 90%;
    max-width: 550px;
    box-shadow: 0px 6px 10px 5px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    z-index: 9;
    background: white;
    box-sizing: content-box;
}

.popup .flex {
    justify-content: center;
    gap: 5%;
    margin-top: 20px;
}

.popup .flex div {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 6px 10px 5px rgba(0, 0, 0, 0.1);
}
.popup .flex div:nth-child(1) {
    background: #0e111f;
    color: white;
}
.popup .flex div:nth-child(2) {
    background: #f9e000;
}
.popup .flex div:nth-child(3) {
    background: #00c73c;
}
.popup .flex div:nth-child(2) img {
    padding: 5px;
}
.popup .flex div img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
}

.share_btn i,
.share_btn svg {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    padding: 0;
    box-shadow: 0px 6px 10px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    cursor: pointer;
}

path {
    transform: scale(0.4); /* 1.2배 확대 */
    transform-origin: center;
}

#qrcode {
    margin-top: 10px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.toast {
    position: fixed;
    width: max-content;
    padding: 0 20px;
    border-radius: 100px;
    background: #ff1a57;
    color: white;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
    font-size: 14px;
    text-align: center;
    height: 30px;
    line-height: 30px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}

hr {
    width: 100%;
    margin: 20px 0;
}

body.dark {
    background-color: rgb(33 33 33 / 90%);
    color: white;
}

body.dark .wrap,
body.dark .popup {
    background-color: #1e1f21;
}

body.dark input {
    color: white;
    background-color: #1e1f21;
}

body.dark #itemList li h2 {
    color: white;
    background-color: #1e1f21;
}

body.dark footer,
body.dark .popup .flex div:nth-child(1) {
    color: white;
    background-color: #0e111f;
}

body.dark .search-box i {
    color: white;
}

body.dark .share_btn i,
body.dark li,
body.dark #itemList .card,
body.dark #searchInput,
body.dark .profile_img {
    box-shadow: 0px 6px 10px 5px rgba(255, 255, 255, 0.1);
}

#ad {
    width: 100%;
    min-height: 100px;
    height: auto;
    box-shadow: 1px 5px 12px 0px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.custom-pagination {
    position: absolute;
    right: 10px;
    bottom: 10px;
    border-radius: 100px;
    width: max-content;
    height: 20px;
    padding: 5px 7px;
    background: #0e111fc7;
    color: white;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    white-space: nowrap;
}

.swiper-slide img {
    display: block;
}

.tab_menu {
    gap: 1%;
    justify-content: space-between;
}
.tab_menu li {
    cursor: pointer;
    width: 23%;
    font-size: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: keep-all;
}

.tab_menu li.on {
    background-color: #ff1a57;
    color: white;
}

.tab {
    padding: 20px 0;
    margin-bottom: 30px;
}

#join {
    bottom: 10%;
    height: 40px;
    line-height: 40px;
    transition: 1s;
    cursor: pointer;
    display: none;
}

@media (max-width: 768px) {
    .wrap {
        padding: 0 5%;
        padding-top: 50px;
    }

    .wrap > h2 {
        font-size: 16px;
    }
    .wrap > p {
        font-size: 12px;
    }
    li h2 {
        font-size: 12px;
    }
    .bottom {
        /* display: flex; */
        position: fixed;
        justify-content: space-between;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50px;
        background: white;
        box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    }
    .card {
        width: 49%;
        height: auto;
        font-size: 10px;
        margin-bottom: 50px;
    }
    .card div {
        bottom: -30px;
    }
    li img {
        height: 50px;
        width: 50px;
    }
    #itemList li {
        padding: 10px 20px;
    }
    .tab_menu {
        flex-wrap: wrap;
        justify-content: start;
    }
    .tab_menu li {
        margin-bottom: 10px;
        min-width: max-content;
        white-space: nowrap;
    }
    .popup {
        box-sizing: border-box;
        padding: 30px;
    }
    pre {
        white-space: pre-wrap;
        word-break: break-word;
        font-size: 12px;
    }
    .share_btn {
        left: 5%;
        width: 90%;
    }
}
