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

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

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

:root {
    --fontY: "YANGJIN";
    --fontB: "DNFBitBit";
    --fontM: "MabinogiClassicR";
}

* {
    padding: 0;
    margin: 0;
    font-size: 16px;
    /* outline: 1px solid blue !important; */
}

li {
    list-style: none;
    padding: 10px;
}

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

body {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url(../assets/quizimg/bg3.jpg);
}

.none {
    display: none !important;
}

#quiz__wrap {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.quiz__start {
    width: 100%;
    height: 80vh;
    margin-top: 40px;
}

.quiz__start .title {
    text-align: center;
    margin-bottom: 40%;
}

.quiz__start .title span {
    font-family: var(--fontY);
    font-size: 36px;
    font-weight: 400;
    color: #A8E3C1;
    text-shadow:
        -3px -3px 0 #3D2416,
        3px -3px 0 #3D2416,
        -3px 3px 0 #3D2416,
        3px 6px 0 #3D2416;
}

.quiz__start .title h1 {
    font-family: var(--fontY);
    font-size: 10vmax;
    color: #FECA4F;
    text-shadow:
        -3px -3px 0 #3D2416,
        3px -3px 0 #3D2416,
        -3px 3px 0 #3D2416,
        3px 10px 0 #3D2416;
}

.quiz__start .title ul {
    margin-top: 30px;

}

.quiz__start .title li {
    padding: 10px;
    font-size: 16px;
    color: #FECA4F;
    text-shadow:
        -1px -1px 0 #3D2416,
        1px -1px 0 #3D2416,
        -1px 1px 0 #3D2416,
        1px 1px 0 #3D2416;
}

.quiz__start .title li i {
    font-style: normal;
    color: #fa0303;
}

#quiz__wrap .canva {
    position: absolute;
    bottom: 330px;
    left: 52px;
    width: 10px;
    height: 10px;
}

#quiz__wrap .canva2 {
    position: absolute;
    bottom: 252px;
    right: 238px;
    width: 10px;
    height: 10px;
}

#footer a {
    display: inline-block;
    font-family: var(--fontM);
    font-size: 20px;
    font-weight: bold;
    margin-top: 17%;
    color: #fff;
    text-shadow:
        -1px -1px 0 #3D2416,
        1px -1px 0 #3D2416,
        -1px 1px 0 #3D2416,
        1px 1px 0 #3D2416;
}

.quiz__start .btn button {
    padding: 10px 30px;
    box-sizing: border-box;
    border-radius: 30px;
    font-size: 2vmax;
    font-weight: bold;
    background-color: #3D2416;
    border: 1px solid #3D2416;
    color: #FFFB7D;
    cursor: pointer;
}

.quiz__play {
    width: 40vw;
    min-height: 60vh;
    border: 10px double #fff;
    background-color: #AD57B5;
    /* border-radius: 10px; */
    position: relative;
    border-radius: 30px;
    padding: 24px;
}

/* .quiz__play::before {
    content: '';
    position: absolute;
    border: 6px double #fff;
    border-radius: 30px;
    padding: 10px;
    box-sizing: border-box;
    background-color: #ea870f;
    left: -15px;
    top: -61px;
    font-family: var(--fontB);
    font-size: 4vmax;
    color: #FDFDF2;
    text-shadow:
        -3px -3px 0 #3D2416,
        3px -3px 0 #3D2416,
        -3px 3px 0 #3D2416,
        3px 10px 0 #3D2416;
    text-transform: uppercase;
} */

.quiz__play::after {
    content: 'what';
    position: absolute;
    font-family: var(--fontB);
    right: -63px;
    bottom: -31px;
    font-family: var(--fontB);
    color: #ea870f;
    font-size: 60px;
    text-shadow:
        -3px -3px 0 #3D2416,
        3px -3px 0 #3D2416,
        -3px 3px 0 #3D2416,
        3px 10px 0 #3D2416;
    transform: rotate(325deg);
    text-transform: uppercase;
}

.quiz__play .quiz__box {
    text-align: center;
    top: -46px;
    left: 50%;
    transform: translate(-50%);
    font-family: var(--fontB);
    box-sizing: border-box;
    border: 6px double #fff;
    background-color: #F56199;
    padding: 5px 20px;
    border-radius: 30px;
    position: absolute;
}

