h1 {
    margin-top: 5px;
    margin-bottom: 5px;
}

#history-link-wrap {
    margin-top: 20px;
    margin-left: 10px;
}

#chot_wrapper {
    width: 100%;
    height: calc(100% - 48px);
    /* max-width: 1100px; */
    display: flex;
    /* margin: 0 auto; */
    justify-content: space-between;
}

.main-content {
    padding-top: 37.1%;
    margin-bottom: 20px;
    background: #9e9e9e;
}

.chatcreat {
    /* padding: 20px 0.91% 60px 0; */
    width: 150px;
}

.chatcreat p {
    /* white-space: pre-wrap; */
}

#history-wrap {
    overflow-x: hidden;
    overflow-y: scroll;
    /* -webkit-overflow-scrolling: touch; */
}

#history-wrap::-webkit-scrollbar {
    width: 7px;
}

#history-wrap::-webkit-scrollbar-thumb {
    background-color: rgb(102, 102, 102);
}

#chat-title,
#newchat-button {
    display: block;
    margin: 5px;
}

#chat-title {
    width: 80px;
}

.chat-name {
    font-size: 10px;
}

.chat-body {
    padding: 10px;
    color: black;
    height: 100%;
    width: auto;
}


#chot_field {
    padding: 7px 0 7px;
    box-sizing: border-box;
    background-color: #EEE;
    margin: 0 auto;
    background-color: #dcdcdc;
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    height: 65%;
}

#chot_field::-webkit-scrollbar {
    width: 10px;
}

#chot_field::-webkit-scrollbar-thumb {
    background-color: rgb(102, 102, 102);
}

#loading {
    margin-left: 20px;
}

#input-field {
    padding: 5px;
    width: 100%;
    height: 25%;
    display: flex;
    box-sizing: border-box;
    border-bottom: 1px solid #777;
    border-left: 1px solid #777;
    border-right: 1px solid #777;
    background-color: #FFF;
    margin: 0 auto;
    align-items: center;
    justify-content: space-around;
}

#chat_input-field {
    margin-top: 5px;
    padding: 5px;
    width: 100%;
    height: 25%;
    display: flex;
    box-sizing: border-box;
    border-bottom: 1px solid #777;
    border-left: 1px solid #777;
    border-right: 1px solid #777;
    background-color: #FFF;
    align-items: center;
    justify-content: space-around;
}

#chat-prefix-input {
    width: 95%;
    display: block;
    font-size: 14px;
    color: #000;
    box-sizing: border-box;
    border: 1px solid #777;
    border-radius: 4px;
    padding-left: 10px;
    margin: auto 10px;
}

#chat-input {
    /* height: 80%; */
    width: 95%;
    display: block;
    font-size: 14px;
    color: #000;
    box-sizing: border-box;
    border: 1px solid #777;
    border-radius: 4px;
    padding-left: 10px;
    margin: auto 10px;
}

#chat-input:focus {
    border: 1.3px solid #6495ed;
    outline: 0;
}

#helpme-button {
    cursor: pointer;
    height: 25px;
    width: 100%;
    margin: auto;
    margin-bottom: 10px;
    margin-right: 3%;
    font-size: 15px;
    background: #6495ed;
    color: white;
    display: block;
    border: none;
    box-sizing: border-box;
    border-radius: 6.5px;
}

.chat-button {
    cursor: pointer;
    height: 25px;
    width: 100%;
    margin: auto;
    margin: 10px 5px;
    padding: 3px 5px;
    font-size: 15px;
    background: #6495ed;
    color: white;
    display: block;
    border: none;
    box-sizing: border-box;
    border-radius: 6.5px;
}


.chat-button:hover,
#chot_btn:hover,
#error_button:hover,
#specification_btn:hover {
    outline: 0;
    background: rgb(55, 87, 146);
    transition: 0.5s;
}

.text_area {
    display: flex;
    align-items: flex-end;
}

#chot_btn {
    cursor: pointer;
    height: 25px;
    margin: auto;
    margin: 10px 5px;
    padding: 3px 5px;
    font-size: 15px;
    background: #6495ed;
    color: white;
    display: block;
    border: none;
    box-sizing: border-box;
    border-radius: 6.5px;
}

