@import './bootstrap-reboot.min.css';
@import './bootstrap-grid.css';

:root {
    --primary: #579DCF;
    --bg: #F7F2E9;
    --level1: 1000;
    --level2: 1010;
    --level3: 1020;
}

html {
    font-family: 'Noto Sans TC', '微軟正黑體', sans-serif;
    color: var(--bs-black);
    background-color: var(--bs-white);
    font-size: 10px;
}

body {
    font-size: 1.6rem;
    line-height: 1.6;
    box-sizing: border-box;
}

body > *,
body > *:before,
body > *:after {
    box-sizing: inherit;
}

.container {
    max-width: 768px;
    padding: 0;
}


/* button style */
button, .button {
    border: 0;
    outline-width: 0;
    padding: 0;
    --bg: rgba(0,0,0,0);
    background-color: var(--bg);
    cursor: pointer;
}

.menu-btn {
    top: 0;
    right: 0;
    z-index: var(--level1);
    opacity: 0;
}

@media (max-width: 600px) {
    .menu-btn {
        width: 20%;
        min-width: 6rem;
    }
}

.top-btn {
    bottom: 3rem;
    right: 20px;
    z-index: var(--level1);
    opacity: 0;
}

.top-btn:hover {
    transform: scale(1.1);
    transition: transform 400ms ease;
}

/* img style */
img {
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.img-center {
    display: block;
    margin-right: auto;
    margin-left: auto;
}

.fixed {
    position: fixed;
}


/* 主要內容 */
.content {
    position: relative;
    background: var(--bg);
    padding-bottom: 1px;
}

.section {
    position: relative;
}

.section-1 > .more-btn {
    position: absolute;
    bottom: 7%;
    left: 50%;
    width: 25%;
    transform: translateX(-50%);
}

.section-2,
.section-3,
.section-4,
.section-5 {
    margin-bottom: 15%;
}

.section-2 > .img-center {
    width: 90%;
}

.section-3 > .img-center {
    width: 80%;
}

.section-4 > .img-center {
    width: 90%;
    margin-bottom: 15%;
}

.section-4 > .wrap,
.section-5 > .wrap {
    position: relative;
    width: 90%;
    margin-right: auto;
    margin-left: auto;
}

.section-4 > .wrap .more-btn,
.section-5 > .wrap .more-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.section-4 > .wrap .more-btn {
    width: 25%;
}

.section-4 > .wrap .more-btn-1 {
    bottom: 49%;
}

.section-4 > .wrap .more-btn-2 {
    bottom: 5%;
}

.section-5 > .wrap .more-btn {
    width: 40%;
}

.section-5 > .wrap .more-btn-1 {
    bottom: 47.5%;
}

.section-5 > .wrap .more-btn-2 {
    bottom: 3.5%;
}

/* menu */
.overlap {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: var(--level2);
    overflow: hidden;
    background-color: rgba(0,0,0, .5);
    transform: translateY(-100%);
    opacity: 0;

}

.overlap.show {
    transform: translateY(0);
    opacity: 1;
    transition: 400ms ease;
}


.menu-box {
    width: 70%;
    margin-left: auto;
    padding-top: 2rem;
    padding-bottom: 8rem;
    border-bottom-left-radius: 10rem;
    text-align: center;
    background-color: var(--primary);
}

.menu-box .close-btn {
    margin-bottom: 3rem;
}

.menu-box .close-btn:hover {
    transform: scale(1.1);
    transition: transform 400ms ease;
}

.menu > a {
    display: block;
    width: 80%;
    margin-left: auto;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .menu-box {
        width: 50%;
        padding-top: 3rem;
        padding-bottom: 12rem;
        border-bottom-left-radius: 15rem;
    }
    .menu-box .close-btn {
        margin-bottom: 5rem;
    }
    .menu > a {
        margin-bottom: 2rem;
    }
}

/* footer style */
footer {
    padding: 1.5rem 2rem;
    text-align: center;
    color: var(--bs-white);
    background-color: var(--bs-black);
}





