html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}



body {
		background: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-style: normal;
		font-weight: 400;
}


/*---------------------------------------
    Typorgraphy              
-----------------------------------------*/
h1,h2,h3,h4,h5,h6 {
  font-weight: 600;
}

h3,h5 {
  font-weight: 500;
}

h1 {
    font-size: 40px;
    letter-spacing: 2px;
}

h2 {
  font-size: 30px;
  text-transform: uppercase;
}

h3 {
  line-height: 36px;
}

h5 {
    letter-spacing: 1px;
    padding-top: 10px;
}

p {
    color: #707070;
    font-size: 14px;
    line-height: 24px;
}

a {
  text-decoration: none !important;
  outline: none;
}



/*---------------------------------------
    General               
-----------------------------------------*/
.section-title {
  margin-bottom: 32px;
}

#overview,
#register {
  text-align: center;
  padding-top: 10rem;
  padding-bottom: 10rem;
}

#detail, #video,
#speakers, 
#program,
#sponsors, 
#contact, footer {
    padding-top: 10rem;
    padding-bottom: 10rem;
}

#detail,
#speakers, #sponsors,
footer {
  text-align: center;
}



#intro .btn,
#contact .btn {
    background: transparent;
    border: 2px solid #ffffff;
    border-radius: 0px;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 12px;
    padding: 14px 42px;
    margin-top: 42px;
    margin-right: 12px;
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
}

#intro .btn-danger,
#contact .btn-danger {
    background: #f2545f;
    border-color: transparent;
}

#contact .btn {
  border-radius: 100px;
}

#intro .btn-danger:hover {
  background: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

#contact .btn-danger:hover {
  background: #222;
}

#intro .btn-default:hover {
    background: #ffffff; 
    color: #333333;
    border-color: transparent;
}

.parallax-section {
  background-attachment: scroll;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}



/*---------------------------------------
    Preloader section              
-----------------------------------------*/
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
  background: none repeat scroll 0 0 #ffffff;
  transition: opacity 1s ease;
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.sk-rotating-plane {
  width: 100px;
  height: 100px;
  background-image: url('../images/logo.png'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  animation: rotateImage 1.2s infinite ease-in-out;
}

@keyframes rotateImage {
  0% {
    transform: perspective(120px) rotateX(0deg) rotateY(0deg);
  }
  50% {
    transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
  }
  100% {
    transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
  }
}

/*---------------------------------------
    Navigation Links section              
-----------------------------------------*/

.custom-navbar {
    margin-bottom: 0;
    background-color: #101010;
}

.custom-navbar .navbar-brand {
    color: #dd33ff;
    font-weight: 600;
    font-size: 3rem;
    line-height: 40px;
}

.custom-navbar .nav li a {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 18px 15px;
    display: inline-block;
    line-height: 40px;
    transition: all 0.4s ease-in-out;
}

.custom-navbar .nav li a:hover {
    background: transparent;
    color: #dd33ff;
}

.custom-navbar .navbar-nav > li > a:hover,
.custom-navbar .navbar-nav > li > a:focus {
  background-color: transparent;
}

.custom-navbar .nav li.active > a {
    background-color: transparent;
    color: #dd33ff;
}

.custom-navbar .navbar-toggle {
    border: none;
    padding-top: 10px;
}

.custom-navbar .navbar-toggle {
    background-color: transparent;
}

.custom-navbar .navbar-toggle .icon-bar {
    background: #ffffff;
    border-color: transparent;
}

.custom-navbar .container {
    display:flex;
    align-items: center;
    justify-content: space-between;
}

.custom-navbar .nav {
  display: flex;
  gap: 20px;
  padding: 0;
  list-style: none;
}

.custom-navbar .logo-img {
    height: 100px;
    margin-top: 0px;
    margin-left: -200px;
}

@media(min-width:768px) {
    .custom-navbar {
        padding: 20px 0;
        border-bottom: 0;
        background: 0 0; 
    } 
    .custom-navbar.top-nav-collapse {
        background: #0c0c1a;
        padding: 0;
    }

}



/*---------------------------------------
    Intro section              
-----------------------------------------*/
#intro {
    background: url('../video/首頁背景.gif') 50% 0 repeat-y fixed;
    -webkit-background-size: cover;
    background-size: cover;
    background-position: center center;
    color: #ffffff;
    display: -webkit-box;
    display: -webkit-flex;
     display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}



