body {
    width: 100%;

}

.chat {
    margin-top: auto;
    margin-bottom: auto;
}

.card {
    /* height: 500px; */
    /* border-radius: 15px !important; */
    /* background-color: #111 !important; */
}

.contacts_body {
    /* padding:  0.75rem 0 !important; */
    overflow-y: auto;
    white-space: nowrap;
}

.msg_card_body {
    overflow-y: auto;
}

.card-header {

    border-bottom: 0 !important;
}

.card-footer {

    border-top: 0 !important;
}

.container {
    align-content: center;
}

.search {
    border-radius: 15px 0 0 15px !important;
    background-color: rgba(0, 0, 0, 0.3) !important;
    border: 0 !important;
    color: white !important;
}

.search:focus {
    box-shadow: none !important;
    outline: 0px !important;
}

.type_msg {
    background-color: rgba(0, 0, 0, 0.3) !important;
    border: 0 !important;
    color: white !important;
    height: 60px !important;
    overflow-y: auto;
}

.type_msg:focus {
    box-shadow: none !important;
    outline: 0px !important;
}

.attach_btn {
    border-radius: 15px 0 0 15px !important;
    background-color: rgba(0, 0, 0, 0.3) !important;
    border: 0 !important;
    color: white !important;
    cursor: pointer;
}

.send_btn {
    border-radius: 0 15px 15px 0 !important;
    background-color: rgba(0, 0, 0, 0.3) !important;
    border: 0 !important;
    color: white !important;
    cursor: pointer;
}

.search_btn {
    border-radius: 0 15px 15px 0 !important;
    background-color: rgba(0, 0, 0, 0.3) !important;
    border: 0 !important;
    color: white !important;
    cursor: pointer;
}

.contacts {
    list-style: none;
    padding: 0;
}

.contacts li {
    width: 100% !important;
    padding: 5px 10px;
    margin-bottom: 15px !important;
}

.active {
    /* background-color: rgba(0,0,0,0.3); */
    background-color: #ffd75e;
    border-radius: 5px;
}

.user_img {
    height: 70px;
    width: 70px;
    border: 1.5px solid #f5f6fa;

}

.user_img_msg {
    height: 40px;
    width: 40px;
    border: 1.5px solid #f5f6fa;

}

.img_cont {
    position: relative;
    height: 70px;
    width: 70px;
}

.img_cont_msg {
    height: 40px;
    width: 40px;
}

.online_icon {
    position: absolute;
    height: 15px;
    width: 15px;
    background-color: #4cd137;
    border-radius: 50%;
    bottom: 0.2em;
    right: 0.4em;
    border: 1.5px solid white;
}

.offline {
    background-color: #c23616 !important;
}

.user_info {
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 15px;
}

.user_info span {
    font-size: 1rem;
    color: white;
}

.user_info p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.video_cam {
    margin-left: 50px;
    margin-top: 5px;
}

.video_cam span {
    color: white;
    font-size: 20px;
    cursor: pointer;
    margin-right: 20px;
}

.msg_cotainer {
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 10px;
    border-radius: 25px;
    background-color: #82ccdd;
    padding: 8px;
    position: relative;
    min-width: 100px;
}

.msg_cotainer_send {
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 10px;
    border-radius: 25px;
    background-color: #78e08f;
    padding: 8px;
    position: relative;
    min-width: 100px;
}


/* .msg_cotainer_send{
margin-top: auto;
margin-bottom: auto;
margin-right: 10px;
border-radius: 25px;
background-color: #78e08f;
padding: 10px;
position: relative;
} */
.msg_time {
    position: absolute;
    left: 0;
    bottom: -15px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
}

.msg_time_send {
    position: absolute;
    right: 0;
    bottom: -15px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
}

.msg_head {
    position: relative;
}

.action_menu_btn {
    position: absolute;
    right: 28px;
    top: 0px;
    color: white;
    cursor: pointer;
    font-size: 30px;
}

.action_menu_btn2 {
    position: absolute;
    right: 25px;
    top: 40px;
    color: white;
    cursor: pointer;
    font-size: 30px;
}


.action_menu_btn3 {
    position: absolute;
    right: 25px;
    top: 90px;
    color: white;
    cursor: pointer;

}

.action_menu_btn4 {
    position: absolute;
    right: 25px;
    top: 130px;
    color: white;
    cursor: pointer;

}
.action_menu_btn5 {
    position: absolute;
    right: 25px;
    top: 170px;
    color: white;
    cursor: pointer;

}
.action_menu {
    z-index: 1;
    position: absolute;
    padding: 15px 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 15px;
    top: 55px;
    right: 20px;
    display: none;
}

.action_menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.action_menu ul li {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 5px;
}

.action_menu ul li img {
    width: 25px;
}

.action_menu ul li i {
    padding-right: 10px;

}

.action_menu ul li:hover {
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.2);
}



@media(max-width: 576px) {
    .contacts_card {
        margin-bottom: 15px !important;
    }
}




