@import url(http://fonts.googleapis.com/earlyaccess/notosanstc.css);

:root {
    --screen: min(100vw, 1024px);
}

* {
    box-sizing: border-box;
}

body,
html {
    font-family: 'Noto Sans TC', '微軟正黑體', sans-serif;
    font-size: calc(var(--screen) / 1024);
}

body {
    background: url(../img/SVG/bg2.svg) repeat-y;
    background-size: 100% auto;
    background-position: top center;
}



/* header */
header {
    width: 100%;
    max-width: var(--screen);
    margin: auto;
    z-index: 999;
    height: auto;
}


nav {
    position: relative;
    width: 100%;
    padding-top: 10rem;
}

nav ul {
    list-style: none;
    overflow: hidden;
    color: #fff;
    padding: 0;
    text-align: center;
    margin: 0;
    transition: .5s;
    display: flex;
    gap: 8rem;
    justify-content: center;
    filter: drop-shadow(0px 0px 7rem rgba(0, 82, 255, 0.75));
    width: 100%;
}

nav.black ul {
    background: #0052ff;

}

nav ul li {
    padding: 10rem;
    background: #fff;
    color: #0052ff;
    border-radius: 30rem;
    padding: 2rem 12rem 3rem;
    border: 4rem solid #0052ff;

}

nav ul li a {
    text-decoration: none;
    color: #0052ff;
    font-size: 23rem;
    white-space: nowrap;
}

nav ul li:hover,
nav ul li:hover a {
    background: #0052ff;
    color: #fff;
}

/*Menu icon CSS*/
.menu-icon {
    width: 100%;
    /* background: #0052ff; */
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    cursor: pointer;
    color: #fff;
    display: none;
    height: 130rem;
    padding: 10rem;
}

.menu-icon .m_logo {
    height: 100%;
}

.logo {
    position: relative;
    display: flex;
    height: 181rem;
    justify-content: space-between;
}

.menu {
    margin-top: 40rem;
    font-weight: bold;
}

.main_content {
    padding: 40rem 10rem;
    position: relative;
    width: 100%;
    max-width: var(--screen);
    margin: auto;
    font-size: 24rem;
}

.main_content>div {
    width: 100%;
    display: flex;
}

.main_title img {
    width: 100%;
}

.main_content .title1 {
    width: 50%;
    transform: translateX(calc(50% - 10rem));
    position: relative;
    z-index: 2;
    padding-bottom: 20rem;

}

.title1 img {
    width: 100%;
    height: 100%;
    max-width: fit-content;
    max-height: fit-content;
}


.main_content .rewards {
    border: 6rem solid #0052ff;
    border-radius: 20rem;
    margin-top: -40rem;
    display: flex;
    padding: 20rem 20rem 0 20rem;
    justify-content: space-between;
    position: absolute;
    z-index: 0;
    height: 200rem;
    width: calc(100% - 20rem);
}

.rewards .reward {
    /* width: 25%; */
}

.reward>div {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.reward .r_text {
    background: #0052ff;
    color: #fff;
    font-size: 19rem;
    font-weight: normal;
    padding: 5rem 10rem;
    display: inline-flex;
    border-radius: 50rem;
    justify-self: center;
    align-self: center;
    transform: translateX(-50%);
    margin-left: 50%;
    white-space: nowrap;
    margin-top: 10rem;
}

.reward .note {
    font-size: 14rem;
    /* margin-top: 20rem; */
}

.reward .r_img {
    height: 176rem;
    width: auto;
}

.r_img img {
    height: 100%;
}

.reward:first-child {
    width: 25%;
}

.reward:first-child .r_img img {
    width: 80%;
    height: auto;
}

.fa-2x {
    font-size: 120rem;
}

.lotterys {
    margin-top: 255rem;
    font-size: 20rem;
}

.lotterys>div {
    display: inline-flex;
    flex-direction: column;
    width: calc(99% / 3);
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 412rem;
    height: auto;
}

.l_date {
    overflow: clip;
    border-radius: 40rem;
    border: 6rem solid #fff;
    display: inline-flex;
    flex-direction: column;
    color: #fff;
    font-weight: bolder;
    font-size: 40rem;
    width: 234rem;
    position: absolute;
    top: 0;
}

.l_content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #fff;
    border: 6rem solid #15b4ff;
    border-radius: 20rem;
    padding: 70rem 20rem 28rem;
    width: 96%;
    margin-top: 150rem;
    gap: 4rem;
}

.l_text {
    color: red;
    font-weight: bold;
}

.l_title {
    text-align: center;
    font-weight: bolder;
    font-size: 30rem;
}

.date_top {
    display: flex;
    background: #0052ff;
    padding: 30rem 10rem 15rem 10rem;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.date_bottom {
    display: flex;
    background: red;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 15rem 10rem 30rem 10rem;
}

.main_content .active_detail {
    width: 84%;
    margin: 30rem auto;
    display: flex;
    flex-direction: column;
    color: #0052ff;
    font-weight: 900;
    gap: 16rem;
    position: relative;
    ;
}

.s_title {
    display: flex;
    font-size: 40rem;
    font-weight: 900;
    color: red;
    background: #fff;
    border-radius: 10rem;
    padding: 6rem 10rem;
    width: fit-content;
    margin: auto;
    filter: drop-shadow(6rem 6rem 2rem rgba(0, 0, 0, 0.5));
}

.active_detail .a_list {
    display: flex;
    gap: 6rem;
}

.a_list .text_title,
.a_note {
    display: flex;
    align-items: center;
    background: red;
    color: #fff;
    border-radius: 10rem;
    padding: 4rem 10rem 6rem;
    text-align: center;

}

.cooperate,
.cooperate2,
.notice,
.announce {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20rem;
    margin-top: 40rem;
}

.c_text,
.a_text {
    color: #0052ff;
    font-weight: 900;
    display: flex;
    justify-content: center;

}

.c_list {
    display: flex;
    flex-direction: row;
    gap: 20rem;
    background: linear-gradient(90deg, #63ECFF, #44B6FF);
    border-radius: 20rem;
    padding: 20rem;
    filter: drop-shadow(6rem 6rem 2rem rgba(0, 0, 0, 0.5));
}

.c_list>div {
    display: flex;
    flex-direction: column;
    /* gap:10rem; */
    width: 50%;
    line-height: 40rem;
}

.c_list>div>div {
    display: flex;
}

.c_row {
    display: flex;
    gap: 15rem;
    font-size: 19rem;
    font-weight: bolder;
    border-bottom: 1rem solid black;
    white-space: nowrap;
}

.c_row>div {
    width: 50%;
    display: flex;
}

.c_list>div>.c_row:first-child div {
    color: red;
    /* justify-content: center; */

}

.notice_text,
.announce_content {
    background: linear-gradient(90deg, #3fecff, #15b4ff);
    border-radius: 20rem;
    padding: 0 20rem 20rem;
    filter: drop-shadow(6rem 6rem 2rem rgba(0, 0, 0, 0.5));
    padding: 30rem;
    /* line-height: 40rem; */
    font-size: 20rem;

}

.notice_text {
    text-indent: -20rem;
    padding-left: 60rem;
}

.cooperate2 {
    margin-top: 40rem;
}

.footer {
    margin-top: 40rem;
    flex-direction: column;
}

.footer_text {
    padding: 0 20rem;
    font-size: 20rem;
    line-height: 30rem;
}

.footer_text img {
    margin-top: 10rem;
    margin-right: 20rem;
    height: 30rem;
}

.footer_img {
    margin-top: 40rem;
    padding-left: 40rem;
}

/*Responsive design CSS*/
@media screen and (max-width: 1023px) {

    body,
    html {
        font-size: calc(var(--screen) / 1024 * 2);
        overflow: scroll;
    }

    header {
        position: fixed;
    }

    .assets1 {
        display: none;
    }

    .logo {
        position: relative;
        height: 100%;
        display: none;
    }

    nav {
        position: fixed;
        width: var(--screen);
    }

    nav ul {
        max-height: 0px;
        width: 100%;
        height: 100dvh;
    }

    nav.black ul {
        background: #0052ff;
    }

    .showing {
        height: 100dvh;
        max-height: 100dvh;
        width: 100%;
        background: #0052ff;

    }

    nav ul li {
        box-sizing: border-box;
        width: 100%;
        padding: 10rem 0px;
        text-align: center;
    }

    .menu {
        position: fixed;
        width: 100%;
        top: 0rem;
        margin-top: 0;
        /* padding-top: 70rem; */
    }

    .menu ul {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 70rem;
        overflow: scroll;
    }

    nav ul li {
        background: none;
        border: 0;
        color: #fff;
        line-height: 40rem;
    }

    nav ul li a {
        color: #fff;
    }

    .menu-icon {
        display: flex;
        position: fixed;
        top: 0;
        width: var(--screen);
        height: 70rem;
        z-index: 999;
    }

    .fa-2x {
        font-size: 60rem;
    }

    .main_content {
        padding-top: 70rem;
        /* overflow: hidden; */
    }

    .main_content .rewards {
        flex-direction: column;
        gap: 20rem;
        height: auto;
        width: 74vw;
        margin-left: 50%;
        transform: translateX(-50%);
        padding-bottom: 20rem;
    }

    .main_content .title1 {
        width: 70%;
        transform: translateX(calc(-50% + 10rem));
        margin-left: 50%;
        position: relative;
        z-index: 2;
        padding-bottom: 20rem;
    }

    .reward:first-child {
        width: 100%;
    }

    .reward:first-child .r_img img {
        width: 54%;
    }

    .lotterys {
        position: relative;
        margin-top: 1000rem;
        font-size: 20rem;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20rem;
        width: 90vw;
    }

    .lotterys>div {
        display: flex;
        width: 96%;
        height: auto;
        align-items: center;
    }

    .l_text {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 20rem;
        font-size: 30rem;
    }

    .main_content .active_detail {
        width: 96%;
        font-size: 20rem;
    }

    .c_list {
        flex-direction: column;
    }

    .c_list>div {
        width: 100%;
    }

    .a_text {
        padding: 0 20rem;
    }

    /* burger */
    input[id="myInput"] {
        display: none;
    }

        input[id="myInput"]:checked~label .bar {
        background-color: #fff;
    }

        input[id="myInput"]:checked~label .top {
        -webkit-transform: translateY(10rem) rotateZ(45deg);
        -moz-transform: translateY(10rem) rotateZ(45deg);
        -ms-transform: translateY(10rem) rotateZ(45deg);
        -o-transform: translateY(10rem) rotateZ(45deg);
        transform: translateY(10rem) rotateZ(45deg);
    }

        input[id="myInput"]:checked~label .bottom {
        -webkit-transform: translateY(-15rem) rotateZ(-45deg);
        -moz-transform: translateY(-15rem) rotateZ(-45deg);
        -ms-transform: translateY(-15rem) rotateZ(-45deg);
        -o-transform: translateY(-15rem) rotateZ(-45deg);
        transform: translateY(-15rem) rotateZ(-45deg);
    }

        input[id="myInput"]:checked~label .middle {
        width: 0;
    }

    .middle {
        margin: 0 auto;
    }

    label {
        top: 0px;
        display: inline-flex;
        flex-direction: column;
        padding: 7rem 10rem;
        background-color: transparent;
        cursor: pointer;
        margin: 10rem;
        z-index: 3;
        position: relative;
    }

    .bar {
        display: block;
        background-color: #0052ff;
        width: 40rem;
        height: 3rem;
        border-radius: 5rem;
        margin: 5rem auto;
        transition: background-color 0.4s ease-in, transform 0.4s ease-in,
            width 0.4s ease-in;
    }

}