﻿:root {
    --orange: #EA5539;
    --green: #35B597;
    --hero: 4rem;
    --heading-large-text: 3rem;
    --heading-medium-text: 2.5rem;
    --heading-small-text: 2rem;
    --logo-text: 2rem;
    --normal-text: 1.25rem;
    --padding: 3rem;
}

/* #region basic setting */

.d-flex {
    display: flex;
}

.w-50 {
    width: 50%
}

.form-group {
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft JhengHei',sans-serif;
}

body {
    background: url(../../image/event/bg.jpg) top center fixed;
    background-size: cover;
}

/* #endregion basic setting */

/* #region hero */

#hero {
    width: 100%;
    min-height: 100vh;
    background: url(../../image/event/poker.png) center center no-repeat;
    background-size: cover;
    padding: 20px;
    display: flex;
    /*justify-content: center;*/
    align-items: center;
    flex-direction: column;
    padding-top: 50px;
}

    /* header */
    #hero header {
        width: 100%;
        height: 100%;
    }

    #hero .nav {
        max-width: 1460px;
        width: 100%;
        margin: 0 auto;
        padding: 12px 20px;
        border-radius: 30px;
        background: #FFFFFF;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        margin-bottom: 2.5rem;
    }

        #hero .nav img.logo {
            width: 100px;
            height: auto;
            object-fit: contain;
        }

        #hero .nav .links a {
            display: inline-block;
            margin: 0 10px;
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--orange);
            text-decoration: none;
            cursor: pointer;
        }

        #hero .nav .socials a {
            display: inline-block;
        }

            #hero .nav .socials a img {
                width: 40px;
                height: 40px;
                object-fit: contain;
                margin: 0 10px;
            }

        /* menu hamburger */

        /* icon */
        #hero .nav .menu-icon {
            cursor: pointer;
            display: none;
            float: right;
            padding: 15px;
            position: relative;
            user-select: none;
        }

            #hero .nav .menu-icon .navicon {
                background: #333;
                display: block;
                height: 2px;
                position: relative;
                transition: background .2s ease-out;
                width: 18px;
            }

                #hero .nav .menu-icon .navicon:before,
                #hero .nav .menu-icon .navicon:after {
                    background: #333;
                    content: '';
                    display: block;
                    height: 100%;
                    position: absolute;
                    transition: all .2s ease-out;
                    width: 100%;
                }

                #hero .nav .menu-icon .navicon:before {
                    top: 5px;
                }

                #hero .nav .menu-icon .navicon:after {
                    top: -5px;
                }


        #hero .nav .menu-hamburger {
            display: none;
        }

            #hero .nav .menu-hamburger:checked ~ .menu {
                max-height: 240px;
            }

            #hero .nav .menu-hamburger:checked ~ .menu-icon .navicon {
                background: transparent;
            }

                #hero .nav .menu-hamburger:checked ~ .menu-icon .navicon:before {
                    transform: rotate(-45deg);
                }

                #hero .nav .menu-hamburger:checked ~ .menu-icon .navicon:after {
                    transform: rotate(45deg);
                }

            #hero .nav .menu-hamburger:checked ~ .menu-icon:not(.steps) .navicon:before,
            #hero .nav .menu-hamburger:checked ~ .menu-icon:not(.steps) .navicon:after {
                top: 0;
            }


        /* mobile menu */

        #hero .nav #mobile-menu {
            width: 100%;
        }

            #hero .nav #mobile-menu ul {
                display: none;
                list-style: none;
                margin: 0;
                padding: 0;
                border-top: 1px solid #F4F4F4;
                margin-top: 10px;
                padding-top: 10px;
            }

                #hero .nav #mobile-menu ul.active {
                    display: block
                }

                #hero .nav #mobile-menu ul a {
                    display: flex;
                    align-items: center;
                    padding: 10px;
                    color: var(--orange);
                    font-size: 0.99rem;
                    font-weight: 600;
                    text-decoration: none;
                    cursor: pointer;
                }

                #hero .nav #mobile-menu ul img {
                    width: 30px;
                    height: 30px;
                    object-fit: contain;
                }


    /* hero container */
    #hero .hero-container {
        max-width: 1460px;
        text-align: center;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

        /* hero text */
        #hero .hero-container .hero-title.green {
            color: var(--green);
            font-size: var(--hero);
            margin-bottom: 1.2rem;
        }

        #hero .hero-container .hero-title.orange {
            color: var(--orange);
            font-size: var(--hero);
            margin-bottom: 1.2rem;
        }

        #hero .hero-container .describe {
            color: var(--green);
            font-size: var(--normal-text);
            font-weight: 600;
        }

            #hero .hero-container .describe p {
                margin-bottom: 1.5rem;
            }

        /* button */
        #hero .hero-container .vote-btn {
            display: inline-block;
            padding: 5px 30px;
            background-color: var(--orange);
            border: none;
            border-radius: 30px;
            outline: none;
            text-decoration: none;
            color: #FFFFFF;
            font-size: 1.5rem;
            font-weight: 600;
        }

            #hero .hero-container .vote-btn:hover,
            #hero .hero-container .vote-btn:focus {
                cursor: pointer;
                opacity: .7;
            }

        /* alice、herry */
        #hero .hero-container .alice,
        #hero .hero-container .herry {
            max-width: 400px;
            width: 100%;
            height: auto;
        }

        /* coco */
        #hero .hero-container .coco {
            max-width: 200px;
            width: 100%;
            height: auto;
            margin-top: -20px;
        }

        /* all */
        #hero .hero-container .all {
            display: none;
        }

