/* */
.page {
    display: none;
    font-size: 1.2rem;
    margin: 0 10px 0 10px;
}
.page h1, .page h2, .page h3, .page h4 {
  text-align: center;
}
.page button {
  margin-top: 10px;
}
.header {
  text-align: center;
  background-color: cornflowerblue;
}
.center {
  text-align: center;
}
.wrapper {
    max-width: 92%;
    margin: 0 auto;
}
/* for Login panel */
.LoginWrapper {
    display: grid;
    align-items: center;
    justify-content: center;
    max-width: 980px;
    margin: 10px auto;
}
/* */
#intro {
    margin-bottom: 20px;
}
#options {
  text-align: center;
}
#container {
  position: relative;
  margin: 0 10px 0 10px;
}
#secondLevelOptions {
  /* position: absolute; */
  /* background-image: url('../images/spiderweb.png'); */
  background-size: 100% 100%;
  width: 100%;
  /* height: 100%; */
}
#questions, #tableQuestions {
  margin: 0 auto;
  /* align-items: center;
  justify-content: center; */
  font-size: 3.4vmin;
}
/* #questionAnswers {
  margin: 0 auto;
} */
.radio-option {
  display: -webkit-inline-box; /* inline-block; Modify by SH Tseng */
  margin-right: 4px; /* 調整按鈕之間的間距 */
  font-size: 2.6vmin;
}
.radio-size-0 {
  display: inherit;
  width: 18px;
  height: 18px;
}
.radio-size-1 {
  display: inherit;
  width: 22px;
  height: 22px;
}
.radio-size-2 {
  display: inherit;
  width: 26px;
  height: 26px;
}
.radio-size-3 {
  display: inherit;
  width: 30px;
  height: 30px;
}
/* https://blog.darkthread.net/blog/css-checkbox-list/ */
.checkbox-option {
  display: -webkit-inline-box; /* inline-block; Modify by SH Tseng */
  margin-right: 4px; /* 調整按鈕之間的間距 */
}
input[type=checkbox] {	/* start Confirm code by SH Tseng */
    display: none;
}
input[type=checkbox]+label {
    display: inline-block;
    padding-left: 26px;
    line-height: 20px;
    background: url('../images/box.png') no-repeat;
    -webkit-user-select: none;
    user-select: none;
}
input[type=checkbox]:checked+label {
    background: url('../images/checkbox.png') no-repeat;
}	/* end Confirm code by SH Tseng */
.tableCenter {
  text-align: center;
}
.tableBar {
  background-color:#eee;
}
.handCursor {
  padding: 0;	        /* Confirm code by SH Tseng */
  margin-right: 12px;	/* Confirm code by SH Tseng */
  cursor: pointer;
}
/* For Your Concept Animation */
@keyframes zoomConceptAnimation {   /* 定義縮放動畫關鍵幀 */
  0% {
    width: 5%;
    opacity: 0;                     /* 透明度為0 */
  }
  50% {
    width: 25%;
    opacity: 1;                     /* 透明度為1 */
  }
  100% {
    height: 50%;
    opacity: 1;                     /* 保持透明度為1 */
  }
}
@keyframes leftMoveConceptAnimation { /* 定義位移動畫關鍵幀 */
  0% { transform: translate(-50%, 100%); }  /* 從中央下緣位置開始 */
  100% { transform: translate(calc(-50% - var(--moveX)), -50% ); } /* 向左平行移動至指定位置 */
}
.yourConceptAnimationImageToLeft {  /* 套用動畫到圖片 */
  animation: zoomConceptAnimation 1s, leftMoveConceptAnimation 1s;  /* 同時套用縮放動畫和位移動畫，動畫時間為3秒 */
  width: 464px;                     /* 修改圖片的初始寬度 */
  height: 313px;                    /* 修改圖片的初始高度 */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-fill-mode: forwards;    /* 保持最後狀態 */
}
@keyframes rightoveConceptAnimation { /* 定義位移動畫關鍵幀 */
  0% { transform: translate(-50%, 100%); }  /* 從中央下緣位置開始 */
  100% { transform: translate(calc(-50% + var(--moveX)), -50% ); } /* 向右平行移動至指定位置 */
}
.yourConceptAnimationImageToRight { /* 套用動畫到圖片 */
  animation: zoomConceptAnimation 1s, rightoveConceptAnimation 1s;  /* 同時套用縮放動畫和位移動畫，動畫時間為3秒 */
  width: 464px;                     /* 修改圖片的初始寬度 */
  height: 313px;                    /* 修改圖片的初始高度 */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-fill-mode: forwards;    /* 保持最後狀態 */
}
/* For Octopu Animation */
.oceanBackground {				    /* 海洋背景圖片 */
    background-image: url('../images/ocean.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 90vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* For IQ images*/
.iqImageWithBorder {                /* 樣式表中添加圖片邊框的樣式 */
    position: absolute;             /* 絕對定位 */
    width: 10%;
    border: 4px solid transparent;  /* 初始邊框，透明色 */
    border-radius: 50%;             /* 圓形邊框 */
}
.iqTextOverlay {
    position: absolute;             /* 絕對定位 */
    /* background-color: rgba(255, 255, 255, 0.7); 白色背景，70%不透明度 */
    padding: 5px;                   /* 內邊距 */
    border-radius: 5px;             /* 圓角 */
    color : white;
}

@keyframes zoomOctopuAnimation {    /* 定義縮放動畫關鍵幀 */
    0% {
        transform: scale(0.1);      /* 從小到大 */
        opacity: 0;                 /* 透明度為0 */
    }
    50% {
        transform: scale(1.5);      /* 放大到1.5倍 */
        opacity: 1;                 /* 透明度為1 */
    }
    100% {
        transform: scale(1);        /* 回復原始大小 */
        opacity: 1;                 /* 保持透明度為1 */
    }
}
@keyframes moveOctopuAnimation {    /* 定義位移動畫關鍵幀 */
    0% { transform: translate(var(--startX), var(--startY)); }    /* 從隨機位置 */
    100% { transform: translate(-50%, -50%) rotate(0deg); }       /* 移動到螢幕中央且不旋轉 */
}
.OctopusAnimationImage {            /* 套用動畫到圖片 */
    animation: moveOctopuAnimation 3s, zoomOctopuAnimation 1s;  /* 同時套用縮放動畫、位移動畫和旋轉動畫，動畫時間為3秒 */
    width: 100%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 將圖片置中 */
}
/* For */
@keyframes rotateOctopusAnimation { /* 定義Octopus章魚動畫關鍵幀 */
    0% { transform: rotate(0deg); }
    10% { transform: rotate(10deg); }
    20% { transform: rotate(20deg); }
    30% { transform: rotate(30deg); }
    40% { transform: rotate(40deg); }
    50% { transform: rotate(50deg); }
    60% { transform: rotate(40deg); }
    70% { transform: rotate(30deg); }
    80% { transform: rotate(20deg); }
    90% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}
.octopusAnimation {  /* 套用Octopus章魚動畫到圖片 */
    animation: rotateOctopusAnimation 2s infinite; /* 動畫名稱: rotateOctopusAnimation，動畫時間: 2秒，動畫次數: 無限循環 */
}
/*canvas {
  width: 100%;
  height: 600px;
  margin: 0 auto;
  display: block;
}*/
.radarContainer {     /* 雷達圖 */
  display: block;
  margin: 0 auto;
  width: 100%;
}
.stackBarContainer {  /* 堆疊圖 */
  display: block;
  height: 100%;
}
/* 浮動式圖片選單 */
.menu-wrapper {
  /*background-color: #f1f1f1;*/
  display: flex;
  justify-content: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 5px;
  /* overflow-x: auto;               自動增添水平的 scrollbar */
  min-width: 100%;                /* Ensure the container takes at least the width of the screen */
}
.menu-container {                 /* 浮動圖片選單容器 */
  display: flex;
  justify-content: flex-start;
  gap: 10px;                      /* Add some gap between images */
}
.menu-container img {             /* 設定選單式圖片的樣式 */
  width: 100px;
  height: 100px;
  margin: 5px;
  border: 2px solid transparent;  /* 初始狀態下邊框透明 */
  opacity: 0;                     /* 預設隱藏圖片 */
  transition: opacity 0.3s ease;  /* 添加漸變效果 */
  cursor: pointer;
}
.menu-container:hover img {       /* 當滑鼠接近時顯示圖片 */
  opacity: 1;
}
.menu-container img.clicked {     /* 當滑鼠點擊圖片時加上框框 */
  border-color: #ff0000;          /* 選中時的邊框顏色 */
}
@media screen and (max-width: 600px) {/* Media query for small screens */
  .menu-container {
    flex-wrap: nowrap;            /* Prevent wrapping on small screens */
    overflow-x: auto;             /* Enable horizontal scrollbar */
  }
}
.WhaleContainer {
    position: relative;
    max-width: 98%;
    margin: 0 auto;
}
.WhaleImage {
  width: 80%;
  float: right;                 /* Float the image to the right */
  position: relative;           /* Add relative positioning to the image */
  left: calc(2%);              /* 180px Float the image 10% to the right (subtract 20px for margin) */
  transform: translateY(10%);   /* Move the image 10% up */
  /*
  background-image: url('../images/鯨魚.png');
  background-position-x: right;
  background-repeat: no-repeat;
  width: 100%;
  height: 600px;
  border: 0px #ccc solid;
  margin-top: 10px;*/
}
.WhaleText-container {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    font-size: 2.6vmin;
}
.aspButtonStyle {
    font-family: 'Times New Roman', 'Times', 'serif';
    font-size: 20px;
    background-color: #0099FF;
    color: rgba(250, 250, 250, 1);
    border-radius: 6px;
    height: 34px;
}
/* for popup and dialog */
.popupDialog { position: fixed; top: 35%; left: 50%; transform: translate(-50%, -50%); padding: 2px; border: 1px solid #ccc; box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); z-Index: 9999; width: auto; max-width: 94%; background: #DDFFDD; }
.popupDialogTitle { font-size: 24px; text-align: center; margin: 0 0 10px 0; background: #9FE2BF; }
.popupDialogContent { font-size: 20px; margin: 6px; }
.popupDialogButton { font-size: 20px; margin: 0 4px; text-align: center; justify-content: center; border-radius: 8px; background: #9FE2BF; width: auto; }
.buttonsContainer { display: flex; align-items: center; justify-content: center; }