
@font-face {
    font-family: 'FAFont';
    src: URL('STKaiti.woff2') format('woff2');
    font-weight: bold;
} 

html, body{
    width: 100%;
    height:100%;
    padding: 0px;
    margin: 0px;
    overflow: hidden;
    font-family: 'FAFont', 'STKaiti', 'DFKai-SB', 'KaiTi', 'DFKaiSho-SB', 'STSong', sans-serif;
}

.bottomFixedLogo{
    position: fixed;
    bottom: 6vh;
    left: calc(50% - 13.5vw);
    width: 27vw;
}

#bgSets{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#mainBackgroundOnTop{
    width: 100%;
    height:100%;
    background: url(../resources/P1/p1_bg_blink.png) center center no-repeat;
    background-origin: content-box;
    background-size: cover;
    box-sizing:border-box;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -99;
    /* animation: opacityBreath 2s infinite cubic-bezier(0,0,0.58,1); */
}

#mainBackgroundOnTop::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: url("#wave-filter");
}

#mainBackgroundOnTop:after {
    position: absolute;
    background: inherit;
    content: "";
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    filter: blur(0px);
    opacity: 0.8;
    mix-blend-mode: lighten;
    animation: breathe 4.2s infinite cubic-bezier(0,0,0.58,1);
    pointer-events: none;
}

/* filter: blur(0px);
opacity: 0.8;
mix-blend-mode: lighten;
animation: breathe 6s infinite alternate;
pointer-events: none;
} */

@keyframes opacityBreath {
    0% {
        /* filter: blur(0px); */
        opacity: 0.92;
    }
    50% {
        /* filter: blur(150px * sin(2 * pi * x));  */
        opacity: 0.86;
    }
    80% {
        /* filter: blur(150px * sin(2 * pi * x));  */
        opacity: 0.97;
    }
    100% {
        /* filter: blur(40px); */
        opacity: 0.92;
    }
}

@keyframes opacityBreathBlur {
    0% {
        /* filter: blur(0px); */
        opacity: 0.12;
    }
    50% {
        /* filter: blur(150px * sin(2 * pi * x));  */
        opacity: 0.16;
    }
    80% {
        /* filter: blur(150px * sin(2 * pi * x));  */
        opacity: 0.17;
    }
    100% {
        /* filter: blur(40px); */
        opacity: 0.12;
    }
}

#mainBackground{
    width: 100%;
    height:100%;
    background: url(../resources/P1/p1_bg_blur.jpg) center center no-repeat;
    background-origin: content-box;
    background-size: cover;
    box-sizing:border-box;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -100;
}

#mainBackground::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    /* filter: url("#wave-filter"); */
}

#mainBackground:after {
    position: absolute;
    background: inherit;
    content: "";
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    filter: blur(0px);
    opacity: 0.8;
    mix-blend-mode: lighten;
    /* animation: bgBreathe 1.3s infinite alternate; */
    pointer-events: none;
}

.noBefore::before {
    content: none !important;
}

/* .noBefore::before {
    content: none !important;
} */

/* #mainBackgroundP2{
    width: 100%;
    height:100%;
    background: url(../resources/p2/p2_bg.jpg) center center no-repeat;
    background-origin: content-box;
    background-size: cover;
    box-sizing:border-box;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -101;
}

#mainBackgroundP3{
    width: 100%;
    height:100%;
    background: url(../resources/p3/p3_bg.png) center center no-repeat;
    background-origin: content-box;
    background-size: cover;
    box-sizing:border-box;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -102;
}

#mainBackgroundP4{
    width: 100%;
    height:100%;
    background: url(../resources/p4/p4_bg.png) center center no-repeat;
    background-origin: content-box;
    background-size: cover;
    box-sizing:border-box;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -103;
}

#mainBackgroundP5{
    width: 100%;
    height:100%;
    background: url(../resources/p5/p5_bg.png) center center no-repeat;
    background-origin: content-box;
    background-size: cover;
    box-sizing:border-box;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -104;
}

#mainBackgroundP6{
    width: 100%;
    height: 100%;
    background: url(../resources/p6/p6_bg.png) center center no-repeat;
    background-origin: content-box;
    background-size: cover;
    box-sizing:border-box;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -105;
} */

