.opening-bg {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    overflow: hidden;
    position: fixed;
    background: rgb(0 0 0 / 72%);
}
#opening {
        height: 100%;
    overflow: hidden;
    position: relative;
}

/*電腦版 loading*/ 
  .demo {
      width: 60px;
      height: auto;
      position: absolute;
      top: 24%;
  }
  .an.img {
      width: 100%;
      height: auto;
  }
  .demo-building{
      width: 260px;
      height: auto;
      position: absolute;
      top: 7%;
      transform: scale(0);                  /* 初始縮小 */
    animation: zoomIn 0.2s ease-out forwards;
  }
  .img-nationalDay{
    width: 100%;
    height: auto;
  }
  @keyframes zoomIn {
    from {
      transform: scale(0);
    }
    to {
      transform: scale(1);
    }
  }
  .demo-fireworks{
     width: 90px;
    height: auto;
    position: absolute;
    top: -18%;
    transform: scale(0); 
    animation: zoomIn 0.2s ease-out forwards;
    animation-delay: 0.1s; /* 延遲 0.5 秒後開始 */
  }
  .demo-flag_s{
    width: 72px;
    height: auto;
    position: absolute;
    top: -11%;
    left: -95px;
    opacity: 0;
    
  }
  @keyframes demo-flag_s {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  /* 旋轉動畫 */
@keyframes rotateImage_flag1 {
	0% {
        transform-origin: right bottom; /* 以左下角为旋转中心 */
		transform: rotate(0deg);
	}
	50% {
        transform-origin: right bottom; /* 以左下角为旋转中心 */
		transform: rotate(-10deg);
	}
	100% {
        transform-origin: right bottom; /* 以左下角为旋转中心 */
		transform: rotate(0deg);
	}
  }
  /* 當淡入結束後，再做旋轉 */
  .my-element.rotate {
    animation: demo-flag_s 0.5s ease forwards, 
              rotateImage_flag1 1s linear infinite;
    animation-delay: 0.1s, 0.6s; /* 第一個動畫0.1s開始，第二個動畫0.6s開始 */
  }
/*下面點點*/
  .loading_animation_list {
    position: absolute;
    top: 118%;
    left: -90px;
  }
  .loading_animation > div, .loading_animation_list > div{
        width: 199%;
  }
  .dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px; /* 點點間距，調大讓它們分開 */
  }
  .dot {
    transform: scale(0.6);  /* 初始就設定為動畫起點 */
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    background-color: hwb(0deg 0% 0% / 60%); /* 一開始就顯示紅色 */
    animation: pulse 1.5s infinite ease-in-out;
    margin: 8% 4% 0 4%;
  }

  @keyframes pulse {
    0%, 100% {
      transform: scale(0.6);
      background-color: hwb(0deg 0% 0% / 60%);
    }
    50% {
      transform: scale(1.5);
      background-color: #ff0000;
    }
  }
  /* 每個點依序延遲 */
  .delay1 { animation-delay: 0.3s; }
  .delay2 { animation-delay: 0.6s; }
  .delay3 { animation-delay: 0.9s; }
  .delay4 { animation-delay: 1.2s; }



/*手機板loading*/
.box1 {
    width: 80%;
    height: 40%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}
.loading_animation_rwd > div{
        width: 82%;
    margin: 6px 5px;
    display: inline-block;
}
.loading_animation_rwd {
    width: 100%;
    height: 28px;
    position: absolute;
    top: 99px;
    right: 0;
    bottom: 0;
    left: 3px;
    margin: auto;
}
.demo1_span {
    width: 100%;
    height: 73%;
    position: absolute;
    top: 0px;
    left: 0;
}
.demo1_loading_list {
    width: 100%;
    height: 36px;
    position: absolute;
    top: 124px;
    right: 0;
    bottom: 0;
    left: -6px;
    margin: auto;
}