#intro h3 {
  letter-spacing: 2px;
}



/*---------------------------------------
   Overview  section              
-----------------------------------------*/
#overview {
  position: relative;
  background-color: #0c0c1a;
  min-height: 60vh;
  padding: 80px 20px;
  overflow: hidden;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.5s ease forwards;
  animation-delay: 0.3s;
}

#overview .row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
}

#overview .col-md-6 {
  font-family: 'Orbitron', 'Noto Sans TC', sans-serif;
  line-height: 1.9;
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.6);
  margin: 0 auto;
  text-align: center;
  max-width: 1000px;
  width: 90%;
}

#overview::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('../images/背景圖.png');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: -1;
}

#overview .content {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.5s ease forwards;
  animation-delay: 0.3s;
  max-width: 1000px;
  width: 90%; 
  margin: 0 auto;
  font-family: 'Orbitron', 'Noto Sans TC', sans-serif;
  font-size: 20px;
  line-height: 1.9;
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.6);
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
}

#overview .col-md-6,
#overview .content {
  line-height: 1.6;        
  letter-spacing: 0.02em;  
}

#overview h4, #overview h3, #overview p {
  color: #ffffff;
  text-shadow: 0 0 6px #dd33ff;
  margin-bottom: 30px;
}

#overview h3 {
  font-size: 40px !important; 
  margin-bottom: 20px;
}

#overview h4 {
  font-size: 25px !important; 
  margin-bottom: 15px;
}

#overview p {
  font-size: 20px;            
  line-height: 1.6;           
  margin-bottom: 15px;
}

/*---------------------------------------
    Detail section + Speakers section                       
-----------------------------------------*/
.shared-background {
  position: relative;
  width: 100vw;
  overflow: hidden;
  background-image: url('../images/背景01.webp');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  will-change: background-position;
  transition: background-position 0.1s ease-out;
}

.shared-background::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  background: rgba(0, 0, 0, 0.795);
  pointer-events: none;
  z-index: 1;
}

.shared-background > * {
  position: relative;
  z-index: 2;
}


@keyframes backgroundMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#detail,
#speakers {
  background: transparent;
  margin: 0;
  padding: 40px 20px;
}

#detail .container {
  max-width: 1200px;
  margin: 0 auto;
}

.logo-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: nowrap;
  padding: 20px;
}

.logo-box {
  width: 240px; 
  text-align: center;
}

.logo-box img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

#detail h3.title {
  font-size: 40px !important;
  color: #ffffff;
  text-shadow: 0 0 6px #dd33ff;
  text-align: center;
  margin-bottom: 40px;
}

.logo-box p {
  font-size: 28px;
  color: #ffffff;
  text-shadow: 0 0 6px #dd33ff;
  margin: 0;
}

#speakers h3 {
  text-align: center;
  font-size: 40px !important;
  display: flex;
  color: #ffffff;
  text-shadow: 0 0 6px #dd33ff;
  margin-bottom: 20px;
  line-height: 50px;
	margin:auto;
}

#speakers h4 {
  font-size: 28px !important;
  color: #ffffff;
  text-shadow: 0 0 6px #dd33ff;
  margin-top: 40px;
  margin-bottom: 15px;
  justify-content: center;  
  align-items: center; 
}

#speakers p {
  color: #ffffff;
  text-shadow: 0 0 6px #dd33ff;
  font-size: 20px;            
  line-height: 1.6;           
  margin-bottom: 15px;
}

