#kp_broadcast_popup {
    position: fixed;
    top: -40%;
    left: calc(100% - 474px);
    margin: auto;
    display: none;
    flex-direction: column;
    overflow: unset;
    z-index: 20;
    width: 400px !important;
    height: 270px !important;
}
#kp_broadcast_popup .modal-dialog {
    margin-left: unset !important;
    margin-right: unset !important;
    width: 450px !important;
}

#kp_broadcast_popup.showbroadcast {
    display: flex; 
    animation: slideBroadcastIn 1s forwards;
}

#kp_broadcast_popup.hidebroadcast {
    animation: slideBroadcastOut 1s forwards;
}

.kp_broadcast_popup_content {
    background-size: cover;
    border-radius: 1rem;
    width: 43rem;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.kp_broadcast_popup_header {
    background-image: url(/Content/distv2/img/sprite-sheet/popup-broadcast/bg-hd-broadcast.png);
    background-size: cover;
    padding: -2rem;
    border-radius: 1rem 1rem 0 0;
    position: relative;
    height: 12.5rem;
    display: flex;
    flex-direction: column-reverse;
    width: 100%;
    margin: 0 auto;
    top: -1.5rem;
}


.kp_broadcast_header_decoration {
    position: absolute;
    top: -3rem;
    left: 50%;
    transform: translateX(-50%);
}
.kp_broadcast_title {
    font-weight: 900;
    margin: -2.2rem;
    text-align: center;
    padding-bottom: 1.7rem;
    font-family: "Myriad Pro Bold";
    -webkit-background-clip: text;
    color: #ffed8a;
    font-size: 4.7rem;
    text-shadow: 0.3rem 0.3rem 0.3rem black;
    font-weight: bold;
}

.kp_broadcast_popup_body {
    margin-top: -30px;
    background: url(/Content/distv2/img/sprite-sheet/popup-broadcast/bg_body_broadcast.png) no-repeat 50% 50%;
    background-size: cover;
    padding: 15px;
    border-radius: 8px;
    height: 180px;
    border: 0.1rem solid #fff3c0;
    font-size: 18px;
}

.kp_broadcast_user_info {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-top: 15px;
}

.kp_broadcast_avatar {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    border: 0.3rem solid #FFD700;
}

.kp_broadcast_game {
    width: 9rem;
    height: 9rem;
}

.kp_broadcast_game_wrapper {
    display: inline-block;
    text-align: center; 
    cursor: pointer;
}
.kp_broadcast_avatar_wrapper {
    position: relative;
    display: inline-block;
}

.kp_broadcast_nameUser_withdraw {
    /* position: absolute; */
    bottom: -4.5rem; 
    left: 50%;
    /* transform: translateX(-50%); */
    font-size: 2.5rem;
    color: #fff; 
    padding: 0.5rem;
    font-weight: bold;
    text-align: center;
}
.kp_broadcast_user_details {
    display: flex;
    justify-content: space-around; 
    align-items: center; 
    color: white;
    width: 18rem; 
    overflow: hidden; 
}

.kp_broadcast_item_wrapper {
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    flex: 1;
    overflow: hidden; 
    position: relative; 
}

.kp_broadcast_username_wrapper,
.kp_broadcast_game_name_wrapper {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.kp_broadcast_username,
.kp_broadcast_game_name {
    display: inline-block;
    white-space: nowrap; 
}
.kp_broadcast_username.marqueetext,
.kp_broadcast_game_name.marqueetext {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 5s linear infinite, marquee-reverse 5s linear infinite reverse;
}

.kp_broadcast_username {
    margin: 0.5rem 0;
    font-weight: bold;
}

.kp_broadcast_game_name {
    margin: 0.5rem 0;
    color: #f5dca3;
    font-weight: bold;
}

.kp_broadcast_game_in {
    margin: 0.5rem 0;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    50% {
        transform: translateX(-50%); 
    }
    100% {
        transform: translateX(100%);
    }
}
@keyframes marquee-reverse {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(50%); /* Move to halfway point */
    }
    100% {
        transform: translateX(-100%);
    }
}

.kp_broadcast_popup_footer {
    background-image: url(/Content/distv2/img/sprite-sheet/popup-broadcast/bg-ft-broadcast.png);
    background-size: 100%;
    padding: 10px;
    position: relative;
    height: 60px;
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-start;
    width: 85%;
    bottom: -5px;
    margin: -35px auto;
}

.kp_broadcast_reward {
    font-size: 3rem;
    font-weight: bold;
    color: #f6eb0a;
    text-shadow: 0.2rem 0.2rem 0.4rem rgb(0 0 0 / 50%);
}

#kp_broadcast_closeBtn {
    position: absolute;
    top: 10rem;
    right: 0;
    /* background: none; */
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    /* background: transparent url(/Content/distv2/img/sprite-sheet/popup-activity/exit-btn.png) no-repeat 50% 50%; */
    background-size: cover;
    width: 5rem;
    height: 5rem;
}
#kp_broadcast_closeBtn:hover {
    cursor: pointer;
    filter: brightness(1.5);
    transform: scale(1.1);
}
@media screen and (max-width: 480px){
    #kp_broadcast_popup {
        position: fixed;
        top: 20rem;
        left: 90rem;
        display: none; 
        flex-direction: column;
        z-index: 20;
    }
}


@keyframes slideBroadcastIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideBroadcastOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}


