@charset "UTF-8";

.c-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    align-content: center;
    justify-items: center;
    justify-content: center;
    width: 100%;
    height: var(--screenHeight);
    background: rgba(0, 0, 0, .7);
    overscroll-behavior: none;
    touch-action: auto;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity .4s ease-in-out;
    -webkit-overflow-scrolling: touch;
    z-index: 1000;
}

.c-lightbox.active {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
}

.c-lightbox__inner {
    display: block;
    width: 100%;
    max-height: 100%;
    overflow: hidden;
    overflow-y: auto;
}

.c-lightbox__inner::-webkit-scrollbar {
    width: 0;
}

.c-lightbox__inner::-webkit-scrollbar-thumb {
    background: #3f4041;
}

.c-lightbox-close {
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.c-lightbox-close::before,
.c-lightbox-close::after {
    content: '';
    position: absolute;
    top: calc(50% - 1px);
    left: 20%;
    display: block;
    width: 60%;
    height: 2px;
    background: #fff;
    transform-origin: center;
}

.c-lightbox-close::before {
    transform: rotate(45deg);
}

.c-lightbox-close::after {
    transform: rotate(-45deg);
}

.quiz-result {
    position: relative;
    display: flex;
    align-items: center;
    align-content: center;
    justify-items: center;
    justify-content: center;
    width: 100%;
    /* height: 100vh; */
    min-height: 650px;
    padding: 60px 0;
    overflow: hidden;
}

.quiz-result-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: block;
    width: 25px;
    height: 25px;
    background: none;
    border: 1px solid #fff;
    cursor: pointer;
    overflow: hidden;
    z-index: 10;
}

.quiz-result-close::before,
.quiz-result-close::after {
    content: '';
    position: absolute;
    top: calc(50% - 1px);
    left: 10%;
    display: block;
    width: 80%;
    height: 2px;
    background: #fff;
    transform-origin: center;
}

.quiz-result-close::before {
    transform: rotate(50deg);
}

.quiz-result-close::after {
    transform: rotate(-50deg);
}

.quiz-result__box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
    justify-items: center;
    justify-content: center;
    width: auto;
    height: 100%;
    max-width: calc(100% - 60px);
    padding: 40px 50px;
    background: linear-gradient(to bottom, #0d1a2d 0%, #280d40 100%);
    overflow: hidden;
}

.quiz-result__box__pic {
    position: relative;
    display: block;
    width: 100%;
    max-width: 420px;
    overflow: visible;
    z-index: 0;
    flex: 0 1 auto;
}

.quiz-result__box__pic::before,
.quiz-result__box__pic::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    display: block;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    background: linear-gradient(135deg, #00d1ce, #7d4cf7);
    z-index: 0;
}

.quiz-result__box__pic::after {
    filter: blur(10px);
}

.quiz-result__box__pic img {
    position: relative;
    object-fit: contain;
    object-position: center;
    display: block;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.quiz-result-tool {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    justify-items: center;
    justify-content: center;
    width: 100%;
    max-width: 420px;
    margin: 50px auto 0 auto;
    overflow: visible;
    flex: 0 0 auto;
}

.quiz-result-bt {
    position: relative;
    display: flex;
    align-items: center;
    align-content: center;
    justify-items: center;
    justify-content: center;
    width: calc(50% - 15px);
    margin: 0 7.5px 15px 7.5px;
    padding: 10px 0;
    font-size: 15px;
    line-height: 1.2;
    color: #000;
    font-family: 'good-times', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    background: none;
    filter: drop-shadow(8px 8px #000);
    overflow: hidden;
    z-index: 0;
}

.quiz-result-bt[data-icon]::before {
    content: '';
    position: relative;
    display: block;
    width: 20px;
    height: 25px;
    margin: 0 15px 0 0;
    background: center/contain no-repeat;
    flex: 0 0 auto;
}

.quiz-result-bt[data-icon="download"]::before {
    background-image: url(/kimg/common/icon_download.svg);
}

.quiz-result-bt[data-icon="sns"]::before {
    background-image: url(/kimg/common/icon_sns.svg);
}

.quiz-result-bt[data-icon="ig"]::before {
    background-image: url(/kimg/common/icon_ig.svg);
}

.quiz-result-bt[data-icon="fb"]::before {
    background-image: url(/kimg/common/icon_fb.svg);
}

.quiz-result-bt[data-icon="again"]::before {
    background-image: url(/kimg/common/icon_again.svg);
}

.quiz-result-bt::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: #ebd864;
    -webkit-clip-path: polygon(calc(100% - 20px) 0, 100% 25%, 100% 100%, 0 100%, 0 0);
    clip-path: polygon(calc(100% - 20px) 0, 100% 25%, 100% 100%, 0 100%, 0 0);
    z-index: -10;
}

.quiz-result-bt span {
    position: relative;
    z-index: 10;
}

.quiz-result-bt:last-child {
    margin: 0 auto;
}

.quiz-result-bt[data-color="blue"]::after {
    background: #19a5c0;
}

.quiz-result-bt[data-color="white"]::after {
    background: #fff;
}

.quiz-result-again {
    display: flex;
    align-items: center;
    align-content: center;
    justify-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    margin: 15px auto 0 auto;
    padding: 0 0 3px 0;
    font-size: 15px;
    line-height: 1;
    color: #00d1ce;
    font-family: 'good-times', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-bottom: 1px solid #00d1ce;
    background: none;
    flex: 0 0 auto;
}

.quiz-result-again::before {
    content: '';
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
    margin: 0 15px 0 0;
    background: #00d1ce;
    -webkit-mask: url(/kimg/common/icon_again.svg) center/contain no-repeat;
    mask: url(/kimg/common/icon_again.svg) center/contain no-repeat;
    flex: 0 0 auto;
}

@media screen and (max-width: 991px) {}

@media screen and (max-width: 767px) {
    .quiz-result-bt {
        width: 100%;
        margin: 0 auto 15px auto;
    }

}

@media screen and (max-width: 575px) {
    .quiz-result {
        padding: 40px 0;
    }

    .quiz-result__box,
    .quiz-result-tool {
        width: calc(100% - 40px);
    }

    .quiz-result__box {
        padding: 50px 30px 30px 30px;
    }

    .quiz-result-tool {
        max-width: 230px;
        margin: 25px auto 0 auto;
    }

    .quiz-result-bt {
        padding: 6.5px 0;
        font-size: 12px;
        filter: drop-shadow(5px 5px #000);
    }

    .quiz-result-bt[data-icon]::before {
        width: 15px;
        height: 18px;
        margin: 0 10px 0 0;
    }

    .quiz-result-bt::after {
        -webkit-clip-path: polygon(calc(100% - 15px) 0, 100% 25%, 100% 100%, 0 100%, 0 0);
        clip-path: polygon(calc(100% - 15px) 0, 100% 25%, 100% 100%, 0 100%, 0 0);
    }

    .quiz-result-again {
        margin: 5px auto 0 auto;
        font-size: 12px;
    }

    .quiz-result-again::before {
        width: 15px;
        height: 15px;
        margin: 0 10px 0 0;
    }

}


/****非觸控螢幕****/
@media (any-hover: hover) {}

/****觸控螢幕****/
@media (any-hover: none) {}

/****IOS樣式****/
@supports (-webkit-touch-callout: none) {}

/****firefox樣式****/
@-moz-document url-prefix() {
    .c-lightbox__inner {
        scrollbar-width: none;
    }
}