html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

:root {
}

html[data-theme='dark'] {
    --color-white: #fff;
    --color-main: #2c2d30;
    --color-main-fade: #2c2d3000;
    --color-secondary: #171717;
    --color-secondary-fade: #17171700;
    --color-button-hover: #242629;
    --color-button-hover-fade: #24262900;
	--color-user-icon: #E63B60;
    --color-user-icon-text: #fff;
    --color-groupings: #9ca6b5;
    --color-gpt-icon: #000000;
    --color-black: #1e1e1f;
    --color-user-menu-hover: #383b42;
    --color-text: #f5f9ff;
	--color-green: #5fc319;
	--color-red: #f22626;
    --color-secondary-p: #c9ccd1;
    --color-logo: #848484;
    --color-model-name: #ffffff;
    --color-assistant-bg: #3f4042;
    --color-assistant-text: #e1e6ed;
    --color-disclaimer: #d0d2e1;
    --color-border1: #fff;
    --color-user-menu-border: #34373a;
    --color-border2: #292d32;
    --color-user-message-border: #2f353d;
    --color-toggle-theme: #fff;
    --color-content-links: #0096FF;
    --color-newchat: #067FD0;
    --color-favorite: #FFEA00;
    --color-gpt-disabled: #aeaeae;
    --color-always-white: #fff;
    --color-always-black: #000;
}

html[data-theme='light'] {
	--color-white: #000;
	--color-main: #fff;
	--color-main-fade: #ffffff00;
	--color-secondary: #cecece;
	--color-secondary-fade: #f5f9ff00;
	--color-button-hover: #f5f9ff;
	--color-button-hover-fade: #f5f9ff00;
	--color-user-icon: #E63B60;
	--color-user-icon-text: #fff;
	--color-groupings: #2c2d30;
	--color-gpt-icon: #000000;
	--color-black: #fff;
	--color-user-menu-hover: #f5f9ff;
	--color-text: #2c2d30;
	--color-green: #5fc319;
	--color-red: #f22626;
	--color-secondary-p: #2c2d30;
	--color-logo: #2c2d30;
	--color-model-name: #2c2d30;
	--color-assistant-bg: #f5f9ff;
	--color-assistant-text: #2c2d30;
	--color-disclaimer: #2c2d30;
	--color-border1: #000;
	--color-user-menu-border: #f5f9ff;
	--color-border2: #f5f9ff;
	--color-user-message-border: #f5f9ff;
	--color-toggle-theme: #000;
    --color-content-links: #0000FF;
    --color-newchat: #067FD0;
    --color-favorite: #FF5733;
	--color-gpt-disabled: #bebebe;
	--color-always-white: #fff;
    --color-always-black: #000;
}

body {
    background: var(--color-main);
    display: flex;
    font-size: 1em;
    font-family: system-ui, sans-serif;
}

#toggle_theme {
	color: var(--color-toggle-theme);
	z-index: 10;  
	position: absolute;  
	right: 10px;  
	top: 20px;
	font-size: 1.2em;
	cursor: pointer;
}