.chot-btn-wrap {
    display: flex;
    margin-right: 0;
}

#chat-ul {
    padding: 0;
    list-style: none;
}

#chat-ul>li {
    position: relative;
    display: block;
    width: 100%;
    margin-top: 7px;
    word-wrap: break-word;
}

#chat-ul>li>div {
    display: inline-block;
    box-sizing: border-box;
    color: #000;
    border-radius: 6px;
    min-height: 23px;
    max-width: 90%;
    padding: 7px 13px;
    font-size: 15px;
    line-height: 1.4em;
}

.chat-right {
    margin-right: 15px;
    background: #ddffff;
    text-align: left;
}

.chat-right::before {
    display: block;
    position: absolute;
    content: "";
    height: 10px;
    width: 10px;
    top: 50%;
    right: 0;
    margin-right: 7px;
    -webkit-transform: rotate(45deg) skew(-10deg, -10deg);
    -moz-transform: rotate(45deg) skew(-10deg, -10deg);
    -o-transform: Trotate(45deg) skew(-10deg, -10deg);
    -ms-transform: rotate(45deg) skew(-10deg, -10deg);
    transform-origin: 100% 0%;
    background: #ddffff;
}

.chat-left {
    margin-left: 15px;
    background: #FFF;
}

.chat-left li {
    margin-left: 15px;
}

.chat-left::before {
    position: absolute;
    content: "";
    height: 10px;
    width: 10px;
    display: block;
    top: 20%;
    margin-left: -14px;
    -webkit-transform: rotate(45deg) skew(-10deg, -10deg);
    -moz-transform: rotate(45deg) skew(-10deg, -10deg);
    -o-transform: rotate(45deg) skew(-10deg, -10deg);
    -ms-transform: rotate(45deg) skew(-10deg, -10deg);
    transform-origin: 100% 0%;
    background: #FFF;
}

#chot_wrapper pre {
    white-space: pre-wrap;
    margin: 0;
}

.chat-left-wrap {
    text-align: left;
}

.chat-right-wrap {
    text-align: right;
}

#continue {
    display: none;
    margin-top: 5px;
}

/* コードブロック */
.chat-left pre {
    background-color: #f5f5f5;
}

.chot_copyBtn {
    border: none;
    background: #eee;
    border-radius: 10px;
    justify-content: space-around;
    color: #313131;
    font-size: 10px;
    cursor: pointer;
    padding: 5px;
    margin-bottom: 5px;
    float: right;
}

.chot_copyBtn:hover {
    background: #313131;
    color: #eee;
}

.chot_copyBtn+* {
    margin-top: 25px;
    float: none;
}

/* 評価ボタン */
.evaluation {
    margin-top: 0;
    padding: 3px 13px;
    display: block !important;
}

.good_img,
.bad_img,
.question_img {
    width: 20px;
    margin-right: 10px;
    margin-top: 7px;
    filter: grayscale(100%);
}

/* gptバージョン・モードの選択 */
.select-wrap {
    display: flex;
    margin-bottom: 5px;
}

#gptversion {
    margin-right: 10px;
}

/* Kenya用 */
#chot_window {
    min-height: 600px;
    min-width: 400px;
}

#chot_window ul {
    padding-inline-start: 0;
}

#chot_window pre {
    white-space: pre-wrap;
    margin: 0;
}

/* icon css */
.chot_icon_wrap {
    /* position: fixed;
    right: 10px;
    bottom: 30px; */
}

.chot_icon_img_wrap {
    opacity: 0.7;
    /* position: fixed;
    right: 20px;
    bottom: 30px; */
    transition: 1s;
    cursor: pointer;
}

.chot_icon_img_wrap:hover {
    opacity: 1;
}

.chot_msg {
    /* position: fixed;
    bottom: 130px;
    right: 10px; */
    width: auto;
    max-width: 200px;
    height: auto;
    display: inline-block;
    color: #4e4e4e;
    font-weight: bold;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.24);
    text-align: left;
    padding: 12px !important;
    font-size: 12px;
    line-height: 1.3;
    word-break: break-all;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    z-index: 5;
}