/* #endregion hero */

/* #region vote */
#vote {
    padding: var(--padding);
}

.vote-container {
    max-width: 1240px;
    width: 100%;
    margin: auto;
}

/* care list */

.vote-card-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: auto;
}

    .vote-card-list .vote-card {
        width: calc(33.33% - 20px);
        margin: 0 10px 20px 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

        .vote-card-list .vote-card img {
            display: block;
            width: 100%;
            height: auto;
            background: transparent;
            border-radius: 10px;
            border: 0px solid transparent;
            transition: all .3s ease;
            /*box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;*/
        }

            .vote-card-list .vote-card img:hover {
                cursor: pointer;
                transform: scale(1.05);
            }

        .vote-card-list .vote-card.active img {
            border: 1px solid var(--orange);
        }

        .vote-card-list .vote-card .logo-text {
            color: var(--green);
            font-size: var(--logo-text);
            font-weight: 600;
            margin: 0.5rem 0;
        }

        .vote-card-list .vote-card input[type='radio'] {
            accent-color: var(--orange);
            width: 18px;
            height: 18px;
        }

            .vote-card-list .vote-card input[type='radio']:hover {
                cursor: pointer;
            }

/* form info */

.form-info .form-title {
    font-size: var(--heading-small-text);
    color: var(--green);
    text-align: center;
    margin: 2rem 0;
}

.form-info .input-container {
    max-width: 720px;
    margin: auto;
}

    .form-info .input-container .w-50:nth-child(1) {
        margin-right: 5px;
    }

    .form-info .input-container .w-50:nth-child(2) {
        margin-left: 5px;
    }

    .form-info .input-container input[type='text'] {
        width: 100%;
        padding: 15px 20px;
        border-radius: 30px;
        background: #E0D6BA;
        color: #4E4946;
        font-size: 1.05rem;
        font-weight: 600;
        outline: none;
        border: none;
        transition: .3s all;
    }

        .form-info .input-container input[type='text'].error {
            border: 1px solid #dc3545;
        }

.form-info button {
    padding: 10px 15px;
    background-color: var(--orange);
    border: none;
    border-radius: 0.2rem;
    outline: none;
    color: #FFFFFF;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1rem;
}

    .form-info button:hover,
    .form-info button:focus {
        cursor: pointer;
        opacity: .7;
    }

/* #endregion vote */

/* #region event info */
#event-info {
    padding: var(--padding);
    text-align: center;
    font-size: var(--normal-text);
    font-weight: 600;
    color: var(--orange);
}

    #event-info .info-wrapper {
        max-width: 1240px;
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        margin: 0 auto;
    }

        #event-info .info-wrapper .info-detail {
            text-align: left;
            padding: 0 30px;
        }

    #event-info .easy-card {
        max-width: 500px;
        min-width: 400px;
        width: 100%;
    }

    #event-info .easy-card-mobile {
        display: none;
    }

        #event-info .easy-card img,
        #event-info .easy-card-mobile img {
            display: block;
            width: 100%;
            height: auto;
        }

    #event-info .title {
        font-size: var(--heading-medium-text);
        color: var(--orange);
        margin: 2rem 0;
    }

    #event-info .subtitle {
        font-size: var(--heading-small-text);
        color: var(--green);
        margin: 2rem 0;
    }

    #event-info .note-list {
        max-width: 1024px;
        width: 100%;
        margin: auto;
        list-style: none;
        padding: 0;
        margin: 0 auto;
    }

        #event-info .note-list li {
            margin-bottom: 1rem;
            color: var(--green);
        }

        #event-info .note-list.orange li {
            margin-bottom: 1rem;
            color: var(--orange);
        }

