/* 基本設置 */
body {
    font-family: 'Noto Serif TC', serif; /* 正文使用思源宋體 */
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #000000; 
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'ZCOOL XiaoWei', cursive; /* 標題使用站酷小薇體 */
}

/* Header Styles */
header {
    background-color: #ffffff;
    padding: 20px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.header-logo {
    max-height: 60px; /* Adjust based on your logo size */
    width: auto;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    color: #000000; 
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #000000;
}

/* Video Section */
#video {
    padding: 60px 20px;
    background-color: #1a1a1a;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    margin: 0 auto;
    max-width: 900px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Common Section Styles */
section {
    padding: 60px 20px;
    margin: 0 auto;
    max-width: 1200px;
}

h2 {
    font-size: 2rem;
    color: #000000; 
    margin-bottom: 20px;
    text-align: center;
}

p {
    font-size: 1.1rem;
    color: #cccccc; /* 淺灰色文字 */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px;
}

/* Image Resizing and Centering */
.gallery,
.event-gallery {
    display: flex;
    justify-content: center; /* Center images horizontally */
    align-items: center; /* Center images vertically */
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    gap: 20px; /* Add spacing between images */
}

.gallery img,
.event-gallery img {
    max-width: 100%; /* Ensure images don't exceed container width */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery img:hover,
.event-gallery img:hover {
    transform: scale(1.05); /* Add hover effect */
}

/* Specific Sizes for Images */
.gallery img {
    max-width: 300px; /* Set a maximum width for gallery images */
}

.event-gallery img {
    max-width: 400px; /* Set a maximum width for event gallery images */
}

/* Equipment List */
.equipment-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #262626;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.equipment-list h3 {
    color: #ecdd5b;
    border-bottom: 2px solid #196b54;
    padding-bottom: 10px;
    margin-top: 20px;
}

.equipment-list ul {
    list-style-type: none;
    padding: 0;
}

.equipment-list ul li {
    margin: 10px 0;
    font-size: 1rem;
    color: #cccccc;
}

/* Contact Section */
#contact {
    text-align: center;
}

#contact a {
    color: #ecdd5b;
    text-decoration: none;
    transition: color 0.3s ease;
}

#contact a:hover {
    color: #000000;
}

/* Subscription Section */
#subscribe {
    background-color: #262626;
    padding: 60px 20px;
    margin: 40px 0;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.subscription-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#email {
    padding: 12px 20px;
    border: 2px solid #196b54;
    border-radius: 30px;
    width: 300px;
    font-family: 'Noto Serif TC', serif;
    background: #1a1a1a;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#email:focus {
    border-color: #ecdd5b;
    outline: none;
}

button[type="submit"] {
    padding: 12px 30px;
    background: #196b54;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'ZCOOL XiaoWei', cursive;
    font-size: 1rem;
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    background: #1f8a6b;
    transform: translateY(-2px);
}

#thank-you-message {
    margin-top: 20px;
    color: #4CAF50;
    font-size: 1.1rem;
    text-align: center;
    display: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    background-color: #ffffff;
    color: #000000;
    margin-top: 40px;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #cccccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-logo {
        max-height: 50px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    #email {
        width: 100%;
        max-width: 300px;
    }
    
    button[type="submit"] {
        width: 100%;
        max-width: 300px;
    }
    
    .video-container {
        padding-bottom: 75%; /* Adjust for mobile aspect ratio */
    }
}

/* Ticketing Section */
#ticketing {
  padding: 60px 20px;
  background-color: #000000;
  text-align: center;
}

.ticketing-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ticketing-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(236, 221, 91, 0.3);
}

.video-link {
  display: block;
  text-decoration: none;
  position: relative;
  color: inherit;
}

.ticketing-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.video-overlay h3 {
  font-family: 'ZCOOL XiaoWei', cursive;
  font-size: 2rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.video-overlay p {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  color: #ecdd5b;
}

.video-link:hover .video-overlay {
  opacity: 1;
}

/* 響應式設計 - 在現有的媒體查詢中添加 */
@media (max-width: 768px) {
  .video-overlay h3 {
    font-size: 1.5rem;
  }
  
  .video-overlay p {
    font-size: 1rem;
  }
  
  .ticketing-container {
    margin: 0 10px;
  }
}