/* reset & 基本 */
* {
  list-style: none;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

html,
body {
  height: 100%;
  overflow: hidden;
  font-family: 'Arial', sans-serif;
}

.container {
  padding-left: 15px;
  padding-right: 15px;
}

.row {
  margin-left: -15px;
  margin-right: -15px;
}

/* 導覽列 */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  position: relative;

}

.nav-menu {
  display: flex;
  gap: 100px;

}

.nav-menu li a {
  font-family: "Nova Mono", monospace;
  font-size: 21px;
  color: #5C8EFE;
  cursor: pointer;

}

.nav-menu li a:hover {
  font-family: "Nova Mono", monospace;
  font-size: 21px;
  color: #b8cfff;
}

/* 字體 */
h2 {
  font-family: "Century Gothic", sans-serif;
  font-style: italic;
}

.link {
  text-decoration: none;
  transition: color 0.3s ease;
  font-family: 'arial';
  font-size: 16px;
  display: inline-block;
  color: #000;
  font-weight: 700;
}

.link:hover {
  color: #5C8EFE;
}
/* 網頁主頁面 */
.mainweb {
  margin-top: 15%;
  z-index: 15000;
  background-color:#fff ;
  position: relative;

}

/* 開場動畫區 */
#intro-wrapper {
  background-color: #5C8EFE;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
  transition: background-color 1s ease, opacity 2s ease;
}

#intro-wrapper.fadeout {
  opacity: 0;
  pointer-events: none;
}

#intro-animation img {
  width: 60px;
  animation: bounce 1s ease-in-out 5;
  position: absolute;
  top: 20%;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  20% {
    transform: translateY(-20px);
  }

  40% {
    transform: translateY(0);
  }

  60% {
    transform: translateY(-10px);
  }
  

}

#slide-area {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 1s ease;

}

.slide-icon {
  width: 60px;
  transition: all 2s ease;

}

.slide-text {
  font-size: 26px;
  font-weight: normal;
  font-family: 'Nova Mono', monospace;
  color: #fff;
  opacity: 1;
  transform: translateX(20px);
  transition: all 0.8s ease 0.5s;

}

/* slide 啟動 */
#slide-area.active {
  left: 75%;
  opacity: 1;
}

#slide-area.active .slide-text {
  opacity: 0;
  transform: translateX(0);
}


/* 最終狀態，背景變白 */
#intro-wrapper.final {
  background-color: #fff;
  /* 讓滑鼠點擊穿透 */
}

/* 文字變藍且持續顯示 */
#intro-wrapper.final .slide-text {
  color: #5C8EFE;
  opacity: 1 !important;
}
@media (max-width: 1440px) {
  /* 網頁主頁面 */
.mainweb {
  margin-top: 20%;
  z-index: 15000;
  background-color:#fff ;
  position: relative;

}
}
@media (max-width: 1024px) {
  /* 網頁主頁面 */
.mainweb {
  margin-top: 30%;
  z-index: 15000;
  background-color:#fff ;
  position: relative;

}

}

/* 響應式手機版 */
@media (max-width: 768px) {
  .mainweb {
  margin-top: 35%;
  z-index: 15000;
  background-color:#fff ;
  position: relative;

}

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 15px;
    padding: 15px;
    border: 1px solid #ccc;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    gap: 15px;

    border-radius: 8px;
    background: #fff;
  }

  .nav-menu.active {
    display: flex;
  }


  .pic img {
    filter: grayscale(1);
    transition: filter 0.5s ease;
  }

  .pic img:hover {
    filter: grayscale(0);
  }

  .introtext p {
    font-size: 20px;
    font-family: 'Caveat', cursive;
    line-height: 20px;
  }

  .intropic {
    background-color: #fff;
    opacity: 80%;
  }

  .body {
    padding: 10px;
  }

  h3 {
    color: #2e2e2e;
    letter-spacing: 2px;
    display: inline;
  }

  h5 {
    font-weight: bolder;
  }
}


@media (max-width: 425px) {
    .mainweb {
  margin-top: 55%;
  z-index: 15000;
  background-color:#fff ;
  position: relative;

}
  .word2 {
    margin-top: -400px;
    position: absolute;
  }

.slide-text {
  font-size: 20px;
  font-weight: normal;
  font-family: 'Nova Mono', monospace;
  color: #fff;
  opacity: 1;
  transform: translateX(20px);
  transition: all 0.8s ease 0.5s;

}
#slide-area {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 1s ease;

}


}
@media (max-width: 320px) {
    .mainweb {
  margin-top: 65%;
  z-index: 15000;
  background-color:#fff ;
  position: relative;

}
  .word2 {
    margin-top: -400px;
    position: absolute;
  }

.slide-text {
  font-size: 18px;
  font-weight: normal;
  font-family: 'Nova Mono', monospace;
  color: #fff;
  opacity: 1;
  transform: translateX(20px);
  transition: all 0.8s ease 0.5s;

}



}