.table-wrapper {
  overflow-x: auto;
  margin-top: 10px;
}


.custom-table {
  width: 100%;
  justify-content: center;  
  align-items: center; 
  border-collapse: collapse;
  color: #ffffff;
  text-shadow: 0 0 6px #dd33ff;
  font-size: 20px;
}

.custom-table thead {
  background-color: #dd33ff;
}

.custom-table th,
.custom-table td {
  padding: 10px 15px;
  border: 1px solid #dd33ff;
  text-align: left;
  vertical-align: top;
}

.custom-table tbody tr:hover {
  background-color: rgb(0, 0, 0);
  cursor: default;
}

.wow {
  will-change: transform, opacity;
}


/*---------------------------------------
   characters section              
-----------------------------------------*/
.character-section {
  position: relative;
  background-image: url('../images/背景圖2.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  min-height: 75vh;
  padding: 60px 20px;
  z-index: 0;
}

.character-section > * {
  position: relative;
  z-index: 2;
}

.section-title {
  display:flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #ffffff;
  text-shadow: 0 0 6px #dd33ff;
  font-weight: bold;
  margin-bottom: 40px;
}

.group-title {
  font-size: 40px;
  margin: 30px 0 15px;
  color: #ffffff;
  text-shadow: 0 0 6px #dd33ff;
  font-weight: 600;
}

.character-grid {
  display: flex;
  justify-content: center;
  align-items: flex-end;   
  gap: 40px;
  flex-wrap: nowrap;       
  overflow-x: auto;        
  padding: 0 20px;
}

.character-icon {
  cursor: pointer;
  display: inline-block;
  margin: 10px;
  display: flex;
  flex-direction: column; 
  align-items: center;    
  text-align: center;
}

.character-icon:hover {
  transform: translateY(-6px);
}

.character-icon img {
  width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 0;
}

.character-icon span {
  display: block;
  margin-top: 8px;
  font-weight: 600;
  font-size: 28px;
  color: #ffffff;
  text-shadow: 0 0 6px #dd33ff;
}


/* Modal */
.character-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  align-items: center; 
  justify-content: center;
}

.modal-content {
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); 
  box-shadow: 0 0 20px #dd33ff;
  border-radius: 12px;
  padding: 20px;
  max-width: 800px;
  width: 90%;
  text-align: center;
  position: relative;
} 

.modal-content img {
  max-width: 100%;
  margin-bottom: 16px;
  border-radius: 12px;
}
.modal-content h3 {
  font-size: 40px;  
  line-height: 1.5;
}
.modal-content p {
  font-size: 28px;  
  line-height: 1.5;
}




/*---------------------------------------
  REGISTER + VENUE            
-----------------------------------------*/


#register{
  padding-top: 5rem;
  padding-bottom: 5rem;
}

#register h2 {
  font-size: 40px;
  color: #ffffff;
  text-shadow: 0 0 6px #dd33ff;
  margin-bottom: 20px;
  line-height: 50px;
	margin:auto;
}


.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.image-modal img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.scene-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

.image-modal img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}



#venue::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); 
  z-index: 1;
}

#venue {
  background-image: url('../images/封面.jpg');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center 60%;
  background-size: cover;
  position: relative;
  z-index: 0;
  padding-top: 50px;
}

#venue h2{
  font-size: 40px;
  color: #ffffff;
  text-shadow: 0 0 6px #dd33ff;
  margin-bottom: 20px;
}


#venue .container {
  position: relative;
  z-index: 2;
}

.scene-gallery img {
  flex: 0 0 calc((100% - 40px) / 3);
  width: 180px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scene-gallery img:hover {
  transform: scale(1.1) rotate(3deg);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}



.gantt-img {
  width: 800px;
  max-width: 100%;
  margin: 20px auto 50px auto;
  border-radius: 12px;
  display: block;
}

.image-card {
  margin: 0 auto;
  display: inline-block;
  text-align: center;
}

.image-card:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}