/*Model select */
.model-select-wrapper {
	position: absolute;
	top: 10px;
	left: 270px;
	width: 160px;
	visibility: hidden;
	z-index: 2;
}
.model-select-wrapper.show {
	visibility: visible;
}
.model-select-wrapper.fullscreen {
	left: 310px;
	visibility: visible;
}
.model-select {
	display: flex;
	flex-direction: column;
}
.model-select__trigger {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 22px;
	height: 40px;
	line-height: 40px;
	cursor: pointer;
	color: var(--color-white);
	/*background: var(--color-secondary);*/
	border-radius: 10px;
}
.model-select__trigger:hover {
	background: var(--color-user-menu-hover);
}
.model-options {
	position: absolute;
	display: block;
	top: 100%;
	margin-top: 4px;
	left: 0;
	right: 0;
	transition: all 0.5s;
	opacity: 0;
	visibility: hidden;
	width: 320px;
	color: var(--color-white);
	background: var(--color-secondary);
	border-radius: 10px;
}
.model-select.open .model-options {
	opacity: 1;
	visibility: visible;
}
.model-option {
	position: relative;
	line-height: 50px;
	transition: all 0.5s;
	display: inline;
	float: left;
}
.model-option i {
	padding: 10px;
}
.model-option-item, .model-option-item-settings {
	font-size: 0.9em;
}
.model-option-item {
	display: block;
	height: 50px;
	cursor: pointer;
	text-align: left;
}
.model-option-item:hover {
	border-radius: 10px;
	background: var(--color-user-menu-hover);
}
.model-option-item-settings {
	padding: 10px;
}
.model-option-content {
	padding-top: 10px;
	display: inline;
}
.open .choice_model_selector {
	transform: rotate(180deg);
}
.model_title,.model_info {
	padding-left: 20px;
	display: block;
}
.model_title {
	padding-top: 10px;
	font-weight: bold;
}
.model_info {
	/*padding-left: 40px;*/
	font-size: 0.85em;
}
.temp-slider {
	-webkit-appearance: none;
	width: 100%;
	height: 15px;
	border-radius: 4px;  
	outline: none;
	-webkit-transition: .2s;
	transition: opacity .2s;
	cursor: pointer;
}

.temp-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%; 
	background: var(--color-newchat);
	cursor: pointer;
}

.temp-slider::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--color-newchat);
	cursor: pointer;
}
#modelTempGPT {
	display: inline;
}
/*Model select - END*/




.data_chart {
	max-width: 600px;
}
.data_chart canvas {
	width: 100%;
	height: 100%;
}
.data_sql_statement {
	margin-top: 50px;
	margin-bottom: 50px;
}
.data_sql_statement p {
	padding: 10px;
	border-radius: 10px;
}
.data_table {
   	max-width:100%;
   	overflow: hidden;
}
.query_cut {
	font-weight: bold;
	color: orange;
	margin-bottom: 20px;
	font-style: italic;
}
.query_cut i{
	margin-right: 20px;
}


#example_suggestions {
	text-align: center;
}
#example_suggestions button {
	display: inline;
	margin-top: 5px;
}

#gpt_task {
	color: var(--color-white);
}

#gpt_task_back {
	float: left;
	margin-left: 20px;
}
#gpt_task_name {
	font-size: 1.3em;
	font-weight: bold;
	margin-bottom: 20px;
}
#gpt_task_field {
	font-size: 0.8em;
	font-style: italic;
}
#gpt_task textarea {
	padding: 5px;
	resize: none;
	overflow: auto; 
	width: 100%;
	outline: none;
	font-size: 0.8em;
	margin-bottom: 20px;
	color: var(--color-white);
	background: rgba(255, 255, 255, 0);
}
#gpt_task textarea:focus {
    outline: none !important;
    box-shadow: 0 0 10px #719ECE;
}
#gpt_task textarea:required {
	outline: none;
}
#gpt_task textarea:required:invalid {
	border: 2px solid var(--color-newchat);
}
.gpt_task_field_title {
	font-size: 0.85em;
	font-weight: bold;
}
.task-id-item {
	display: flex;
	flex-direction: column; 
	margin: 0 auto;
	width: 100%;
	max-width: 850px;
}

#system_messages {
	color: var(--color-toggle-theme);
	z-index: 10;  
	position: absolute;  
	right: 60px;  
	top: 22px;
	font-size:0.8em;
	color: var(--color-red);
	display: none;
	cursor: pointer;
}

.copy_to_clipboard, .edit_content, .download_image, .make_favorite {
	font-size: 1.2em;
}

.content_edit_button button {
	float: left;
	margin-right: 10px;
	margin-top: 20px;
}

#show_error {
	text-align: center;
	color: var(--color-red);
}

#show_message {
	font-style: italic;
}

.float-top {
    display: flex;
    flex-direction: column;
    height: calc( 100% - 50px );
}

#sidebar {
    position: relative;
    left: 0;
    background: var(--color-secondary);
    width: 260px;
    padding: 8px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    transition: all 0.2s ease-in-out;
    height: 100%;
}

