/* @font-face {
    font-family: 'EBSHMJESaeronRA';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_one@1.0/EBSHMJESaeronRA.woff') format('woff');
    font-weight: normal;
    font-style: normal;
} */

@font-face {
    font-family: 'SUIT';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_suit@1.0/SUIT-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'SUIT';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_suit@1.0/SUIT-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'SUIT';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_suit@1.0/SUIT-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'SUIT';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_suit@1.0/SUIT-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

* {
    font-family: 'SUIT', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.home-subHeader {
    & .inner {
        h2 {
            font-size: 35px;
            margin: 0 0 10px 0;
            color: black;
            /* font-family: 'EBSHMJESaeronRA'; */
            font-weight: 400;
        }    
    }
}
.hashtag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.service_menu {
    display: inline-block;
    padding: 4px;
    background: #f5f5f5;
    border-radius: 7px;
    font-size: 17px;
    color: #333;
    /* font-family: 'EBSHMJESaeronRA'; */
}

.css-i44wyl {
    display: inline-flex;
    flex-direction: column;
    position: relative;
    min-width: 0px;
    padding: 0px;
    margin: 0px;
    border: 0px;
    vertical-align: top;
}

.css-1v4ccyo {
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.4375em;
    letter-spacing: 0.00938em;
    color: rgba(0, 0, 0, 0.87);
    box-sizing: border-box;
    cursor: text;
    display: inline-flex;
    -webkit-box-align: center;
    align-items: center;
    position: relative;
    border-radius: 4px;
}

.css-q8lw68 {
    user-select: none;
    width: 1em;
    height: 1em;
    display: inline-block;
    fill: currentcolor;
    flex-shrink: 0;
    font-size: 1.5rem;
    transform: scale(1);
    transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.css-1o6z5ng {
    font: inherit;
    letter-spacing: inherit;
    color: currentcolor;
    border: 0px;
    box-sizing: content-box;
    background: none;
    height: 1.4375em;
    margin: 0px;
    -webkit-tap-highlight-color: transparent;
    display: block;
    min-width: 0px;
    width: 100%;
    animation-name: mui-auto-fill-cancel;
    animation-duration: 10ms;
    padding: 8.5px 14px;
}

.css-p58oka {
    display: flex;
    flex-flow: wrap;
}

.css-1jaw3da {
    display: inline-flex;
    -webkit-box-align: center;
    align-items: center;
    cursor: pointer;
    vertical-align: middle;
    -webkit-tap-highlight-color: transparent;
    margin-left: -11px;
    margin-right: 16px;
}

.css-1a5icme {
    display: inline-flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    background-color: transparent;
    outline: 0px;
    border: 0px;
    margin: 0px;
    cursor: pointer;
    user-select: none;
    vertical-align: middle;
    appearance: none;
    text-decoration: none;
    padding: 2px 5px;
    border-radius: 50%;
    color: rgba(0, 0, 0, 0.6);
}

.css-1a5icme.Mui-checked {
    color: rgb(25, 118, 210);
}

.css-hyxlzm {
    position: relative;
    display: flex;
}

.css-1636szt {
    user-select: none;
    width: 1em;
    height: 1em;
    display: inline-block;
    fill: currentcolor;
    flex-shrink: 0;
    font-size: 1.5rem;
    position: absolute;
    right: 7px;
    top: calc(50% - 0.5em);
    pointer-events: none;
    color: rgba(0, 0, 0, 0.54);
    transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.css-1gtikml.css-1gtikml.css-1gtikml {
    padding-right: 32px;
}

.css-1636szt {
    user-select: none;
    width: 1em;
    height: 1em;
    display: inline-block;
    fill: currentcolor;
    flex-shrink: 0;
    font-size: 1.5rem;
    position: absolute;
    right: 7px;
    top: calc(50% - 0.5em);
    pointer-events: none;
    color: rgba(0, 0, 0, 0.54);
    transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.css-13sljp9 {
    display: inline-flex;
    flex-direction: column;
    position: relative;
    min-width: 0px;
    padding: 0px;
    margin: 0px;
    border: 0px;
    vertical-align: top;
}

.css-1m9pwf3 {
    cursor: inherit;
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    margin: 0px;
    padding: 0px;
    z-index: 1;
}

.css-1u5ei5s {
    user-select: none;
    width: 1em;
    height: 1em;
    display: inline-block;
    fill: currentcolor;
    flex-shrink: 0;
    font-size: 1.5rem;
    left: 0px;
    position: absolute;
    transform: scale(1);
    transition: transform 150ms cubic-bezier(0, 0, 0.2, 1);
}

.css-1gtikml.css-1gtikml.css-1gtikml {
    padding-right: 32px;
}

.hashtag {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.db_contents {
    color: #393939;
    border: 1px solid #3282f6;
    border-radius: 7px;
    padding: 1px 5px;
    font-size: 9pt;
    height: 30px;
    line-height: 26px;
    /* margin: 4px 5px; */
    width: calc((100% - 8px) / 3);
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
}

@media screen and (min-width: 768px) {
    .db_contents {
        width: calc((100% - 16px) / 5);
    }
}

.col2 {
    width: 100%;
    margin: 20px auto;
    BACKGROUND: #eee;
    padding: 10px;
}


.boxholder {
    /* margin: 10px; */
    /* margin-bottom: 10px; */
    /* background-image: url(/img/sss.jpg); */
    /* -webkit-background-size: 100%;
    background-size: 100%; */
    position: relative;
    /* -webkit-background-repeat: no-repeat;
    background-repeat: no-repeat;
    -webkit-border-radius: 5px; */
    /* border-radius: 5px; */
    /* border-top: 1px solid #EEE;
    border-left: 1px solid #EEE;
    border-right: 1px solid #AAA;
    border-bottom: 1px solid #AAA;
    -webkit-box-shadow: 0px 0px 2px #eee;
    box-shadow: 0px 0px 2px #eee; */    
}
.boxholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: -webkit-linear-gradient(
        top,
        rgba(255, 255, 255, 0.5) 0%, 
        rgba(255, 255, 255, 0.8) 30px,
        rgba(200, 200, 200, 1.0) 150px,
        rgba(200, 200, 200, 1.0) 100%
    );
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.5) 0%, 
        rgba(255, 255, 255, 0.8) 30px,
        rgba(200, 200, 200, 1.0) 150px,
        rgba(200, 200, 200, 1.0) 100%
    ); */
    background: #f0f0f0;
    pointer-events: none;
    z-index: 1;
    /* -webkit-border-radius: 4px;
    border-radius: 4px; */
    /* 아이폰 Safari 렌더링 문제 해결을 위해 transform 제거 */
    /* -webkit-transform: translateZ(0);
    transform: translateZ(0); */
}

/* 아이폰 Safari 호환성을 위한 추가 스타일 */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .boxholder h2 {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .boxcontent {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}
.boxholder h2 {
    font-size: 20px !important;
    color: #333;
    padding: 10px;
    /* font-family: 'EBSHMJESaeronRA'; */
    font-weight: 400;
    z-index: 3;
    cursor: pointer;
    position: relative;
    /* padding-right: 20px;
    padding-top: 25px; */
    text-align: center;
    border-top: 1px solid #e1d0d0;
    padding-top: 10px;
    text-align: left;
    /* 아이폰 Safari 렌더링 문제 해결 */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}
.boxholder h2:after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    width: 16px;  /* 이미지 크기 조절 */
    height: 16px;
    background-image: url('/icon/arrow-up.png');  /* 이미지 경로 */
    background-size: contain;
    background-repeat: no-repeat;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}
.boxholder h2.active:after {
    transform: rotate(180deg) translateY(50%);
}
.boxholder_sub {
    width: calc(100% / 3 - 10px);
    /* background: aliceblue; */
    border-radius: 10px;
    padding: 10px;
}
.boxholder_sub h2 {
    padding-top: 0px;
    font-size: 18px !important;
}
.boxcontent {
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    /* -webkit-border-radius: 12px;
    border-radius: 7px; */
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    /* font-family: 'TheJamsil5Bold', -apple-system, BlinkMacSystemFont, sans-serif; */
    position: relative;
    z-index: 2;
    /* margin: 0 10px; */
    /* border-top: 1px solid #AAA;
    border-left: 1px solid #AAA;
    border-right: 1px solid #FFF;
    border-bottom: 1px solid #FFF; */
    /* -webkit-box-shadow: inset 1px 1px 0px #DDD, 1px 1px 1px #EEE;
    box-shadow: inset 1px 1px 0px #DDD, 1px 1px 1px #EEE; */
    display: -webkit-flex;
    display: none;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 10px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    text-align: left;
    /* 아이폰 Safari 렌더링 문제 해결 */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}


/*
    Copy from here downwards
  */

.res .box.text {
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.res .box.text>h2 {
    text-align: center;
    position: relative;
}

.res .box.text>h2:after {
    content: "\f054";
    font-family: "Font Awesome 5 Pro";
    position: absolute;
    right: 0;
    top: 0;
    transform: rotate(0deg);
    transition: 0.25s;
}

.res .box.text.qna_show>h2:after {
    transform: rotate(90deg);
}

.res .box.text>h2:before {
    content: "Q. ";
}

.res .box.text>.box_content {
    overflow: hidden;
    padding: 0 50px;
}

.res .box.text>.box_content p:first-of-type:before {
    content: "";
    font-weight: bold;
}



.saju-item {
    padding: 15px 20px;
    height: 90px;
    display: flex;
    font-family: 'NIXGONM-Vb';
    /* background: aliceblue; */
    border: 1px solid #b5b5b5;
    border-radius: 5px;
}

.saju-item-header,
.saju-item-body {
    display: inline-flex;
}
.saju-item-icon {
    margin-right: 10px;
    display: flex;
    align-items: center;
}
.saju-item-sex {
    background: #2f6dc5;
    padding: 4px;
    font-size: .9em;
    color: white;
    border-radius: 8px;
}
.saju-item-sex.m {
    background: #2f6dc5;
}
.saju-item-sex.w {
    background: #d71b17;
}
.saju-item-birth {
    margin-top: 5px;
}
.saju-item-label {
    display: inline-flex;
    align-items: center;
    color: #2f6dc5;
    font-weight: bold;
}

.saju-item-label:not(:empty)::before {
    content: '✓';
    display: inline-block;
    margin-right: 4px;
    color: #2f6dc5;
    font-size: 1.2em;
    font-weight: bold;
}

.saju-item-label:not(:empty) {
    padding: 0px 2px; 
}
.saju-item-action {
    display: inline-flex;
    margin-left: auto;
    align-items: center;
    gap: 10px;
}
.pick-btn.on {
    background: yellow;
}

.saju-item-actions .delete-btn {
    color: #ff4444;
}

.saju-item-actions .delete-btn:hover {
    background: #fff0f0;
}



.toast-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
    z-index: 1000;
}

.share-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.share-button:hover {
    transform: scale(1.1);
}

.share-button.kakao { background-color: #FEE500; }
.share-button.facebook { background-color: #3b5998; color: white; }
.share-button.twitter { background-color: #1DA1F2; color: white; }
.share-button.link { background-color: #25D366; color: white; }

.button-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.time-counter {
    color: #2c2c2c;
    font-weight: bold;
    min-width: 100px;
    text-align: right;
    font-size: 9pt;
    margin-right: 10px;
    margin-top: 5px;
}

.lotto-number {
    padding: 5px;
}
.unse-result-title {
    font-size: 20px;
    padding: 20px;
}

.unse-result-popup .swal2-html-container {
    overflow-y: auto;
    max-height: 80vh;
    /* margin-top: 10px; */
    padding: 0px 15px;
}

.service-input-box-title {
    background: #9eb8c5;
    font-size: 10pt;
    padding: 5px 10px;
    color: white;
    border: 1px solid #9eb8c5;
}

/* 모바일 버전 (768px 이하) */
@media screen and (max-width: 768px) {
    .home-subHeader {
        & .inner {
            h2 {
                font-size: 20px;
                margin: 0 0 8px 0;
                line-height: 1.4;
            }    
        }
    }

    .hashtag-container {
        gap: 4px;
    }

    .service_menu {
        font-size: 14px;
        border-radius: 5px;
    }
    .boxholder_sub {
        width: calc(100% / 2 - 10px);
        /* background: aliceblue; */
        border-radius: 10px;
        padding: 10px;
    }
}

/* 작은 모바일 화면 (480px 이하) */
@media screen and (max-width: 480px) {
    .home-subHeader {
        & .inner {
            h2 {
                font-size: 18px;
                margin: 0 0 6px 0;
            }    
        }
    }

    .service_menu {
        font-size: 13px;
    }

    .boxholder h2 {
        padding-top: 8px;
        font-size: 19px !important;
        padding-bottom: 8px;
    }
    .boxholder_sub {
        width: calc(100%);
        /* background: aliceblue; */
        border-radius: 10px;
        padding: 10px;
    }
    .boxcontent {
        /* margin: 7px; */
    }
    .lotto-number {
        padding: 5px;
    }
}


@media (max-width: 750px) {
    .saju-item-birth {
        font-size: .69em;
    }
    .saju-item-actions button {
        padding: 6px 12px;
        font-size: 0.8em;
        width: auto;
    }
    .saju-item-actions button {
        padding: 6px 12px;
        font-size: 0.8em;
        width: auto;
    }
    .share-button {
        width: 40px;
        height: 40px;
    }
    .saju-item {
        padding: 10px;
    }
    .saju-item-user{
        font-size: 13px;
    }
    .saju-item-sex {
        font-size: 0.5em;
    }
}

@media (max-width: 450px) {
    .checks label {
        font-size: 0.9em;
    }
    .saju-item-icon img {
        width: 30px;
        height: 30px;
    }
    .saju-item-birth {
        font-size: .7em;
    }
    .saju-item-actions button {
        padding: 6px 12px;
        font-size: 0.8em;
        width: auto;
    }
    .saju-item-action {
        gap: 5px;
    }
    .share-button {
        width: 30px;
        height: 30px;
    }
}

@media screen and (max-width: 480px) {
    .home-subHeader {
        padding-top: 30px;
    }
}