@font-face {
    font-family: "bitbit";
    font-weight: normal;
    font-style: normal;
    src: url(../fonts/DNFBitBit.woff)format(woff),
        url(../fonts/DNFBitBit.woff2)format(woff2);
    font-display: swap;
}

@font-face {
    font-family: 'GmarketSans';
    font-weight: 300;
    font-style: normal;
    src: url('https://cdn.jsdelivr.net/gh/webfontworld/gmarket/GmarketSansLight.eot');
    src: url('https://cdn.jsdelivr.net/gh/webfontworld/gmarket/GmarketSansLight.eot?#iefix') format('embedded-opentype'),
        url('https://cdn.jsdelivr.net/gh/webfontworld/gmarket/GmarketSansLight.woff2') format('woff2'),
        url('https://cdn.jsdelivr.net/gh/webfontworld/gmarket/GmarketSansLight.woff') format('woff'),
        url('https://cdn.jsdelivr.net/gh/webfontworld/gmarket/GmarketSansLight.ttf') format("truetype");
    font-display: swap;
}

@font-face {
    font-family: 'GmarketSans';
    font-weight: 500;
    font-style: normal;
    src: url('https://cdn.jsdelivr.net/gh/webfontworld/gmarket/GmarketSansMedium.eot');
    src: url('https://cdn.jsdelivr.net/gh/webfontworld/gmarket/GmarketSansMedium.eot?#iefix') format('embedded-opentype'),
        url('https://cdn.jsdelivr.net/gh/webfontworld/gmarket/GmarketSansMedium.woff2') format('woff2'),
        url('https://cdn.jsdelivr.net/gh/webfontworld/gmarket/GmarketSansMedium.woff') format('woff'),
        url('https://cdn.jsdelivr.net/gh/webfontworld/gmarket/GmarketSansMedium.ttf') format("truetype");
    font-display: swap;
}

@font-face {
    font-family: 'GmarketSans';
    font-weight: 700;
    font-style: normal;
    src: url('https://cdn.jsdelivr.net/gh/webfontworld/gmarket/GmarketSansBold.eot');
    src: url('https://cdn.jsdelivr.net/gh/webfontworld/gmarket/GmarketSansBold.eot?#iefix') format('embedded-opentype'),
        url('https://cdn.jsdelivr.net/gh/webfontworld/gmarket/GmarketSansBold.woff2') format('woff2'),
        url('https://cdn.jsdelivr.net/gh/webfontworld/gmarket/GmarketSansBold.woff') format('woff'),
        url('https://cdn.jsdelivr.net/gh/webfontworld/gmarket/GmarketSansBold.ttf') format("truetype");
    font-display: swap;
}

/* reset */
* {
    margin: 0;
    padding: 0;
    font-family: "bitbit";
    box-sizing: border-box;
    font-size: 16px;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: #000;
}

/* conmmon */
.none {
    display: none !important;
}

#quiz__wrap {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 8px solid #b4fefb;
    border-radius: 20px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1000;
}

#quiz__wrap::before {
    content: "";
    border: 8px solid #8fc7eb;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 12px;
    z-index: -1;
    /* background-color: #e9f5fd; */
}


/* quiz__start */
.quiz__start {
    width: 50vw;
    height: 50vh;
    border: 10px solid #fff;
    background-color: #c5b7e7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    flex-direction: column;
}

.quiz__start .title {
    width: 100%;
    border-bottom: 10px solid #fff;
    padding: 10px;
}

.quiz__start .title span {
    font-family: "GmarketSans";
    color: #fff;
    font-weight: 400;
    letter-spacing: 4px;
}

.quiz__start .text span {
    font-family: "GmarketSans";
    font-style: 20px;
    color: #ffffff;
}

.quiz__start .text span i {
    font-family: "GmarketSans";
    font-style: 20px;
    font-weight: normal;
    color: #7d4fb3;

}

.quiz__start .text span strong {
    font-family: "GmarketSans";
    font-style: 20px;
    font-weight: normal;
    color: #6f95e0;
}

