.header-main .ai {
    background-color: #4d25a7;;
    border-bottom: 5px solid #ffffff;
}
.ai-function-wrapper {
    margin: 0 auto;
    padding: 2rem 0;
}

.ai-function-container {

}

.ai-function-container .function-container {
    width: 30%;
    font-family: "Exo 2";
    font-weight: 600;
    font-size: 1.1rem;
    color: #14242a;
    background-color: rgba(215, 208, 236, 1);
    border-radius: 2rem;
    position: relative;
    height: 4rem;
}

.ai-function-container .function-container.this,
.ai-function-container .function-container:hover {
    background-color: #7552c3;
    color: #ffffff;
}

.ai-function-container .function-container img {
    height: 3rem;
    padding: 0.5rem;
    border-radius: 50%;
    position: absolute;
    transform: translate(0, -50%);
    top: 50%;
    left: 0.3rem;
}

.ai-container {
    font-family: "Exo 2";
    font-size: 1.1rem;
    line-height: 2rem;
    padding-bottom: 15rem;
    min-height: 40rem;
}

.ai-chat-container {
    display: flex;
}

.ai-chat-container .ai-icon {
    height: 5rem;
    margin-right: 1rem;
}

.ai-chat-container .message-container {

}

.message-container {
    width: 75%;
    background-color: #ffffff;
    border: 1px solid;
    border-color: #d6cae5;
    border-radius: 0px 30px 30px 30px;
    padding: 1.5rem 2rem;
}

.my-chat-container .message-container {
    background-color: #7552c3;
    border-color: #7552c3;
    border-radius: 30px 0px 30px 30px;
    color: #ffffff;
    margin-left: 6rem;
    margin-top: 7rem;
    margin-bottom: 4rem;
    position: relative;
}

.finished-container {
    position: absolute;
    bottom: 2%;
    right: 3%;
}

.finished-container .finished-time {
    opacity: 50%;
    color: #ffffff;
    font-size: 1rem;
}

.finished-container img {
    margin-left: 0.3rem;
    height: 0.82rem;
}


.suggestion-text {
    margin-bottom: 0.6rem;
    color: #7552c3;
    cursor: pointer;
}

.switch-wrapper {
    margin-top: 1.3rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.switch-container {
    background-color: #7552c3;
    padding: 0.4rem 3rem 0.4rem 2.5rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.15rem;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.switch-container .switch-icon {
    margin-right: 0.8rem;
    top: 50%;
    left: 12%;
    width: 1.1rem;
    transition-duration: 0.5s;
}

.collect-chat {
    border-radius: 0.5rem;
    margin-left: 1rem;
}

.ai-chat-container .collect-chat-icon {
    height: 2rem;
    width: 2rem;
    padding: 0.5rem;
    background-color: rgba(0, 0, 0, 0.33);
    border-radius: 0.5rem;
    cursor: pointer;
}


.chat-error-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.chat-error-container img {
    width: 1.3rem;
    height: 1.3rem;
    margin-right: 0.6rem;
}

.chat-error-container .chat-error-text {
    color: #4f2323;
    font-size: 1.2rem;
    text-align: center;
}

.ai-input-wrapper {
    background-color: #ffffff;
    width: 100%;
    min-height: 6rem;
    position: fixed;
    bottom: 0;

}

.ai-input-container {
    margin: 0 auto;
    position: relative;
}

.ai-input-container textarea {
    width: 100%;
    background-color: #ececec;
    border-radius: 2rem;
    padding: 0 3.5rem;
    font-family: "Exo 2";
    color: #a0a0a0;
    font-size: 1.25rem;
    white-space: pre-wrap;
    resize: none;
    border: none;
    outline: none;
    overflow-y: auto;
    white-space: pre-wrap;
    resize: none;
    padding-top: 1.15rem;

}

.no-resize {
    resize: none;
}

.ai-input-icon {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    right: 1%;
    width: 1.5rem;
    cursor: pointer;
}

/*history*/
.change-page-container {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    width: 100%;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-radius: 0.2rem;
}

.change-page-container a {
    cursor: pointer;
}

.change-page-container .change-page-img {
    margin: 0 0.8rem;
}

.change-page-container img {
    width: 0.5rem;
}

.change-page-container .btn-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.change-page-container .page-btn {
    border-radius: 50%;
    font-family: "Exo 2";
    color: #3c3c3c;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    text-align: center;
    margin: 0 0.5rem;
}

.change-page-container .page-btn.selecting {
    background-color: #7552c3;
    color: #ffffff;
}

.delete-popup-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: #ffffff;
    width: 20rem;
    padding-top: 2.6rem;
    padding-bottom: 1.2rem;
    border-radius: 0.6rem;
    font-family: "Exo 2";
}

.delete-popup-container .delete-text {
    font-weight: 700;
    font-size: 1.2rem;
}

.delete-popup-container img {
    width: 4rem;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.delete-popup-container .btn-wrapper {
    width: 80%;
    margin-top: 1rem;
}

.delete-popup-container .btn-wrapper .cancel-btn {
    color: #979797;
    font-size: 1rem;
    width: 46%;
    text-align: center;
    height: 2.2rem;
    border-radius: 2rem;
    border: 1px solid #979797;
    cursor: pointer;
}

.delete-popup-container .btn-wrapper .confirm-btn {
    color: #ffffff;
    font-size: 1rem;
    background-color: #7552c3;
    width: 46%;
    text-align: center;
    border-radius: 2rem;
    cursor: pointer;
    padding: 0.6rem 0;
}

.van-overlay-delete {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .7);
}


.no-history-wrapper,
.no-collection-wrapper {
    min-height: 50rem;
    position: relative;
    border-radius: 0.2rem;
    display: none;
}

.no-history-container,
.no-collection-container {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    display: flex;
}

.no-history-container img,
.no-collection-container img {
    height: 10rem;
}

.no-history-title,
.no-collection-title {
    font-family: "Exo 2";
    font-weight: 700;
    color: #635471;
    font-size: 1.3rem;
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
}

.no-history-subtitle,
.no-collection-subtitle {
    font-family: "Exo 2";
    color: #90849c;
    font-size: 1.1rem;
}

.one-history-container,
.one-collection-container {
    background-color: #ffffff;
    padding: 1rem 2rem 1.5rem 2rem;
    border-radius: 0.2rem;
    margin-bottom: 3rem;
}

.history-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ede5dd;;
}

.history-header-container .time-info {
    font-family: "Exo 2";
    font-weight: 700;
    color: #040914;
    font-size: 1.2rem;
}

.history-header-container img {
    height: 1.2rem;
    cursor: pointer;
}

.text-container {
    padding: 1rem 0;
    font-family: "Exo 2";
    color: #626263;
    font-size: 1.1rem;
    line-height: 2rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    white-space: normal;
}

.text-container .my-text {
}

.text-container .ai-text {
    background-color: #f1f1f1;
    border-radius: 0.2rem;
    padding-left: 0.8rem;
}

.view-btn {
    font-family: "Exo 2";
    margin-top: 0.6rem;
    width: 3.5rem;
    background-color: #7552c3;
    color: #ffffff;
    font-size: 1.1rem;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.view-btn img {
    height: 0.8rem;
}

.ai-collection-wrapper,
.ai-history-wrapper{
    min-height: 60rem;
}