body {
    font-family: -apple-system, system-ui, system-ui, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif;
    background: linear-gradient(45deg, rgba(66, 180, 250, 0.5) 0%, rgba(60, 250, 200, 0.5) 100%);
    height: 100vh;
    height: -webkit-fill-available;
    margin: 0;
    padding: 0;
}

h1 {
    padding-top: 50px;
    text-align: center;
}

h3 {
    margin: 0 0 20px 0;
    text-align: center;
    font-weight: unset;
    font-size: 1.1rem;
    color: rgb(108, 122, 137);
}

.logout {
    position: fixed;
    display: block;
    top: 20px;
    right: 20px;
    padding: 10px;
    border-radius: 10px;
    background: #60b4df;
    color: #fff;
    cursor: pointer;
}

.calendar-box {
    display: block;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    margin: 2vh 3% 5vh 3%;
    padding: 50px 0;
}

.date-select {
    width: 100%;
    transition: all 0.12s ease-out;
    margin-bottom: 20px;
}

.date-select td {
    text-align: center;
    vertical-align: middle;
    height: 20px;
    overflow: scroll;
}

.switch-sel {
    font-size: 14px;
    background: rgba(0, 0, 0, 0.1);
    width: 80%;
    border-radius: 4px;
    text-align: center;
    margin: 0 auto 50px auto;
    min-width: 100px;
}

.switch-sel input,
.switch-sel input+label {
    display: none;
    padding: 8px 0;
    float: left;
    border-radius: 4px;
}

.switch-sel input:checked+label {
    display: unset;
    width: 80%;
    max-width: calc(80% - 20px);
    min-width: fit-content;
}

.switch-sel button {
    width: 10%;
    min-width: 20px;
    padding: 9.5px 0;
    border-radius: 4px;
    background: #60b4df;
    color: #fff;
    float: left;
    cursor: pointer;
    outline: none;
    border: none;
}

#calendar-div {
    overflow: scroll;
    padding: 0 5%;
    text-align: center;
    height: calc(100vh - 400px);
}

.timetable {
    width: 100%;
    margin: auto;
    text-align: center;
    border-collapse: collapse;
}

.timetable td {
    vertical-align: top;
    position: relative;
    border: 1px solid rgb(210, 215, 211);
    padding-top: 50px;
    height: 100px;
    font-weight: bold;
    overflow: scroll;
}

.timetable tr:first-child td {
    height: unset;
    border: none;
    vertical-align: bottom;
    text-align: right;
    padding: 5px 0;
}

.tabledate {
    position: absolute;
    top: 15px;
    right: 15px;
}

.allevents {
    height: 150px;
    margin-bottom: 10px;
    overflow: scroll;
}

.allevents::-webkit-scrollbar {
    display: none;
}

.event {
    position: relative;
    display: flex;
    text-align: right;
    background: #ff7979;
    margin: 0 5% 5px 5%;
    border-radius: 5px;
    height: 30px;
}

.event[room="710"] {
    background: #f6e58d;
}

.event[room="904"] {
    background: #7ed6df;
}

.event[reserved] {
    background: none;
    border: 1px dashed rgb(108, 122, 137);;
}

.event span[type="starttime"] {
    display: block;
    position: absolute;
    top: 2px;
    left: 3px;
    width: 20%;
    font-size: x-small;
}

.event span[type="endtime"] {
    display: block;
    position: absolute;
    bottom: 2px;
    left: 3px;
    font-size: x-small;
}

.event span[type="content"] {
    display: flex;
    width: 30%;
    align-items:center;
    margin-left: auto;
    text-align: right;
    font-size: xx-small;
}

#startbookingbtn,
#showmobilebookingpage,
.booking {
    display: none;
    z-index: 9;
}

.startbookingbtn {
    position: fixed;
    bottom: 25px;
    left: 0;
    width: 30%;
    padding: 5px 0;
    margin: 0 35%;

    background-color: #000;
    border: 1px solid #000;
    border-radius: 4px;
    box-shadow: rgba(255, 255, 255, 1) 4px 4px 0 0, #000 4px 4px 0 1px;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: block;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
}

