body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100%;
    overflow-x: hidden;
}

body {
    background: url('image1.png') no-repeat center center fixed;
    background-size: cover;
    animation: slideBackground 15s infinite;
    position: relative;
    z-index: -1;
}

@keyframes slideBackground {
    0% { background-image: url('image1.png'); }
    33% { background-image: url('image2.png'); }
    66% { background-image: url('image3.png'); }
    100% { background-image: url('image1.png'); }
}

.top-banner {
    background-color: #8bc7ff; /* 色塊背景色 */
    height: 64px; /* 你可以根據需求調整高度 */
    width: 100%;
    position: absolute; /* 色塊固定在最頂端 */
    top: 0;
    z-index: 999; /* 保持它在最頂端，但導航欄要比它高 */
}

/* 修改導航欄的位置，讓它固定在色塊下面 */
.navbar {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    position: fixed;
    top: 0; /* 導航欄位於色塊下方 */
    width: 100%;
    z-index: 1000; /* 確保導航欄覆蓋在內容之上 */
    transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar .logo {
    float: left;
    margin-left: 20px;
}

.navbar .logo img {
    height: 64px;
    width: 64px;
    vertical-align: middle;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 10px;
    display: flex;
    justify-content: space-around;
}

.navbar ul li {
    position: relative;
}

.navbar ul li a {
    text-decoration: none;
    color: #333;
    padding: 10px 15px;
    display: block;
    font-weight: bold;
}

.navbar ul li a:hover {
    background-color: #f0f0f0;
    border-radius: 5px;
}

.left-side {
    position: relative;
    z-index: 1;
    width: 40%;
    height: 100vh;
    background: linear-gradient(to left, rgba(173, 216, 230, 0) 0%, rgba(173, 216, 230, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.left-side h1 {
    color: #fff;
    font-size: 2.5rem;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f0f0f0;
}

.dropdown:hover .dropdown-content {
    display: block;
}


.details {
    padding: 20px;
    background-color: #f9f9f9;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.details h2 {
    margin-top: 40px;
}

.details p {
    margin-bottom: 20px;
    line-height: 1.6;
}
