#main {
    width: 100%;
}

.entry-header {
    margin-top: 20px;
    margin-bottom: 20px !important;
}

.entry-title {
    margin-bottom: 0px !important;
}

.entry-title span {
    font-size: 15px;
    font-weight: normal;
    display: block;
}

.content-title {
    font-weight: 500;
}

.content-title span {
    font-style: italic;
    font-weight: 800;
}

.entry-article {
    display: flex;
    margin-top: 10px;
    gap: 20px;
    flex-wrap: wrap;
}

.entry-thumbnail {
    text-align: center;
    width: 100%;
    margin-top: 10px;
    display: none;
}

.entry-thumbnail img {
    border: 1px solid lightgray;
    border-radius: 5px;
    overflow: hidden;
    padding: 5px;
    text-align: center;
}

.entry-content {
    width: 100%;
}

.custom-breadcrumb {
    font-size: 14px;
    line-height: 1;
    margin-bottom: 5px !important;
}

h1 {
    font-size: 35px !important;
}

h2 {
    font-size: 22px !important;
    margin-bottom: 5px;
}

hr {
    border-top: 1px solid lightgray;
    background-color: white;
    margin: 0px;
    width: 100%;
}

.post-info-container {
    width: 100%;
    margin-top: 30px;
}

.comment-section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.comments-area {
    width: 100%;
    max-width: 768px;
    border: 1px solid lightgray !important;
    border-radius: 5px;
    overflow: hidden;
}

.chat-section {
    width: 100%;
    display: flex;
    height: 55vh;
    font-size: 18px;
}

.avatar-model-container {
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#avatar-canvas {
    display: none;
    height: 40vh;
}

.main-chat-content-wrapper.hide-avatar .avatar-model-container {
    display: none !important;
}

.main-chat-content-wrapper.hide-avatar .chat-section {
    height: 80vh;
}

.chat-container {
    position: relative;
    display: grid;
    grid-template-rows: 1fr auto;
    width: 100%;
    height: 100%;
    border: 2px solid black;
    border-radius: 10px;
}

.start-chatting-button {
    font-size: 20px;
}

.chat-form {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid lightgray;
    border-radius: 20px;
    padding: 5px;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 10px;
}

#user-message-input {
    width: 100%;
    background-color: white;
    color: black;
    border: none;
    resize: none;
    overflow: hidden;
    padding: 0px 10px;
}

#user-message-input:focus {
    border: none;
}

.chat-form button[type="submit"] {
    font-size: 25px;
    padding: 10px;
    border-radius: 50%;
    background-color: #006AFF;
}

.chat-form button[type="submit"]:disabled {
    background-color: gray;
}

.user-voice-input-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: relative;
    margin-left: 5px;
    margin-right: 5px;
    padding: 10px 15px;
    border-radius: 30px;
    background-color: rgb(230, 230, 230);
    cursor: pointer;
    overflow: hidden;
}

#user-voice-input {
    font-size: 27px;
    padding: 0px;
    background-color: rgb(230, 230, 230);
    color: black;
}

#user-voice-input-timer {
    line-height: 0;
    margin-left: 5px;
    margin-right: 5px;
    display: none;
}

.user-voice-input-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: rgba(180, 180, 180, 0.3);
    transition: width 1s linear;
}

#user-audio-message-wrapper {
    position: relative;
    line-height: 0;
    margin: 5px 20px;
    display: none;
}

#user-audio-message-wrapper audio {
    float: right;
    height: 45px;
    width: 40%;
}

#user-audio-message-close-button {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background-color: white;
    padding: 0px;
    border: 1px solid lightgray;
    border-radius: 50%;
    font-size: 12px;
    color: black;
    font-weight: bold;
}

#user-audio-message-close-button:hover {
    border-color: red;
    color: red;
}

.message-container {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    padding-bottom: 50px;
}

.user-message-wrapper, .ai-message-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 5px;
}

.user-message, .ai-message {
    width: fit-content;
    max-width: 70%;
    padding: 5px 15px 5px 10px;
    color: white;
    border-radius: 20px;
    gap: 5px;
}

.user-message {
    background-color: #006AFF;
    margin-left: auto;
}

.ai-message {
    background-color: rgb(70, 70, 70);
}

