/* Set Font */

@font-face {
  font-family: NotoSansTC;
  src: url(../fonts/NotoSansTC-Bold.otf) format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: NotoSansTC;
  src: url(../fonts/NotoSansTC-Medium.otf) format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: NotoSansTC;
  src: url(../fonts/NotoSansTC-Regular.otf) format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: NotoSansTC;
  src: url(../fonts/NotoSansTC-Light.otf) format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: NotoSansTC;
  src: url(../fonts/NotoSansTC-Thin.otf) format('opentype');
  font-weight: 100;
  font-style: normal;
}

/* Start */

main {
  font-family: NotoSansTC;
  background-image: url('../image/bg.png');
  background-repeat: no-repeat;
  background-size: 100% 100%;
}


html {
  background-color: #271830;
}

/* Body */

.Gash_Logo {
  position: relative;
  background-repeat: no-repeat;
  background-size: 100%;
  margin-top: 2.8vw;
  margin-left: 2.3vw;
  z-index: 99;
  width: 10vw;
  height: auto;
  aspect-ratio: 191/55;
  background-image: url(../image/GashLogo.png);
  /* background-color: #8a2be2; */
}

.Gash_Logo:hover {
  cursor: pointer;
}

#K1 {
  background-image: url(../image/KV.gif);
  /* background-image: url(../image/KV.png); */
  background-repeat: no-repeat;
  background-size: cover;
}

nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 60vw;
  min-height: 100px;
  justify-content: space-around;
  flex-wrap: wrap;
  margin: 1% 0 1% 0;
  /* border: 1px solid red; */
}

/* @keyframes scaleUp {
  0% {
    scale: 1;
  }
  50% {
    scale: 1.2;
  }
  90% {
    scale: 0.9;
  }
  100% {
    scale: 1;
  }
} */

.nav a {
  /* border: 1px solid green; */
  background-repeat: no-repeat;
  background-size: 100%;
  width: auto;
  height: 21vw;
  aspect-ratio: 1/1;
  text-align: center;
  text-decoration: none;
  color: #000;
  opacity: 1;
}

.nav a:hover  {
  color: #8a2be2;
  transform: scale(1.1); 
  transition: transform 0.3s ease; 
  cursor: pointer;
}

.nav a:active{
  opacity: 1;
}


#Nav_p1 {
  background-image: url(../image/P1.png);
}

#Nav_p2 {
  background-image: url(../image/P2.png);
}

#Nav_p3 {
  background-image: url(../image/P3.png);
}

section {
  min-height: 20vh;
  display: flex;
}

.section_title_0 {
  aspect-ratio: 3889/459;
  width: 90%;
  height: auto;
  background-image: url(../image/Line_2.png);
  background-repeat: no-repeat;
  background-size: 100%;
  margin-top: 3%;
  margin-bottom: -5%;
}

.section_title_1 {
  aspect-ratio: 3889/459;
  width: 90%;
  height: 10%;
  background-image: url(../image/Line_1.png);
  background-repeat: no-repeat;
  background-size: 100%;
  margin-top: -5%;
  margin-bottom: 2%;
}

.section_title_2 {
  width: 100%;
  height: 8vw;
  margin-top: -8%;
  margin-bottom: 8%;
}

.KV {
  display: flexbox;
  width: 100%;
  height: auto;
  aspect-ratio: 192/124;
}

#section1 {
  width: 100%;
  height: 100%;
  flex-direction: column;
}

#section2 {
  background-image: url(../image/bg_1.png);
  background-repeat: repeat;
  background-size: 100%;
  /* background-color: #fed2dd; */
}

#section3 {
  background-image: url(../image/bg_2.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  /* background-color: #afe5f4; */
}

#section4 {
  background-color: #4a2a5f;
}

#section2,
#section3,
#section4 {
  align-items: center;
  flex-direction: column;
}

.prize {
  min-height: 8vh;
  max-width: 95vw;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 6% 3%;
}

.card.mb-3 {
  min-height: 8vh;
  max-width: 75vw;
  border-radius: 1%;
  /* border: 3px solid #fff; */
  background-color: rgba(87, 51, 109, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 5px 5px 25px rgba(0, 0, 0, .3);
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  height: auto;
  max-width: 1200px;
  background-size: 100%;
  background-repeat: no-repeat;
}

#card_t1 {
  aspect-ratio: 1311/238;
  margin-left: -5%;
  background-image: url(../image/Title1.png);
}

#card_t2 {
  aspect-ratio: 1311/238;
  margin-left: -5%;
  background-image: url(../image/Title2.png);
}

#card_t3 {
  aspect-ratio: 1311/238;
  margin-left: -5%;
  background-image: url(../image/Title3.png);
}

.card-text {
  font-size: 1.2rem;
  color: #ffffff;
}

.sub {
  font-weight: 600;
  margin-top: 3%;
  font-size: 1.3rem;
  color: #ffffff;
}