.startbookingbtn:focus,
.startbookingbtn:hover,
.showmobilebookingpage:focus,
.showmobilebookingpage:hover {
    text-decoration: none;
}

#startbookingbtn:checked ~.startbookingbtn {
    display: none;
}

@media (min-width: 1200px) {

    .showmobilebookingpage {
        display: none;
    }

    #startbookingbtn:checked~.element-switch .booking {
        position: fixed;
        right: 0;
        width: 40%;
        height: calc(100vh - 100px);
        display: block;
        overflow: hidden;
        border-radius: 10px;
        margin: 0 3% 5vh 3%;
        padding: 0;
    }

   #startbookingbtn:checked~.element-switch .calendar-box {
        position: fixed;
        height: calc(100vh - 225px);
        left: 0;
        width: 50%;
        margin-top: 0;
    }

    #startbookingbtn:checked~.element-switch #calendar-div {
        height: calc(100vh - 300px);
    }

}

@media (max-width: 1200px) {

    .showmobilebookingpage {
        position: fixed;
        bottom: 25px;
        left: 0;
        width: 30%;
        padding: 5px 0;
        margin: 0 35%;
        z-index: 9;
        background-color: #000;
        border: 1px solid #000;
        border-radius: 4px;
        box-shadow: rgba(255, 255, 255, 1) 4px 4px 0 0, #000 4px 4px 0 1px;
        box-sizing: border-box;
        color: #fff;
        cursor: pointer;
        display: block;
        font-size: 14px;
        font-weight: 400;
        text-align: center;
    }

    .booking {
        position: relative;
        display: none;
        overflow: hidden;
        position: fixed;
        top: 110px;
        margin: 0 4% 5vh 4%;
        right: 0;
        width: 92%;
        height: calc(100vh - 180px);
        border-radius: 10px;
        padding: 0;
    }

    #startbookingbtn:not(:checked) ~ .showmobilebookingpage {
        display: none;
    }

    #showmobilebookingpage:checked ~.showmobilebookingpage span{
        display: none;
    }

    #showmobilebookingpage:checked ~.showmobilebookingpage:after{
        content: "時間表";
    }

    input[action="showbookingpage"]:checked + input[action="showbookingpage"]:checked + .element-switch .calendar-box{
        display: none;
    }

    input[action="showbookingpage"]:checked + input[action="showbookingpage"]:checked + .element-switch .booking{
        display: block;
    }

}


@media (max-width: 760px) {
    .date-select {
        padding-top: 18px;
        border-radius: 20px;
        margin: 0 10% 20px 10%;
        background: #fff;
        box-shadow: 0px 15px 15px 0.15px rgba(0, 0, 0, 0.05);
        width: 80%;
    }

    .calendar-box {
        background: unset;
        box-shadow: unset;
        padding: 0;
        margin: 2vh 2.5% 5vh 2.5%;
    }

    #calendar-div {
        padding: 0;
        text-align: center;
        height: calc(100vh - 275px);
    }

    .timetable tr {
        width: 90%;
        display: flex;
        flex-direction: column;
    }

    .timetable td {
        display: block;
        width: 100%;
        text-align: left;
        border: 0;
        background: #fff;
        border-radius: 10px;
        margin: 5%;
        height: unset;
        padding-bottom: 20px;
    }

    .timetable td[nochild] {
        display: none;
    }

    .timetable tr:first-child td {
        display: none;
    }

    tr:empty,
    td:empty {
        display: none;
    }

    .tabledate {
        position: absolute;
        top: 20px;
        left: 20px;
    }

    .allevents {
        height: unset;
    }


    .event {
        height: unset;
        padding: 10px 0 10px 20px;
    }

    .event span[type="starttime"],
    .event span[type="endtime"] {
        display: unset;
        position: unset;
        top: 2px;
        left: 3px;
        width: fit-content;
        font-size: unset;
    }

    .event span[type="endtime"]::before {
        content: "-";
    }

    .event span[type="content"] {
        font-size: unset;
    }

    h2 {
        background: #fff;
        box-shadow: 0px 15px 15px 0.15px rgba(0, 0, 0, 0.05);
        border-radius: 20px;
        margin: 30px auto;
        padding: 10px;
        width: 80%;
    }
}