*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

body {
  margin: 0;
  background: #2b4c60;
  background: #c0cbd2;
}

h4{
  font-size: 30px;
  letter-spacing: 4px;
  line-height: 30px;
  font-family: "Hurricane", cursive;
  text-align: center;
}

.invitation {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  overflow: hidden !important;
/*  padding-bottom: 30px;*/
/*  background: url('../images/bg.jpg') no-repeat;
  background-size: cover;*/
}

.kvbg{
  position: relative;
  animation: kvloop;
}

.kvloop img {
  display: block;
  width: 100%;
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
}

.kvloop .kv01 {
  position: relative;
  animation: kvloop 8s infinite;
}

.kvloop .kv02 {
  animation: kvloop2 8s infinite;
}

@keyframes kvloop {
  0%, 25% {
    opacity: 1;
  }
  50%, 75% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes kvloop2 {
  0%, 25% {
    opacity: 0;
  }
  50%, 75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}


.story{
  width: 70%;
  margin: 120px auto;
  position: relative;
}

.story p{
  font-size: 15px;
  letter-spacing: 2px;
  line-height: 30px;
  text-align: center;
  font-family: "Noto Serif TC", serif;
  font-weight: 600;
}

img.walk {
  width: 300px;
  height: auto;
  display: block;
  position: absolute;
  top: -230px;
  left: -350px;

  animation: fly linear both;
  animation-timeline: scroll(root);
  /* 定義動畫發生的滾動區間（例如：從頁面滾動 20% 到 60% 的過程完成位移） */
  animation-range: 5% 50%;
}

@keyframes fly {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(750px, 750px);
  }
}

.imgbox{
  display: flex;
  justify-content: center;
}
.imgbox img{
  width: 36%;
}

.infobg{
  width: 65%;
  margin: 50px auto;
}

.infobg p{
  font-size: 15px;
  letter-spacing: 2px;
  line-height: 40px;
  text-align: left;
  font-family: "Noto Serif TC", serif;
  font-weight: 600;
}
.infobg span{
  font-size: 13px;
  letter-spacing: 1px;
  display: block;
  margin-top: -5px;
}

.map{
  height: 300px;
}

.ticketbg{
  position: relative;
  overflow: hidden;
}

img.tickettop {
  position: absolute;
  top: 0;
  z-index: 2;
}

img.tickettop2 {
  position: absolute;
  bottom: 0px;
  z-index: 110;
}

img.ticket{
  position: absolute;
  width: 270px;
  margin: 0 auto;
  top: -460px;
  right: 0;
  left: 0;
  z-index: 1;
}

img.ticket{
    position: absolute;
    width: 270px;
    margin: 0 auto;
    top: 160px;
    right: 0px;
    left: 0;
    z-index: 1;

    transform: rotate(0deg);
    transition: none;
    transition: transform 0.6s ease, right 0.6s ease;
}

img.ticket.finished  {
    transform-origin: bottom right;
    transform: rotate(3deg);
    right: -110px;
    right: -70px;
    z-index: 11;
}
.download-btn {
/*    background: #44444463;*/
    background: transparent;
    width: 79px;
    height: 42px;
    position: absolute;
    right: 54px;
    top: 65px;
    z-index: 111;
}
.download-btn:hover, .download-btn:focus, .download-btn:active{
  background:  transparent;
}

.txtbox{
  padding: 30px 0;
}

.txtbox p{
  font-size: 15px;
  letter-spacing: 2px;
  line-height: 40px;
  text-align: center;
  font-family: "Noto Serif TC", serif;
  font-weight: 600;
  margin-bottom: 30px;
}

p.sign{
  font-size: 35px;
  font-weight: 300;
  margin: 60px auto 0 auto;
  font-family: "Hurricane", cursive;
}

.mhbg{
  position: relative;
  animation: kvloop;
}

img.mhtop{
  position: absolute;
  top: 0;
  z-index: 111;
}

.mhloop img {
  display: block;
  width: 60%;
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
}

.mhloop .mh1 {
  animation: kvloop 8s infinite;
}

.mhloop .mh2 {
  animation: kvloop2 8s infinite;
}


@media (max-width: 479px) {
    /*img.ticket.finished {
        right: -50px; 
    }*/

    .infobg{
      width: 85%;
    }

    img.ticket {
        width: 60%;
        
    }
}