.text-body-secondary {
  font-weight: 400;
  font-size: 1.1rem;
  color: #ffd7bc;
}

cYellow {
  color: rgb(255, 239, 15);
}

#pcon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 95vw;
}

#pimage-container {
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

#pimage1_L,
#pimage2_L,
#pimage3_L {
  margin: 1vw 0 0 3vw;
  width: auto;
  height: 20vw;
  aspect-ratio: 1/1;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

#pimage1_L {
  background-image: url(../image/Prize1.png);
}

#pimage2_L {
  background-image: url(../image/Prize3.png);
}


#pimage1_R {
  max-width: 80%;
  height: auto;
  z-index: 10;
  margin-left: -2%;
}

.col-md-7 {
  background-color: rgba(255, 255, 255, 0);
  border-radius: 5%;
  max-width: 85vw;
  display: flex;
  align-items: center;
  padding: 0;
}

#pcard {
  margin-left: -1vw;
}

#pcard_b {
  width: 45vw;
  /* border: 1px solid red; */
  margin-left: 4vw;
}

#b {
  width: 30%;
  height: 4vh;
  margin: 2% 0 2% 65%;
  /* border: 3px solid #fff; */
  background-color: #FF7E27;
  border-radius: 20px;
  /* box-shadow: 4px 4px 0 #fff; */
  
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4), -2px -2px 1px rgba(255, 224, 233, 0.6);
  border: none;

  background-image: url(../image/B1.png);
  background-size: 40%;
  background-repeat: no-repeat;
  background-position: center;
}

#b:hover {
  background-color: #ffe9f0;
  /* border: 3px solid #fc5786;
  box-shadow: 4px 4px 0 #fc5786; */
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5), -2px -2px 1px rgba(255, 224, 233, 0.6);
  border: none;
  animation: heartBeat 1.8s infinite;
  background-image: url(../image/B2.png);
}

.C_container {
  height: auto;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.C_title {
  font-weight: 400;
  font-size: 1.4em;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: fit-content;
  margin: -7% 0 2% 3%;
}

ul {
  color: #fff;
}

li {
  margin: 5px;
  list-style-type: decimal;
}

.C_text {
  margin-bottom: 3%;
}

.copy {
  color: #513265;
  text-align: center;
}

.C_text a {
  color: #cca4e7;
}

.C_text a:hover {
  color: #513265;
  background-color: rgb(252, 241, 255);
}

footer {
  text-align: center;
  background-color: #271830;
}

footer p {
  color: #fff;
  padding-top: 1%;
}

@media only screen and (min-width:1000px) {
  
  .rotate-in {
    animation: bounceIn 2s;
    transform: rotate(0deg);
    opacity: 1;
  }
  
  .prize {
    opacity: 0;
    transition: transform .5s ease;
  }

  .slide-in-left {
    animation: fadeInLeft 0.8s;
    opacity: 1;
  }

  .slide-in-right {
    animation: fadeInRight 0.8s;
    opacity: 1;
  }
}

@media only screen and (max-width:1080px) {
  .nav a {
    height: 23vw;
  }
}

@media only screen and (max-width:768px) {

  #K1 {
    aspect-ratio: 1920/1707;
    background-image: url('../image/KV_s.gif');
  }

  .card.mb-3 {
    max-width: 90vw;
  }

  .nav a {
    height: 24vw;
  }

  #pimage-container {
    margin-left: 5%;
    width: 90%;
  }

  #pcard,
  #pimage1_M {
    height: 100%;
    margin-left: 0;
  }

  #pcard_b {
    width: auto;
    margin-left: 0;
  }

  .card-title {
    display: none;
  }

  #pimage1_L,
  #pimage2_L,
  #pimage3_L {
    aspect-ratio: 1228/379;
    margin: 3vw 0 0 0;
    width: 92vw;
    height: auto;
  }

  #pimage1_L {
    background-image: url(../image/Prize_1s.png);
  }

  #pimage2_L {
    background-image: url(../image/Prize_2s.png);
  }

  #pimage3_L {
    background-image: url(../image/Prize_3s.png);
  }

  #pcard2 {
    padding: 0;
  }

  .card-title {
    margin-left: 0;
    max-height: 80px;
  }

  #card_t1,
  #card_t2,
  #card_t3 {
    margin-left: -1%;
  }

  #pimage1_R {
    border: none;
    margin-left: 0;
    display: none;
  }

  #pcard_text {
    margin-left: 0;
  }

  .section_title {
    margin-bottom: 0;
  }

  .C_title {
    font-size: 1em;
    margin-top: 3%;
  }

  #b {
    width: 70%;
    height: 5vh;
    margin: 8% 0 2% 15%;
    background-size: 20%;
  }

  li {
    font-size: .9rem;
  }

  .card-text,
  .text-body-secondary,
  footer p {
    font-size: .9rem;
  }

  .sub {
    font-size: 1.1rem;
  }
}

@media only screen and (max-width:460px) {
  #b {
    height: 4vh;
    background-size: 22%;
  }
}