@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*---------------------------------------
   mirror styles            
-----------------------------------------*/
#mirror {
  padding: 5rem 1rem;
  text-align: center;
  background-image: url('../images/背景01.webp'); /* 背景圖片 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1;
}

#mirror::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.795); /* 半透明黑遮罩，0.5透明度可以調整 */
  z-index: 0;
}

#mirror > * {
  position: relative;
  z-index: 1; /* 讓區塊內容蓋在遮罩上 */
}

#mirror h2 {
  color: #fff;
  text-shadow: 0 0 6px #dd33ff;
  font-size: 40px;
  margin-bottom: 2rem;
  position: relative;
  z-index: 10;
}

#mirror .scene-gallery {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start; 
  overflow-x: auto; 
  scroll-behavior: smooth;
  padding-bottom: 10px;
  cursor: grab;
}

#mirror .scene-gallery img {
  max-width: 400px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

/*---------------------------------------
   Sponsors section              
-----------------------------------------*/
.sponsors{
  background-color: #222;
}


.section-title {
  text-align: center;
  font-size: 40px;
  margin-bottom: 2rem;
  font-weight: bold;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.sponsor-item {
  flex: 0 0 160px; 
  text-align: center;
  position: relative;
}

.img-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
}

.img-wrapper img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  transition: filter 0.3s ease, transform 0.3s ease;
  display: block;
}

.img-wrapper:hover img {
  filter: brightness(50%);
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  opacity: 0;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.img-wrapper:hover .overlay {
  opacity: 1;
}

.overlay-text {
  color: rgb(255, 199, 252);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  padding: 0 10px;
  pointer-events: none;
}

.sponsor-item > .caption {
  margin-top: 10px;
  font-size: 28px;
  color: #7e1e79;
}



/*---------------------------------------
  VIDEO section              
-----------------------------------------*/
footer {
  background-attachment: fixed;
  background-color: #000000;
}

#video {
  width: 100vw;
  padding: 40px 20px;
  background-image: url('../images/背景圖2.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
}

.video-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#video h2 {
  font-size: 40px;
  color: #ffffff;
  text-shadow: 0 0 6px #dd33ff;
  margin-bottom: 20px;
}

#video video {
  width: 100%;
  max-width: 1000px;     
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.video-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.video-content-wrapper video {
  width: 100%;      
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  max-width: 1200px; 
  display: block;    
  margin: 0 auto;
}


.go-top {
  background-color: #222;
  bottom: 2em;
  right: 2em;
  color: #ffffff;
  font-size: 28px;
  display: none;
  position: fixed;
  text-decoration: none;
  width: 60px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  transition: all 0.4s ease-in-out;
}

.go-top:hover {
    background: #dd33ff;
    color: #ffffff;
}




/*---------------------------------------
   Responsive styles            
-----------------------------------------*/
@media (max-width: 980px) {

  p {font-size: 13px;}

  .custom-navbar .navbar-brand {
    font-size: 2rem;
  }

  .custom-navbar .nav li a {
    font-size: 20px;
	  line-height: 20px;
  }

  #intro { height: 65vh; }

  #video iframe {
    margin-top: 42px;
  }

  #contact .contact_detail {
  background: #ffffff;
  padding: 10rem 3rem 10rem 5rem;
}

}

@media (max-width: 768px) {

  .custom-navbar .navbar-brand {
    line-height: 20px;
  }

  #overview img,
  #detail .col-md-4,
  #register form {
    padding-top: 32px;
  }

  .nav-tabs > li > a {
    font-size: 20px;
  }

  #program img {
    padding-bottom: 32px;
  }

  #sponsors img {
    padding-top: 22px;
  }

  #contact .contact_detail {
    margin-top: 82px;
  }

}

@media (max-width: 760px) {

  #intro {
    height: 100vh;
  }

}

* {
  font-family: 'Noto Sans TC', 'Orbitron', sans-serif;
}

