* {
    box-sizing: border-box;
    font-family: sans-serif;
    list-style: none;
    margin: 0;
    outline: none;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit !important
}

body, html {
    height: 100%;
}

body {
    background: #fafafa;
    font-family: sans-serif;
}
div.loading{
    display:none;
    position:absolute;
    top:0;
    right:0;
    bottom:0;
    left:0;
    width:100vw;
    height:100vh;
    background-color:#000000;
    opacity: 0.6;
}
div.loading > img{
    width:12em;
    height:12em;
    margin: auto;
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
}
.container {
    align-items: center;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
}

div.calendar {
    display:none;
    background: #2b4450;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .3);
    height: 501px;
    /* perspective: 1000;
    transition: .9s;
    transform-style: preserve-3d; */
    width: 100%;
}
table.calendar{
    border-spacing: 0px;
    border-collapse: collapse;
    background-color: #fff;
}
table.calendar thead td{
    height: 50px;
    font-weight:bold;
}
table.calendar td{
    box-sizing:border-box;
    text-align:center;
    border:1px solid #ccc;
    margin: 20px;
    padding:20px;
    
    width:150px;
    height:150px;
    position: relative;
}
.selected{
    background-color: #9CCC654F;
}

.lesson{
    position:relative;
    background-color: #6595cc4f;
}
td.lesson:nth-child(1) {
    background-color: #F48FB14F;
}
td.lesson:nth-child(2) {
    background-color: #B0BEC54F;
}
td.lesson:nth-child(3) {  
    background-color: #81D4FA4f;
}
td.lesson:nth-child(4) {
    background-color: #80DEEA4f;
}
td.lesson:nth-child(5) {
    background-color: #80CBC44f;
}
td.lesson:nth-child(6) {
    background-color: #BCAAA44f;
}
td.lesson:nth-child(7) {
    background-color: #B39DDB4f;
}
td.lesson.selected{
    background-color: #F443364f;
}
td.lesson.selected::after{
    position:absolute;
    background-color:#F443364f;
    display: block;
    content: '선택 취소';
    font-size:1.1em;
    text-align: center;
    left:0;
    top:0;
    width:100%;
    height:100%;
    color:#fff;
    box-sizing:border-box;
    padding-top: 60%;
}
.small{
    font-size: 0.8em;
}
table.calendar tbody td > span.info{
    position: absolute;
    display: block;
    left:0;
    right:0;
    text-align:center;
    margin: 0 auto;
    font-size:0.8em;
}

.current-date {
    position:relative;
    border-bottom: 1px solid rgba(73, 114, 133, .6);
    padding: 30px 40px;
    display:flex;
    justify-content: center;
}
.current-date .btn-wrap{
    position:absolute;
    right:0;
    display: none;
}
.current-date .btn-wrap.active{
    display:block;
}

.current-date .btn-wrap .btn.btn-submit,.current-date .btn-wrap .btn.btn-cancel{
    border: 0;
    display: inline-block;
    border-radius: 5px;
    width:auto;
    height:auto;
    border:1px solid;
    padding: 7px 15px;
    font-size: 1em;
    margin:0;
}
.current-date .btn-wrap .btn.btn-submit{
    background-color:#318aff;
    border-color:#318aff;
}
.current-date .btn-wrap .btn.btn-cancel{
    background-color:#ff5c71;
    border-color:#ff5c71;
}
.current-date .btn-wrap .btn.btn-submit:hover{
    background-color:#006eff;
    border-color:#006eff;
}
.current-date .btn-wrap .btn.btn-cancel:hover{
    background-color:#ff1938;
    border-color:#ff1938;
}
.current-date .btn {
    /* border-radius:50%;
    background-color:#777; */
    color:#fff;
    width:32px;
    height:32px;
    font-weight: bold;
    font-size: 2em;
    text-align: center;
    margin: 0 10px;
    cursor:pointer;
}
.current-date .btn .fa{
    vertical-align: top;
    color: #777;
}

.current-date h1 {
    color: #666;
    font-size: 1.4em;
    font-weight: 300;
}

.week-days td:not(:nth-child(1)) {
    cursor:pointer
}

.last-month, .next-month {
    opacity: .3;
}

.public-holiday {
    color:rgb(255, 81, 81) !important;
}
.today{
    text-decoration: underline;
}
.txt-red{
    color:rgb(255, 81, 81);
}
.txt-blue{
    color:rgb(107, 107, 255);
}

@media (max-width:720px) {
    table.calendar td{
        box-sizing:border-box;
        text-align:center;
        border:1px solid #ccc;
        margin: 20px;
        padding:0px;
        
        width:70px;
        height:70px;
        position: relative;
    }
    table.calendar tbody td > span.info{
        font-size: 0.7em;
    }
    .current-date .btn-wrap {
        left:0;
        margin:auto;
        text-align: center;
    }
}