#sidebar.hidden {
    left: -260px;
    margin-right: -260px;
}

#sidebar.hidden .hide-sidebar {
    left: 53px;
    transform: rotate(180deg);
}

.conversation-button i {
	width: 20px;
}

.user_default_model {
	display: inline;
	float: right;
	padding-right: 0px;
	padding-top: 24px;
}
.user_default_model input {
	width: 14px;
	height: 14px;
        transform: translate(-50%, -50%);
	cursor: pointer;
	background-color: red;
}

button, .btn {
    display: block;
    background: inherit;
    border: 1px solid var(--color-border1);
    border-radius: 5px;
    color: var(--color-white);
    padding: 13px;
    box-sizing: border-box;
    text-align: left;
    cursor: pointer;
}

.sidebar-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.sidebar-controls button {
    padding: 12px 13px 12px 13px;
}

.hide-sidebar {
    position: relative;
    left: 0;
    top: 0;
    transition: all 0.2s ease-in-out;
    transform: rotate(0deg);
    background: var(--color-black);
}

.new-chat i {
    margin-right: 13px;
}

.new-chat {
    flex: 1;
	background: var(--color-newchat);
	color: white;
	border: 0;
}

.conversations, .conversations li, .conversations-list, .conversations-list li {
    list-style: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.conversations {
    width: 100%;
    overflow-y: auto;
    padding-right: 8px;
}

.conversations li {
    position: relative;
}

.conversations li > button {
    width: 100%;
    border: none;
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
}

.conversations li.active > button {
    background: var(--color-main);
}

.delete-button {
    display: none;
    position: absolute;
    right: 8px;
    top: 0;
}
.favorite-button {
    display: none;
    position: absolute;
    right: 36px;
    top: 0;
}
.favorite-button i {
	color: var(--color-favorite);
}

.shared_by {
	color: var(--color-white);
	font-size: 0.85em;
}

#shared_by_name {
	display: inline;
}

.shared-icon {
	display: inline;
	color: var(--color-newchat);
}

#share_user_table {
	margin: 5px;
	overflow-y: scroll;
	overflow-x: auto;
	height: 100%;
	height: -webkit-calc(100% - 34px);
	height:    -moz-calc(100% - 34px);
	height:         calc(100% - 34px);
}

#share_user_table td, tr {
	border: none;
}


#share_user_table input {
	margin: 0px;
	height: 18px;
	padding: 0px;
	margin-top: 5px;
}
#share_user_table i {
	padding: 0px;
}
#share_user_table input[type="checkbox"] {
	cursor: pointer;
}

#share-button {
	width: 20px;
	height: 20px;
	padding: 2px;
	border-radius: 5px;
	cursor: pointer;
}

.is_shared {
	background: var(--color-newchat);
	color: var(--color-always-white);
}

.is_not_shared {
	background: var(--color-always-white);
	color: var(--color-always-black);
}

.share_conversation {
	float: right;
	margin-right: 10px;
	position: relative;
}

.share_conversation_users {
	margin-top: 2px;
	position: absolute;
	opacity: 1;
	width: 440px;
	height: 180px;
	transition: all 0.2s ease-out;
	z-index: 1;
	right: 10px;
	border-radius: 8px;
	text-align: center;
	/*background: var(--color-user-menu-hover);*/
	background: var(--color-secondary);
	color: var(--color-white);
	box-shadow: rgba(0,0,0,0.2) 0 0 45px;
}

.share_conversation_users_menu {
	padding-top: 5px;
	padding-right: 15px;
}
.share_conversation_users_menu i {
	float: right;
	cursor: pointer;
}

.share_conversation_users a:hover, a:visited {
	cursor: pointer;
	color: var(--color-white);
}

.share_conversation_users.hidden, .saved_questions.hidden {
	opacity: 0;
	height: 0px;
	display: none;
}

.chat-history {
	margin-left: 12px;
	padding-top: 16px;
	color: var(--color);
	font-size: 0.7em;
	font-weight: bold;
}

.explore-gpts-logo {
	width: 100px;
	height: 100px;
    text-align: center;
}

