@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100;300;500;700&display=swap');
body{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(210, 233, 188);
    font-family: 'Noto Sans TC', sans-serif;
}
.calendar{
    height: 500px;
    width: 900px;
    background-color: #fff;
    color: #888;
    border-radius: 25px;
    padding: 20px;
    position: relative;
    box-shadow: 0 6px 10px rgba(114, 132, 90, 0.416);
    overflow: hidden;
}

#add-schedule{
    background-color: sandybrown;
    color: #fff;
    border: none;
    position: fixed;
    width: 60px;
    height: 45px;
    top: 5px;
    left: 20%;
    /* box-shadow: 0 5px 5px #cbcbcb; */
    font-size: 30px;
    padding-top: 4px;
    border-top: 2px solid rgb(201, 135, 78);
    cursor: pointer;
    transition: .3s;
}
#add-schedule:hover{
    font-size: 39px;
    padding-top: 0;
    color: #777;
}
#add-schedule::before{
    content: "";
    border-left: 30px solid sandybrown;
    border-right: 30px solid sandybrown;
    border-bottom: 30px solid transparent;
    position: absolute;
    top: calc(100% - 8px);
    left: 0;
    transform: scaleY(.5);
}
.calendar-header{
    margin: auto;
    width: 50%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 25px;
    
}
.year-picker{
    display: flex;
    align-items: center;
    font-weight: 300;
}
.year-picker pre{
    margin: 0;
}
.year-change{
    cursor: pointer;
    margin: 0 30px;
}

.month-picker{
    cursor: pointer;
    position: relative;
    padding: 0 30px;
}
.month-picker::after{
    content: "≡";
    position: absolute;
    top: 10px;
    right: -20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 3px;
    padding: 0 0 1px;
    color: #fff;
    background-color: rgb(129, 175, 68);
    width: 20px;
    height: 18px;
    font-size: 16px;

    
}
.calendar-week-day{
    height: 50px;
    display: grid;
    grid-template-columns: repeat(7,1fr);
    font-weight: 500;
    text-align: center;
    align-items: center;
    font-size: 12px;
}
.calendar-days{
    /* display: flex;
    justify-content: space-around; */
    height: 420px;
    display: grid;
    grid-template-columns: repeat(7,1fr);
    grid-template-rows: repeat(6,1fr);
    font-size: 18px;
    font-weight: 300;
}

.calendar-days .day-container{
    margin: 2px;
    animation: to-top 1s forwards;
    position: relative;
}
.day-container .dayBC{
    background-color: rgb(243, 250, 236);
    height: 100%;
}
.dayBC{
    transition: .5s;
    /* border: 1px solid transparent; */
    box-shadow: 0 3px 3px #fff;
    font-size: 14px;
}
.dayBC:hover{
    /* border: 1px solid sandybrown; */
    box-shadow: 0 2px 6px #aaa;
}

/* 點選到 顏色不同 */
.dayBC .day-num.curr-date{
    width: 22px;
    height: 22px;
    text-align: center;
    background-color: rgb(129, 175, 68);
    color: #fff;
    border-radius: 50%;
    display: inline-block;
}
.schedToday p{
    margin: 0;
    font-size: 12px;
    padding: 0;
    display: block;
    width: 100%;
    cursor: pointer;
}
/* 月份選擇板 */
.month-list{
    background-color: rgb(163, 211, 119);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: absolute;
    top: 0;
    right: -341px;
    width: 300px;
    height: 500px;
    text-align: center;
    padding: 20px;
    cursor: pointer;
    transition: right .5s;
    color: #fff;
}
.month-list .close-area{
    position: absolute;
    top: 0;
    left: -340px;
    height: 100%;
    width: 100%;
    /* background-color: palevioletred;   */
    display: none;  
    cursor: default;
}
.month-list div{
    transition:   .3s;
    font-size: 18px;
}
.month-list div.curr{
    color: #ffee8b;
    font-size: 22px;
}
.month-list div:hover{
    /* color: #888; */
    text-shadow: 0 2px 5px rgb(82, 110, 45);
    transform: scale(1.1);
}
.month-list.show{
    right: 0;
}
.month-list.show::after{
    display: block;  
}

@keyframes to-top{
    0%{ top: 20px;}
    100%{ top: 0;}
}

/* ------------------ Modal------------------ */
.schedule-modal{
    position: fixed;
    width: 500px;
    height: 400px;
    background-color: #fff;
    z-index: 2;
    border-radius: 25px;
    display: none;
}
.schedule-modal .close{
    position: absolute;
    top: -20px;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 17px;
    background-color: #888;
    color: #fff;
    cursor: pointer;
}
.schedule-modal .input-group{
    display: block;
    margin: 20px auto;
    width: 80%;
    background-color: rgb(129, 175, 68);
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 20px;
}
.input-group label{
    color: #fff;
    font-weight: 300;
    letter-spacing: 1px;
    font-size: 14px;
}
.input-group input{
    color: #777;
    background-color: rgb(243, 250, 236);
    border:none;
    width: 70%;
    height: 40px;
    text-align: center;
    border-radius: 0 4px 4px 0;
    font-size: 18px;
    box-sizing: border-box;
    padding: 5px 10px;
}
.input-group input:focus{
    outline: 1px solid #888;
}
input[type="color"]{
    cursor: pointer;
    padding: 5px 40px;
}
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator{
    filter: invert(63%) sepia(98%) saturate(330%) hue-rotate(333deg) brightness(100%) contrast(92%);
  }
hr{
    border:1px solid #ccc;
    width: 90%;
}
.button-group{
    display: flex;
    justify-content: end;
    padding: 10px 20px 0 0;

}
#btn-add-schedule,
#btn-revise-schedule,
#btn-clear-schedule{
    background-color: sandybrown;
    color: #fff;
    padding: 10px 15px;
    margin: 0 10px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-shadow: 0 0 5px #999;
    letter-spacing: 1px;
    box-shadow: 0 2px 3px #ccc;
    cursor: pointer;
}
#btn-revise-schedule{
    background-color: rgb(129, 175, 68);
}
#btn-clear-schedule{
    background-color: rgb(250, 114, 114);
}
.schedule-modal button[disabled]{
    background-color: #ccc !important;
    color: #fff!important;
    cursor: default!important;
}



.cover-bg{
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #000000a0;
    top: 0;
    left: 0;
    z-index: 1;
    display: none;
}
