@import 'normalize.css';
@import 'form.css';
@import 'https://fonts.googleapis.com/css?family=Roboto:700&display=swap';

body,
html {
    font-family: Helvetica, "微軟正黑體", "Microsoft JhengHei", "Heiti TC", "黑體", Arial, sans-serif, serif;
    font-size: 64.2%;
    width: 100%;
    height: 100%;
    line-height: 1.6;
    color: #333232;
    background-color: #07b53b;
    position: relative;
}

.container,
.card,
section {
    box-sizing: border-box;
}
.text-wihite {
    color: white;
}
.text-primary {
    color: #07b53b;
}
.text-center {
    text-align: center;
}
.font-bold {
    font-weight: bold;
}

h2 {
    font-size: 1.85rem;
    
}
h3 {
    font-size: 1.6rem;    
}
a {
    font-size: 1.6rem;
    color: #FFFF00;
    text-decoration: none;
}

/* 裝飾 */
.img--decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;    
    background-image: url('../images/header_img--01@x2.png');
    background-position-x: center;
    height: 88px;
    margin-top: -30px;
    background-size: contain;
}

.header {
    position: relative;
}
    .header__img--title {
        background: url('../images/header_img--02@x2.png') no-repeat;
        background-size: contain;
        height: 360px;
    }

.container{
    width: 768px;
    margin: 0 auto;
    padding: 15px;
}


.section {
    padding-bottom: 220px;
    border-top: solid 1px rgba(255, 255, 255, .34);
    min-height: 320px;
    color: white;
}

    .message__linePoints {
        background: url('../images/message@x2.png') no-repeat;
        background-size: contain;
        background-position-x: center;
        width: 100%;
        height: 400px;
        margin-bottom: 1em;
    }
    
    .message__label {
        border-bottom: solid 3px rgba(255, 255, 255, .28);
    }

    .message__details {
        text-align: justify;
        padding-inline-start: 20px;
        padding-bottom: 200px;
    }
        .message__details > li {
            padding: .6em 0;
            margin-bottom: .6em;
            border-bottom: solid 1px rgba(255, 255, 255, .28);
        }
        .message__details > li:last-child {
            border-bottom: none;
        }

/* 刮刮樂 */
.SNblock,
.scratchcard > canvas {
    overflow: hidden;
    border-radius: 40px;

}
/* 序號       */
.section.lottery {
    padding-bottom: 0;
}
.SNblock {
    width: 100%;
    min-height: 360px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #05a03b;
    margin-bottom: 1em;
}

    .SNblock__poin {
        text-align: center;
        color: white;
    }

        .SNblock__poin__p{
            font-size: 5rem;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-top: 0;
            margin-bottom: 0;
        }

        .SNblock__poin__p__circle {
            width: 5rem;
            height: 5rem;
            color: #07b53b;
            border-radius: 50%;
            background-color: white;
            text-align: center;
            line-height: 5.2rem;
        }
        
        .SNblock__poin__sn {
            font-size: 1.6rem;
            text-align: center;
        }

.footer {
    position: relative;
    background-color: #323232;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 0 15px;
    transition: transform .3s ease-in-out; 
}

    .footer__description {
        color: white;
        font-size: 1.4rem;
        word-break: normal;
        text-align: justify;
    }
        .close,
        .footer__description__close {
            display: none;
            position: absolute;
            top: 10px;
            right: 10px;
            padding: .3em;
            text-align: center;
            width: 28px;
            height: 28px;
            line-height: 28px;
            border-radius: 50%;
            border: solid 1px rgba(255, 255, 255, .34);
            color: #f8f8f8;
            z-index: 2;
            transition: background-color .2s ease;
        }
        .footer__description__close:active {
            color: initial;
            background-color: white;
            border-color: transparent; 
        }
        .footer__description > 
        .footer__description__title {
            cursor: pointer;
            text-align: center;
            color: #FFFF00;
            position: relative;
        }

        .close--dark {
            display: block;
            font-weight: bold;
            color: #323232;
            width: 24px;
            height: 24px;
            line-height: 24px;
            border-radius: 50%; 
            transition: background-color .2s ease;           
        }
        .close--dark:active {
            color: white;
            background-color: #ccc;
        }
        


#footerToggle {
    color: #FFFF00;
    cursor: pointer;
    font-size: 2rem;
    display: none;
    padding: .6em;
    position: absolute;
    /* bottom: 0; */
    left: 50%;
    transform: translateX(-50%);
}
#footerToggle::before {
    color: inherit;
    content: '▼';
    display: block;
    position: absolute;
    font-size: 1rem;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
}

.overflow-hidden {
    overflow: hidden;
}




@media (max-width: 992px) {
    .container {
        box-sizing: border-box;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header__img--title {
        height: 320px;
    }
    .message__linePoints {
        height: 200px;
    }

    .container {
        box-sizing: border-box;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .header__img--title {
        height: 220px;
    }
    .section {
        padding-bottom: 2em;
    }    
    .message__linePoints {
        height: 200px;
    } 
    
        .message__details {
            padding-bottom: 44px;
        }

    .footer {
        transform: translateY(100%);
    }

    #footerToggle,
    .footer__description__close {
        display: block;
    }

}

@media (max-width: 320px) {
    .header__img--title,
    .message__linePoints {
        height: 144px;
        background-position-x: center;
    }
    .SNblock{
        min-height: 300px;
    }

}

.footer--overlay {
    transform: translateY(0);
}

.font-roboto {
    font-family: 'Roboto', sans-serif;
}
.font-base {
    font-family: Helvetica, "微軟正黑體", "Microsoft JhengHei", "Heiti TC", "黑體", Arial, sans-serif, serif;
}

.font-size-1 {
    font-size: 1rem;
}

.font-size-2 {
    font-size: 2rem;
}

.font-size-3 {
    font-size: 3rem;
}

.font-size-4 {
    font-size: 4rem;
}

.my-0 {
    margin-top: 0; 
    margin-bottom: 0; 
}

.border {
    border: solid 1px rgba(0, 0, 0, .35);
}
.border-bottom-3 {
    height: 0;
    border: none;
    border-bottom: solid 3px rgba(255, 255, 255, .35);
}


.list {

    margin-block-end: 0;
    margin-inline-start: 0;
    padding-inline-start:15px;
    font-size: initial;
}

    .list__item {
        border-bottom: solid 1px rgba(255, 255, 255, .35);
        margin-bottom: 1.4em;
    }
        .list__item__title {
            margin: .4em 0;
            word-break: break-word;
            text-align: justify;            
        }
        .list__item__content {
            /* margin-left: -1em; */
        }


.card {
    padding: 15px;
    background-color: white;
    box-shadow: 0 6px 8px rgba(102, 119, 136, 0.03),
                0 1px 2px rgba(102, 119, 136, 0.3);
}
.overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    transition: background-color .2s ease;
    background-color: rgba(0, 0, 0, .55);
}

#drawerCard.card {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    height: 95vh;
    margin: 8px;
    border-radius: 6px;
    overflow: hidden;
    transition: transform .36s ease;
    transform: translateY(105%);
}
    .card__header {
        margin: 0 -15px 0 -15px;
        height: 44px;
        border-bottom: solid 1px #ccc; 
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .card__header .close {
        margin-left: auto;
    }
    #drawerCard.card--overlay {
        transform: translateY(0);
    }



    #drawerCard.card .card__iframe {
        margin: 0 -15px -15px -15px;
        min-height: 100%;
    }

.checkboxBlock {
    background-color: #05a03b;
    display: block;
    padding: .3em;
    border-radius: 6px;
    margin-bottom: .3em;
    width:240px;
}