html {
    background-color: #f91a37;
    font-size: 16px;
}

body {
    position: relative;
    font-family: 'Montserrat', sans-serif;
    color: black;
    margin: 0;
    padding-bottom: 80px;
    text-align: center;
    z-index: -2;
    max-width: 100%;
    overflow-x: hidden;
}

.d-pc {display: block;}
.d-mb {display: none;}

.d-none {display: none !important;}
.d-b {display: block;}
.d-in {display: inline;}
.d-in-b {display: inline-block;}
.d-flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.w-100 {width: 100%;}
.h-100 {height: 100%;}

.text-center {text-align: center;}
.m-auto {margin: auto;}

img {
    pointer-events: none;
}

.p-ab {
    position: absolute;
}

.p-re {
    position: relative;
}

.x-middle {
    left: 50%;
    transform: translateX(-50%);
}

.y-middle {
    top: 50%;
    transform: translateY(-50%);
}

.xy-middle {
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
}



/**********************/

.logo {
    padding-top: 160px;
    width: 400px;
}

.logo img {
    width: 100%;
}

.logo img.p-ab {
    z-index: 20;
}

.slogan-position {
    margin-bottom: 123px;
}

.slogan {
    width: 600px;
    z-index: 10;
    top: -26px;
}

.char-group {
    margin: 0 auto; 
    width: 1200px;
    bottom: 0; 
    z-index: -1;
}

.char-left {
    margin-top: 10px; 
    left: 90px;
}

img.char-left {
    width: 300px;
}

.char-right {
    right: 90px;
}

img.char-right {
    width: 350px;
}

.content h2 {
    margin: 0 auto;
    padding-bottom: 5px;
    border-bottom: 6px solid #ffdd46; 
    width: 600px;
    background-color: #943dadb5;
}

.content h3 {
    margin-bottom: 5px;
}

.content p {
    margin-top: 0;
}

.content {
    font-weight: 300;
    width: 700px;
    margin: 8px auto 0 auto;
    border: 3px solid #f161ec;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.781);
    color: #ffdd46;
    padding: 15px 20px 20px 20px;
    text-align: left;
}

.content.wallet {
    font-weight: 800;
    font-size: 1.4rem;
    text-align: center;
    padding: 4px 20px;
    flex-wrap: nowrap;
}

.content.wallet span, .content.wallet img {
    vertical-align: middle;
}

.content.wallet input {
    margin: 0 15px;
    flex-grow: 1;
    font-size: 1.4rem;
    background-color: rgb(85, 85, 85); 
    border: 0;
    color: white;
}

.content.wallet img {
    height: 2.4rem;
}

.content.wallet #address-result .address {
    white-space: pre-wrap; /* css-3 */
    white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
    white-space: -pre-wrap; /* Opera 4-6 */
    white-space: -o-pre-wrap; /* Opera 7 */
    word-wrap: break-word; /* Internet Explorer 5.5+ */
    font-weight: 300;
    font-size: 1.2rem;
}

#box-group {
    margin: 10px auto 0 auto;
    width: 750px;
    color: #5e2300;
    font-weight: 500;
    font-size: 24px;

}

#box-ribbon, #box-reward2 {
    width: 750px;
}

#box-group img {
    width: 100%;
}

#box-light, #box-ribbon img, #box-reward2 img {
    width: 60%;
    scale: 0.7;
    opacity: 0;
}

#box-reward-text {
    opacity: 0;
}

#box-reward-text div {
    white-space: nowrap;
    display: inline-block;
    padding: 5px 20px;
    background-color: #ffffffc9;
    font-weight: 900;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
}

#box-reward-text div svg {
    height: 1.3rem;
    width: 1.3rem;
    padding-left: 5px;
    fill: #5e2300;
}

#box-reward-text span, #box-reward-text svg {
    display: inline-block;
    vertical-align: middle;
}

#box-reward-text {
    bottom: 80px;
}

#box-reward {
    opacity: 0;
}

#box-close, #box-open {
    width: 670px;
    padding-bottom: 5px;
}

#box-open {
    top: 55px;
}