.quiz__start .text h1 {
    font-size: 5vmax;
    font-weight: normal;
    text-align: center;
    color: #f8f8f8;
    line-height: 1;
}

.quiz__start .text ul {
    margin-top: 10px;
}

.quiz__start .text li {
    font-family: "GmarketSans";
    color: #fff;
}

.quiz__start .btn {
    padding: 20px;
    margin-bottom: 10px;
}

.quiz__start .btn button {
    padding: 10px;
    font-size: 30px;
    border-radius: 50px;
    border: 0;
    background-color: #674f91;
    color: #fff;
    border: 5px solid #fff;
    cursor: pointer;
}

/* quiz__bg */
.quiz__bg #canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #000000, #540a30, #ffdeef);
}

.quiz__bg {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -10;
}

/* quiz__play */
.quiz__play {
    width: 50vw;
    min-height: 50vh;
    border: 10px solid #fff;
    background-color: #c5b7e7;
    display: flex;
    border-radius: 10px;
    position: relative;
    padding: 24px;
    flex-direction: column
}

.quiz__play .number {
    position: absolute;
    right: -10px;
    top: -72px;
    background-color: #c7aceb;
    color: #fff;
    text-align: center;
    border-radius: 3px;
    font-size: 30px;
    padding: 10px 30px;
    border: 10px solid #fff;
}

.quiz__play .question {
    font-family: "GmarketSans";
    color: #fff;
    line-height: 1.3;
    font-size: 24px;
}

.quiz__play .question::before {
    content: 'Q.';
    font-size: 40px;
    color: #ff763c;
    font-weight: bold;
}

.quiz__play::before {
    content: '???';
    position: absolute;
    left: -55px;
    top: 5px;
    font-family: "bitbit";
    color: #ff763c;
    font-size: 40px;
    text-shadow: 5px 5px 0px#f8f8f8;
    transform: rotate(-90deg);
}

.quiz__play::after {
    content: '마참내!';
    position: absolute;
    right: -112px;
    bottom: 50px;
    font-family: "bitbit";
    color: #79bbfa;
    font-size: 60px;
    text-shadow: 5px 5px 0px#e5e5e5;
    transform: rotate(90deg);
    text-transform: uppercase;
}

.quiz__play .answer {
    margin-top: 30px;
}

.quiz__play .answer input {
    width: 100%;
    height: 100px;
    border-radius: 20px;
    border: 0;
    text-align: center;
    font-size: 30px;
}

.quiz__play .answer input::placeholder {
    color: #c4c4c4;
}

.quiz__play .confirm {
    text-align: center;
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
}

.quiz__play .confirm button {
    font-size: 17px;
    padding: 10px 20px;
    font-family: "GmarketSans";
    background-repeat: 50px;
    border: 0;
    background-color: #a489ba;
    border-radius: 30px;
    border: 4px solid #fff;
}

.quiz__play .answer {
    margin-top: 30px;
    font-size: 17px;
    padding: 10px 20px;
    font-family: "GmarketSans";
    background-repeat: 50px;
    background-color: #a489ba;
    border: 4px solid #fff;
}

.quiz__play .desc {
    font-size: 17px;
    padding: 10px 20px;
    font-family: "GmarketSans";
    background-repeat: 50px;
    background-color: #a489ba;
    border: 4px solid #fff;
}

/* quiz__finish */
.quiz__finish {
    width: 50vw;
    height: 70vh;
    border: 10px solid #fff;
    background-color: #c5b7e7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    text-align: center;
    flex-direction: column;
}

.quiz__finish .notice h2 {
    font-family: 'GmarketSans';
    font-size: 5vmax;
    color: #fff;
    font-weight: normal;
}

.quiz__finish .notice ul {
    padding: 10px;
}

.quiz__finish .notice ul li {
    font-family: 'GmarketSans';
    color: #fff;
    font-size: 2vmax;
    line-height: 1.3;
    padding: 10px;
}

.quiz__finish .finish_btn {
    padding: 20px;
}

.quiz__finish .finish_btn button {
    padding: 10px 40px;
    font-size: 30px;
    border-radius: 50px;
    border: 0;
    background-color: #c5b7e7;
    color: #fff;
    border: 5px solid #fff;
    cursor: pointer;
}