.quiz__play .quiz__box span {
    font-size: 40px;
    color: #F9F871;
    text-shadow:
        -3px -3px 0 #3D2416,
        3px -3px 0 #3D2416,
        -3px 3px 0 #3D2416,
        3px 10px 0 #3D2416;
}

.quiz__play .quiz__wrap {
    width: 40vw;
    height: 60vh;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
}

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

.quiz__play .quiz__wrap .quiz__header {
    font-size: 13px;
    font-family: var(--fontY);
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
    color: #fff;
    border-bottom: 3px solid #000;
}

.quiz__play .quiz__wrap .input input {
    width: calc(100% - 15px);
    height: 50px;
    border-radius: 20px;
    border: 0;
    text-align: center;
    font-family: var(--fontB);
    font-size: 30px;
    border: 8px solid #fff;
}

.quiz__play .input input::placeholder {
    color: #827fb5;
}

.quiz__play .confirm {
    text-align: center;
    font-family: var(--fontM);
    margin-top: 20px;

}

.quiz__play .confirm button {
    font-size: 20px;
    padding: 10px 20px;
    border-radius: 50px;
    border: 0;
    width: 30%;
    height: 50px;
    background-color: #7067f2;
    color: #fff;
    border: 4px solid #fff;
    cursor: pointer;
}

.quiz__play .confirm button:hover {
    background-color: #FF8975;
}

.quiz__play .number {
    width: 16px;
    color: #fff;
    text-align: center;
    font-size: 13px;
    border-radius: 5px;
    padding-left: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.quiz__play .quiz__wrap .question {
    font-family: var(--fontM);
    color: #fff;
    line-height: 1.3;
    font-size: 26px;
    padding: 10px 20px;
    width: 80%;
    height: 20vh;
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #FFC05E;
    border-radius: 20px;
    text-shadow:
        -1px -1px 0 #3D2416,
        1px -1px 0 #3D2416,
        -1px 1px 0 #3D2416,
        1px 2px 0 #3D2416;
}

.quiz__play .question::before {
    content: 'Q.';
    font-size: 2vmax;
    font-weight: bold;
    color: #FFEC51;
}

.quiz__play .quiz__wrap .good {
    position: relative;
}


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


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

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

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

/* 모달 전체 스타일 */
.modal {
    display: none;
    /* 초기 상태는 숨김 */
    position: fixed;
    /* 화면에 고정 */
    z-index: 1;
    /* 모든 요소 위에 표시 */
    left: 0;
    top: 0;
    width: 100%;
    /* 전체 너비 */
    height: 100vh;
    /* 전체 높이 */
    overflow: hidden;
    /* 내용이 넘칠 경우 스크롤 */
    background-color: rgba(0, 0, 0, 0.4);
    /* 반투명 배경 */
}

/* 모달 내용 스타일 */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    /* 중앙 정렬 */
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    height: 50%;
    border-radius: 10px;

    /* 내용의 너비 */
}

.modal-content h2 {
    font-size: 4vmax;
    margin-top: 40px;
    margin-bottom: 40px;
    color: #FFC05E;
    text-align: center;
    font-family: var(--fontM);
}

.modal-content p {
    font-size: 2vmax;
    font-family: var(--fontM);
}

/* 닫기 버튼 스타일 */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    text-align: right;
    width: 100%;
    border-bottom: 3px solid #000;
    margin-bottom: 30px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* 미디어 쿼리 */
@media (max-width:800px) {

    .quiz__start {
        width: 100%;
        height: 50vh;
    }

    .quiz__start .title h1 {
        font-size: 6vmax;
    }

    .quiz__play {
        width: calc(75% - 20px);
        height: 50vh;
        font-size: 2px;
    }

    .quiz__play .quiz__wrap {
        width: 70vw;
        height: 60vh;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .quiz__play .quiz__wrap .input input {
        width: 66vw;
        height: 30px;
        font-size: 16px;
        font-family: var(--fontB);
        font-weight: 300;
    }

    .quiz__play .confirm button {
        width: 22vw;
        height: inherit;
        font-size: 12px;
    }

    .quiz__wrap .quiz__header {
        font-size: 8px;
    }

    .quiz__wrap .quiz__header .number {
        font-size: 10px;
    }

    .quiz__play .quiz__wrap .question {
        font-size: 18px;
    }

}