/* #endregion event info */

/* #region clap */

#clap {
    width: 100%;
    min-height: 100vh;
    background: url(../../image/event/clap.png) center bottom no-repeat;
    background-size: cover;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    font-weight: 600;
}

    #clap .winning-title {
        font-size: var(--heading-medium-text);
        color: var(--green);
        margin-bottom: 1.2rem;
    }

    #clap .winning-info {
        font-size: var(--heading-large-text);
        color: var(--orange);
    }

    #clap .table-responsive {
        max-width: 720px;
        margin: 2rem auto;
        max-height: 500px;
    }

    #clap .table-responsive table{
         margin-bottom: 0;
    }

        #clap .table-responsive::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        #clap .table-responsive::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        #clap .table-responsive::-webkit-scrollbar-thumb {
            background: #c1c1c1;
        }

            #clap .table-responsive::-webkit-scrollbar-thumb:hover {
                background: #919191;
            }

    #clap thead tr th {
        position: sticky;
        top: 0;
    }

    #clap .table-bordered td {
        background: #fff;
    }

    #clap .table .thead-light th {
        background: var(--orange);
        color: #fff;
    }

/* #endregion clap */
        /* #region text danger */
        .text-danger {
    display: block;
    margin-left: 10px;
    color: #dc3545 !important;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.3rem;
}

/* #endregion text danger */

/* #region go to top button */
#backToTopBtn {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 30px;
    right: 30px;
    z-index: 1;
    height: 50px;
    width: 50px;
    font-size: 20px;
    border: none;
    color: #FFF;
    border-radius: 100%;
    transition: 0.5s;
    cursor: pointer;
}

    #backToTopBtn:not(:hover) {
        background: var(--orange);
    }

    #backToTopBtn:hover {
        background: var(--green);
    }

    #backToTopBtn.active {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    #backToTopBtn:not(.active) {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }
/* #endregion go to top button */

@media only screen and (max-width: 1301px) {
    #hero .hero-container .alice,
    #hero .hero-container .herry {
        max-width: 350px;
    }
}

@media only screen and (max-width: 1201px) {
    :root {
        --hero: 3rem;
    }

    #hero .hero-container .alice,
    #hero .hero-container .herry {
        max-width: 280px;
    }
}

@media only screen and (max-width: 1024px) {
    #hero .hero-container .alice,
    #hero .hero-container .herry {
        max-width: 250px;
    }
}

@media only screen and (max-width: 920px) {
    #event-info .easy-card {
        display: none;
    }

    #event-info .easy-card-mobile {
        display: block;
        max-width: 500px;
        width: 100%;
        margin: auto;
    }
}

@media only screen and (max-width: 901px) {
    #hero {
        justify-content: flex-start;
    }

        #hero .hero-container .text {
            max-width: 640px;
            margin: auto;
        }

        #hero .hero-container .alice,
        #hero .hero-container .herry,
        #hero .hero-container .coco {
            display: none;
        }

        #hero .hero-container .all {
            display: block;
            max-width: 600px;
            width: 100%;
            height: auto;
            margin: auto;
        }
}

@media only screen and (max-width: 786px) {
    :root {
        --heading-large-text: 2.5rem;
        --heading-medium-text: 2.1rem;
        --heading-small-text: 1.5rem;
        --normal-text: 1rem;
        --padding: 2rem;
    }

    #hero .nav img.logo {
        width: 80px;
    }

    #hero .nav .links,
    #hero .nav .socials {
        display: none;
    }

    #hero .hero-container .all,
    #hero .nav .menu-icon {
        display: block;
    }

    .vote-card-list .vote-card {
        width: calc(50% - 40px);
        margin: 0 20px 50px 20px;
    }
}

@media only screen and (max-width: 501px) {
    :root {
        --hero: 2.5rem;
        --heading-large-text: 2rem;
        --heading-medium-text: 1.7rem;
        --heading-small-text: 1.2rem;
        --normal-text: 0.95rem;
        --padding: 1.2rem;
    }

    .vote-card-list .vote-card {
        max-width: 300px;
        width: 100%;
    }

    #clap {
        min-height: 420px;
    }
}