.explore-gpts-logo img {
	border-radius: 50%;
	width: 100%;
	height: 100%;
}

.explore-gpts-button {
    flex: 1;
	border: 0;
	margin-right:-10px;
}
.explore-gpts-button .fa-caret-down{
	margin-left: 10px
}

.explore-gpts-button i {
    margin-right: 8px;
}

.explore-gpts-list {
	transition: all 0.2s ease-out;
	background: var(--color-user-menu-hover);
	padding-bottom: 0px;
}

.explore-gpts-list.hidden {
	transition: all 0.2s ease-in;
	opacity: 0;
	height: 0px;
	transition: all 0.0s;
	visibility: hidden;
}

.explore-gpts-item {
	width: 100%;
	border: 0px;
}

.explore-gpts-item:hover {
	background: var(--color-main);
}
.explore-gpts-item i {
	margin-right: 8px;
}
.explore-gpts-item.readonly {
	color: var(--color-gpt-disabled);;
	cursor: unset;
}

.explore-gpts-attachments {
	color: var(--color);
	margin-top: 20px;
	font-weight: bold;
}

.conversations li:hover .delete-button {
    display: flex;
}
.conversations li:hover .favorite-button {
    display: flex;
}

.fade {
    position: absolute;
    right: 0;
    top: 0;
    background: var(--color-user-icon);
    width: 40px;
    height: 100%;
    border-radius: 5px;
    background: transparent;
    background: linear-gradient(90deg, var(--color-secondary-fade) 0%, var(--color-secondary) 50%);
}

.conversations li.active .fade {
    background: linear-gradient(90deg, var(--color-main-fade) 0%, var(--color-main) 50%);
}

.conversations li:hover .fade {
    width: 80px;
    background: linear-gradient(90deg, var(--color-button-hover-fade) 0%, var(--color-button-hover) 30%);
}

.delete-button button, .favorite-button button {
    border: none;
    padding: 0;
    margin: 13px 1px 13px 1px;
    opacity: 0.8;
}

.delete-button button:hover, .favorite-button button:hover {
    background: none;
    opacity: 1;
}

.conversations li.grouping {
    color: var(--color-groupings);
    font-size: 0.7em;
    font-weight: bold;
    padding-left: 13px;
    margin-top: 12px;
    margin-bottom: 12px;
}

i.user-icon {
    color: var(--color-user-icon-text);
    background: var(--color-user-icon);
    display: inline-block;
    text-align: center;
    border-radius: 15px;
    font-style: normal;
	width: 30px;
    height: 30px;
    font-size: 15px;
    text-transform: uppercase;
    font-family: system-ui, sans-serif;
    line-height: 30px;
}

i.gpt.user-icon {
    line-height: 30px;
}

.user-label {
	margin-top: 2px;
	text-align: center;
	font-size:0.6em;
	color: var(--color-text);
}

.identity img {
	border-radius: 50%;
	width: 30px;
	height: 30px;
}

.identity i {
	margin-left: 2px;
}

.user-menu {
    position: relative;
    border-top: 1px solid var(--color-border1);
}

.user-menu button {
    width: 100%;
    border: none;
}

.user-menu .dots {
    position: relative;
    top: 11px;
    float: right;
    opacity: 0.8;
}

