/* === 全局樣式 === */
:root {
  overscroll-behavior: none;
}
body {
  font-family: "Bebas Neue", serif;
  user-select: none;
  /* 禁止選取文字 */
  margin: 0;
  padding: 0;
  background-color:  rgba(150, 150, 150, 0.2);
}

.bebas-neue-regular {
  font-family: "Bebas Neue", serif;
  font-weight: 400;
  font-style: normal;
  transform: scaleY(1.3); /* 調整垂直比例 */
}


.kadwa {
  font-family: "Kadwa", serif;
  font-weight: bold;
}

html {
  scroll-behavior: smooth;
  /* 平滑滾動 */
  overflow-x: hidden;
  background-color: rgb(16, 16, 16);
  /* 頁面背景色與 #home 一致 */
}

/* === 主內容樣式 === */
#main-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  color: white;
}

/* === 區塊樣式 === */
.section {
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

/* === Header 樣式 === */
header#home-header{
  position: fixed;
  width: 100%;
  top: 20px;
  background-color: rgba(0, 0, 0, 0);
  /* 默認透明背景 */
  color: white;
  z-index: 1000;
  opacity: 0;
  /* 初始完全不可見 */
  transform: translateY(-100%);
  /* 初始從屏幕頂部移出 */
  transition: transform 0.3s ease, opacity 0.3s ease;
  /* 平滑隱藏與顯示 */
}

header#home-header.visible {
  opacity: 1;
  /* 滾動後顯示 */
  transform: translateY(0);
  /* 回到可見位置 */
}

header#home-header.hidden {
  opacity: 0;
  transform: translateY(-100%);
  /* 滑出視窗上方 */
}

nav {
  display: inline-flex;
  width: 100vw;
  justify-content: space-between;

}

.navTitle{
  margin-left: 50px;
}

.nav-title {
  font-weight: 600;
  font-size: 60px;
  color: #6D6D6D;
  line-height: 1em;
}

nav ul {
  margin-right: 50px;
  padding: 0;
  list-style: none;
  display: flex;
  font-weight: 300;
  flex-direction: column;
  width: 125px;
}

nav a{
  text-align: center;
}

nav a:hover {
  text-decoration: none;
}

nav ul li a {
  letter-spacing: 1px;
  font-size: 22px;
  color: #6D6D6D;;
  text-decoration: none;
}

nav ul li a:hover {
  color: rgb(16, 16, 16);
  text-decoration: none;
  font-weight: 800;
}

/* === Footer 樣式 === */
#footer-container {
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 250px;
  border: none;
  margin-bottom: -8px;
}

#footer {
  background-color: #ffc802;
  height: 250px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 0px;
}

.copyright {
  font-weight: 300;
  letter-spacing: 1px;
  color: #e6e6e6;
}

.footer-title {
  font-weight: 600;
  color: #e6e6e6;
  transform: scaleY(1.3);
  margin-bottom: -18px;
}




/* === 手機：小螢幕（<= 480px） === */
@media (max-width: 480px) {
   .navTitle{
    margin-left: 20px;
  }
  nav ul {
    margin-right: 20px;
  }
  .copyright {
    font-size: 6px;
  }  
  .footer-title {
    font-size: 45px;
    margin-bottom: -8px;
  }
}


/* === 手機：小螢幕（<= 480px） === */
@media (min-width: 481px) and (max-width: 575px) {
  .copyright {
    font-size: 10px;
  }  
  .footer-title {
    font-size: 50px;

    margin-bottom: -14px;
  }
}

/* === 手機：中小螢幕（481px - 767px） === */
@media (min-width: 576px) and (max-width: 767px) {
  .copyright {
    font-size: 10px;
  }  
  .footer-title {
    font-size: 75px;
    margin-bottom: -14px;
  }
  }

/* === 小平板：稍大螢幕（768px - 1024px） === */
@media (min-width: 768px) and (max-width: 1024px) {
  .copyright {
    font-size: 10px;
  }  
  .footer-title {
    font-size: 90px;
  }
  }

/* === 桌面：一般大小（1025px - 1366px） === */
@media (min-width: 1025px) and (max-width: 1366px) {
  .copyright {
    font-size: 12px;
  } 
  .footer-title {
    font-size: 120px;
  }
}

/* === 桌面：超大螢幕（>= 1367px） === */
@media (min-width: 1367px) {
  .copyright {
    font-size: 12px;
  } 
  .footer-title {
    font-size: 120px;
  }
}
