body {
    margin: 0;
    padding: 0;
    height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
}

#app {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#mainArea {
    /* display: flex; */
    /* flex-direction: column; */
    width: 100%;
    flex: 1;
    overflow: auto;
    /* align-items: stretch; */
}

#inputContainer {
    width: 100%;
    padding: 10px;
    background-color: #ffffff;
    box-sizing: border-box;
    border-top: 1px solid #ccc;
}

textarea {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    margin-bottom: 5px;
    font-size: 16px;
    /* フォントサイズを大きくしました */
    border-radius: 5px;
    border: 1px solid #ccc;
    resize: none;
}

#responses {
    width: 100%;
    overflow-y: auto;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.user-message, .assistant-message {
    margin: 10px 0;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 16px;
    /* フォントサイズを大きくしました */
    line-height: 1.6;
    max-width: 80%;
    position: relative;
    display: inline-block;
    word-wrap: break-word;
    white-space: pre-wrap;
    /* 改行を適切に表示するため追加 */
}

.relation {
    width: 80vw;
}

.relation iframe {
    width: 100%;
    height: 50vh;
    border:none;
}

.user-message {
    background-color: #d1ecf1;
    align-self: flex-end;
    color: #0c5460;
    text-align: right;
}

.assistant-message {
    background-color: #f8d7da;
    /*background-color: #cae3c8;*/
    align-self: flex-start;
    color: #721c24;
    /*background-color: #1d5209;*/
    text-align: left;
}

.options-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    margin: 10px 0;
    gap: 8px;
}

.options-container button {
    max-width: 85vw;
    text-align: justify;
    padding: 10px;
    margin-bottom: 5px;
    font-size: 16px;
    word-wrap: break-word;
    /* フォントサイズを大きくしました */
    border: none;
    border-radius: 5px;
    background-color: #5a6268;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.options-container h3 {
    margin: 0;
    text-align: center;
    word-wrap: break-word;
}

.options-container button:hover {
    background-color: #343a40;
}

.source_link_area {
    display: flex;
    gap: 8px;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
}

.source_link_area a {
    display: block;
    padding: 8px;
    background-color: #f9f9f9;
    text-decoration: none;
    width: 90%;
    border-radius: 8px;
    border: 1px solid #d0d0d0; 
}

.source_title {
    margin: 0px;
    color: #454545;
}

.description {
    color: #656565;
    font-size: 14px;
}

.domain {
    font-size: 13px;
    color: #656565;
}
