/* Light mode */
:root {
    color-scheme: light dark;
    --body-color: black;
    --body-background-color: whitesmoke;
    --background-image: url("../images/menu_light.svg");
    --hover-color: rgba(0, 0, 0, 0.5);
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --body-color: whitesmoke;
        --body-background-color: black;
        --background-image: url("../images/menu_dark.svg");
        --hover-color: rgba(255, 255, 255, 0.5);
    }
}

html {
    color: var(--body-color);
    background-color: var(--body-background-color);
    font-family: Arial, Helvetica, sans-serif;
    font-family: Microsoft JhengHei;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

body {
    -webkit-overflow-scrolling: touch;
    margin: 0px;
    border: 0px;
}

h1 {
    margin: 0px;
}

.div1 {
    width: 100%;
    height: 100%;
}

.top_area {
    height: 50px;
    position: relative;
}

.home {
    /* width: 10vw; */
    height: 50px;
    flex-direction: row;
    align-items: center;
    display: flex;
    text-align: center;
    position: absolute;
    left: 2vw;
}

.menu_icon {
    width: 40px;
    height: 40px;
    background-image: var(--background-image);
    display: none;
}

.web_name {
    margin-left: 10px;
}

.function_list {
    height: 50px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    display: flex;
    text-align: center;
    position: absolute;
    top: 0vh;
    right: 2vw;
}

.function_button {
    cursor: pointer;
    display: inline-block;
    margin: 0px 10px;
}

.bottom_function_list {
    height: 50px;
    flex-direction: row;
    justify-content: right;
    align-items: center;
    display: block;
    text-align: right;
    margin-right: 2vw;
}

.bottom_function_button {
    cursor: pointer;
    display: inline-block;
    margin: 14px 10px;
}

.function_selected {
    font-weight: bold;
    text-decoration: underline;
}

.div2 {
    background-image: url("../images/orchid_island.jpg");
    height: 250px;
    position: relative;
}

.title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
}

.content {
    width: 90%;
    margin: 5%;
}

.bottom_area {
    height: 8vh;
    margin: auto;
}

.copyright {
    color: tomato;
    float: right;
    margin: 2.5vh 2vw 2.5vh 0vw;
    text-align: end;
}

.modal_menu {
    display: none;
}

@media(max-width: 600px) {
    .menu_icon {
        display: block;
    }

    .function_list {
        display: none;
    }

    .bottom_function_list {
        display: none;
    }

    .modal_menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 1;
        display: none;
    }

    .modal_content {
        background-color: var(--body-background-color);
        width: 250px;
        height: 100%;
    }

    .modal_function_list {
        color: var(--body-color);
        width: calc(250px - 2vw);
        height: 100%;
        flex-direction: column;
        display: flex;
        position: absolute;
        top: 50px;
    }

    .modal_function_button {
        width: 100%;
        height: auto;
        cursor: pointer;
        padding: 10px 0px 10px 2vw;
    }

    .modal_function_button:hover {
        background-color: var(--hover-color);
        color: white;
    }
}