#chot_toggle_btn {
    border-radius: 50%;
    width: 25px;
    height: 25px;
    padding: 0;
    border: none;
    background-color: #2c3e50;
    color: #fff;
    cursor: pointer;
}

.input-field textarea {
    max-width: 95%;
    min-width: 85%;
    min-height: 100px;
}

/* 仕様のポップアップ */
.error_modal {
    display: block;
    max-width: 100%;
    position: fixed;
    z-index: 100;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: white;
    box-shadow: 0 0 60px 10px rgba(0, 0, 0, 0.9);
}

.error_closed {
    display: none;
}

.error_modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    background: rgba(0, 0, 0, 0.6);
}

#error_modal_contents {
    padding: 0 20px 20px 20px;
}

.task-wrap {
    margin: 0 20px;
    height: 90%;
}

.task-contents {
    padding: 7px 0 7px;
    box-sizing: border-box;
    margin: 0 auto;
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    height: 90%;
}

.error_modal .error_close-button {
    position: absolute;
    z-index: 1;
    top: 10px;
    right: 20px;
    font-size: 1rem;
    cursor: pointer;
}

#modal_details {
    width: 85%;
}

.specification_btn {
    cursor: pointer;
    height: 25px;
    font-size: 15px;
    background: #6495ed;
    color: white;
    border: none;
    box-sizing: border-box;
    border-radius: 6.5px;
    margin-left: 10px;
    margin-top: 10px;
}

.specification_btn:focus {
    outline: 0;
    background: #6495ed;
}

/* .checkbox-wrap input[type=checkbox] {
    transform: scale(0.9);
}

.checkbox-wrap label {
    font-size: 13px;
} */

#chot_specification_window {
    z-index: 100;
    visibility: hidden;
    border: 1px solid black;
    position: absolute;
    background-color: white;
    width: 100%;
    margin: 0 auto;
    max-width: 700px;
    max-height: 650px !important;
    min-height: 450px;
    /* resize: both; */
    /* overflow: scroll; */
}

#chot_specification_bar {
    font-size: 20px;
    font-weight: bold;
    background-color: lightgray;
    border: 1px solid black;
    width: 100%;
    height: 32px;
    pointer-events: none;
}

#specification_btn,
#error_button {
    cursor: pointer;
    height: 25px;
    width: 30%;
    margin: auto;
    margin-top: 10px;
    font-size: 15px;
    background: #6495ed;
    color: white;
    display: block;
    border: none;
    box-sizing: border-box;
    border-radius: 6.5px;
}

#error_button:focus {
    outline: 0;
    background: #6495ed;
}

/* 返答待ち */
.chot_chars {
    display: flex;
    width: 96px;
    align-item: center;
    justify-content: space-between;
}

.chot_jump-long1,
.chot_jump-long2,
.chot_jump-long3,
.chot_jump-long4,
.chot_jump-long5,
.chot_jump-long6 {
    margin-right: 2px;
}

@keyframes chot_jump-long {
    0% {
        transform: translate(0, 0px);
    }

    90% {
        transform: translate(0, 0px);
    }

    100% {
        transform: translate(0, -8px);
    }
}

.chot_jump-long1 {
    animation: chot_jump-long 1.5s linear 0s infinite alternate;
}

.chot_jump-long2 {
    animation: chot_jump-long 1.5s linear 0.15s infinite alternate;
}

.chot_jump-long3 {
    animation: chot_jump-long 1.5s linear 0.25s infinite alternate;
}

.chot_jump-long4 {
    animation: chot_jump-long 1.5s linear 0.35s infinite alternate;
}

.chot_jump-long5 {
    animation: chot_jump-long 1.5s linear 0.45s infinite alternate;
}

.chot_jump-long6 {
    animation: chot_jump-long 1.5s linear 0.55s infinite alternate;
}

#chot_specification_window .ui-resizable-handle {
    position: relative !important;
    float: right !important;
}

.code_wrapper {
    display: none;
}

.chot_copyBtn {
    display: none;
}