html {
    height: 100%; /* 确保 HTML 元素高度覆盖整个视窗 */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px; /* 增加一些内边距 */
    background-color: #ffffff;
    display: flex;
    flex-direction: column; /* 设置主轴方向为从上到下 */
    min-height: 100vh; /* 设置最小高度为视窗高度，确保填满屏幕 */
    box-sizing: border-box; /* 确保 padding 不会影响到元素的最终尺寸 */
}

/* Header Styles */
header {
    background-color: #50b3a2;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: x-large;
    z-index: 1000;
}

.content {
    flex: 1; /* 弹性容器，允许内容区域动态填充可用空间 */
    padding: 20px 0; /* 上下内边距，根据需要调整 */
}

footer {
    width: 100%; /* 确保页脚宽度为视窗宽度 */
    background-color: #50b3a2; /* 页脚背景色 */
    color: white; /* 文字颜色 */
    padding: 5px; /* 内边距 */
    text-align: center; /* 文本居中 */
    /*font-size: x-large;  字体大小 */
    margin-top: auto; /* 自动向上推送至内容底部 */
    margin-left: 0; /* 确保左外边距为0 */
    margin-right: 0; /* 确保右外边距为0 */
    box-sizing: border-box; /* 边框和内边距的宽度包含在width内 */
}

/* 設置數據表容器的基本滾動樣式 */
.divTable {
    max-height: 400px; /* 可調整這個高度以符合你的需求 */
    overflow-y: auto; /* 垂直方向上的滾動條 */
    margin-bottom: 20px; /* 留點底部間隔 */
}


#logo{
    width: 50px; 
    height: 50px;
}

/* Navigation Styles */
nav ul {
    background-color: #333;
    overflow: hidden;
    color: white;
}

nav ul li {
    display: inline-block;  /* 或使用 flex 布局中的 flex 来替代 */
    padding: 14px 16px;  /* 根据需要调整内边距以保持统一 */
    margin: 0;           /* 保证没有额外外边距干扰布局 */
    vertical-align: middle; /* 垂直居中对齐 */
}

nav ul li a {
    text-decoration: none;
    color: white;
}

/* Main Content Styles */
main {
    padding: 20px;
    background-color: #fff;
    margin: 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

nav ul li select {
    text-decoration: none;
    color: white;
    background-color: #333;
    display: block;
    border: none;
    width: 100%;
}

/* Existing Styles (Unchanged) */

/* Navigation Styles */
nav {
    position: relative; /* Adding relative positioning */
}

.navList li a:hover {
    color: rgb(22, 135, 255); /* 或者使用您喜欢的蓝色调，如 #007bff 为Bootstrap的主题蓝 */
}

#userLoginStatus {
    position: absolute; /* Setting login button to absolute positioning */
    right: 0; /* Aligning to the right */
    top: 50%; /* Vertically centering */
    transform: translateY(-50%); /* Ensuring complete centering */
}
.language-selector {
    padding: 4px 8px;  /* 调整内边距使其看起来与其他链接按钮相似 */
    color: white; /* 文本颜色与其他链接一致 */
    height: auto; /* 高度自适应，确保不超过父元素 */
    cursor: pointer; /* 显示为指针，增强用户体验 */
}




/* Dropdown Menu Styles */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    max-height: 300px; /* Setting max height */
    overflow-y: auto; /* Adding scroll */
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    right: 0; /* Ensuring the dropdown menu is on the right */
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}


/* #panorama 的樣式 */
#panorama {
    /*width: calc(100% - 40px);  調整寬度，減去內邊距的寬度 */
    width: 100%; 
    max-width: none ;
    height: 700px; /* 設置高度 */
    border: 2px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: auto;
    margin-bottom: 20px; /* 增加一些底部邊距 */
}

#questionDisplay {
    z-index: 1000;
}

#chatButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    display: inline-block;  /* 确保按钮不会展开成block元素 */
    width: auto;  /* 或者你可以设置一个固定的宽度，例如 width: 100px; */
}

#chatWindow {
    display: none;
    position: fixed;
    bottom: 70px;
    right: 20px;
    width: 300px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 20px;
    max-height: 400px; /* 或者你希望的最大高度 */
 	 overflow-y: auto; /* 显示垂直滚动条 */
 	 overflow-x: hidden; /* 隐藏水平滚动条 */
}