/* 미디어 쿼리 */

@media (max-width: 800px) {
    .quiz__start {
        width: 100%;
        height: 100vh;
    }

    .quiz__play {
        width: 70%;
        height: 70vh;
        position: relative;
        justify-content: space-around;
    }

    .quiz__play .confirm .button1 {
        justify-content: space-around;
        left: 30px;
        bottom: 10px;
        position: absolute;
    }

    .quiz__play .confirm .button2 {
        justify-content: space-around;
        bottom: 10px;
        position: absolute;
    }

    .quiz__play .confirm .next {
        justify-content: space-around;
        right: 30px;
        bottom: 10px;
        position: absolute;
    }

    .quiz__finish {
        width: 70%;
        height: 70vh;
        justify-content: center;
    }
}

@media(max-width: 350px) {
    .quiz__start {
        width: 100%;
        height: 100vh;
    }

    /* quiz__play */
    .quiz__play {
        width: 70%;
        height: 70vh;
        position: relative;
        justify-content: space-around;
    }

    .quiz__play .confirm .button1 {
        justify-content: space-around;
        left: auto;
        bottom: 100px;
        position: absolute;
        border-radius: 0;
    }

    .quiz__play .confirm .button2 {
        justify-content: space-around;
        bottom: 57px;
        position: absolute;
        border-radius: 0;
    }

    .quiz__play .confirm .button3 {
        justify-content: space-around;
        right: auto;
        bottom: 14px;
        position: absolute;
        border-radius: 0;
    }

    .quiz__play .question {
        font-family: "GmarketSans";
        color: #fff;
        line-height: 1;
        font-size: 14px;
    }

    .quiz__play .question::before {
        content: 'Q.';
        font-size: 30px;
        color: #ff763c;
        font-weight: bold;
    }

    .quiz__play .answer input {
        width: 100%;
        height: 50px;
        border-radius: 20px;
        border: 0;
        text-align: center;
        font-size: 20px;
    }

    .quiz__play .answer {
        margin-top: -30px;
    }

    .quiz__play .number {
        position: absolute;
        font-size: 20px;
        top: 10px;
        right: -10px;
        border: 0;
        height: 10px;
        background-color: #c5b7e7;

    }

    /* quiz__finish */
    .quiz__finish {
        width: 70%;
        height: 70vh;
        justify-content: center;
    }

    .quiz__finish .finish_btn button {
        padding: 10px 40px;
        font-size: 20px;
        border-radius: 0px;
        border: 0;
        background-color: #c5b7e7;
        color: #ffffff;
        border: 1px solid #fff;
        cursor: pointer;
    }
}

/* good, bad */
.quiz__wrap .quiz.good {
    position: relative;
}

.quiz__wrap .quiz.good::before {
    content: '';
    width: 130px;
    height: 130px;
    border: 10px solid red;
    border-radius: 50%;
    position: absolute;
    left: 20px;
    top: 20px;
    z-index: 100;
}

.quiz__wrap .quiz.bad {
    position: relative;
}

.quiz__wrap .quiz.bad::before {
    content: '';
    width: 150px;
    height: 10px;
    background-color: red;
    position: absolute;
    left: 0;
    top: 80px;
    border-radius: 30px;
    transform: rotate(45deg);
    z-index: 100;
}

.quiz__wrap .quiz.bad::after {
    content: '';
    width: 150px;
    height: 10px;
    background-color: red;
    position: absolute;
    left: 0;
    top: 80px;
    border-radius: 30px;
    transform: rotate(-45deg);
    z-index: 100;
}

.quiz__check {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 100px;
    height: 100px;
    line-height: 94px;
    text-align: center;
    background-color: #2d5557;
    color: #ffffff;
    cursor: pointer;
    border-radius: 50%;
    border: 5px solid #548082;
    transition: all 0.3s;
}

.quiz__check:hover {
    border: 5px solid transparent;
    background-color: #a0c3c4;
    color: #ffffff;
}