#box-open span {
    white-space: nowrap;
    position: relative;
    top: -15px;
    display: inline-block;
    background-color: #FFFFFF;
    border: 2px solid black;
    border-radius: 25px;
    padding: 5px 20px;
    cursor: pointer;
}

#box-close img {
    padding-top: 25px;
    width: 55%;
}

#box-open-result {
    width: 60%;
}

#box-open-result-text {
    white-space: nowrap;
    bottom: 65px;
    padding: 5px 20px;
    background-color: #ffffffc9;
    font-weight: 900;
    border-radius: 25px;
}

#box-open-result-text div {
    display: inline-block;
    cursor: pointer;
    font-size: 1rem;
}

#box-open-result-text div svg {
    height: 1.3rem;
    width: 1.3rem;
    padding-left: 5px;
    fill: #5e2300;
}

#box-open-result-text span, #box-open-result-text svg {
    display: inline-block;
    vertical-align: middle;
}

#box-group .sub-text h3, #box-group .sub-text p {
    margin: 0;
}

#box-group .sub-text {
    margin: 0 auto;
    position: relative;
    top: -20px;
    width: 80%;
    font-size: 20px;
}

#box-open img {
    width: 45%;
}

.box-reminder {
    width: 80%;
}

#box-loader {
    border: 16px solid #ebebeb;
    border-top: 16px solid #f161ec;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

a#refresh, a#refresh:hover, a#refresh:visited, a#refresh:active {
    display: inline-block;
    margin-top: 10px;
    font-weight: 300;
    color: white;
    text-decoration: none;
    padding: 0 5px 2px 5px;
    border-bottom: 1px white solid;
}

.caption {
    margin-top: 20px;
    color: #f1ffa4;
    font-weight: 700;
}

.caption a, .caption a:hover, .caption a:visited, .caption a:active {
    display: inline-block;
    font-weight: 300;
    color: white;
    text-decoration: none;
    padding: 0 5px 2px 5px;
    border-bottom: 1px white solid;
}

#box-reminder-time-limit a, #box-reminder-time-limit a:hover, #box-reminder-time-limit a:visited, #box-reminder-time-limit a:active {
    display: inline-block;
    margin-top: 20px;
    font-weight: 500;
    text-decoration: none;
    color: #5e2300;
}

@keyframes spin {
    0% { transform: translate(-50%,-50%) rotate(0deg); }
    100% { transform: translate(-50%,-50%) rotate(360deg); }
}



.effect1 {
    animation: effect1_move 0.7s;
    animation-iteration-count: 1;
}

.effect2 {
    animation: effect2_move 0.8s;
    animation-iteration-count: 1;
}

.effect3 {
    animation: effect_zoom 2s;
    animation-iteration-count: infinite;
}

.char_left_effect {
    animation: char_left_move 0.5s;
    animation-iteration-count: 1;
}

.char_right_effect {
    animation: char_right_move 0.5s;
    animation-iteration-count: 1;
}

@keyframes effect1_move {
    0% {opacity: 0; transform: translateX(10%);}
    50% {opacity: 1; transform: translateX(0%);}
    75% {opacity: 1; transform: translateX(1%);}
    100% {opacity: 1; transform: translateX(0%);}
}

@keyframes effect2_move {
    0% {opacity: 0; transform: translateX(-10%) matrix(1, 0, -0.3, 1, 0, 0);}
    20% {opacity: 0; transform: translateX(-10%) matrix(1, 0, -0.3, 1, 0, 0);}
    70% {opacity: 0; transform: translateX(-10%) matrix(1, 0, 1, 1, 0, 0);}
    100% {opacity: 1; transform: translateX(0%) matrix(1, 0, 0, 1, 0, 0);}
}

@keyframes effect_zoom {
    0% {transform: scale(1);}
    70% {transform: scale(1);}
    80% {transform: scale(1.2);}
    90% {transform: scale(1);}
    100% {transform: scale(1);}
}


@keyframes char_left_move {
    0% {opacity: 0;}
    70% {opacity: 0; transform: translate(40%,-50%);}
    100% {opacity: 1; transform: translate(0%,-50%);}
}

@keyframes char_right_move {
    0% {opacity: 0;}
    70% {opacity: 0; transform: translate(-40%,-50%);}
    100% {opacity: 1; transform: translate(0%,-50%);}
}