#mainPage{
    width: 100%;
    height:100%;
    text-align: center;
    position: absolute;
    top: 0;
}

/* #mainBackground:after {
    position: absolute;
    background: inherit;
    content: "";
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    filter: blur(0px);
    opacity: 0.8;
    mix-blend-mode: lighten;
    animation: breathe 6s infinite alternate;
    pointer-events: none;
} */

/* #mainBackgroundP2:after {
    position: absolute;
    background: inherit;
    content: "";
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    filter: blur(0px);
    opacity: 0.8;
    mix-blend-mode: lighten;
    animation: breathe 6s infinite alternate;
    pointer-events: none;
}

#mainBackgroundP3:after {
    position: absolute;
    background: inherit;
    content: "";
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    filter: blur(0px);
    opacity: 0.8;
    mix-blend-mode: lighten;
    animation: breathe 6s infinite alternate;
    pointer-events: none;
}

#mainBackgroundP4:after {
    position: absolute;
    background: inherit;
    content: "";
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    filter: blur(0px);
    opacity: 0.8;
    mix-blend-mode: lighten;
    animation: breathe 6s infinite alternate;
    pointer-events: none;
}

#mainBackgroundP5:after {
    position: absolute;
    background: inherit;
    content: "";
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    filter: blur(0px);
    opacity: 0.8;
    mix-blend-mode: lighten;
    animation: breathe 6s infinite alternate;
    pointer-events: none;
}

#mainBackgroundP6:after {
    position: absolute;
    background: inherit;
    content: "";
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    filter: blur(0px);
    opacity: 0.8;
    mix-blend-mode: lighten;
    animation: breathe 6s infinite alternate;
    pointer-events: none;
} */

@keyframes breathe {
    0%, 100% {
      opacity: 0.85;
      filter: blur(62px); /* 基礎值增加 50px */
    }
    14% {
      opacity: 0.88;
      filter: blur(110px);
    }
    218% {
        opacity: 0.88;
        filter: blur(120px);
      }
    25% {
      opacity: 0.85;
      filter: blur(61px);
    }
    31% {
      opacity: 0.9;
      filter: blur(77px);
    }
    38% {
      opacity: 0.87;
      filter: blur(55px);
    }
    51% {
      opacity: 0.85;
      filter: blur(78px);
    }
    59% {
      opacity: 0.88;
      filter: blur(56px);
    }
    68% {
      opacity: 0.9;
      filter: blur(77px);
    }
    80% {
      opacity: 0.85;
      filter: blur(57px);
    }
    89% {
      opacity: 0.87;
      filter: blur(76px);
    }
}
  

@keyframes bgBreathe {
    0% {
        filter: blur(10px);
    }
    80% {
        filter: blur(30px * sin(2 * pi * x)); 
    }
    100% {
        filter: blur(20px);
    }
}


.mainPageBtn{
    cursor: pointer;
    height: 6vh;
}

.sendPageBtn{
    cursor: pointer;
    margin-top: 5%;
    height: 6vh;
    opacity: 0.3;
}

#agreeBtn{
    opacity: 0.3;
}

.topLogo {
    margin: 10% 0% 5% 0%;
    width: 60%;
}

.horizontalLine{
    margin: 5% auto;
    width: 90%;
}

.centerContent{
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

p{
    color: white;
    font-size: 18px;
    letter-spacing: 0.1em;
}

#mainContent {
    position: relative;
    top: 0;
    left: 0;
    overflow-y: hidden;
    overflow-x: hidden;
    height: 40vh;
    /* opacity: 0; */
    transition: height 0.5s ease;
}


#page1{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 180;
}

#page2{
    position: absolute;
    top: -3%;
    left: 0%;
    width: 100%;
    height: 95%;
    opacity: 0;
    z-index: 179;
    overflow-y: scroll;
    text-align: center;
}

#page3{
    position: absolute;
    top: -3%;
    left: 0%;
    width: 100%;
    height: 95%;
    opacity: 0;
    z-index: 178;
    overflow-y: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
}

