/* 모달 */
.modal.modal__msg {
    z-index: 50 !important;
}
.modal__header {
    padding: 12px 2rem 12px 2rem;
    width: 390px;
}
.modal__header .title {
    color: #191f28;
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    letter-spacing: -0.025em;
}
.modal__header .close__btn img {
    max-width: 100%;
    height: auto;
}
.modal.edit_multi_page,
.modal.edit_bg_page {
    box-shadow: 0px -5px 10px 0px rgba(117, 145, 181, 0.15);
}
.modal .content {
    display: flex;
    align-items: center;
    cursor: pointer;
    column-gap: 16px;
    height: 56px;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.modal .content:hover,
.modal .content:active {
    background-color: rgba(255, 255, 255, 0.02);
}

.modal .content.last {
    color: #70808f;
    border-bottom: 0;
}
/* 배경 꾸미기 모달 */
.modal.edit_bg_page.minimal.active {
    transform: translateY(63%);
}

.bg__color__pallete:hover,
.box__color__pallete:hover,
.font__color__pallete:hover {
    box-shadow: inset 0 0 0 1px rgb(25 31 40 / 50%);
}

.bg__color__pallete:active,
.box__color__pallete:active,
.font__color__pallete:active {
    transform: scale(0.97);
}

/* 멀티페이지 모달 */
#multipage_edit_modal .modal__header {
    width: auto;
    height: 32px;
    padding: unset;
    transform: unset;
    transition: unset;
}
#multipage_edit_modal .modal__footer {
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: center;
}
/* 언어선택 모달 */
#language_modal .modal .content.last {
    color: #fff;
    border-bottom: 0;
}
/* 멀티 페이지 모달 */
.edit_multi_page .page__box {
    border-radius: 24px;
    border: 1px solid #dbdee1;
    background: #fff;
    box-shadow: 0px 2px 4px 0px rgba(25, 31, 40, 0.05);
}
.content__page .btn__page__home {
    cursor: default;
}
.btn__page__add {
    border-radius: 24px;
    border: 1px solid #e5e7ea;
    background: #fff;
}
.btn__page__add:hover {
    background: #f8f8fa;
}
.btn__page__add:active {
    transform: scale(0.97);
    -webkit-transform: scale(0.97);
    -moz-transform: scale(0.97);
    -ms-transform: scale(0.97);
    -o-transform: scale(0.97);
}

.btn__page__del.disabled img {
    opacity: 0.4;
}
/* 통계 페이지 모달 */
#stats_page_modal .modal .content {
    padding: 0 24px;
}

.tab_item.selected {
    border-bottom: 2px solid #191f28;
    color: #191f28;
}

.black_bg {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc((var(--vh, 1vh) * 100));
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 3;
}

.after {
    content: url("/images/icon/24x24/icon_like_full.svg");
}

.draggable.vibration {
    animation: vibration 0.1s infinite;
}

.edit_bg_save_btn {
    transition: transform 0.2s ease-out;
    transform: translateY(100vh);
}
.edit_bg_save_btn.active {
    transition: transform 0.2s ease-out;
    transform: translateY(0px);
}
.bl_wide_rounded {
    display: flex;
    align-items: center;
    border: 1px solid #ffffff1a;
    border-radius: 100px;
    box-shadow: 0px 5px 10px 0px rgba(25, 31, 40, 0.15);
    background-color: #191f28;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@keyframes vibration {
    from {
        transform: rotate(0.5deg);
    }

    to {
        transform: rotate(-0.5deg);
    }
}

.wh_rounded {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #191f281a;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    box-shadow: 0 5px 10px 0 rgba(25, 31, 40, 0.1);
    background-color: #ffffffcc;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    z-index: 10;
}

.wh_rounded:active {
    transform: scale(0.95);
    -webkit-transform: scale(0.95);
    -moz-transform: scale(0.95);
    -ms-transform: scale(0.95);
    -o-transform: scale(0.95);
}

.surf_border {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #191f280f;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.surf_border:active {
    transform: scale(0.97);
    -webkit-transform: scale(0.97);
    -moz-transform: scale(0.97);
    -ms-transform: scale(0.97);
    -o-transform: scale(0.97);
}

.surf_bg {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffffb3;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}

.surf_gradient {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    border: 2px solid transparent;
    background: linear-gradient(
            0deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 1) 100%
        )
        border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    box-shadow: 0px 5px 10px 0px rgba(25, 31, 40, 0.15);
}

.btn_surf img {
    position: absolute;
}

.dice_rounded {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 24px;
    width: 48px;
    height: 48px;
    background-image: linear-gradient(#fff, #fff),
        linear-gradient(to bottom, #ffffffff, #ffffff00);
    background-origin: border-box;
    background-clip: content-box, border-box;
    box-shadow: 0px 5px 10px 0px rgba(25, 31, 40, 0.15);
    cursor: pointer;
}

.btn_page_home {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border: 1px solid #dbdee1;
    border-radius: 24px;
    width: 28px;
    height: 28px;
    box-shadow: 0px 5px 10px 0px rgba(25, 31, 40, 0.1);
}

.toggle__switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

.toggle__switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #c3c7cd;
    -webkit-transition: 0.4s;
    transition: 0.4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    -webkit-transition: 0.4s;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #191f28;
}

input:checked + .slider:before {
    -webkit-transform: translateX(14px);
    -ms-transform: translateX(14px);
    transform: translateX(14px);
}

.modal.edit_multi_page input:focus {
    outline: 0;
}

#box_decorate_sidebar .container__body,
#box_put_sidebar .container__body {
    height: calc((var(--vh, 1vh) * 100) - 56px);
    overflow: overlay;
}
#crop_modal .container__body {
    background-color: white;
}