@keyframes dotPulse {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.ai-message.indicator span {
    animation-name: dotPulse;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
    margin-right: 3px;
}

.ai-message.indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-message.indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

.ai-message-audio-button, .user-message-audio-button {
    display: inline-block;
    cursor: pointer;
    border-radius: 50%;
    background-color: black;
    color: white;
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    margin-right: 5px;
    font-size: 20px;
}

.ai-message-audio-button.disabled, .user-message-audio-button.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.ai-message-audio-button.error, .user-message-audio-button.error {
    background-color: rgb(58, 0, 0);
    position: relative;
}

.ai-message-audio-button.error::after, .user-message-audio-button.error::after {
    content: 'Audio error';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.2;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease-in-out, visibility 0.15s ease-in-out;
    z-index: 1000;
}

.ai-message-audio-button.error:hover::after, .user-message-audio-button.error:hover::after {
    opacity: 1;
    visibility: visible;
}

.ai-message-audio-button:hover, .user-message-audio-button:hover {
    transform: scale(1.05);
}

.convert-to-speech-button, .convert-to-speech-button:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    border: none;
    outline: none;
    background-color: black;
    color: white;
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    margin-left: 5px;
    font-size: 14px;
    text-decoration: none;
    flex-shrink: 0;
    position: relative;
}

.convert-to-speech-button:hover {
    transform: scale(1.05);
    color: white;
    text-decoration: none;
}

.convert-to-speech-button::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 5px 5px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 100;
}

.convert-to-speech-button::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 1px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.85);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 100;
}

.convert-to-speech-button:hover::after,
.convert-to-speech-button:hover::before {
    opacity: 1;
    visibility: visible;
}

.speech-to-text-button, .speech-to-text-button:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    padding: 10px;
    border: none;
    outline: none;
    border-radius: 30px;
    background-color: rgb(230, 230, 230);
    color: black;
    text-decoration: none;
    margin-left: 5px;
    margin-right: 5px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.speech-to-text-button:hover {
    background-color: rgb(210, 210, 210);
    color: black;
    text-decoration: none;
}

.speech-to-text-button::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 100;
}

.speech-to-text-button::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 1px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.85);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 100;
}

.speech-to-text-button:hover::after,
.speech-to-text-button:hover::before {
    opacity: 1;
    visibility: visible;
}

.chat-result-container {
    padding: 0px 25px;
    text-align: right;
    font-size: 13px;
}

.chatbot-disclaimer {
    width: 100%;
    text-align: center;
    font-style: italic;
    font-size: 13px;
    line-height: 2;
    margin-top: 10px;
}

.conversation-settings-container {
    margin-top: 30px;
    margin-bottom: 100px;
    border: 1px solid lightgray;
    border-radius: 10px;
    padding: 10px;
    background-color: whitesmoke;
}

.conversation-settings-header {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 10px;
    text-align: center;
}

.conversation-settings-groups {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.conversation-settings-groups label {
    font-size: 14px;
    line-height: 1.5;
}

.conversation-settings-groups input {
    padding: 3px 5px;
    border: 1px solid lightgray;
    border-radius: 5px;
    font-size: 16px;
    background-color: white;
    color: black;
    font-weight: 500;
    line-height: 1.5;
    height: unset !important;
    max-width: 200px;
}

.conversation-settings-groups select {
    padding: 4px 5px;
    border: 1px solid lightgray;
    border-radius: 5px;
    font-size: 16px;
    background-color: white;
    color: black;
    font-weight: 500;
    line-height: 1.5;
    height: unset !important;
    max-width: 150px;
}

.conversation-settings-groups input[type="checkbox"] {
    margin-top: 5px;
    width: 18px !important;
    height: 18px !important;
}

.conversation-settings-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    border: 1px solid lightgray;
    border-radius: 5px;
    padding: 5px 10px;
    background-color: white;
}

.voice-dropdown-container {
    position: relative;
}

.voice-dropdown-toggle, .voice-dropdown-toggle:hover, .voice-dropdown-toggle:focus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 10px;
    border: 1px solid lightgray;
    border-radius: 5px;
    font-size: 16px;
    background-color: white;
    color: black;
    font-weight: 500;
    line-height: 1.5;
}

.voice-dropdown-text {
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
}

.voice-dropdown-arrow {
    transition: transform 0.2s ease;
    margin-left: 8px;
}

.voice-dropdown-toggle.active .voice-dropdown-arrow {
    transform: rotate(180deg);
}

.voice-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid lightgray;
    border-radius: 5px;
    z-index: 1000;
    max-height: 200px;
    width: fit-content;
    overflow-y: auto;
}

.voice-dropdown-menu.show {
    display: block;
}

.voice-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 16px;
    gap: 5px;
    line-height: 1.5;
    white-space: nowrap;
}