#page4{
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
}

#page5{
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
}

#page6{
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
}

.textInput {
    background-color: transparent;
    border: #fff 1px solid;
    color: #fff;
    width: 40%;
    height: calc(6vw);
    border-radius: 5px;
    transition: border 0.2s cubic-bezier(0.445, 0.05, 0.55, 0.95), box-shadow 0.2s cubic-bezier(0.445, 0.05, 0.55, 0.95);
    text-align: center;
    font-weight: bold;
    font-family: "FAFont";
    font-size: 18px;
}

.textInput:focus, .textInput:active {
    outline: none !important;
    border:1px solid rgb(255, 255, 255);
    box-shadow: 0 0 6px rgb(255, 255, 255);
}

.activityTextInput {
    background-color: transparent;
    border: #fff 1px solid;
    color: #fff;
    width: 70%;
    height: calc(6vw);
    border-radius: 5px;
    transition: border 0.2s cubic-bezier(0.445, 0.05, 0.55, 0.95), box-shadow 0.2s cubic-bezier(0.445, 0.05, 0.55, 0.95);
    text-align: center;
    font-weight: bold;
    margin-top: 5%;
}

.textInput:focus, .textInput:active {
    outline: none !important;
    border:1px solid rgb(255, 255, 255);
    box-shadow: 0 0 6px rgb(255, 255, 255);
}

#windNextBtn{
    opacity: 0.3;
}

#seaNextBtn{
    opacity: 0.3;
}

#mountainNextBtn{
    opacity: 0.3;
}

#windInput{

}

.bottomIcon{
    width: 50%;
    margin-top: 5%;
}

#agreeCheckBox{
    display: inline-block;
    vertical-align:top;
}

#agreeArea{
    display: inline-block;
    width: 60%;
}

#agreeTitle{
    font-size: 1.2em;
}

#agreeContent{
    display: inline-block;
    text-align: left;
}

#agreeContent > span{
    display: block;
    width: 90%;
    float: right;
}

.topExplain{
    width: 60%;
}

#p6SummaryBG{
    width: 100%;
}

.summaryBG{
    width: 100%;
    position: relative;
    top: 0;
    left: 0;
}

.summaryBGParent{
    position: relative;
}

.inputShown{
    position: absolute; 
    bottom: 38%;
    font-weight: bold;
}

#windInputShown{
    right: 20%;
}

#seaInputShown{
    left: 20%;
}

#mountainInputShown{
    right: 20%;
}

#finalPage{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    margin-top: 5%;
}

#p7_5g_icon{
    width: 10%;
}

#p7_5g_title{
    width: 75%;
}

#p7_5g_txt{
    width: 85%;
}

#p7_lottery_title{
    width: 20%;
}

#p7_lottery_txt{
    width: 85%;
}

#p7_lottery_notice{
    width: 45%;
}

::placeholder { /* CSS 3 標準 */
    color: rgb(255, 255, 255);
}

::-webkit-input-placeholder { /* Chrome, Safari */
    color: rgb(255, 255, 255);
}

:-ms-input-placeholder { /* IE 10+ */
    color: rgb(255, 255, 255);
}

::-moz-placeholder { /* Firefox 19+ */
    color: rgb(255, 255, 255);
    opacity: 1;
}

#page2 > .inputTitle:nth-child(3){
    margin-top: 3%;
}

#page2 > input{
    margin: 1% auto;
}
p {
    margin: 1% auto 1% auto;
}

#dropdownMenu {
    display: none;
    /* position: absolute; */
    background-color: #e2e2e2;
    min-width: 43.8%;
    /* max-height: 25%; */
    overflow-y: auto;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border: 1px solid #ccc;
    margin: 0 auto;
    /* font-family: 'DFKai-SB'; */
}
#dropdownMenu strong {
    display: block;
    padding: 3px 15px;
    color: #333;
    background-color: #cbb083;
    cursor: default;
}
#dropdownMenu a {
    color: black;
    padding: 3px 15px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}
#dropdownMenu a:hover { background-color: #ffc9a3; }