/*123*/


.online-video {
    position: relative;
}


.Product_hot_icon {
    position: absolute;
    font-weight: bold;
    top: 0px;
    left: 35px;
    color: white;
    display: block;
    background: red;
    width: 40px;
    height: 25px;
    text-align: center;
    font-size: 1rem;
    margin: 10px
}

.Product_hot_icon2 {
    position: absolute;
    top: 0px;
    left: 85px;
    color: white;
    display: block;
    background: #333;
    width: 85px;
    height: 25px;
    text-align: center;
    font-size: 0.8rem;
    margin: 10px;
    margin-left: 10px;
    padding-left: 5px;
    border-radius: 5px;
}

.Product_number {
    font-size: 1rem;
    padding-left: 5px;
}

.turning-phone_icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 1.8rem;
    /* filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.7)); */
}

.back_icon {
    position: absolute;
    top: 8px;
    left: 10px;
    width: 1.5rem;
    /* filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.7)); */
}

.zongzi_icon {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 1.5rem;

    /* filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.7)); */
}

.moon_icon {
    position: absolute;
    top: 35px;
    right: 10px;
    width: 1.5rem;

    /* filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.7)); */
}

.envelope_icon {
    position: absolute;
    top: 60px;
    right: 10px;
    width: 1.5rem;

    /* filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.7)); */
}



.speaker_icon {
    position: absolute;
    bottom: 10px;
    right: 55px;
    width: 1.8rem;
}

.chat_icon {
    position: absolute;
    bottom: 10px;
    right: 105px;
    width: 1.8rem;

}

.img_list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: absolute;
    bottom: 5px;
    right: 15px;
}

.img_list img {
    width: 35px;
    margin: 10px;
}


.img_list2 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: absolute;
    bottom: 0;
    right: 10px;
}

.img_list2 img {
    width: 25px;
    margin: 5px;
}

.water_bg {
    position: absolute;
    background: #000000bd;
    color: #fff;

    border-radius: 0 20px 20px 0;
    margin-top: 10px;
    margin-left: 5px;
    padding: 5px;
}

.water_bg p {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 5px;
    margin-bottom: -5px;
}

.water_bg span {
    font-size: 12px;
}


.water_bg2 {
    position: absolute;
    background: #000000bd;
    color: #fff;
    /* width: 135px;  */
    border-radius: 20px;
    padding: 20px;
    left: 30%;
    top: 25%;
}

.water_bg2 p {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 5px;
    margin-bottom: 0px;
}

.water_bg2 span {
    font-size: 12px;
}

.cake_cover{
    position: relative;
    margin-top: 10px;
}
.mooncake {
    width: 50px;
    margin-right: 45px;
}

.cake_number {
    position: absolute;
    bottom: 0;
    right: 20px;
    font-size: 1.25rem;
    color: #ffffff;
    letter-spacing: 3px;
    padding-bottom: 10px;
    font-weight: bold;
}

.choice_yes {
    position: absolute;
    left: -16px;
    top: -15px;
    z-index: 2;
}

.choice_result {
    position: absolute;
    left: -16px;
    top: -15px;
    z-index: 2;
}


.value_bg{
    position: absolute;
    background: #000000bd;
    top: 40%;
    left: 30%;
    color: #fff;
    padding: 5px;
}
.question_icon {
    width: 35px;

}

.list_bg{
    position: relative;
}

.amount_text{
    position: absolute;
    color: #fff;
    font-size: 0.85rem;
    bottom: 22%;
    left: 35px;
}

.moon_text{
    position: absolute;
    color: #fff;
    font-size: 0.85rem;
    bottom: 5%;
    left: 50%;
}

.envelope_text{
    position: absolute;
    color: #fff;
    font-size: 0.85rem;
    top: 8%;
    left: 35px;
}

.amount_text2{
    position: absolute;
    color: #fff;
    font-size: 0.85rem;
    bottom: 25%;
    left: 35px;
}


.record_bg{
    background-image: url(../images/zongzi/record_bg.png);
    background-repeat: no-repeat;
}

.record_moon_bg{
    background-image: url(../images/zongzi/record_moon_bg.png);
    background-repeat: no-repeat;
}

.record_envelope_bg{
    background-image: url(../images/zongzi/record_envelope_bg.png);
    background-repeat: no-repeat;
}
.record_explain_bg{
    background-image: url(../images/zongzi/record_explain_bg.png);
    background-repeat: no-repeat;
}


.record_button{
    /* margin-left:30px; */
    margin-bottom: 5px;
    margin-top: 5px;
}
.color_g{
    color: gray
}

.color_y{
    color: yellow
}

.wait_icon {
    padding-top: 10px;
}

.red_tips {
    background-color: red;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: absolute;
    top: 13px;
    right: 25px;
}

/*NAV*/
.sidenav {
    height: 100vh;
    width: 0;
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    /* background-color: #111; */
    overflow-x: hidden;
    transition: 0.5s;
    /* padding-top: 60px; */
}

