.chat-container{
    display: flex;
    font-family: 'Nunito';
    /* transition: 0.25s; */
}

.chat-filler-bg{
    background-color: #f0f0f0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.chat-main-bg{
    background-color: #f0f0f0;
    width: 100%;
    height: 100%;
    z-index: -1; 
}

.chat-main-over{
    position: absolute;
    top: 0;
    left: 0;
    width: 92%;
    height: 86%;
    padding: 4%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    &.start-from-top{
        justify-content: flex-start;
        gap: 16px;
    }
}

.chat-filler-message-text-outer{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 50%;
    gap: 16px;
    border-radius: 19px;
}
.chat-filler-message-text{
    background: linear-gradient(90deg,rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
    width: 100%;
    height: 100%;
    border-radius: 19px;
    display: flex;
    flex-direction: column;
    padding:  32px 32px;
    box-sizing: border-box;
    gap: 16px;
    font-size: clamp(16px, 1vw, 24px);
}
.gb-white{
    background: linear-gradient(90deg,rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.2) 100%);
    padding: 3px;
    }


.chat-bottom-containers{
    display: flex;
    width: 100%;
    justify-content: flex-end;
    align-items: flex-end;
    padding-bottom: 24px;
    padding-right: 24px;
    margin-top: -16px;
    box-sizing: border-box;
    flex-grow: 1;
    justify-content: flex-start;
    &.filler{
        justify-content: flex-end;
    }
    &.feedback{
        justify-content: space-between;
    }
    &.question{
        justify-content: space-between;
    }
    &.ending{
        justify-content: center;
        gap: 16px;
        margin-top: 0px;
        padding-right: 0px;
    }
}
.phase-changer{
    padding: 20px 64px;
}
.chat-next{
    border-radius: 19px;
    background-color: rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    &:hover{
        background-color: rgba(255, 255, 255, 0.7);
    };
    &:active{
        background-color: rgba(255, 255, 255, 0.9);
    };
}
.chat-hidden{
    border-radius: 19px;
    background-color: rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    visibility: hidden;
}
.chat-retry{
    border-radius: 19px;
    background-color: rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: center;
    padding: 16px 32px;
    cursor: pointer;
    user-select: none;
    &:hover{
        background-color: rgba(255, 255, 255, 0.7);
    };
    &:active{
        background-color: rgba(255, 255, 255, 0.9);
    };
}
.chat-filler-topic-container{
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-size: clamp(32px, 2vw, 48px);
    font-weight: 600;
    font-family: 'Nunito-bold';
    color: white;
    line-height: clamp(32px, 2vw, 48px);
}

.chat-filler-logo{
    width: 15%;
    max-width: 80px;
}

.chat-question-feedback-logo{
    position: absolute;
    right: -8px;
    top: -8px;
    width: 32px;
    height: 32px;
}





.chat-question-container{
    display: flex;
    width: 75%;
    height: fit-content;
    padding-top: 32px;
    box-sizing: border-box;
    /* border: 1px solid red; */
}
.chat-question-box{
    position: relative;
    display: flex;
    align-items: flex-end;

}
.chat-question-bubble{
    display: flex;
    background-color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    pointer-events: none;
}
.chat-question-text{
    background-color: white;
    height: 100%;
    border-radius: 19px;
    padding: 32px 32px;
    box-sizing: border-box;
    max-width: 80%;
    font-size: clamp(16px, 1vw, 24px);
    line-height: clamp(22px, 1vw, 24px);
    pointer-events: none;
    position: relative;
}
.chat-question-triangle{
    width: 32px;
    height: 32px;
    margin-right: -10px;
}

.chat-question-answer-container-outer{
    width: 80%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 16px;
    &.feedback{
        padding-top: 32px;
    }

}
.chat-question-answer-container{
    display: flex;
    flex-direction: column;
    width: 85%;
    align-items: flex-end;
    gap: 16px;
    height: 100%;
}

