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

main {
    margin-top: 50px;
}

section {
    display:flex;
    color: #FFF;
    padding: 10px 20px;
    overflow: hidden;
    margin: 10px 0 10px 0;
    background: transparent;
    box-shadow: 0 0 30px rgba(0, 0, 0, .2);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

section > p.subtitle {
    width: 100%;
    font-size: 1.15rem;
    text-align: left;
}

section > p.numbers > img {
    width:30px;
    margin: 0 5px;
}

section .row {
    margin: 5px 0;
}

.form-label {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #000;
    background-color: #444;
    text-align: center;
    font-size: 1.0rem;
}

.form-label-rate {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    border: 1px solid #000;
    background-color: #444;
    font-size: 1.1rem;
}

.text-label {
    display: none;
}

#formGenerate {
    width: 100%;
}

.comment {
    font-size: 0.9rem;
    color: #aeffbc;
    padding:0 0 5px 5px;
}

/* 라디오 버튼 처리 */
.switch-field {
    display: flex;
    overflow: hidden;
}

.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;
}

/* 범위설정 슬라이드 처리 */
.range-slider {
    position: relative;
    width: 90%;
    height: 60px;
    text-align: center;
    margin: 0 auto;
    /*margin-top: 20px;*/
}

.range-slider input {
    pointer-events: none;
    position: absolute;
    overflow: hidden;
    left: -5px;
    top: 40px;
    width: 105%;
    outline: none;
    height: 18px;
    margin: 0;
    padding: 0;
}

.range-slider input::-webkit-slider-thumb {
    pointer-events: all;
    position: relative;
    z-index: 1;
    outline: 0;
}

.range-slider input::-moz-range-thumb {
    pointer-events: all;
    position: relative;
    z-index: 10;
    -moz-appearance: none;
    width: 9px;
}

.range-slider input::-moz-range-track {
    position: relative;
    z-index: -1;
    background-color: rgba(0, 0, 0, 1);
    border: 0;
}

.range-slider input:last-of-type::-moz-range-track {
    -moz-appearance: none;
    background: none transparent;
    border: 0;
}

.range-slider input[type=range]::-moz-focus-outer {
    border: 0;
}

.rangeValue {
    width: 30px;
}

.output {
    position: absolute;
    border:1px solid #e3e3e3;
    width: 40px;
    height: 30px;
    text-align: center;
    color: #e3e3e3;
    border-radius: 4px;
    display: inline-block;
    font: bold 15px/30px Helvetica, Arial;
    bottom: 48%;
    left: 50%;
    transform: translate(-60%, 0);
}

.output.outputTwo {
    left: 100%;
}

input[type=range] {
    -webkit-appearance: none;
    background: none;
}

input[type=range]::-webkit-slider-runnable-track {
    height: 5px;
    border: none;
    border-radius: 3px;
    background: transparent;
}

input[type=range]::-ms-track {
    height: 5px;
    background: transparent;
    border: none;
    border-radius: 3px;
}

input[type=range]::-moz-range-track {
    height: 5px;
    background: transparent;
    border: none;
    border-radius: 3px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    border: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #555;
    margin-top: -5px;
    position: relative;
    z-index: 10000;
}

input[type=range]::-ms-thumb {
    -webkit-appearance: none;
    border: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #555;
    margin-top: -5px;
    position: relative;
    z-index: 10000;
}

input[type=range]::-moz-range-thumb {
    -webkit-appearance: none;
    border: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #555;
    margin-top: -5px;
    position: relative;
    z-index: 10000;
}

input[type=range]:focus {
    outline: none;
}

input[type=range i] {
    cursor: pointer;
}

.full-range,
.incl-range {
    width: 100%;
    height: 5px;
    left: 0;
    top: 46px;
    position: absolute;
    background: #DDD;
}

.incl-range {
    background: gold;
}