.sidenav a {
    /* padding: 8px 8px 8px 32px; */
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

.sidenav a:hover {
    color: #f1f1f1;
}

.sidenav .closebtn {
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 36px;
    z-index: 111;
}


/*粽子活動*/

.zongzi_a img {
    padding: 5px;
    border-radius: 10px;
}

footer {
    width: 100%;
}

ul {
    list-style: none;
}

.footer-nav {
    padding: 0;
    margin: 0;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    /* padding-bottom: 1rem; */
    align-items: stretch;
}

footer-nav li {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    text-align: center;
}

.footer-nav li.active a .icon {
    -webkit-filter: none;
    filter: none;
}

.footer-nav li.active a p {
    color: #cf876e;
}

.footer-nav li .icon {
    color: #2e3d61;
    font-size: 1.25rem;
}

.footer-nav li a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    margin: auto;
}

.footer-nav li a .icon {
    width: 100%;
}

.footer-nav li a .t {
    font-size: 0.75rem;
    font-weight: normal;
    color: #c4c4c4;
    padding: 2px 0 5px;
}

.your_choice {
    background: #f3ce19;
}

.your_choice::before {
    content: "你的選擇 ";
    color: #684504;
    position: fixed;
    font-size: 10px;
    background: #f3ce19;
    padding: 3px;
    border: 0 0 0 14px;
    border-radius: 0 0 8px 0px;
}


.result {
    background: #980600;
}

.result::before {
    content: "最終結果";
    color: #ffffff;
    position: fixed;
    font-size: 8px;
    background: #980600;
    padding: 3px;
    border: 0 0 0 14px;
    /* border-radius: 0px 0px 0px 8px; */
    border-radius: 0 0 8px 0px;

}

.shaking {
    display: inline-block;

    background-size: 100% 100%;
    animation-name: upAnimation;
    transform-origin: center bottom;
    animation-duration: 2s;
    animation-fill-mode: both;
    animation-iteration-count: infinite;
    animation-delay: .5s;
}

@keyframes upAnimation {
    0% {

        transform: scale(1.2) rotate(0deg);
        transition-timing-function: cubic-bezier(0.215, .61, .355, 1);

    }

    10% {

        transform: scale(1.2) rotate(-12deg);
        transition-timing-function: cubic-bezier(0.215, .61, .355, 1);

    }

    20% {

        transform: scale(1.2) rotate(12deg);
        transition-timing-function: cubic-bezier(0.215, .61, .355, 1);


    }

    28% {

        transform: scale(1.2) rotate(-10deg);
        transition-timing-function: cubic-bezier(0.215, .61, .355, 1);

    }

    36% {

        transform: scale(1.2) rotate(10deg);
        transition-timing-function: cubic-bezier(0.755, .5, .855, .06);

    }

    42% {

        transform: scale(1.2) rotate(-8deg);
        transition-timing-function: cubic-bezier(0.755, .5, .855, .06);

    }

    48% {

        transform: scale(1.2) rotate(8deg);
        transition-timing-function: cubic-bezier(0.755, .5, .855, .06);

    }

    52% {

        transform: scale(1.2) rotate(-4deg);
        transition-timing-function: cubic-bezier(0.755, .5, .855, .06);

    }

    56% {

        transform: scale(1.2) rotate(4deg);
        transition-timing-function: cubic-bezier(0.755, .5, .855, .06);

    }

    60% {

        transform: scale(1.2) rotate(0deg);
        transition-timing-function: cubic-bezier(0.755, .5, .855, .06);

    }

    100% {

        transform: scale(1.2) rotate(0deg);
        transition-timing-function: cubic-bezier(0.215, .61, .355, 1);

    }
}

/*粽子活動end*/




@media screen and (max-height: 450px) {
    /* .sidenav {padding-top: 15px;}
    .sidenav a {font-size: 18px;} */
}


@media screen and (min-width: 481px) and (max-width: 768px) {
    /* STYLES HERE */
}

@media screen and (min-width: 665px) {
    /* #pc_chat {
        display: none;
    } */

    .card-header_m {
        display: none;
    }

    .card-body_m {
        display: none;
    }

    .card-footer_m {
        display: none;
    }

    .all_icon_m {
        display: none;
    }
}

@media screen and (min-width: 601px) and (max-width: 1920px) {

    /* .online-video {
        height: 100vh;
    } */
    .video_live {
        height: 100vh;
        width: 100vw;
    }


}


@media screen and (max-width: 666px) {
    .sidenav {
        display: none;
    }

    .chat_icon {
        display: none;
    }

    .horizontal_nav {
        display: none;
    }

    .ticket_horizontal {
        display: none;
    }

    #myvideo {
        display: none;
    }

    .all_icon_p {
        display: none;
    }
}

/* @media screen and (min-width: 768px) and (max-width: 1024px) {
    .online-video {
        height: 100%;
    }
    #pc_chat {
        display: block;
    } 


}
*/