.user-menu > ul,
.user-menu li {
    list-style: none;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.user-menu > ul {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(-100%);
    background: var(--color-black);
    border-radius: 10px;
    width: 100%;
    transition: all 0.2s ease-in-out;
}

.user-menu > ul.show-animate {
    display: block;
}

.user-menu > ul.show {
    opacity: 1;
    margin-top: -8px;
}

.user-menu li button {
    border-radius: 0;
}

.user-menu li button:hover {
    background: var(--color-main);
}

.user-menu li:first-child button {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.user-menu li:last-child button {
    border-top: 1px solid var(--color-user-menu-border);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: transparent;
}

:hover::-webkit-scrollbar-thumb {
    background-color: var(--color-text);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-text);
    border-radius: 5px;
}

main {
    margin: 0 auto;
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: space-between;
    padding: 0 0 10px 0;
    box-sizing: border-box;
	width: -webkit-calc(100% - 260px);
	width:    -moz-calc(100% - 260px);
	width:         calc(100% - 260px);
}
main.fullscreen {
	width: 100%;
}


main .view {
	margin-top: 20px;
    display: none;
    flex-direction: column;
	overflow: hidden;
}

main .view.show {
    display: flex;
}

.passwordChangeButton {
	float: right;
	margin-right: 20px;
}

.passwordChangeCancel {
	float: left;
}

p.secondary {
    font-size: 1em;
    color: var(--color-secondary-p);
}

.logo {
    position: relative;
    z-index: 1;
    color: var(--color-logo);
    font-weight: bold;
    text-align: center;
    font-size: 2.3em;
}

.subtitle {
    position: relative;
    z-index: 1;
    color: var(--color-logo);
    font-weight: bold;
    text-align: center;
    font-size: 1.4em;
}

.about {
	color: var(--color-white);
	text-align: center;
    font-size: 0.8em;
    padding: 10px;
}

.howto {
	width: 340px;
	height: 140px;
	color: var(--color-white);
	margin: 20px auto;
	text-align: center;
    padding: 10px;
	margin-top: 80px;
}
.howto h2 {
	margin: 0;
}
.howto_gpt {
	margin-top:0px;
}

#howto_inner {
	line-height: 20px;
	margin: 0;
	margin-top: 5px;
}

.view.conversation-view {
    overflow-y: auto;
}

.model-name {
    background: var(--color-main);
    text-align: center;
    color: var(--color-model-name);
    border-bottom: 1px solid var(--color-border2);
    font-size: 0.85em;
}

#model_name:hover:before, #shared_by_name:hover:before {
    content: attr(data-tooltip);
    white-space: pre-wrap;
    position: absolute;
    padding: 5px 10px;
    margin-top: 15px;
    background: var(--color-model-name);
    color: var(--color-black);
    border-radius: 3px;
}

.user-setting-menu {
	background: var(--color-user-menu-hover);
}

.user-setting-menu i{
	margin-right: 8px;
	width: 20px;
	text-align: center;
}

.user-setting-menu-username {
	margin-right: 10px;
}

.conversation-name {
    text-align: center;
}

.conversation-name input {
	cursor: pointer;
	height: 30px;
	border: 0px solid;
    width: 90%;
    font-size: 1.2em;
    text-align: center;
    color: var(--color-model-name);
	background: var(--color-main);
}

#conversation-id {
	display: none;
}

#conversation-name-error {
	color: var(--color-red);
	font-style: italic;
	text-align: center;
}

#chatgpt-status {
	color: var(--color-text);
	font-style: italic;
	font-size: 0.7em;
	text-align: center;
}

.message {
    display: flex;
    gap: 20px;
    padding: 25px 60px 15px 10px;
    border-bottom: 1px solid var(--color-border2);
    font-size: 0.95em;
    position: relative;
}

.message .content {
    padding-top: 5px;
    padding-right: 20px;
    width: 100%;
}

.content .copy_to_clipboard {
	color: var(--color-always-white);
}

.content a:link, a:hover, a:visited, a:active {
	color:var(--color-content-links);
}

.content p {
	display: inline;
}

/*markdown images*/
.content img[alt=drawing], .content_text_raw img { 
	max-width: 70%; 
}

.ask_document {
	height: 70px;		
	padding-right: 40px;
	background: var(--color-secondary);
	border-radius: 10px;
	overflow: hidden;
    transition: all 0.8s;
    -webkit-transition: all 0.5s; /* Safari */
}
.ask_document:focus {
	height: 200px;
}

.ask_document.as_attachment {
	margin-top: 20px;
}

.ask_document_img {
	color: var(--color-toggle-theme);
	font-size: 36px;
	margin: 10px;
}
.ask_document_img .fa-file {
	cursor: pointer;
}
.ask_document_media {
	margin-top: 40px;
	margin-bottom: 40px;
}
.ask_document_media figure{
	margin: 0px;
}
.ask_document_media figure figcaption {
	font-style: italic;
	font-size: 0.8em;
}
.ask_document_media video{
	background: var(--color-white);
}