.chat-question-answer{
    display: flex;
    padding-left: 0;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg,rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.3) 100%);
    outline: 3px solid rgba(255, 255, 255, 0.6);
    outline-offset: -3px;
    border-radius: 50px 20px 20px 50px;
    position: relative;
    width: 70%;
    height: fit-content;
    padding: 3px;
    box-sizing: border-box;
    min-height: 10vh;
    transition: 0.25s;
    &.inactive&:not(.picked){
        opacity: 0.5;
    }
    &:not(.picked)&:not(.inactive){
        &:hover{
            cursor: pointer;
            outline: 3px solid #6165d7;
            .chat-question-answer-text{
                background-color: rgba(255, 255, 255, 0.7);
            }
            .chat-question-answer-number{
                border: 3px solid #6165d7;

            }
        }
    }
    &.active{
        .chat-question-answer-text{
            background-color: rgba(255, 255, 255, 0.9);
        }
    }
}
.chat-question-answer-number{
    width: 10vh;
    background-color: white;
    border-radius: 50%;
    font-size: clamp(28px, 2vw, 38px);
    color: #2A2F6A;
    font-weight: 800;
    font-family: 'Nunito-bold';
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    left: -10px;
    height: 10vh;
    box-sizing: border-box;
    border: 3px solid white;
    transition: 0.25s;
    user-select: none;
    outline-offset: -3px;
}

.chat-question-answer-text{
    width: 100%;
    border-radius: 50px 20px 20px 50px;
    height: 100%;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.3);
    font-size: clamp(16px, 1vw, 24px);
    line-height: clamp(22px, 1vw, 24px);
    padding: 0px 0px;
    box-sizing: border-box;
    padding-left: 100px;
    user-select: none;
    transition: 0.25s;
}

.picked{
    user-select: none;
    &.correct{
        outline: 3px solid #4bdd75;
        .chat-question-answer-number{
            outline: 3px solid #4bdd75;
        }
        .chat-question-answer-text{
            background-color: rgba(255, 255, 255, 0.7);
        }
    };
    &.incorrect{
        outline: 3px solid #ff6262;
        .chat-question-answer-number{
            outline: 3px solid #ff6262;
        }
        .chat-question-answer-text{
            background-color: rgba(255, 255, 255, 0.7);
        }
    }
}

.star-outer-container{
    display: flex;
    /* flex-grow: 1; */
    padding-left: 32px;
}
.star-container{
    padding: 16px 32px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 19px;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    .star-logo{
        display: flex;
        svg{
            width: 40px;
        }
    }
}

.chat-topic-orbs-container{
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 32px;
    box-sizing: border-box;
    padding: 16px 32px;
    .chat-orb-outer{
        display: flex;
        justify-content: center;
        align-items: center;
        width: 34px;
        height: 34px;
        gap: 16px;
        background: linear-gradient(90deg,rgba(97, 101, 215, 1) 0%, rgba(170, 128, 249, 1) 100%);
        margin: 0 -4px;
        border-radius: 50%;
        z-index: 5;
    }
    .chat-topic-orb{
        background-color: white;
        width:30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        &.active{
            .chat-topic-orb-inner{
                width: 4px;
                height: 4px;
                background: linear-gradient(90deg,rgba(97, 101, 215, 1) 0%, rgba(170, 128, 249, 1) 100%);
                border-radius: 50%;
            }
        }
        &.passed{
            width: 4px;
            height: 4px;
        }
    }
    .chat-topic-orb-line{
        background: #9571F6;
        width: 50px;
        height: 3px;
        &.active{
            background: white;
        }
    }
}

.chat-ending-star-counter{
    display: flex;
    align-items: center;
    gap: 32px;
    padding-top: 16px;
    .star-logo{
        display: flex;
        svg{
            -webkit-filter: drop-shadow(0px 0px 10px rgba(255,255,255,0.50));
            filter: drop-shadow(0px 0px 10px rgba(255,255,255,0.50));
            width: 80px;
        }
    }
    .star-text{
        font-size: 48px;
        font-weight: 600;
        font-family: 'Nunito-bold';
        color: white;
        line-height: 48px;
    }
}
.chat-ending-main{
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    &.victory{
        justify-content: flex-start;
    }
    .chat-ending-box{
        display: flex;
        justify-content: center;
        align-items: center;
        width: 35%;
        height: 100%;
        background: linear-gradient(145deg,rgba(227, 141, 221, 0.5) 0%, rgba(149, 113, 246, 0.5) 100%);
        border: 3px solid rgba(97, 101, 215, 0.5);
        border-radius: 19px;
        padding: 32px 32px;
        box-sizing: border-box;
        gap: 16px;
        font-size: clamp(20px, 2vw, 28px);
        text-align: center;
        color: white;
        margin-top: 64px;
    }
    .chat-ending-text{
        font-size: clamp(20px, 2vw, 28px);
        color: white;
        line-height: clamp(20px, 2vw, 28px);
        width: 60%;
        text-align: center;
    }
    .chat-badge-logo{
        padding-top: 16px;
        width: 42vh;
        margin-bottom: 64px;
        display: flex;
        justify-content: center;
        img{
            width: 100%;
            max-width: 60%;
        }
    }
}

