﻿.navbar {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明背景色 */
    padding: 10px 0;
    z-index: 1000;
    height: 5vh;
}

.navbar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    transition: max-height 0.3s ease-out;
}

    .navbar-menu li {
        margin: 0 15px;
    }

    .navbar-menu a {
        color: white;
        text-decoration: none;
        font-size: 18px;
        padding: 8px 16px;
        transition: background-color 0.3s;
    }

        .navbar-menu a:hover {
            background-color: rgba(255, 255, 255, 0.2); /* Hover 時的半透明背景色 */
            border-radius: 5px;
        }

.navbar-toggle {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    padding: 8px 16px;
}

    .navbar-toggle::before {
        content: "\2630"; /* 漢堡圖示的 Unicode 字符 */
        font-size: 28px;
        color: white;
    }

@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        max-height: 0;
        overflow: hidden;
        z-index: 999;
    }

        .navbar-menu.active {
            max-height: 100vh;
        }

        .navbar-menu li {
            margin: 20px 0;
        }

    .navbar-toggle {
        display: block;
        position: fixed;
        top: 10px; /* 固定在頂部 */
        right: 20px; /* 固定在右側 */
        z-index: 1001; /* 確保漢堡圖示在最上層 */
    }
}

body, p, div, .SpaceArea, .HighAreaR, .HighAreaL, .ImageArea, .CenterArea {
    padding: 0;
    margin: 0;
}

.HighAreaR {
    height: 100vh;
    width: 35vw;
    background-color: rgba(0, 0, 0, 1);
    margin-left: 65vw;
    display: flex; /* 使用 Flexbox */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
}

.HighAreaL {
    height: 100vh;
    width: 35vw;
    background-color: rgba(0, 0, 0,1);
    display: flex; /* 使用 Flexbox */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
}

.CenterArea {
    text-align: center;
    color: aliceblue;
}

.ImageArea {
    /* 设置背景图片 */
    /*background-image: url("/Images/Learning/nature.jpg");*/
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: rgba(0, 0, 0, 0.5);
    /* 设置容器的初始高度为视口的一半 */
    height: 100vh;
    /* 使用 position  */
    position: absolute;
    /* 设置图层在最底层 */
    z-index: -1;
    /*transition: transform 0.5s ease-out;*/
    width:100vw;
}
@media (max-width: 768px) {
    .HighAreaR, .HighAreaL {
        height: 50vh !important;
        width: 100vw !important;
        margin-top: 50vh !important;
        margin-left: 0 !important;
    }
    .ImageArea {
        /* 適用於手機的背景樣式 */
        background-size: cover;
        background-attachment: scroll;
    }
}