@import url('https://fonts.googleapis.com/css2?family=Saira+Stencil+One&display=swap');
body {
    font-family: 'Noto Sans TC', sans-serif;
    padding:0px;
    margin: 0px;
    background-color: black;
    position: relative;
    color: aliceblue;
    overflow-x: hidden !important;
}
.space{
    margin-top: 100px;
}

/* 這個是刪掉boostrap自帶的margin */
.my-5 {
    margin-top: 0px !important;
    margin-bottom: 0px!important;
    padding-top: 0px !important;
}

.bg-img-top{
    background-image: url("../backImg/background01.png");
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 45%;
    }
  
  .bg-img{
  background-image: url("../backImg/background03.png");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 45%;
  }

  @media (min-width: 768px) {
    
    .bg-img-top{
        background-size: 50%;
        }
     
       
      .bg-img{
      background-size: 50%;
      }
  }

  h1 {
    color: whitesmoke;
    font-family: "Saira Stencil One",sans-serif;
    font-style: normal;
    font-size: 60px;
    font-weight: 400;
    letter-spacing:9px;
    padding-top:50px;
    margin-bottom: 75px;
    text-align: center;
    align-items: center;
    position: relative;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8),
    0 0 10px rgba(255, 255, 255, 0.8),
    0 0 30px #00A8A8,
    0 0 40px #00A8A8,
    0 0 45px #00A8A8;
    }

    h1::after {
        content: '';
        position: absolute;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height:3px;
        background: linear-gradient(90deg, 
          transparent 0%, 
          #f4c951 20%, 
          #ffdd66 50%, 
          #f4c951 80%, 
          transparent 100%);
        border-radius: 2px;
      }


    
/* 影片格線項目樣式 */
.video-grid-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.video-grid-item.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 白色外框容器 */
.video-card {
    background-color: white;
    border: 9px solid white;
    padding: 0px;
    height: 100%;
    display: flex;
    flex-direction: column;
}


h5 {
    color: #ffffff;
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.5em;
    font-size: 1.5em;
    font-weight: 700;
    text-align: center;
    letter-spacing: 3px;
    position: relative; 
    padding-bottom: 39px;
    margin: 20px;
    text-overflow: ellipsis; 
    overflow: visible !important; 
}
.underline {
color: #333;
font-family: 'Noto Sans TC', sans-serif;
line-height: 1.5em;
font-size: 1.5em;
font-weight: 900;
text-align: center;
letter-spacing: 3px;
position: relative; 
padding-bottom: 39px;
margin-bottom: 0;
text-overflow: ellipsis; 
overflow: visible !important; 

}

.underline::after {
    content: '';
    display: block; 
    width: 80px;    
    height: 4px;   
    background-color: #FFD700; 
    position: absolute; 
    bottom: 20px;
    left: 50%; 
    transform: translateX(-50%); 
}

.video-container {
    margin-bottom: 10px;
}


.botton{ 
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-btn-box {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.cta-button {
    display: inline-block;
    background-color: transparent;
    border: 2px solid #f4c951;
    color: #FF9900 !important;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;   
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(244, 201, 81, 0.5);
    box-shadow: 0 0 10px rgba(244, 201, 81, 0.3);
    letter-spacing: 2px;
    margin-top: -10px !important;
    margin-bottom: 90px !important;
}

.cta-button:hover {
    background-color: #5ae1d2;
    color: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 0 15px #5ae1d2, 0 0 30px rgba(244, 201, 81, 0.5);
    text-shadow: none;
    border: 2px solid #5ae1d2;
}


@media (min-width: 769px) and (max-width: 1023px) { /* 平板裝置 */
    .video-grid-item h5{
       font-size: 1.3em;
       font-weight:400;
       text-align: center;
       letter-spacing:2px;
    }
    
    .container {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .video-card {
        transform: scale(0.9);
        margin: 10px 0;
    }
}

@media (max-width: 768px) { 
    h1{
        font-style: normal;
        font-size: 50px;
        letter-spacing:9px;
        padding-top:40px;
        margin-bottom: 15px;
    }
    .video-grid-item h5{
       font-size: 1.1em; 
       font-weight:500;
       text-align: center;
       letter-spacing:2.3px;
       margin-top: 20px;
    }
    
    .yt-vidio{ 
        aspect-ratio: 4/3;
    }

    .video-card {
        /* padding: 5px; */
        transform: scale(0.85);
        /* margin: 15px 0; */
    }

    .scene3 span {
        font-size: 80px;
    }
    
    .container {
        padding-left: 30px;
        padding-right: 30px;
    }
    .cta-button {
        padding: 12px 24px;
        font-size: 14px;
        letter-spacing: 1px;
        margin: 30px 10px;
    }
    .cta-btn-box {
        margin-top: 2rem;
        padding: 0 10px;
    }
}