@import url('https://fonts.googleapis.com/css2?family=Nanum+Myeongjo:wght@400;700;800&family=Noto+Sans+KR:wght@100;200;300;400;500;600;700;800;900&family=Red+Hat+Display:wght@300;400;500;600;700;800;900&display=swap');

body {
    margin: 0;
    padding: 0;
    /* font-family: 'Arial', sans-serif; */
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1rem;
    background-color: #f9f9f9;
}
p{
    margin: 0;
}
.chat-container {
    max-width: 37.5rem;
    padding: 1rem;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    border-radius: 10px;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    width: 100%;
}

.chat-box {
    background-color: #e8e8e8;
    padding: 1.25rem;
    border-radius: 15px;
    margin-bottom: 30px;
    overflow-y: scroll;
    height: 60vh;
    box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.1);
}

.chat-message {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 0.9375rem;
    margin: 0.25rem 0;
    border: 1px solid #e5e5e5;
    transition: background-color 0.3s ease;
    max-width: 70%;
}

.chat-message:hover {
    background-color: #f5f5f5;
}

.chat-message p {
    margin: 0;
    padding: 0;
    line-height: 1.5;
    color: #333;
}

.chat-input {
    display: flex;
    margin-top: 1.875rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e5e5;
}

.chat-input input {
    padding: 0.9375rem;
    margin-right: 1.25rem;
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Noto Sans KR', sans-serif;
}

.chat-input button {
    background-color: #ff6464;
    color: #fff;
    border: none;
    padding: 0.9375rem 1.5625rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.chat-input button:hover {
    background-color: #ff3f3f;
}

.start {
    margin-top: 1.875rem;
    background-color: #ff6464;
    color: #fff;
    padding: 20px 36px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

.start:hover {
    background-color: #ff3f3f;
}

.assistant {
    color: blue;
}

.chat-message.user {
    background-color: #e8f0fe;
    color: #1967d2;
    border: 1px solid #1967d2;
    gap: 10px;
    align-items: center;
    display: flex;
    margin-left: auto;
    justify-content: center;
    width: auto;
}

.chat-message.bot {
    background-color: #f9f9f9;
    color: #202124;
    border: 1px solid #e5e5e5;
    margin-right: auto;
}

.chat-message.user:hover {
    background-color: #dce6f7;
}

.chat-message.bot:hover {
    background-color: #f5f5f5;
}
#select_gender_area{
    display: none;
}
.intro-container {
    /* display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; */
}

.intro-container img {
    width: 50%;
    min-width: 18.75rem;
}

#loader {
    font-size: 1rem;
}

.kakao-ad {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    min-width: 350px;
    min-height: 200px;
}

.coffee-donation {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
}

.coffee-donation a {
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3125rem 1.25rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
}

.coffee-donation a:hover {
    background-color: lightgray;
}

.coffee-icon {
    width: 30px;
    height: auto;
    border-radius: 50%;
    margin-right: 5px;
}

#left-botton {
    margin-right: 30px;
}

.toss-icon {
    width: 1.875rem;
    height: auto;
    border-radius: 50%;
    margin-right: 5px;
    padding: 0.3125rem;
    border: #eaeaea 1px solid;
}

.kakao-icon {
    width: 1.875rem;
    height: auto;
    border-radius: 50%;
    margin-right: 5px;
    padding: 0.3125rem;
    background-color: #FEE500;
    border: #eaeaea 0.5px solid;
}
.chat-info{
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: #fff;
    padding: 10px 20px;
    border-radius: 5px;
}
.chat-info p {
    display: inline-block;
    margin-right: 20px;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: -0.5px;
}

select {
    padding: 0.625rem;
    font-size: 1rem;
    line-height: 1.3;
    color: #444;
    box-shadow: 0 1px 0 1px rgba(0, 0, 0, .04);
    border: 1px solid #aaa;
    border-radius: .5em;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    background-repeat: no-repeat, repeat;
    background-position: right .7em top 50%, 0 0;
    background-size: .65em auto, 100%;
}

select:hover {
    border-color: #888;
}

select:focus {
    border-color: #aaa;
    box-shadow: 0 1px 1px 1px rgba(0, 0, 0, .1);
    color: #222;
    outline: none;
}

select option {
    font-weight: normal;
}

/* PKH CSS */
#select_mbti{
    display: none;
}
header {
    /* margin-bottom: 30px; */
    height: 100px;
    display: flex;
    align-items: center;
}
header h2{
    font-size: 20px;
    margin: 0;
}
.header-inner{
    z-index: 101;
    width: 100%;
    text-align: center;
} 

.main_inner{
    width: 950px;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    border-radius: 10px;
    padding: 20px 0;
}
.main_inner.cg-container{
    /* padding: 20px 0; */
}
.subtit{
    text-align: center;
    margin-bottom: 40px;
    margin-top: 16px;
    font-size: 19px;
    font-weight: 500;
}
.page-title-bar{
    position: relative;
    margin-bottom: 50px;
}
.page-title-bar .back.tt{
    top: 0;
    left: 62px; 
}