#mytext {
    width: calc(100% - 20px);
    margin-bottom: 10px;
}

.message {
    margin-bottom: 12px;
    padding: 8px;
    background-color: #f1f1f1;
    border-radius: 5px;
}

.user-message {
    text-align: right;
}

.bot-message {
    text-align: left;
}
#mytext {
    width: calc(100% - 20px);
    margin-bottom: 10px;
}

.message {
    margin-bottom: 12px;
    padding: 8px;
    background-color: #f1f1f1;
    border-radius: 5px;
}

.user-message {
    text-align: right;
}

.bot-message {
    text-align: left;
}

.btn-group {
    margin-bottom: 10px;
}

#buttonContainer {
    margin: 0 auto;
    max-width: 800px;
}

.sub-buttons {
    display: none;
}




/* 將鼠標懸停在按鈕上時的效果 */
.btn:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 點擊按鈕時的效果 */
.btn:active {
    transform: translateY(1px);
    box-shadow: none;
}


/* 多選題編輯表單樣式 */
#multiChoiceForm {
    background-color: #ffffff; /* 設置白色背景 */
    padding: 20px; /* 添加內邊距 */
    border-radius: 5px; /* 圓角邊框 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加陰影效果 */
    max-width: 500px; /* 最大寬度限制 */
    margin: 20px auto; /* 水平居中顯示 */
}

#multiChoiceForm h3 {
    color: #333; /* 標題顏色 */
    margin-bottom: 20px; /* 標題下方的間距 */
}

#multiChoiceForm input[type="text"] {
    width: 100%; /* 輸入框寬度 */
    padding: 10px; /* 輸入框內邊距 */
    margin-bottom: 10px; /* 輸入框間的間距 */
    border: 1px solid #ccc; /* 邊框顏色 */
    border-radius: 4px; /* 輸入框圓角 */
}

#multiChoiceForm input[type="radio"],
#multiChoiceForm input[type="checkbox"] {
    margin-right: 10px; /* 勾選框與文字的間距 */
}

#multiChoiceForm label {
    font-size: 16px; /* 標籤字體大小 */
}

/* 多選題動態內容的基本樣式 */
div#multiChoiceForm, div#questionDisplay {
    display: none; /* 默认隐藏容器 */
    background-color: #ffffff; /* 設置背景顏色 */
    padding: 20px; /* 設置內邊距 */
    border-radius: 5px; /* 設置邊角圓滑 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加陰影 */
    margin-bottom: 20px; /* 設置下邊距 */
    max-width: 600px; /* 最大寬度限制，確保布局的一致性 */
    margin: 20px auto; /* 水平居中 */
}

label {
    display: block; /* 使標籤獨占一行 */
    margin-bottom: 10px; /* 設置標籤間距 */
    color: #333; /* 文字顏色 */
    font-size: 16px; /* 文字大小 */
}

input[type="text"] {
    width: 100%; /* 輸入框寬度為容器寬度 */
    padding: 10px; /* 內邊距 */
    margin-bottom: 10px; /* 與下一元素的間距 */
    border: 1px solid #ccc; /* 邊框顏色和樣式 */
    border-radius: 4px; /* 邊框圓角 */
    box-sizing: border-box; /* 盒子模型設定，防止邊框影響最終尺寸 */
}