.crop__wrapper {
    max-height: calc((var(--vh, 1vh) * 100) - 160px);
}

.bottom__bl__modal {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc((var(--vh, 1vh) * 100));
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 10;
}

#language_modal {
    z-index: 10;
}

#crop_modal.bottom__bl__modal {
    z-index: 11;
}

/* 모달 */
.bottom__bl__modal .modal {
    transform: translateY(100%);
    transition: transform 0.2s ease-out;
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 10;
    border-radius: 20px 20px 0 0;
}
.bottom__bl__modal .modal.active {
    transform: translateY(0%);
}
.bottom__bl__modal .modal__header.active {
    transform: translateY(0%);
}

.bottom__bl__modal .modal__header {
    transform: translateY(-100%);
    transition: transform 0.2s ease-out;
}
#crop_modal.bottom__bl__modal .modal-content {
    height: 100%;
    top: 64px;
}
.bottom__bl__modal .wrapper__header {
    height: 35px;
    padding: 6px 24px 22px 24px;
}
.bottom__bl__modal.profile .wrapper__header {
    height: 31px;
}
#linkpage_modal .wrapper__header {
    height: 84px;
    padding: 22px 24px 36px 24px;
}
#box_type_modal .wrapper__header {
    height: 68px;
    padding: 22px 24px 20px 24px;
}
#box_type_modal .title,
#linkpage_modal .title {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
    letter-spacing: -0.025em;
}
.bottom__bl__modal .wrapper {
    padding: 0 24px 24px 24px;
}
.bottom__bl__modal .wrapper.last {
    padding-bottom: 28px;
}
.bottom__bl__modal.profile .wrapper.last {
    padding-bottom: 32px;
}
.bottom__bl__modal .content__wrap {
    padding: 0;
    cursor: pointer;
}
.bottom__bl__modal .modal-content.active {
    transform: translateY(0);
}
.bottom__bl__modal .modal-content .container__body {
    background-color: #191f28;
    margin: 0 1rem 0 1rem;

    border-radius: 20px;
}
.bottom__bl__modal .content__body p {
    color: #fff;
    text-align: center;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.025em;
}
.modal__header__bar {
    height: 3px;
    width: 60px;
    flex-shrink: 0;

    border-radius: 100px;
    background: var(--text-contents, #76808f);
}
#box_type_modal .tab__btn {
    width: calc((100vw - 2rem - 48px - 30px) / 4);
    height: calc((100vw - 2rem - 48px - 30px) / 4);
    box-shadow: inset 0 0 0 1px var(--line-color-1, #212833);
    border-radius: 20px;
    background-color: #212833;
    display: flex;
    flex-direction: column;
    text-align: center;
    cursor: pointer;
}
.tab__wrap {
    flex-direction: column;
    gap: 8px;
    color: #c3c7cd;
    text-align: center;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: -0.025em;
}
#loading_img {
    top: calc(50% - 37px);
    left: calc(50% - 37px);
    position: absolute;
    width: 75px;
    height: 75px;
    z-index: 9999;
    filter: alpha(opacity=50);
    opacity: alpha * 0.5;
    margin: auto;
    padding: 0;
}

/* 로그인 모달 */
/* 기본 체크박스를 숨깁니다. */
.hidden-checkbox {
    display: none;
}

/* 커스텀 체크박스 디자인 */
.custom-checkbox {
    position: relative;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    content: "";
}

input {
    font-size: 14px;
    letter-spacing: -0.025em; 
}

/* 체크마크 추가 */
.hidden-checkbox:checked + .checkmark:after {
    content: url("/images/icon/22x22/icon_check.svg");
    position: absolute;
    display: block;
    padding: 0 5px;
}

/* 체크 표시 스타일 */
.checkmark:after {
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    box-shadow: 0 0 0 1px #dbdee1 inset;
    border-radius: 8px;
    content: "";
}
/* 모바일 active 스타일 */
.check_save.active .checkmark:after {
    box-shadow: 0 0 0 1px #999fa9 inset;
    border-radius: 8px;
}

.check_save.active .checktxt {
    color: #191f28 !important;
}
@media all and (min-width: 599px) {
    #box_type_modal .tab__btn {
        width: calc((390px - 2rem - 48px - 30px) / 4);
        height: calc((390px - 2rem - 48px - 30px) / 4);
        box-shadow: inset 0 0 0 1px var(--line-color-1, #212833);
        border-radius: 20px;
        background-color: #212833;
        display: flex;
        flex-direction: column;
        text-align: center;
        cursor: pointer;
    }
}

@media all and (max-width: 599px) {
    #decorate_color_modal .modal__header {
        width: 100%;
    }
}

/* 600px 이상 1024px 모바일웹 화면 */
@media all and (min-width: 600px) and (max-width: 1024px) {
    .bottom__bl__modal {
        width: 390px;
        left: calc(50% - 195px);
    }
}

/*--------------------------------------------------*/

/* 1025px 이상 PC웹 화면 */
@media all and (min-width: 1025px) {
    .bottom__bl__modal {
        width: 390px;
        left: calc(50% + 68px);
    }
}
