*,*::before,*::after{
    box-sizing: border-box;
}

*{
    margin: 0;
    padding: 0;
}
html, body{
    height: 100%;
    /* overflow: hidden; */
    overflow-x: hidden;
    position:relative;
    left:0px;top:0px;
    font-family: sans-serif, serif, "Noto Sans CJK TC", "Microsoft JhengHei", PingFang, STHeiti;
    letter-spacing: .05rem;
}
#container{
    display: flex;
    flex-direction: column;
    height: 100%;
}
header{
    flex: 0 0 auto;
    box-shadow: #aaaaaa 1px 0px 3px;
}
.main{
    flex: 1 0 auto;
}
footer{
    flex: 0 0 auto;
    width: 100%; 
    background-color: #aaaaaa;
    color: white; 
    padding: 1rem; 
    text-align:center; 
    font-size: small;
}
footer p{
    margin-bottom: 0%;
}
/* 初始設定 end */
.material-icons, .material-icons-outlined, .material-icons-round, .material-icons-sharp, .material-icons-two-tone {
    display: inline-block;
    font-size: inherit;
    line-height: inherit;
    vertical-align: middle;
    transform: translateY(-.1em);
}
.content{
    margin: 0 auto;
    /* margin-bottom: 10rem; */
    width: 90%;
    max-width: 1920px;
}
a {
    text-decoration: none;
}
.mw-1200 {
    max-width: 1200px;
}
.btn-normal{
    padding: .75rem 1rem;
    border-radius: .25rem;
    font-size: 14px;
}
.btn-green{
    color: #fff;
    background-color: #35C2BA;
    border: 1px solid #35C2BA;
}
.btn-green:hover{
    color: #fff;
    background-color: #44dbd4;
    border: 1px solid #44dbd4;
}
.btn-red-outlined{
    color: #F35372;
    background-color: #fff;
    border: 1px solid #F35372;
}
.btn-red-outlined:hover{
    color: #fff;
    background-color: #F35372;
    border: 1px solid #F35372;
}
.btn-cancel {
    background-color: #fff;
    color: #424242;
    border: 1px solid lightgray;
}

.btn-cancel:hover {
    background-color: lightgray;
    color: #fff;
    border: 1px solid lightgray;
}
/* classroom list start */
.dep-box {
    border-bottom: 1px solid lightgray;
    padding: 3rem 0 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.dep-title {
    padding: .25rem .75rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #4D4D4D;
    display: inline-block;

}

.room-box {
    border: 1px solid lightgray;
    border-radius: .75rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.room-box img {
    width: 60%;
    margin-bottom: 1rem;
}

.room-num {
    font-size: .75rem;
    margin-bottom: .5rem;
    text-align: center;
}

.room-name {
    margin-bottom: 1rem;
    color: #4D4D4D;
    text-align: center;
    font-size: 18px;
}

.dep-box a {
    width: 100%;
    padding: .5rem;
    border-radius: .25rem;
    font-size: 14px;
    text-align: center;
}
.dep-box .btn-class-beusing {
    background-color: #FFDFDF;
    color: #CC0000;
    border: #FFDFDF solid;
    cursor: not-allowed;
}
.dep-box .btn-class-close {
    background-color: lightgray;
    color: #fff;
    border: lightgray solid;
    cursor: not-allowed;
}
/* classroom list end */
/* dep coloe start */
.dep-red .dep-title {
    border-bottom: .25rem solid #F35372;
    display: inline-block;
}
.dep-red .room-num {
    color: #F35372;
}
.dep-red .btn-class-open,
.dep-red .btn-class-entering {
    background-color: #F35372;
    color: #fff;
    border: #F35372 solid;
    cursor: pointer;
}
.dep-red .btn-class-open:hover,
.dep-red .btn-class-entering:hover {
    background-color: #ff6986;
    color: #fff;
    border: #ff6986 solid;
}
.dep-yellow .dep-title {
    border-bottom: .25rem solid #FFAF36;
    display: inline-block;
}
.dep-yellow .room-num {
    color: #FFAF36;
}
.dep-yellow .btn-class-open,
.dep-yellow .btn-class-entering {
    background-color: #FFAF36;
    color: #fff;
    border: #FFAF36 solid;
    cursor: pointer;
}
.dep-yellow .btn-class-open:hover,
.dep-yellow .btn-class-entering:hover {
    background-color: #ffbd5a ;
    color: #fff;
    border: #ffbd5a solid;
}
.dep-green .dep-title {
    border-bottom: .25rem solid #34b88a;
    display: inline-block;
}
.dep-green .room-num {
    color: #34b88a;
}
.dep-green .btn-class-open,
.dep-green .btn-class-entering {
    background-color: #34b88a;
    color: #fff;
    border: #34b88a solid;
    cursor: pointer;
}
.dep-green .btn-class-open:hover,
.dep-green .btn-class-entering:hover {
    background-color: #31ce97;
    color: #fff;
    border: #31ce97 solid;
}
.dep-blue .dep-title {
    border-bottom: .25rem solid #36B7FF;
    display: inline-block;
}
.dep-blue .room-num {
    color: #36B7FF;
}
.dep-blue .btn-class-open,
.dep-blue .btn-class-entering {
    background-color: #36B7FF;
    color: #fff;
    border: #36B7FF solid;
    cursor: pointer;
}
.dep-blue .btn-class-open:hover,
.dep-blue .btn-class-entering:hover {
    background-color: #59cafb;
    color: #fff;
    border: #59cafb solid;
}
.dep-purple .dep-title {
    border-bottom: .25rem solid #a363d4;
    display: inline-block;
}
.dep-purple .room-num {
    color: #a363d4;
}
.dep-purple .btn-class-open,
.dep-purple .btn-class-entering {
    background-color: #a363d4;
    color: #fff;
    border: #a363d4 solid;
    cursor: pointer;
}
.dep-purple .btn-class-open:hover,
.dep-purple .btn-class-entering:hover {
    background-color: #be6efb;
    color: #fff;
    border: #be6efb solid;
}
.dep-brown .dep-title {
    border-bottom: .25rem solid #917257;
    display: inline-block;
}
.dep-brown .room-num {
    color: #917257;
}
.dep-brown .btn-class-open,
.dep-brown .btn-class-entering {
    background-color: #917257;
    color: #fff;
    border: #917257 solid;
    cursor: pointer;
}
.dep-brown .btn-class-open:hover,
.dep-brown .btn-class-entering:hover {
    background-color: #998675;
    color: #fff;
    border: #998675 solid;
}
/* dep coloe end */
/* page-title start */
.page-title-box {
    border-bottom: 1px dashed lightgray;
    padding: 3rem 0 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    padding: .25rem .75rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #4D4D4D;
    display: inline-block;
    border-bottom: .25rem solid #35C2BA;
    display: inline-block;
}
/* page-title end */
/* edit-box start */
.class-info-box {
    background-color: lightgray;
    border: 1px solid lightgray;
    border-radius: .75rem;
    padding: 1.5rem;
    box-shadow: 3px 3px 3px darkgray;
}

.class-edit-box {
    background-color: #fff;
    border: 1px solid lightgray;
    border-radius: .75rem;
    padding: 1.5rem;
    box-shadow: 3px 3px 3px darkgray;
}
/* edit-box end */