.multiChoiceBtn {
    width: 50px; /* 按钮宽度 */
    height: 50px; /* 按钮高度 */
    background-image: url('question.png'); /* 按钮背景图片的URL */
    background-size: cover; /* 让图片填充按钮 */
    background-color: transparent; /* 设置背景颜色为透明 */
    border: none; /* 移除按钮边框 */
    cursor: pointer; /* 光标样式为手型 */
    transition: background-color 0.3s; /* 添加过渡效果，使颜色变化平滑 */
  }
  .exploreBtn {
    width: 50px; /* 按钮宽度 */
    height: 50px; /* 按钮高度 */
    background-image: url('explore.png'); /* 按钮背景图片的URL */
    background-size: cover; /* 让图片填充按钮 */
    background-color: transparent; /* 设置背景颜色为透明 */
    border: none; /* 移除按钮边框 */
    cursor: pointer; /* 光标样式为手型 */
    transition: background-color 0.3s; /* 添加过渡效果，使颜色变化平滑 */
  }

  .landmarkBtn {
    width: 50px; /* 按钮宽度 */
    height: 50px; /* 按钮高度 */
    background-image: url('landmark.png'); /* 按钮背景图片的URL */
    background-size: cover; /* 让图片填充按钮 */
    background-color: transparent; /* 设置背景颜色为透明 */
    border: none; /* 移除按钮边框 */
    cursor: pointer; /* 光标样式为手型 */
    transition: background-color 0.3s; /* 添加过渡效果，使颜色变化平滑 */
  }

  .audioBtn {
    width: 50px; /* 按钮宽度 */
    height: 50px; /* 按钮高度 */
    background-image: url('sound.png'); /* 按钮背景图片的URL */
    background-size: cover; /* 让图片填充按钮 */
    background-color: transparent; /* 设置背景颜色为透明 */
    border: none; /* 移除按钮边框 */
    cursor: pointer; /* 光标样式为手型 */
    transition: background-color 0.3s; /* 添加过渡效果，使颜色变化平滑 */
  }

  .videoBtn {
    width: 50px; /* 按钮宽度 */
    height: 50px; /* 按钮高度 */
    background-image: url('video.png'); /* 按钮背景图片的URL */
    background-size: cover; /* 让图片填充按钮 */
    background-color: transparent; /* 设置背景颜色为透明 */
    border: none; /* 移除按钮边框 */
    cursor: pointer; /* 光标样式为手型 */
    transition: background-color 0.3s; /* 添加过渡效果，使颜色变化平滑 */
  }


/* 悬停效果 */
.multiChoiceBtn:hover, .exploreBtn:hover, .landmarkBtn:hover, .audioBtn:hover, .videoBtn:hover {
    background-color: rgba(0, 0, 0, 0.1); /* 设置悬停时的背景颜色，可以是半透明的灰色 */
}

/* 点击效果 */
.multiChoiceBtn:active, .exploreBtn:active, .landmarkBtn:active, .audioBtn:active, .videoBtn:active {
    background-color: rgba(0, 0, 0, 0.2); /* 设置点击时的背景颜色，可以是稍微更深的灰色 */
}

  
#sidebar {
    width: 200px;
    border-right: 1px solid #ccc;
    overflow-y: auto;
  }

  #editor {
    flex-grow: 1;
    padding: 20px;
  }

  .thumbnail {
    width: 100px; /* 固定縮圖的寬度 */
    height: 100px; /* 固定縮圖的高度 */
    overflow: hidden; /* 隱藏超出部分 */
    position: relative; /* 爲了能夠正確放置圖片和文字 */
    margin: 10px;
    cursor: pointer;
  }
  .thumbnail-number {
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 2px 5px;
    font-size: 12px;
  }

  .thumbnail img {
    width: 100%; /* 使圖片填滿縮圖容器 */
    height: 100%; /* 使圖片填滿縮圖容器 */
    object-fit: cover; /* 保持圖片的宽高比 */
  }
  .delete-btn {
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(255, 0, 0, 0.7);
    color: white;
    border: none;
    cursor: pointer;
  }

  /* 对于中等屏幕，调整布局和字体大小 */
@media (max-width: 1024px) {
    header, footer {
        padding: 15px;  /* 减小填充 */
        font-size: large;  /* 调整字体大小 */
    }

    .content, .navList li {
        padding: 10px;  /* 调整内边距 */
    }

    .thumbnail {
        width: 80px;
        height: 80px;
    }
}

/* 对于小屏幕，进一步简化和优化布局 */
@media (max-width: 768px) {
    header, footer {
        padding: 10px;
        font-size: medium;
    }

    nav ul li {
        padding: 10px;  /* 减小菜单项内边距 */
        font-size: 14px; /* 减小字体大小 */
    }

    .content {
        padding: 5px;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }
}

/* 对于非常小的屏幕 */
@media (max-width: 480px) {
    header, footer {
        font-size: small;
    }

    .navList {
        display: block;  /* 在小屏幕上改为块状布局，以便更好地访问 */
    }

    .navList li {
        display: block;
        text-align: center;  /* 让链接在菜单项中居中 */
    }

    .thumbnail {
        width: 50px;
        height: 50px;
    }
}
