canvas.typing-effect {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    pointer-events: none !important;
    z-index: 1000000 !important;
}
body {
    font-family: Arial, sans-serif;
    background-color: #FDFFFF;
    background-image: url('images/bgp1.jpg');
    margin: 0;
    padding-top: 80px;
}

.topbar {
    background-color: rgba(240, 240, 240, 0.6);
    background-image: url('images/bgp3.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    padding: 10px 20px;
    border-bottom: 1px solid #ccc;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;

    transition: top 0.2s ease, position 0.2s ease;
}

/* 👉 新增這段：當 class="topbar stop" 時的樣式 */
.topbar.stop {
    position: absolute;
}




.login {
    padding: 6px 14px;
    font-size: 16px;
    background-color: transparent;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    margin-left: 10px;
	transition: all 0.3s ease;   /* ✅ 增加滑順變化 */
    transform: scale(1);         /* 預設大小 */
}

.login:hover {
    background-image: none;         /* 移除背景圖 */
    background-color: #5B5B5B;      /* ✅ 深灰色背景 */
	box-shadow: 0 0 20px rgba(255, 255, 255, 0.9); /*白色光暈*/
    transform: scale(1.05);         /* ✅ 放大 5% */
    color: white;                   /* 保持白字 */
    cursor: pointer;
}

.tool-box {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.back-button {
    padding: 10px 20px;
    font-size: 18px;
    background-color: #6a0dad;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    margin-top: 10px;
}

.back-button:hover {
    background-color: #5a0cb0;
}

.fire-button {
    animation: flash 0.6s infinite alternate;
}

@keyframes flash {
    from { box-shadow: 0 0 5px #f06, 0 0 10px #f06; }
    to { box-shadow: 0 0 15px #ff0, 0 0 20px #ff0; }
}

.explosion {
    position: absolute;
    pointer-events: none;
    z-index: 9999;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #ff0;
    opacity: 0.9;
}


.user-box {
    border: 2px solid white !important;
    padding: 5px 10px;
    border-radius: 30px;
	background-color: transparent;  
    background-image: url('images/bgp3.png');
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s ease;   /* ✅ 增加滑順變化 */
    transform: scale(1);         /* 預設大小 */
}

/* 滑鼠滑過時的效果 */
.user-box:hover {
    background-image: none;         /* 移除背景圖 */
    background-color: #5B5B5B;	/* ✅ 深灰色背景 */
	box-shadow: 0 0 20px rgba(255, 255, 255, 0.9);
    transform: scale(1.05);         /* ✅ 放大 5% */
    color: white;                   /* 保持白字 */
    cursor: pointer;
}

/* 共用頭像樣式 */
.profile-pic {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid white;  /* 頭像紫框 */
}

/* 彈出視窗中的大頭貼 */
.profile-big {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 0.75rem auto;
  border: 2px solid #e0e0e0;
}

/* 使用者名稱 */
.userid-text {
    font-weight: bold;
    color: white!important;
    font-size: 16px;
    text-align: center;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.6);   /* 增強可讀性 */
}

.center-text {
  text-align: center;
}

.copy-text {
  color: blue;
  cursor: pointer;
  display: inline-block;
  position: relative;
}

.center-box {
  text-align: center;           /* 讓文字在區塊內水平置中 */
            /* 視需要調整垂直間距 */
}
/* 提示框樣式 */
.copy-text::after {
  content: attr(data-tooltip); /* 使用 data-tooltip 作為提示內容 */
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  font-size: 14px;
}

/* 滑鼠移入時顯示提示框 */
.copy-text:hover::after {
  opacity: 1;
}

/* 收合狀態下的按鈕：白框 + 白字 + 透明底 */
.dropdown .btn {
  background-color: transparent;
  border: 2px solid white;
  color: white;
  border-radius: 10px;
  transition: all 0.3s ease;         /* ✅ 平滑動畫 */
  transform: scale(1);               /* 預設大小 */
}

.dropdown .btn:hover {
  background-image: none;             /* 拿掉圖片 */
  background-color: #5B5B5B;          /* ✅ 背景變深灰色 */
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.9); /*白色光暈*/
  transform: scale(1.05);             /* ✅ 放大 5% */
  color: white;
  border: 2px solid white;
}

/* 滑鼠移入或聚焦：稍微改背景讓使用者知道可點 */
.dropdown .btn:hover,
.dropdown .btn:focus {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
}

/* 展開的下拉選單本體：白底 + 邊框 + 陰影 */
.dropdown-menu {
         /* 白色半透明底，可搭配背景圖 */
  background-image: url('images/bgp3.png');   /* ✅ 你的背景圖片路徑 */
  background-color: transparent;  
  background-size: 1500%;                            /* 圖片填滿選單 */
  background-repeat: no-repeat;
  background-position: center;
  border: 2px solid white;                           /* 白色邊框 */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin-top: 8px;
}

/* 選單項目：深色字 + hover 時淡紫背景 */
.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  
  background-color: transparent;     /* ✅ 背景透明 */
  background-image: url('images/bgp3.jpg');  /* ✅ 背景圖 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

         /* ✅ 白框 */
  text-align: left;
  font-size: 15px;
  color: white!important;                      /* ✅ 白字 */
  border-radius: 8px;
  cursor: pointer;

  transition: all 0.3s ease;         /* ✅ 平滑動畫 */
  transform: scale(1);               /* 預設大小 */
}

.dropdown-item:hover {
  background-image: none;             /* 拿掉圖片 */
  background-color: #5B5B5B!important;          /* ✅ 背景變深灰色 */
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.9); /*白色光暈*/
  transform: scale(1.05);             /* ✅ 放大 5% */
  color: white;
}

.login2{
	padding: 6px 14px;
    font-size: 16px;
    background-image: url('images/bgp3.png');   /* ✅ 你的背景圖片路徑 */
	background-color: transparent;  
	background-size: 1500%;                            /* 圖片填滿選單 */
	background-repeat: no-repeat;
	background-position: center;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    margin-left: 10px;
	transition: all 0.3s ease;   /* ✅ 增加滑順變化 */
    transform: scale(1);         /* 預設大小 */
}

.login2:hover {
    background-image: url('images/bgp3.png');   /* ✅ 你的背景圖片路徑 */
	background-color: transparent;  
	background-size: 1500%;                            /* 圖片填滿選單 */
	background-repeat: no-repeat;
	background-position: center;      /* ✅ 深灰色背景 */
    transform: scale(1.05);         /* ✅ 放大 5% */
    color: white;                   /* 保持白字 */
    cursor: pointer;
	animation: flash 0.6s infinite alternate;
}

.search-container {
  display: flex;
  align-items: center;
  margin-left: 15px;
  border: 2px solid white;
  border-radius: 30px;
  padding: 5px 10px;
  background-color: transparent;
  transition: all 0.3s ease;
  overflow: hidden;
  max-width: 40px; /* 收合時只顯示 icon */
}

.search-container.active {
  max-width: 240px;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

#search-icon {
  font-size: 16px;
  color: white;
  cursor: pointer;
}

#search-input {
  width: 0;
  opacity: 0;
  margin-left: 10px;
  background: transparent;
  border: none;
  color: white;
  outline: none;
  font-size: 14px;
  transition: width 0.4s ease, opacity 0.4s ease;
}

.search-container.active #search-input {
  width: 150px;
  opacity: 1;
}

#search-btn {
  background: transparent;
  border: none;
  color: white;
  margin-left: 10px;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.search-container.active #search-btn {
  opacity: 1;
}
