/* reset & 全螢幕定位 */
* { margin:0; padding:0; box-sizing:border-box; }
html, body { width:100%; height:100%; overflow:hidden; position:relative; font-family:'Segoe UI', Tahoma, sans-serif; }

/* stripes 容器 */
.stripes {
  position:absolute; top:0; left:0; right:0; bottom:0;
  display:flex;
}
.stripe {
  flex:1; /* 三等分 */
  background: linear-gradient(135deg, #667eea, #764ba2);
}

/* 內容 container 置中 */
.container {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px; border-radius: 1rem;
  background: rgba(0,0,0,0.2); box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  width: 90%; /* 設定寬度為視窗寬度的百分比 */
  max-width: 1200px; /* 可選：限制最大寬度 */
  height: auto;
  margin: auto;
  top: 50%; transform: translateY(-50%);
  color: #fff;
  font-size: calc(16px + 1vw);
}
.countdown {
  display:flex; justify-content: space-between; margin-top:1.5rem;
  font-size:2rem; letter-spacing:0.05em;
}
.countdown div { font-size: calc(14px + 1vw); display:flex; flex-direction: column; align-items:center; }
.countdown span { font-size:3rem; font-weight:bold; }
.countdown small { font-size:1rem; margin-top:0.2rem; }

/* 右下控制列 */
.controls {
  position:absolute; z-index:1;
  bottom:1rem; right:1rem; display:flex; align-items:center; gap:0.5rem;
}
#colorBtn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  transition: background 0.3s;
}

#colorBtn:hover {
  background: rgba(255, 255, 255, 0.4);
}

.info-wrapper {
  position: relative;
  overflow: visible; /* 允許子元素溢出顯示箭頭 */
}

.info-icon { width:24px; height:24px; cursor:pointer; }

.tooltip {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(243, 240, 240, 0.9);
  padding: 0.4rem;
  border-radius: 0.4rem;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  overflow: visible; /* 確保箭頭可見 */
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%; /* 緊貼框底部 */
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(243, 240, 240, 0.9) transparent transparent transparent;
}

.info-wrapper:hover .tooltip,
.info-wrapper:focus-within .tooltip {
  opacity:1; pointer-events:auto;
}

.avatar {
  width:40px; height:40px; border-radius:50%;
  object-fit:cover; border:2px solid #447fee;
}

.avatar-container {
  position: relative;
  display: inline-block;
}

.avatar-tooltip {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(243, 240, 240, 0.9);
  padding: 0.4rem;
  border-radius: 0.4rem;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: auto; /* 允許在 tooltip 上互動！ */
  transition: opacity 0.2s;
  z-index: 10; /* 確保在最上層 */
  user-select: text; /* 允許選取文字 */
}

.avatar-container:hover .avatar-tooltip,
.avatar-tooltip:hover { /* 加上這個，當滑到 tooltip 上也保持顯示 */
  opacity: 1;
}

.avatar-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(243, 240, 240, 0.9) transparent transparent transparent;
}


.url-button a {
  color: #ffffff; /* 你想要的顏色，這是白色 */
  text-decoration: none; /* 移除底線（如果你不想要底線的話） */
}

.url-button a:hover {
  color: #4471ee; /* 滑鼠移過去時的顏色（例如金色） */
  text-decoration: underline; /* 滑過去加底線，想要可以加 */
}

.github-button {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  background-color: #7b899b;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.3s;
}

.github-button:hover {
  background-color: #6e7dff;
}

.github-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

.buttons-container {
  display: flex;
  gap: 10px; /* 控制按鈕之間的間距 */
  align-items: center; /* 垂直置中按鈕 */
}

h1, h3 {
  font-size: calc(18px + 1vw); /* 標題字體大小動態調整 */
}
