/* Header,Nav and Footer */

/* color */
:root {
    --header-bg-color: #F1A661;
    --nav-bg-color: #FFD495;
    --main-bg-color: #FDEEDC;
    --main-font-color: #E38B29;
    --btn-color: #b8dc7f;
    --footer-bg-color: #FAAB78;
}

/* body */
body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: var(--main-font-color);
    background-color: var(--main-bg-color);
}

.hide {
    display: none !important;
}

/* header */
.header-logo {
    height: 45px;
    background-color: var(--header-bg-color);
    display: flex;
    align-items: center;
    padding-left: 10px;
}

.header-logo-btn {
    cursor: pointer;
    margin: 0;
    border: 0;
    padding: 0;
    outline: none;
    background-color: transparent;
}

/* nav */
.header {
    position: sticky;
    top: 0;
    box-shadow: 0px 0px 20px var(--nav-bg-color);
    z-index: 1;
}

.header-nav-container {
    background-color: var(--nav-bg-color);
    height: 50px;
}

.header-nav-container>div {
    width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-nav {
    height: 50px;
    display: flex;
    align-items: center;
}

.header-nav-link {
    color: var(--main-font-color);
    text-decoration: none;
    height: 27px;
    width: 41px;
    font-weight: 700;
    padding: 10px 15px 15px 15px;
    border-radius: 10px 10px 0 0;
}

.header-nav-link:hover,
.header-nav-link:active {
    color: white;
    background-color: var(--header-bg-color);
}

.active {
    color: white;
    background-color: var(--header-bg-color);
}

.header-nav-hamburger {
    margin: 0;
    border: 0;
    padding: 0;
    background-color: rgba(255, 255, 255, 0);
    margin-left: 10px;
    cursor: pointer;
    display: none;
}

.header-nav-hamburger img {
    height: 50%;
    width: 50%;
}

.header-search {
    display: flex;
    align-items: center;
    margin-right: 10px;
    position: relative;
}

.header-search-input {
    width: 300px;
    height: 30px;
    line-height: 30px;
    border: 0;
    border-radius: 5px 0 0 5px;
    padding-left: 10px;
    outline: none;
    color: var(--main-font-color);
    font-weight: 700;
}

::placeholder {
    color: var(--btn-color);
}

.header-search-btn {
    width: 50px;
    height: 32px;
    border: 0;
    border-radius: 0 5px 5px 0;
    background-color: var(--btn-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.header-search-img {
    height: 80%;
    width: 80%;
}

#header-search-list {
    position: absolute;
    left: 0;
    top: 35px;
    list-style-type: none;
    background-color: #fff;
    border-radius: 5px;
    display: flex;
    box-shadow: 0px 0px 10px var(--nav-bg-color);
}

#header-search-list ul {
    padding: 0;
    margin: 0;
}

#header-search-list li {
    width: 50px;
    height: 20px;
    line-height: 20px;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--main-font-color);
}

#header-search-list li:hover {
    background-color: var(--footer-bg-color);
    color: #fff;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
}

/* top-btn */
#top-btn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    border: 0;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0);
    z-index: 2;
}

#top-btn img {
    width: 50px;
    height: 50px;
    border-radius: 100%;
    box-shadow: 0px 0px 0px var(--btn-color);
}

#top-btn>img:hover {
    box-shadow: 0px 0px 5px var(--btn-color);
}

/* section */
.section {
    width: 1200px;
    margin: auto;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* footer */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 104px;
    background-color: var(--footer-bg-color);
    color: white;
    font-size: 14px;
}

.fill-footer {
    flex: 1;
    background-color: var(--footer-bg-color);
}

@media screen and (max-width:1200px) {

    .header {
        width: 100%;
    }

    .header-nav-container>div {
        width: 95%;
    }

    .section {
        width: 90%;
    }
}

@media screen and (max-width:900px) {
    .header-search-input {
        width: 90%;
    }

    .header-search-btn {
        width: 40px;
    }

    #header-search-list {
        right: 0;
        left: auto;
    }
}

@media screen and (max-width:650px) {
    .header-nav-link {
        padding: 10px;
        padding-bottom: 15px;
    }
}

@media screen and (max-width:600px) {
    .header-nav {
        position: relative;
    }

    .header-nav-content {
        flex-direction: column;
        position: absolute;
        top: 50px;
        left: 10px;
        background-color: #fff;
        border-radius: 10px;
        box-shadow: 0px 0px 10px var(--nav-bg-color);
    }

    .header-nav-hamburger {
        display: block;
    }

    .line {
        width: 24px;
        height: 24px;
        cursor: pointer;
        display: block;
        padding: 16px;
        z-index: 2;
    }

    .line .menu,
    .line .menu::before,
    .line .menu::after {
        background-color: var(--main-font-color);
        content: '';
        display: block;
        height: 1px;
        position: absolute;
        transition: ease .3s, top ease .3s .3s, transform ease .3s;
        width: 20px;
    }

    .line .menu {
        left: 18px;
        top: 27px;
    }

    .line .menu::before {
        top: -6px;
    }

    .line .menu::after {
        top: 6px;
    }

    /*
    點選選單變叉叉
    */
    #menu:checked+.line .menu {
        background: transparent;
    }

    #menu:checked+.line .menu::before {
        transform: rotate(45deg);
    }

    #menu:checked+.line .menu::after {
        transform: rotate(-45deg);
    }

    #menu:checked+.line .menu::before,
    #menu:checked+.line .menu::after {
        top: 0;
        transition: top ease .3s, transform ease .3s .3s;
    }

    /*
    選單開合
    */
    #menu:checked~.menu-list {
        width: 200px;
    }

    .menu-list {
        width: 60px;
        height: 100vh;
        background: var(--nav-bg-color);
        box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
        padding-top: 60px;
        position: fixed;
        z-index: 1;
        transition: all .6s;
        overflow: hidden;
    }

    /*
    選單向外推
    */
    .menu-list ul {
        list-style: none;
        margin-left: 70px;
        padding: 0;
    }

    .menu-list ul>li {
        display: block;
        width: 100px;
    }

    /*
    隱藏核許框
    */
    input#menu {
        display: none;
    }

    .header-nav-link {
        width: 100px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 0;
        font-weight: 500;
    }

    .header-nav-link:hover,
    .header-nav-content .active {
        font-weight: 700;
    }

    .header-nav-home {
        border-radius: 10px 10px 0 0;
    }

    .header-nav-warning {
        border-radius: 0 0 10px 10px;
    }
}

@media screen and (max-width:360px) {}