/**********************/

footer {
    font-family: "Montserrat","Noto Sans TC",sans-serif;
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #00000060;
    padding: 10px 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 1px;
    color: white
}

footer .copyright {
    padding-right: 20px;
    border-right: 1px solid white;
}

footer .sns {
    margin-left: 20px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
}

footer .sns a {
    width: 40px;
    text-align: center;
}

@media (min-width : 1368px) {
    body {
        background: url(../images/202212_bg-pc.jpg);
        background-repeat: no-repeat;
        background-position: top center;
        background-size: auto 100%;
    }
}

@media (max-width : 1368px) {
    body {
        background: url(../images/202212_bg-l.jpg);
        background-repeat: no-repeat;
        background-position: top center;
        background-size: 100% auto;
    }
    .char-group {
        margin: 0 auto; 
        width: 100%;
        bottom: 0; 
    }
    .char-left {
        margin-top: 0.1vw; 
        left: 1vw;
    }
    img.char-left {
        width: 27%;
    }
    .char-right {
        padding-bottom: 8vw; 
        right: 3vw;
    }
    img.char-right {
        width: 30%;
    }
}

@media (max-width : 1024px) {
    html {
        font-size: 2vw;
    }
    
    body {
        padding-bottom: 10vw;
    }

    .logo {
        padding-top: 8vw;
        width: 35%;
    }

    .logo img {
        width: 100%;
    }

    .slogan-position {
        margin-bottom: 11vw;
    }

    .slogan {
        width: 55%;
        top: -2.3vw;
    }

    .content {
        width: 85%;
        margin: 1vw auto 0 auto;
        border: 0.4vw solid #f161ec;
        border-radius: 2vw;
        padding: 1.3vw 2.2vw 2vw 2.2vw;
    }

    .content h2 {
        padding-bottom: 1vw;
        border-bottom: 0.8vw solid #ffdd46; 
        width: 95%;
    }

    .content.wallet {
        padding: 0.5vw 2.2vw;
        font-size: 1.2rem;
    }

    .content.wallet input {
        margin: 0 2vw;
        font-size: 1.2rem;
    }

    .content.wallet #address-result .address {
        font-size: 1.1rem;
    }

    #box-group {
        margin: 1vw auto 0 auto;
        width: 70%;
        font-size: 3vw;
    }

    #box-group img {
        width: 100%;
    }

    #box-close {
        width: 90%;
        padding-bottom: 2.5vw;
    }

    #box-open {
        width: 40%;
        top: 5vw;
    }

    #box-open span {
        white-space: nowrap;
        font-size: 2.5vw;
        top: -1.5vw;
        border: 0.4vw solid black;
        border-radius: 3vw;
        padding: 1vw 3vw;
    }

    #box-reward-text {
        bottom: -4vw;
        font-size: 2.5vw;
    }

    #box-ribbon, #box-reward2 {
        width: 55%;
    }

    #box-open-result {
        width: 60%;
    }
    
    #box-open-result-text {
        bottom: 6vw;
        padding: 0.5vw 3vw;
        font-weight: 900;
        border-radius: 3vw;
    }

    #box-close img {
        padding-top: 2vw;
        width: 55%;
    }
    
    #box-group .sub-text {
        top: -2vw;
        width: 85%;
        font-size: 2.2vw;
    }

    #box-loader {
        border: 2.5vw solid #ebebeb;
        border-top: 2.5vw solid #f161ec;
        width: 10vw;
        height: 10vw;
    }    

    a#refresh, a#refresh:hover, a#refresh:visited, a#refresh:active {
        margin-top: 1.5vw;
        padding: 0 1.2vw 0.3vw 1.2vw;
    }

    .caption {
        margin-top: 2.5vw;
    }
    
    .caption a, .caption a:hover, .caption a:visited, .caption a:active {
        padding: 0 1.2vw 0.3vw 1.2vw;
    }

    #box-reminder-time-limit a, #box-reminder-time-limit a:hover, #box-reminder-time-limit a:visited, #box-reminder-time-limit a:active {
        margin-top: 1.5vw;
    }

    /**********************/

    footer {
        padding: 1vw 0 3vw 0;
    }

    footer .copyright {
        padding-right: 2vw;
    }

    footer .sns {
        margin-left: 2vw;
    }

    footer .sns a {
        width: 7vw;
    }
        
}