.demo1-building{
      width: 84%;
    height: 79%;
    position: absolute;
    top: -12%;
    left: 23px;
}
.img-building{
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    transform: scale(0);                  /* 初始縮小 */
    animation: zoomIn 0.2s ease-out forwards;
}
.demo1-firework{
  width: 33%;
    height: 79%;
    position: absolute;
    top: -25%;
    left: 114px;
}
.img-firework{
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    animation: zoomIn 0.2s ease-out forwards;
    animation-delay: 0.1s; /* 延遲 0.5 秒後開始 */
}
.demo1-flag2{
      width: 20%;
    height: 79%;
    position: absolute;
    top: -19%;
    left: 68px;
}
.img-flag2{
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
     opacity: 0;
  
}
@keyframes go-building-rwd {
	0% {
        transform: scale(0); /* 初始大小为 100% */
		opacity: 0;
    }
	100% {
        transform: scale(1); /* 初始大小为 100% */
		opacity: 1;
    }
}


/*其他設定*/
#aboutMeLogoImg{
    width: 184px;
}
.homepage_login_bg { 
    border-radius: 10px;
    /* border-color: rgb(52 69 144); */
    border-style: solid;
    border-width: 4px;
    border-image: linear-gradient(to top, #FF0046, #FFFB00) 1;
    background: linear-gradient(to bottom, #fdfae7 0%, #fffd97 99%);
}
.homepage_login_cancel img{
  position: absolute;
  top: 0px;
  right: 0px;
  cursor: pointer;
  z-index: 9000;
  width: 60px;
  height: 60px;
}
.homepage_login_span {
  position: absolute;
    top: 10px;
    right: 17px;
    cursor: pointer;
    z-index: 10;
    font-size: 33px;
    font-weight: 700;
    color: #ffff;
    opacity: 1 !important;
    z-index: 9999;
    background-color: #840000 ! IMPORTANT;
    border-radius: 50%;
    width: 39px;
}
.bookmark_type {
    background-color: #840000 !important;
    color: #ffffff !important;
}
.homepage_login_bg .nav-tabs>li>a.active {
    background-color: #FF0000 !important;
    border-color: transparent !important;
    color: #ffffff !important;
}
.homepage_login_bg .tab-content {
  background: linear-gradient(to bottom, #ff0000 0%, #fdfae3 93%);
}
.login-input {
    background-color: #ffff !important;
    border: none !important;
    color: #919191 !important;
}
.christmas-i-color{
    color: #840000 !important;
}
.mobile-eye {
    color: #840000;
}
.login-btn {
    
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    background-color: #840000;
    border-color: #840000;
    color: #ffff;
}
.login-btn:hover,.login-btn:focus {
  background-color: #840000;
  border-color: #840000;
}
.festival-span-color, .dragon-span-color{
    color: #840000 !important;
}

.login-checkbox {
    vertical-align: sub;
    border-width: 1px;
    border-style: solid;
    border-color: #000;
    padding: 0px;
}
.login-checkbox input+i:after {
  top: 0px;
  left: 0px;
  width: 20px;
  height: 20px;
  background: #ffffff;
}
.prompt {
  color: #ffff !important;
    background-color: #840000 !important;
    
}
.homepage_login_right {
      width: 65%;
    position: absolute;
    z-index: 98;
    right: -51px;
    bottom: -6px;
}
.homepage_login_left {
      width: 23%;
    position: absolute;
    z-index: 98;
    left: 14px;
    bottom: 13px;
}
.homepage_login_bottom{
 width: 100%;
    position: absolute;
    z-index: 1;
    bottom: -1px;
    left: 4px;
}
  .festival-indexRwd-bg{
    background-image: url(../images/nationalDay/login_m.png);
  }
  .loginPage-bg_2{
    background: none;
    border-width: 0px;
    padding-top: 55px;
    box-shadow: none;
  }
  .loginPage-circle{
    background: none;
  }
  .loginPage-logo{
    top: 61px;
    height: 98px;
    width: 98px;
    background-image: url(../images/nationalDay/flag.png);
        background-color: #00000000;
    box-shadow: none;
    border-radius: 0;
    background-repeat: no-repeat;
    background-size: auto;
    background-position: left;
  }
  .general-titile-color{
    color:#C90D0D;
    text-shadow: 2px 2px 0 #ffffff, -2px -2px 0 #ffffff, 2px -2px 0 #ffffff, -2px 2px 0 #ffffff;
  }
  .login_div_lock{
       background: linear-gradient(to bottom, #FFF200, #FF0000);
    color: #fff;
  }
  .login_div_no_lock{
    background-color: #C90D0D;
    color: #fff;
  }
  .loginPage-logo img{
        top: 33px;
    width: 53%;
    left: 26%;
  }
  .loginPage-icon-1 {
    
    color: #C90D0D;
}
.icon-open-eye, .icon-closed-eye {
  color: #C90D0D;
}
.loginPage_input::placeholder, .login-input::placeholder {
  color: #919191;
}
.dragon-span-color-rwd, .loginPage-span-2, .loginPage-span-2-a{
    color: #C90D0D !important;
}
.loginPage-span-2, .loginPage-span-2-a{
  text-shadow: 1px 1px 0 #ffffff, -1px -1px 0 #ffffff, 1px -1px 0 #ffffff, -1px 1px 0 #ffffff;
}
.loginPage_login_btn{
    background: linear-gradient(to bottom, #FFF200, #FF0000)!important;
    color: #fff !important;
}
.mainMenu2020 .col-3{
    z-index: 999;  
}


/* 電腦版 開場動畫*/
section.main-opening {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: unset;
}
.demo-building-opening{
      width: 46vh;
    height: auto;
    position: absolute;
    top: -11vh;
      transform: scale(0);                  /* 初始縮小 */
    animation: zoomIn 0.2s ease-out forwards;
  }
.demo-building-opening2{
          width: 40vh;
    height: auto;
    position: absolute;
    top: 12vh;
    transform: scale(0);                  /* 初始縮小 */
    animation: scaleUp 0.2s ease-out forwards;
    animation-delay: 0.01s; 
  }
.img-building-opening {
  width: 100%;
  height: auto;
}
.my-scale {
  animation: scaleDown 0.2s ease-out forwards;
  animation-delay: 2.1s;         

}
@keyframes scaleUp {
  0% {
    transform-origin: center;
    transform: scale(0);
  }
  50% {
    transform-origin: center;
    transform: scale(1.2);
  }
  100% {
    transform-origin: center;
    transform: scale(1);
  }
}
@keyframes scaleDown {
  0% {
     transform-origin: center;
    transform: scale(1);
  }
  100% {
    transform-origin: center;
    transform: scale(0);
  }
}
/* 手機板 開場動畫*/
.box1-opening{
    display: flex;
    justify-content: center;
    align-items: center;
}
.demo-building-rwd{
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 75%;

    animation: zoomIn-rwd 0.2s ease-out forwards;
}
.img-building-rwd{
   width: 100%;
    height: auto;
    
}
.demo-building-rwd2{
    position: absolute;
    top: 47%;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 69%;

               
    animation: scaleUp-rwd 0.2s ease-out forwards;
    animation-delay: 0.01s; 
}
.img-building-rwd2{
   width: 100%;
    height: auto;
    
}
@keyframes zoomIn-rwd {
    from {
      transform: translateX(-50%) scale(0);
    }
    to {
      transform: translateX(-50%) scale(1);
    }
  }
@keyframes scaleUp-rwd {
  0% {
    transform-origin: center;
    transform: translateX(-50%) scale(0);
  }
  50% {
    transform-origin: center;
    transform: translateX(-50%) scale(1.2);
  }
  100% {
    transform-origin: center;
    transform: translateX(-50%) scale(1);
  }
}
/* 小螢幕調整 */
@media (min-width: 365px) and (max-width: 385px) {
  .demo-building-rwd {
    position: absolute;
    top: 26%;
  }
}

@media (min-width: 334px) and (max-width: 360px) {
  
  
}


@media  (min-width: 400px) and (max-width: 430px) {
  
}