@import url('https://cdn.jsdelivr.net/npm/pretendard/dist/web/static/pretendard.css');


.hero {
    position: relative;
}

.chat-container-wrapper {
    position: absolute; /* 화면 전체를 덮도록 설정 */
    top: 240px;
    left: 0;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.chat-iframe {
    width: 100%;
    height: 100%;
    border: none; /* 테두리 제거 */
    overflow: hidden;
}

#chatContainer {
    width: 40%;
    max-width: 800px;
    height: 500px;
    background: rgba(255,255,255,0.8);
    border-radius: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;

    position: absolute;
    top: 40vh;
    transform: translateY(-50%);
    right: 10%
    
}
#chatContainer * {
    font-family: 'Pretendard', sans-serif;
}

#chatContainer #msgContainer {
    padding: 30px;
    overflow-y: auto;

    -ms-overflow-style: none;
}

#msgContainer::-webkit-scrollbar {
    display: none;
}

#chatContainer .chat-bubble {
    max-width: 80%;
    padding: 12px 20px;
    margin: 8px;
    border-radius: 30px;
    word-wrap: break-word;
    font-size: 16px;
    line-height: 1.6;
    position: relative;
}

#chatContainer .bot {
    display: flex;
    flex-direction: column;
}

#chatContainer .bot .chat-bubble {
    background: #F4F5F9;
    align-self: flex-start;
    display: flex;
    align-items: center;
    color: #333333;
}

/* 봇 프로필 스타일 */
#chatContainer .bot-profile {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

/* 봇 아이콘 */
#chatContainer .bot-profile .icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(180deg, #896BFF, #3465FE);;
    color: white;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

#chatContainer .user {
    display: flex;
    justify-content: flex-end;
}

#chatContainer .user .chat-bubble {
    background: #3465FE;
    color: white;
    align-self: flex-end;
}

#chatContainer .typing-container {
    width: calc(100% - 60px);
    height: 60px;
    display: flex;
    align-items: center;
    background: white;
    padding: 10px;
    border: 2px solid #A0B3FF;
    position: absolute;
    bottom: 30px;
    left: 30px;
    box-sizing: border-box;
    border-radius: 80px;
    font-size: 16px;
}

#chatContainer #typingQuestion {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 10px;
    color: #333;
}

#chatContainer #typingQuestion .cursor {
    display: inline-block;
    width: 2px;
    background-color: black;
    margin-left: 3px;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

#chatContainer #typingQuestion .chat-btn {
    border: none;
    padding: 8px 12px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;
    
}

#chatContainer #typingQuestion .chat-btn:active {
    transform: scale(0.9);
}

#chatContainer button {
    background: none;
    border: none;
}

#chatContainer button img{
    width: 30px;
}


@media screen and (max-width: 720px) {

    #chatContainer {
        padding-bottom: 60px;
    }

    #chatContainer #msgContainer {
        padding: 20px 25px;
    }
    #chatContainer .chat-bubble {
        font-size: 14px;
    }

    #chatContainer .typing-container {
        width: calc(100% - 50px);
        height: 50px;
        bottom: 20px;
    }

    #chatContainer #typingQuestion  {
        font-size: 14px;
    }
}