.page-title-bar .back{
    position: absolute;

    border: 1px solid #e5e8eb;
    background: #fff;
    font-size: 14px;
    padding: 10px;
    cursor: pointer;
}
.choose-gender-wrap{
    gap: 10px;
    display: flex;
    justify-content: center;
    align-items: center;   
}
.genderBtn{
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 200px;
    height: 400px;
    box-shadow: 1px 1px 3px 0px rgb(0 0 0 / 8%);
    background-color: #fff;
    color: #000;
    font-weight: bold;
    font-size: 30px;
    cursor: pointer;
}
.genderBtn:hover{
    border: 2px solid #000;
   
}
.mbti-wrap{
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;  
    justify-content: center;
}

.mbtiBtn{
    height: 90px;
    width: 200px;
    border: 1px solid #e5e8eb;
    border-radius: 10px;
    box-shadow: 1px 1px 3px 0px rgb(0 0 0 / 8%);
    background-color: #fff;
    color: #000;
    font-weight: 400;
    font-size: 18px;
    cursor: pointer;
}
.mbtiBtn.a.active,
.mbtiBtn.a:hover{
    background: #E2E4D7;
}
.mbtiBtn.b.active,
.mbtiBtn.b:hover{
    background: #BCE2E3;
}

.mbtiBtn.c.active,
.mbtiBtn.c:hover{
    background: #F9D4CC;
}

.mbtiBtn.d.active,
.mbtiBtn.d:hover{
    background: #E7F0D3;
}

.mbtiBtn.e.active,
.mbtiBtn.e:hover{
    background: #E1D8E9;
}

.mbtiBtn.f.active,
.mbtiBtn.f:hover{
    background: #EDB7B7;
}

.mbtiBtn.g.active,
.mbtiBtn.g:hover{
    background: #F3D6B6;
}

.mbtiBtn.h.active,
.mbtiBtn.h:hover{
    background: #E7C7DE;
}
.mbtiBtn.i.active,
.mbtiBtn.i:hover{
    background: #C6E5F9;
}
.mbtiBtn.j.active,
.mbtiBtn.j:hover{
    background: #C9E5CF;
}

.mbtiBtn.k.active,
.mbtiBtn.k:hover{
    background: #FCEEC9;
}
.mbtiBtn.l.active,
.mbtiBtn.l:hover{
    background: #C5DEE3;
}

.mbtiBtn.n.active,
.mbtiBtn.n:hover{
    background: #F0F3C6;
}
.mbtiBtn.m.active,
.mbtiBtn.m:hover{
    background: #F6C1D3;
}
.mbtiBtn.o.active,
.mbtiBtn.o:hover{
    background: #C8D1E0;
}
.mbtiBtn.p.active,
.mbtiBtn.p:hover{
    background: #F2CAB0;
}
.btn-wrap{
    text-align: center;
}
.your_img{
    width: 45px;
    height: 45px;
  
}
.your_img img{
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 50%;
    object-fit: cover;
}
.chat-message-wrap{
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 반응형 css 수정 */
/*데스크탑 브라우저 가로*/
@media ( min-width: 1024px ) {

}
/* 테블릿 세로 (해상도 768px ~ 1023px)*/
@media all and (min-width:768px) and (max-width:1024px) 
{
    header{
        margin: 0;
    }
    .main_inner{
        width: 100%;
    }
    .page-title-bar .back.tt{
        left: 35px;
    }
    .subtit{
        font-size: 22px;
    }
    .btn-wrap{
        margin-top: 20px;
    }
}
/*모바일(스마트폰)*/
@media (max-width : 768px)
{
    header{
        margin: 0;
    }
    .main_inner{
        width: 100%;
    }
    .page-title-bar .back.tt{
        left: 35px;
    }
    .subtit{
        font-size: 20px;
    }
    .mbtiBtn{
        height: 53px;
        width: 100px;
        font-size: 15px;
    }
    .btn-wrap{
        margin-top: 20px;
    }
}
/* 576px 이하일 때 */
@media (max-width: 576px) 
{
    header{
        margin: 0;
    }
    .main_inner{
        width: 100%;
    }
    .page-title-bar .back.tt{
        left: 32px;
        top: -7px;
    }
    .subtit{
        font-size: 16px;
    }
    .mbtiBtn{
        height: 53px;
        width: 100px;
        font-size: 15px;
    }
    .btn-wrap{
        margin-top: 20px;
    }
}

@media only screen and (max-width: 600px) {
    .chat-container {
        max-width: 100%;
        padding: 0;
    }

    .chat-box {
        padding: 1rem;
        /* height: auto; */
        max-height: 50vh;
        overflow-y: auto;
    }

    .chat-message {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .chat-input {
        margin-top: 1rem;
        padding-top: 0.5rem;
        position: absolute;
        bottom: 0;
        width: 100%;
    }

    .chat-input input {
        padding: 0.5rem;
        margin-right: 1rem;
        width: 70%;
        /* 입력 필드를 전체 너비의 70%로 설정 */
    }

    .chat-input button,
    .start {
        padding: 1rem 1rem;
        /* width: 39%; */
        /* width: 100%; */
        /* 버튼을 전체 너비의 28%로 설정 (간격 2% 포함) */
    }

    .start {
        margin-top: 1rem;
    }

    .intro-container img {
        width: 90%;
        /* 이미지를 좀 더 작게 */
        min-width: auto;
    }
}

.fa {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.fa-spinner {
    color: #ff6464;
}