* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #000;
  font-family: Arial, sans-serif;
}

#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.8s ease-in-out;
}

#splash-screen .content {
  text-align: center;
}

#splash-screen h1 {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  font-size: 4rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 10px;
}

#splash-screen p {
  font-size: 1.5rem;
  color: #fff;
  opacity: 0;
  transform: translateY(50px); /* 與 h1 一致 */
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out; /* 與 h1 一致 */
}

#splash-screen.show h1,
#splash-screen.show p {
  opacity: 1;
  transform: translateY(0);
}

#splash-screen.fade-out {
  opacity: 0;
}

#splash-screen.fade-out h1,
#splash-screen.fade-out p {
  transform: translateY(-50px); /* 與 h1 一致 */
}

main {
  padding: 20px;
  color: #fff;
}

@media (max-width: 768px) {
  #splash-screen h1 {
      font-size: 3rem;
  }
}

@media (max-width: 480px) {
  #splash-screen h1 {
      font-size: 2.5rem;
  }
}