.ask_document_title {
	margin-left: 20px;
	color: var(--color-toggle-theme);
	overflow-wrap: break-word;
	font-size: 0.4em;
	display: inline;
}

.ask_document_content {
	padding: 10px;
	font-size: 0.8em;
	font-style: italic;
	text-align: center;
}

.user_content_message {
	overflow-wrap: break-word;
	width: -webkit-calc(100% - 40px);
    width:    -moz-calc(100% - 40px);
    width:         calc(100% - 40px);
}

.user_content_message *:focus {
    outline: none;
}

.user.message {
    color: var(--color-text);
}

.assistant.message, .system.message {
    background: var(--color-assistant-bg);
    color: var(--color-assistant-text);
}

.message-wrapper {
    position: relative;
}

#message::placeholder {
    color: var(--color-groupings);
}

.disclaimer, #gpt_disclaimer {
	clear: none;
	margin-top: 10px;
    color: var(--color-disclaimer);
    font-size: 0.7em;
    text-align: center;
}

.loginscreen, .passwordchangescreen {
	position: absolute;
    top: 20%;
    left: 50%;
    margin-left: -150px;
}

#passwordchangescreen_success {
    display: none;
    justify-content: center;
}

.form-signin {
    width: 320px;
    padding: 15px;
    margin: 0 auto;
    color: #017572;
}
.form-signin input {
 	width:300px;
}
.form-signin button {
 	text-align: center;
 	width: 100px;
}

.form-signin .form-signin-heading, .form-signin .checkbox {
    margin-bottom: 10px;
}
 
.passwordforget {
	cursor: pointer;
	height: 40px;
}
 
.form-signin-heading, .passwordforget {
	font-size: 0.9em;
	font-weight: bold;
	color: var(--color-red);
}
 
.form-signin .checkbox {
    font-weight: normal;
}
 
.form-signin .form-control {
    position: relative;
    height: auto;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 10px;
    font-size: 16px;
}
 
.form-signin .form-control:focus {
    z-index: 2;
}
 
.form-signin input[type="email"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    border-color:#017572;
}
 
.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
	border-color:#017572;
}
         
.message-input-bar, .saved_questions {
	margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    max-width: 850px;
    text-align: center;
    height: 60px;
    background: var(--color-user-menu-hover);
    border-radius: 13px;
    resize: none;
    font-family: inherit;
    font-size: 1em;
    color: var(--color-white);
    box-shadow: rgba(0,0,0,0.2) 0 0 45px;
    outline: none;
}

.message-input-bar {
	display: flex;
}

.saved_questions {
	height: 160px;
	margin-bottom: 5px;
}

.saved_questions.hidden {
	transition: all 0.2s ease-in;
}

.saved_questions_menu {
	padding: 4px;
	height: 30px;
	width: 100%;
}

.saved_questions_menu i {
	margin-right: 10px;
	margin-left: 5px;
	cursor: pointer;
	float: right;
}

.saved_questions.question_items_resize {
	height: 500px;
}

#saved-question-delete-button {
    color: white;
    font-size: 1.4em;
    border: none;
    color: var(--color-white);
    margin-top: 8px;
    cursor: pointer;
	float: left;
	padding-left: 12px;
}

#saved_questions_items {
	height: 100%;
	overflow-y: scroll;
	width: 100%;
	height: -webkit-calc(100% - 40px);
    height:    -moz-calc(100% - 40px);
    height:         calc(100% - 40px);
	
}
.saved_questions_item {
	padding: 5px;
	display: flex;
	border-bottom: 1px dotted var(--color-white);
}
#saved_questions_items_resize {
	float: right;
	position: relative;
	cursor: pointer;
	margin-right: 10px;
}
.saved_questions_item_content {
	width: 100%;
	margin-top: 5px;
	margin-left: 20px;
	text-align: left;
	cursor: pointer;
}
#saved-question-button, #send-button, #stop-button {
    float: right;
    margin-top: 4px;
    display: inline;
    color: white;
    font-size: 1.4em;
    border: none;
    color: var(--color-white);
}