.voice-dropdown-item:hover {
    background-color: lightgray;
}

.voice-dropdown-item.selected {
    background-color: #e3f2fd;
    color: #1976d2;
}

.voice-dropdown-item span {
    flex: 1;
    text-align: left;
}

.voice-play-button, .voice-play-button:hover, .voice-play-button:focus {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border: none;
    border-radius: 50%;
    background-color: black;
    width: 26px;
    height: 26px;
}

.avatar-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.avatar-popup-container {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.avatar-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}

.avatar-popup-close, .avatar-popup-close:hover, .avatar-popup-close:focus {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: black;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.avatar-popup-content {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.avatar-search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.avatar-search-container input, .avatar-search-container input:focus {
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    border: 1px solid lightgray;
    width: 100%;
    max-width: 100%;
}

.avatar-search-container button {
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
}

#avatar-search-clear-button {
    background-color: rgb(255, 100, 44);
    font-size: 12px;
}

.avatar-item-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.avatar-item {
    display: flex;
    flex-direction: column;
    border: 1px solid lightgray;
    width: calc(33.33% - 10px);
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.avatar-item:hover {
    transform: scale(1.01);
}

.avatar-item.selected {
    border-color: #007cba;
    background-color: #f0f8ff;
}

.avatar-item-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 5px;
}

.avatar-item-name {
    font-weight: bold;
    font-size: 15px;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 10px;
}

.avatar-item-source {
    font-size: 10px;
    line-height: 1.5;
}

.avatar-item-source a {
    color: rgb(80, 80, 80);
    text-decoration: none;
}

.avatar-item-source a:hover {
    text-decoration: underline;
}

.avatar-item-list-navigation {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.page-numbers {
    background-color: white;
    border: 1px solid lightgray;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 14px;
}

.total-avatar-count {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.avatar-dropdown-container {
    position: relative;
}

.avatar-dropdown-toggle, .avatar-dropdown-toggle:hover, .avatar-dropdown-toggle:focus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 10px;
    border: 1px solid lightgray;
    border-radius: 5px;
    font-size: 16px;
    background-color: white;
    color: black;
    font-weight: 500;
    line-height: 1.5;
}

.avatar-dropdown-text {
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
}

.avatar-dropdown-arrow {
    transition: transform 0.2s ease;
    margin-left: 8px;
}

.avatar-dropdown-toggle.active .avatar-dropdown-arrow {
    transform: rotate(180deg);
}

.chatbot-creator-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

.chatbot-creator-wrapper {
    text-align: center;
    border: 1px solid gray;
    border-radius: 20px;
    max-width: 768px;
    padding: 20px;
}

.other-content-container {
    width: 100%;
    padding: 20px 0px 20px 0px;
}

.other-chatbots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.other-chatbots h2 {
    font-size: 15px;
    width: 100%;
}

.other-chatbot {
    border: 1px solid lightgray;
    border-radius: 5px;
    width: calc(20% - 12.5px);
    padding: 10px;
    text-align: center;
}

.other-chatbot h3 {
    font-size: 16px;
}

.other-chatbot .post-excerpt p {
    line-height: 1.6;
    font-size: 13px;
    margin-bottom: 0px;
}

.other-chatbot .post-thumbnail img {
    border-radius: 5px;
    margin-bottom: 5px;
}

.other-chatbots-see-all {
    width: 100%;
    font-weight: bold;
    line-height: 1;
    font-size: 16px;
}

.bookmark-notice {
    display: none;
    width: 100%;
    background-color: lightyellow;
    border-radius: 10px;
    text-align: center;
    padding: 10px;
    font-style: italic;
    font-weight: bold;
    color: red;
}

.spinner {
    display: block;
    width: 30px;
    height: 30px;
    border: 8px solid lightgray;
    border-radius: 50%;
    border-top: 8px solid #3498db;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media screen and (max-width: 768px) {
    .entry-article {
        display: block;
    }

    .entry-thumbnail {
        width: 100%;
    }

    .entry-content {
        width: 100%;
    }

    .chat-section {
        width: 100%;
        flex-wrap: wrap;
        height: unset;
    }

    .chat-container {
        height: 65vh;
    }

    .avatar-item {
        width: 100%;
    }

    .chatbot-disclaimer {
        width: 100%;
    }

    .user-voice-input-wrapper {
        padding: 10px 15px;
    }

    #user-audio-message-wrapper audio {
        width: 75%;
    }

    .other-chatbot {
        width: 100%;
    }
}