@charset "utf-8";
html,body{
    height: 100%;
}
.container-all{
    display: flex;
    align-items: stretch;  
    font-family: "軟黑體", "Times New Roman";  
    background-color:rgb(237, 241, 247) ;
}
.wrapper{
    max-width: 3000px;
    min-width: 320px; 
}
header{
    background-color: rgb(71,100,129);
    color: white;
    font-family: "軟黑體", "Times New Roman";
    font-weight: bold;
    height:80px;
}
footer{
    background-color: rgb(71,100,129);
    color: rgb(255, 255, 255);
    font-family: "軟黑體", "Times New Roman";
    height: 50px;
    font-size: 20px;
    text-align: center;

}
#sidebar{
    width: 250px;
    height: 500vh;
    background-color: rgb(71,100,129);
    color: white;
    transition: 1s;
}
#sidebar.active{
    margin-left: -200px;
}
.collapse-btn{
    position: relative; /*相對移動*/
    top: 0%;
    left: 200px;
    background-color: rgb(71,100,129);
    color: white;
    border: none;
    font-size: 30px;
    width: 50px;
}
.collapse-btn:hover{
    background-color: rgb(174,192,210);
}
#sidebar ul li a {
    padding: 10px;
    font-size: 20px;
    display: block;
    text-decoration: none;
    color: white;
    font-weight: bold;
}
#sidebar ul li a:hover{
    background-color: rgb(174,192,210);
    color: black;
}
.fa{
    float: right;
}
ul ul li a{
    margin-left: 30px;

}
ul ul ul li a{
    margin-left: 60px;
}
h1{
    font-weight: bold;
}
.dictionary{
    width: 700px;
    height: 400px;
    overflow: hidden;
    border: 5px solid rgb(174,192,210);
    border-radius: 5px;
    position: relative;
    text-align: center ;
}
.scroll{
    width: calc(100%+17px); /* 滾軸寬度 */
    padding-right: 17px; /* 滾軸寬度空間 */
    overflow-y:scroll;
    height: 100%;
}

@media(max-width:600px){
    #sidebar{
        margin-left: -100px;
        width: 50px;
        font-size: 15px;
    }
    .collapse-btn{
        position: relative;
        top: 0%;
        left: 90px;
    }
    #sidebar.active{
        margin-left: 0px;
    }
}