#mask {
    position:absolute;
    left:0; top:0;
    z-index:50;
    background-color:#000;
    display:none;
}

main {
    margin-top: 50px;
}

#periodic-wrapper {
    position: relative;
    width: 800px;
    border-radius: 20px;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 30px rgba(0, 0, 0, .5);
    justify-content: center;
    align-items: center;
    border:1px solid #FFFFFF;
    padding: 20px;
    color: #FFFFFF;
    margin: auto;
    overflow: hidden;
    display:block;
}

.contents-introduction {
    position: relative;
    overflow-y: auto;
}

.info {
    width: 60%;
    margin: 0 auto;
    font-size: 0.75rem;
    text-align: left;
}
.statistics {
    margin-top: 20px;
    display: inline-flex;
    width: 60%;
}

.group {
    width: 50%;
    text-align: center;
    background-color: #3e3939;
    border-radius: 5px;
    margin-right: 5px;
    padding:10px;
}

.tblstat {
    width: 100%;
}

.tblstat th {
    border-left: 1px solid #325b84;
    border-top: 1px solid #325b84;
    border-bottom: 1px solid #325b84;
    background-color: #000000;
    padding: 10px;
    font-size: 0.7rem;
}

.tblstat th:nth-child(2) {
    border-right: 1px solid #325b84;
}

.tblstat td {
    background-color: #FFFFFF;
    color: #000000;
    border-right: 1px solid #325b84;
    border-bottom: 1px solid #325b84;
    font-size: 0.7rem;
    text-align: right;
    padding-right: 5px;
}

.quiz-info {
    text-align: left;
    width: 60%;
    font-size: 0.75rem;
    margin: 0 auto;
    margin-top: 20px;
    background: #3e3939;
    padding: 10px;
}

.quiz-info > ul {
    display: inline-flex;
    flex-direction: column;
    width: 100%;
}

.quiz-info > ul > li {
    text-indent: -13px;
    padding-left: 24px;
}

.buttons {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 60%;
}

.quiz-group {
    width: 47%;
    margin: 5px;
    padding: 10px;
    border-radius: 20px;
    border: 0px solid rgba(0,123,255,.25);
    background: linear-gradient(320deg, black, #b5a7ff);
    color: #FFFFFF;
}

.quiz-group strong {
    display:block;
    margin-bottom:10px;
}

.button-quiz {
    position: relative;
    background-color: #1e90ff;
    width: 70%;
    z-index: 999;
}

hr {
    border-radius: 2px;
    height: 10px;
    width: 80%;
    margin: 0 auto;
    margin-top: 10px;
    border-color: #ffa071;
}

.quiz-type {
    width: 100%;
    text-align: right;
    margin: 0 auto;
}

/* 라디오 버튼 처리 */
.switch-field {
    display: inline-flex;
    overflow: hidden;
    width: 140px;
    margin: 0 auto;
}

.switch-field input {
    position: absolute !important;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    width: 1px;
    border: 0;
    overflow: hidden;
}

.switch-field label {
    width: 50%;
    height: 2.0rem;
    background-color: #e4e4e4;
    color: rgb(73, 2, 73);
    font-family: gulim;
    font-weight: 800;
    font-size: 0.9rem;
    line-height: 1;
    text-align: center;
    padding: 8px 16px;
    margin-right: -1px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.1s ease-in-out;
}

.switch-field label:hover {
    cursor: pointer;
}

.switch-field input:checked + label {
    background-color: #f1caf1;
    box-shadow: none;
}

.switch-field label:first-of-type {
    border-radius: 4px 0 0 4px;
}

.switch-field label:last-of-type {
    border-radius: 0 4px 4px 0;
}

.quiz-group button {
    margin:10px 25px;
    font-size: 1.0rem;
}

.buttons button {
    font-size: 0.8rem;
}

/* 랭킹정보 팝업 */
.ranking-info {
    position: absolute;
    width: 500px; height: 600px;
    top: 100px;
    left: 100px;
    border-radius: 20px;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 30px rgba(0, 0, 0, .5);
    justify-content: center;
    align-items: center;
    border: 1px solid #FFFFFF;
    padding: 20px;
    color: #FFFFFF;
    margin: auto;
    overflow-y: scroll;
    display: none;
    z-index: 100;
}

.ranking-info .ranking-header {
    padding: 10px 0;
    text-align: center;
}

.ranking-info .ranking-footer {
    padding: 10px 0;
    text-align: right;
}

.ranking-info .ranking-footer button {
    height: 30px;
    width: 80px;
    font-size: 0.8rem;
}

    /* 랭킹정보 팝업 - 테이블 */
#tblRanking {
    width: 100%;
}

#tblRanking thead th {
    height: 40px;
    background-color: #3e3939;
    border-bottom: 1px solid #1c3150;
    font-size: 0.8rem;
    text-align: center;
}

#tblRanking tr {
    border-bottom: 1px solid #005e03
}

#tblRanking tbody td {
    height: 30px;
    color: #000;
    background-color: #9ba589;
    font-size: 0.75rem;
    text-align: center;
}

#tblRanking tbody td.rank_nicname {
    width: 30%;
}

#tblRanking tbody td.rank_date {
    width: 25%;
}

.contents-introduction::-webkit-scrollbar {
    width: 5px;               /* width of the entire scrollbar */
}

.contents-introduction::-webkit-scrollbar-track {
    background: transparent;        /* color of the tracking area */
}

.contents-introduction::-webkit-scrollbar-thumb {
    background-color: transparent;    /* color of the scroll thumb */
    border-radius: 3px;       /* roundness of the scroll thumb */
    border: 1px solid #F1CAF1FF;  /* creates padding around scroll thumb */
}

@media screen and (max-width: 768px) {
    #periodic-wrapper {
        width: 80%;
        top: -50px;
    }

    main {
        overflow: auto;
        height: 80vh;
        display: block;
    }

    .info {
        width: 100%;
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .contents-introduction {
        display: block;
        overflow-y: auto;
        height: 350px;
    }

    .statistics {
        margin-top: 20px;
        display: inline-flex;
        width: 100%;
        flex-direction: column;
    }

    .statistics .group {
        flex-direction: column;
        width: 100%;
        margin-bottom: 20px;
    }

    .quiz-info {
        width: 100%;
    }

    .buttons {
        width: 100%;
    }

    .quiz-group {
        width: 100%;
    }

    .quiz-group strong {
        display:block;
        font-size: 1.2rem;
        padding: 10px;
    }

    .quiz-group button {
        margin:10px 15px;
        font-size: 1.0rem;
    }

    /* 랭킹정보 */
    .ranking-info {
        width: 80%;
        height: 400px;
        overflow-y: auto;
    }

    .ranking-header h4 {
        font-size: 1.0rem;
    }

}