/* 토글 버튼 처리 */
.checkbox {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

input[type=checkbox]{
    height: 0;
    width: 0;
    visibility: hidden;
}

label.check_include {
    cursor: pointer;
    width: 20%;
    margin-bottom: 5px;
    padding: 5px;
    background: #4a4949;
    border-radius: 15px;
    position: relative;
    text-indent: -9999px;
}

label.check_include:after {
    content: '';
    position: absolute;
    top: 2px;
    left: 3px;
    width: 25px;
    height: 25px;
    background: #fff;
    border-radius: 25px;
    transition: 0.3s;
}

input:checked + label.check_include {
    background: #f1caf1;
}

input:checked + label.check_include:after {
    left: calc(100% - 5px);
    transform: translateX(-100%);
}

label.check_include:active:after {
    width: 90%;
}

/* 숫자 선택 */
.choose_number {
    position: absolute;
    width: 275px;
    top: 0px;
    left: 0px;
    border: 3px solid #ffa07a;
    border-radius: 20px;
    background: #cecece;
    z-index:100;
    margin: 0 auto;
    overflow: hidden;
    display: none;
}


.choose_header {
    padding: 15px;
    height: 50px;
    background-color: #ffffff;
    font-size: 0.9rem;
    text-align: center;
}

.choose_header > p > .text-number {
    font-weight: bold;
    color: #df5b26;
}

.flex-container {
    padding: 0;
    margin: 0;
    list-style: none;
    border: 1px solid silver;
    -ms-box-orient: horizontal;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -moz-flex;
    display: -webkit-flex;
    display: flex;
}

.wrap    {
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
}

.wrap li {
    background: gold;
}

.flex-item {
    padding: 5px;
    width: 30px;
    height: 30px;
    margin: 4px;
    line-height: 20px;
    color: #000000;
    font-weight: bold;
    font-size: 0.7em;
    text-align: center;
    border-radius: 15px;
    cursor: pointer;
}

.choose_footer {
    border-top: 1px solid #999;
    background-color: #FFFFFF;
    padding: 10px 10px 10px 0;
    text-align: right;
}

.manual {
    display: none;
}

.generate_container .no {
    color: #dde100;
}

.generate_numbers table {
    width: 100%;
}

.generate_numbers table th {
    text-align: center;
    vertical-align: middle;
}

.generate_numbers table td {
    text-align: center;
    vertical-align: middle;
}

.generate_numbers table th.times {
    width: 18% !important;
}

.generate_numbers table th.marking {
    width: 18% !important;
}

.generate_numbers table td.view_popup {
    cursor: pointer;
    font-size: 0.9rem;
}

td.numbers > ul {
    width: 100%;
    display: inline-flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
}

td.numbers > ul > li {
    font-size: 1.0rem;
    color: #dde100;
}

.view_mark {
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 100;
    background-color: #FFF;
    width: 288px;
    height: 594px;
    padding-top: 67px;
    background: url("../images/lotto/bg.jpg");
    display: none;
}

.tbl_mark {
    width: 288px;
    text-align: center;
}

.tbl_mark td {
    height: 75px;
    padding-top: 15px;
    padding-bottom: 15px;
}

.generate_footer button {
    margin: 0 10px;
}

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

    main {
        margin-top: 0px !important;
        overflow: auto;
        height: 80vh;
        display: block;
    }

    .contents {
        position: relative;
        width: 90%;
        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;
    }

    h3.title {
        text-align: center;
        font-size: 1.5rem;
    }

    section > p {
        margin-bottom: 0.5rem;
    }

    section > p.subtitle {
        font-size: 0.9rem;
    }

    section > p.numbers > img {
        width: 28px;
        margin: 0 2px;
    }

    div.row > label {
        display: none;
    }

    .comment {
        font-size: 0.75rem;
    }

    #choice_game_times {
        font-size: 0.78rem;
    }

    #number_include {
        font-size: 0.78rem;
        color: #8d6e00;
    }

    #number_exception {
        font-size: 0.78rem;
        color: #0034b7;
    }

    .buttons {
        width: 100%;
        text-align: center;
    }

    .generate_numbers table th {
        font-size: 0.9rem;
    }

    .generate_header p.subtitle {
        width:100%;
        text-align: center;
        font-size: 1.2rem;
    }

    .generate_footer {
        width:100%;
        text-align: center;
    }
}