@media (max-width : 767px) and (orientation: portrait) {

    html {
        font-size: 3.5vw;
    }
    
    body {
        background: url(../images/202212_2_bg-p.jpg);
        background-repeat: no-repeat;
        background-position: top center;
        background-size: auto 100%;
        padding-bottom: 25vw;
    }

    .d-pc {display: none;}
    .d-mb {display: block;}

    .logo {
        padding-top: 15vw;
        width: 60%;
    }

    .logo img {
        width: 100%;
    }

    .slogan-position {
        margin-bottom: 17vw;
    }

    .slogan {
        width: 80%;
        top: -3.9vw;
    }

    .char-group {
        margin: 0 auto; 
        width: 100%;
        bottom: 0; 
    }
    .char-left {
        margin-top: 0; 
        padding-bottom: 33vw; 
        left: -1vw;
    }
    img.char-left {
        width: 35%;
    }
    .char-right {
        padding-bottom: 40vw; 
        right: -1vw;
    }
    img.char-right {
        width: 40%;
    }

    .content {
        width: 85%;
        margin: 2vw auto 0 auto;
        border: 0.7vw solid #f161ec;
        border-radius: 2vw;
        padding: 2vw 3vw 3vw 3vw;
    }

    .content.wallet {
        padding: 0.7vw 3vw;
        font-size: 1.3rem;
    }

    .content.wallet input {
        color: #ffdd46;
        margin: 0 2vw;
        font-size: 1.3rem;
        margin-bottom: 1vw;
    }

    .content.wallet #address-result .address {
        font-size: 1rem;
    }

    #box-group {
        margin: 2vw auto 0 auto;
        width: 90%;
        font-size: 4.5vw;
        font-weight: 500;
    }

    #box-group img {
        width: 100%;
    }

    #box-close, #box-open {
        width: 90%;
        padding-bottom: 2.5vw;
    }

    #box-open {
        width: 100%;
        top: 1.5vw;
    }

    #box-open img {
        width: 43vw;
    }

    #box-open span {
        white-space: nowrap;
        font-size: 4vw;
        top: -1.5vw;
        border: 0.6vw solid black;
        border-radius: 4vw;
        padding: 1.2vw 4vw;
    }

    #box-reward-text {
        bottom: -4vw;
        font-size: 4vw;
    }

    #box-ribbon, #box-reward2 {
        width: 55%;
    }

    #box-open-result {
        width: 65%;
    }
    
    #box-open-result-text {
        bottom: 6vw;
        padding: 0.5vw 4vw;
        border-radius: 4vw;
    }

    #box-close img {
        padding-top: 1vw;
        width: 50%;
    }
    
    #box-group .sub-text {
        top: -3vw;
        width: 90%;
        font-size: 3.2vw;
    }

    #box-loader {
        border: 3.5vw solid #ebebeb;
        border-top: 3.5vw solid #f161ec;
        width: 18vw;
        height: 18vw;
    }

    a#refresh, a#refresh:hover, a#refresh:visited, a#refresh:active {
        margin-top: 2vw;
        letter-spacing: 1px;
        padding: 0 1.5vw 0.5vw 1.5vw;
    }

    .caption {
        margin-top: 3vw;
    }
    
    .caption a, .caption a:hover, .caption a:visited, .caption a:active {
        padding: 0 1.5vw 0.5vw 1.5vw;
    }

    #box-reminder-time-limit a, #box-reminder-time-limit a:hover, #box-reminder-time-limit a:visited, #box-reminder-time-limit a:active {
        margin-top: 2vw;
    }

    /**********************/

    footer {
        padding: 3vw 0;
        flex-direction: column;
    }
    
    footer .copyright {
        padding-right: 0;
        border-right: none;
    }
    
    footer .sns {
        margin-top: 3vw;
        margin-left: 0;
    }
    
    footer .sns a {
        width: 15vw;
    }

    footer .sns a img {
        width: 5vw;
    }
        
}