#stop-button {
	display: none;
}

.input_message {
	padding: 10px;
    height: 100%;
	width: 100%;
    overflow: hidden;
}
.input_message.hidden {
	display: none;
}
.input_message textarea {
 	max-height: 100%;
    background: rgba(255, 255, 255, 0);
    border: 0;
    resize: none;
    font-family: inherit;
    font-size: 1em;
    color: var(--color-white);
    outline: none;
    width: 100%;
}

#selectfile {
    float: left;
    margin-top: 4px;
    display: inline;
    color: white;
    font-size: 1.4em;
    border: none;
    color: var(--color-white);
}
#selectfile:disabled {
    color: #666;
}

#file_loaded {
	border-radius: 5px;
	background: var(--color-secondary);
	display: inline-block;
	width: auto;
	text-align: left;
	margin-top: 10px;
	display: none;
}
#file_loaded i {
	padding:5px;
	font-size: 1.8em;
}
#file_loaded_name {
	position: relative;
	display: inline;
	margin-left: 10px;
	font-size: 0.8em;
	width: auto;
}
#undo_fileupload {
	display: inline;
	border: none;
}
#closeFileSelect {
    float:right;
    color: var(--color-white);
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.6em;
}         

p {
    margin: 0 0 1.5em 0;
}

button.copy, button.edit, button.share_conversation {
    border-radius: 5px;
    padding: 0;
    width: 20px;
    height: 20px;
    border: 0;
    position: absolute;
    top: 10px;
    right: 10px;
    text-align: center;
}


table {
    border-collapse: collapse;
    width: 100%;
}

th {
    background-color: #ddd;
    font-weight: bold;
    color: #474747;
}

td, th {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

pre {
    width: 100%;
}

pre code.hljs {
    white-space: pre-wrap;
    border-radius: 10px;
    font-size: 1.1em;
    margin: 5px;
    position: relative;
}

#cursor {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 4px;
    display: inline-block;
    animation: blink 0.8s infinite;
	background: var(--color-white);
}
@keyframes blink {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}


@media (max-width: 900px) {
	main .view {
		margin-top: 20px;
	}
    main {
        z-index: 1;
        width: 100%;
    }
	.about {
		margin-top:20px;
	}
    /*markdown images*/
	.content img[alt=drawing] { 
		width: 100%; 
	}
    #sidebar {
        position: fixed;
        top: 0;
        left: -260px;
        margin-right: -260px;
        z-index: 2;
    }
    #sidebar.hidden {
        left: 0;
        margin-right: 0;
    }
	.model-select-wrapper {
		left: 320px;
	}
    .model-select-wrapper.fullscreen {
		visibility: hidden;
    }
    .hide-sidebar {
        left: 53px;
        transform: rotate(180deg);
        padding: 15px 13px 11px 13px;
    }
    #sidebar.hidden .hide-sidebar {
        left: 0;
        transition: all 0.2s ease-in-out;
        transform: rotate(0deg);
    }
    .message {
        padding-right: 20px;
        gap: 15px;
    }
    #message {
        font-size: 0.9em;
    }
    .disclaimer {
        font-size: 0.5em;
        margin-top: 5px;
    }
}
@media (max-width: 500px) {
	#example_suggestions button {
		height: 20px;
		padding: 2px 6px 2px 6px;
	}
	.model-selector {
		margin-top: 0px;
	}
	.model-selector > button {
		width: 90px;
		font-size: 0.6em;	
	}
	.share_conversation_users {
		width: 370px;
	}
	.about {
		margin-top: 0px;
	}
	.howto {
		margin-top: 0px;
		margin-bottom: 10px;
	}
	.content_edit_button button {
		float: left;
		margin-right: 4px;
		margin-top: 20px;
		padding: 8px;
	}
	#saved-question-button {
		padding: 0px;
	}
	#selectfile { 
		padding-right: 0px;
	}
}