.try-again-container{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 80px;
    .try-again-text{
        font-size: clamp(20px, 2vw, 28px);
        font-weight: 600;
        font-family: 'Nunito-bold';
        color: white;
        line-height: clamp(20px, 2vw, 28px);
    }
    .phase-changer{
        border-radius: 19px;
        background-color: rgba(255, 255, 255, 0.5);
        display: flex;
        justify-content: center;
        padding: 16px 64px;
        cursor: pointer;
        user-select: none;
        font-size: clamp(18px, 2vw, 24px);
        &:hover{
            background-color: rgba(255, 255, 255, 0.7);
        };
        &:active{
            background-color: rgba(255, 255, 255, 0.9);
        };
    }
}

.chat-modal-call-btn{
    width: 64px;
    height: 64px;
    position: absolute;
    top: 9%;
    left: 6%;
    cursor: pointer;
    .cls-4{
        fill: #E4DDF9;
        transition: 0.25s;
    }
    &:hover{
        .cls-4{
            fill: white;
        }
    };
}

.chat-modal-open{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.chat-modal-inner{
    background-color: #D8CDF2;
    width: 93%;
    height: 87%;
    border-radius: 19px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
        z-index: 9;
}
.chat-modal-close{
    position: absolute;
    right: 16px;
    top: 16px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: 0.25s;
    &:hover{
        transform: scale(1.1);
    }
}
.chat-modal-content-outer{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40%;
    height: 60%;
    padding: 3px;
    box-sizing: border-box;
    border-radius: 19px;
    background-color: rgba(255, 255, 255, 0.7);
}

.chat-modal-content-inner{
    display: flex;
    justify-content: center;
    align-items:center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border-radius: 19px;
    background-color: rgba(200, 200, 200, 0.5);
    flex-direction: column;
    padding: 16px;
    gap: 8px;
    .chat-filler-message{
        width: 100%;
    }
    
}

@media(max-width: 1800px){
    .chat-ending-main{
        .chat-ending-text{
            width: 85%;
            padding-bottom: 8px;
        }
        .chat-badge-logo{
            width: 32vh;
        }
    }
    .try-again-container{
        margin-top: 48px;
    }
}
@media(max-width: 1600px){
    .chat-main-bg{
        height: 80vh;
    }
    .chat-filler-bg{
        height: 80vh;
    }
}



@media(max-width: 1420px){
    .chat-modal-call-btn{
        width: 32px;
    }

    .chat-modal-content-outer{
        width: 50%;
        height: 70%;
    }

    .chat-modal-inner{
    width: 87%;
    height: 80vh;
    }

    .chat-main-over{
        width: 87%;
        height: 80vh;
    }
    .chat-main-bg{
        height: 90vh;
    }
    .chat-filler-message-text{
        padding: 16px 16px;
    }
    .chat-filler-message{
        font-size: clamp(14px, 1vw, 24px);
    }
    .chat-filler-bg{
        height: 90vh;
    }
    .chat-question-text{
        padding: 16px 16px;
        font-size: clamp(12px, 1vw, 20px);
    }
    .chat-question-answer{
        .chat-question-answer-text{
        font-size: clamp(12px, 1vw, 20px);
        }
    }
    .star-outer-container{
    display: flex;
    /* flex-grow: 1; */
    padding-left: 32px;
    .star-container{
        padding: 7px 16px;
        background-color: rgba(255, 255, 255, 0.8);
        border-radius: 14px;
        font-size: clamp(16px, 1vw, 20px);
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 14px;
        .star-logo{
            display: flex;
            svg{
                width: 24px;
                }
            }
        }
    }

    .chat-topic-orbs-container{
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 32px;
    box-sizing: border-box;
    padding: 8px 16px;
    .chat-orb-outer{
        display: flex;
        justify-content: center;
        align-items: center;
        width: 32px;
        height: 32px;
        gap: 16px;
        background: linear-gradient(90deg,rgba(97, 101, 215, 1) 0%, rgba(170, 128, 249, 1) 100%);
        margin: 0 -4px;
        border-radius: 50%;
        z-index: 5;
    }
    }
    .phase-changer{
        padding: 8px 16px;
        font-size: clamp(16px, 1vw, 20px);
        border-radius: 13px;
    }
}
@media(max-width: 1200px){
    .chat-ending-star-counter{
        .star-logo{
            display: flex;
            svg{
                -webkit-filter: drop-shadow(0px 0px 10px rgba(255,255,255,0.50));
                filter: drop-shadow(0px 0px 10px rgba(255,255,255,0.50));
                width: 60px;
            }
        }
        .star-text{
            font-size: clamp(32px, 2vw, 48px);
            font-weight: 600;
            font-family: 'Nunito-bold';
            color: white;
            line-height: 48px;
        }
    }
    .chat-ending-main{
        .chat-ending-text{
            width: 85%;
            padding-bottom: 8px;
        }
        .chat-badge-logo{
            width: 30vh;
        }
    }
}

@media(max-width: 1000px){
    .chat-modal-content-outer{
        width: 80%;
        height: 80%;
    }


    .try-again-container{
        margin-top: 32px;
    }
    .chat-ending-star-counter{
        margin-top: 32px;
    .star-logo{
            display: flex;
            svg{
                -webkit-filter: drop-shadow(0px 0px 10px rgba(255,255,255,0.50));
                filter: drop-shadow(0px 0px 10px rgba(255,255,255,0.50));
                width: 40px;
            }
        }
        .star-text{
            font-size: clamp(28px, 2vw, 32px);
            font-weight: 600;
            font-family: 'Nunito-bold';
            color: white;
            line-height: 48px;
        }
    }
    .chat-ending-main{
        .chat-ending-text{
            width: 85%;
            padding-bottom: 8px;
            font-size: clamp(16px, 2vw, 20px);
        }
        .chat-badge-logo{
            width: 35vh;
        }
        .chat-ending-box{
        width: 50vw;
        padding: 16px 16px;
        font-size: clamp(16px, 2vw, 20px);
    }
    }




    .chat-modal-inner{
        width: 92%;
        height: 80vh;
    }
    .chat-main-over{
        width: 92%;
        height: 80vh;
    }
    .chat-filler-message-text-outer{
        width: 65%;
    }
    .chat-bottom-containers{
        padding-right: 8px;
        padding-bottom: 0px;
        margin-top: 8px;
    }
}
@media(max-width: 768px){

    .try-again-container{
        margin-top: 8px;
        .phase-changer{
            padding: 16px 32px;
            font-size: clamp(16px, 2vw, 20px);
            border-radius: 13px;
        }


    }



    .chat-question-container{
        width: 95%;
    }
    .chat-question-answer-container-outer{
        width: 95%;
    }
    .chat-filler-message-text-outer{
        width: 80%;
    }
    .chat-question-answer-number{
        width: 8vh;
        height: 8vh;
        font-size: clamp(20px, 2vw, 28px);
    }
    .chat-question-answer{
        min-height: 8vh;
    }
    .chat-question-answer-text{
        padding-left: 8vh;
    }
    .chat-question-bubble{
        width: 35px;
        height: 35px;
    }
    .chat-bottom-containers{
        padding-right: 0px;
        padding-bottom: 0px;
        margin-top: 8px;
    }
    .star-container{
        .star-text{
            font-size: 12px;
        }
    }

}


@media(max-width: 600px){
        .chat-ending-star-counter{
            padding-top: 32px;
        .star-text{
            font-size: clamp(20px, 2vw, 24px);
            font-weight: 600;
            font-family: 'Nunito-bold';
            color: white;
            line-height: clamp(24px, 2vw, 32px);
            text-align: center;
        }
    }
}


