/*asdf*/


#content{
}


#content .input{
    width: 100%;
    display: inline-block;
}

.page-title-wrap{
    display: none;
}

.gpt-response-area{
    padding: 10px 0;
    margin-top: 30px;
    text-align: center;
	min-height:150px;
	position: relative;
}
.dark .gpt-response-area{
	/* background: rgb(60, 60, 60); */
}



#tokens{
    color: orange;
    font-weight: bold;
}

.shortcuts{
    display: none !important;
    transform: rotate(10deg);
}

.preface-button{
    margin: 0 3px;
    font-size: .9rem;
}

.preface-button.clear{
    background: #633e3e;
}


#bot-wrap{
    padding: 20px 0px;
    transition: .5s;
    /* overflow: hidden; */
	/* width: 200px; */
	overflow-y: auto;
	overflow-x: hidden;
	display: inline-block;
	vertical-align: top;
	width: 90px;
	height: 100%;
	max-height: calc( 100vh - 70px);
	/* margin-top: 10px; */
	/* position: relative; */
	position: sticky;
	z-index: 999;
	top: 0;
}



#bot-wrap .bot-profile{
	position: relative;
	cursor: pointer;
    transition: .3s;
    opacity: .7;
	margin-top: 0px;
	overflow: visible;
}

#bot-wrap .bot-profile:hover{
    transform: scale(1.05);
    opacity: .8;
}
#bot-wrap .bot-profile.make-new:hover{
	transform: none;
	opacity: 1;
}
#bot-wrap .bot-profile.active{
    transform: scale(1.1);
}
#bot-wrap .bot-profile.active{
    opacity: 1;
    cursor: initial;
	/* background: white; */
	z-index: 9;
}
#bot-wrap .bot-profile.active svg{
	background: white;
	border-radius: 10px;
}
#bot-wrap .bot-profile.active:hover{
    /* transform:  */
}

#active-chat-bot{
    background: radial-gradient(rgb(255 255 255 / 100%), transparent, transparent);
	width: 70px;
}
#active-chat-bot svg{
	margin-top: -20px;
}
#active-chat-bot path,
#bot-wrap .bot-profile.active path{
	fill: rgb(40, 40, 40);
}
.dark #active-chat-bot{
    background: radial-gradient(rgb(0 0 0 / 35%), transparent, transparent);
	/* background: lightgrey; */
	border-radius: 10px;
	margin-right: 10px;
}
.dark #active-chat-bot svg{
	background: lightgrey;
	border-radius: 5px;
}
#active-chat-bot .bot-name{
	color: rgb(40, 40, 40);
	display: inline-block;
}
#active-chat-bot.is-user{
	/* border: 1px solid grey; */
}
#active-chat-bot.is-system .bot-name{
	color: #6e036e;
}
.dark #active-chat-bot .bot-name{
	color: rgb(190, 190, 190);
}
.dark #active-chat-bot.is-system .bot-name{
	color: #dca3dc;
}
.dark #active-chat-bot.is-user{
	border: 0px solid black;
}
.dark #bot-wrap .bot-profile.active{
	/* background: lightgrey; */
}



.folder-section{
    position: relative;
}

div.folder-section[data-type="chat"] textarea{
    max-width: calc(100% - 105px);
    display: inline-block;
    vertical-align: top;
    margin-top: 10px;
	height: 40px;
	resize: none;
}
div.folder-section.expanded textarea{
	/* resize: initial; */
	height: 100px;
}
.folder-section .bot-profile{
    /* border: 2px solid red; */
    margin-right: 10px;
	vertical-align: top;
}
.bot-explain{
    top: -38px;
    font-size: .9rem;
    opacity: .6;
    position: absolute;
    right: 0px;
    max-width: 170px;
    /* width: 200px; */
}
div.folder-section[data-type="chat"] .bot-explain{
}
div.folder-section[data-type="completions"] input[type=range]{
    max-width: 50%;
}
div.folder-section[data-type="completions"] .button{
	margin-right: 5px;
}

#gpt-voice,
#audio-device{
	display: none;
}

div.folder-section[data-type="chat"] #gen-image,
div.folder-section[data-type="chat"] #audio-device,
div.folder-section[data-type="chat"] #gpt-submit,
div.folder-section[data-type="chat"] #gpt-clear,
div.folder-section[data-type="chat"] #gpt-voice{
	left: 90px;
	position: absolute;
	top: 70px;
	display: initial;
}

div.folder-section[data-type="directory"] #gpt-submit{
	margin-right: 10px;
}
#gen-image{
	display: none;
}
div.folder-section[data-type="chat"] #gen-image{
	display: initial;
	left: auto;
	right: 210px;
	top: 70px;
	width: 40px;
	height: 30px;
}
div.folder-section[data-type="chat"] #gpt-voice{
	left: auto;
	right:  75px;
}
div.folder-section[data-type="chat"] #audio-device{
	left: auto;
	right:  25px;
}
div.folder-section[data-type="chat"].expanded #gpt-submit{
	top: 125px;
}
div.folder-section[data-type="chat"].expanded #gpt-clear{
	top: 125px;
}
div.folder-section[data-type="chat"].expanded #gen-image,
div.folder-section[data-type="chat"].expanded #audio-device,
div.folder-section[data-type="chat"].expanded #gpt-voice{
	top: 125px;
}
div.folder-section[data-type="chat"] #gpt-clear{
	left: 160px;
	background: maroon;
	background: #cf9595;
	
}
.dark div.folder-section[data-type="chat"] #gpt-clear{
	background: #562f2f;
}
#audio-device svg{
	height: 20px;
	width: 20px;
}

.gpt-quota{
	position: absolute;
	right: 3px;
	top: -20px;
	opacity: .8;
}

/* .button.redo,
.button.apply */

.voice .button{
	margin-right: 10px;
	margin-bottom: 10px;
}
.voice .explain{
	text-align: center;
}
.voice .button.redo,
.voice .button.resume{
	color: orange;
}
.voice .button.disabled.redo,
.voice .button.disabled.resume{
	color: #a3a3a3;
}
.voice textarea.preview-voice{
	height: 200px;
}
.preview-voice.listening{
	border-bottom: 2px solid orange;
	animation: pulse linear 1s infinite;
}
.voice .button{
	padding: 40px;
}

#dummytext{
	position: fixed;
	height: 40px;
	bottom: 0px;
	right: 0px;
	color: black;

	/* match: */
	font-size: 1rem;
	padding: 8px;
	letter-spacing: 1px;

	/* hide: */
	z-index: -9;
	opacity: 0;
	pointer-events: 'none';
}

.speech-expl{
	height: 45px;
}

.folder-section[data-type=directory] .bot-profile{
	width: 90px;
}
.folder-section[data-type=directory] .bot-name{
	font-size: 1rem;
}
.folder-section[data-type=directory] .bot-created{
	font-size: .8rem;
}

#clear-listener{
	position: fixed;
	z-index: 99999;
	top: 0;
	right: 0;
	padding: 10px;
	/* display: inline-block; */
	font-size: 2rem;
	background: black;
	width: 50px;
	height: 50px;
	cursor: pointer;
	color: white;
}
.dark #clear-listener{
	color: white;
}

.completion .action{
	position: absolute;
	top: -10px;
	right: 0px;
	display: none;
	box-shadow: 0px 0px 5px rgba(0, 0, 0, .5);
}
.completion-togg.action{
	right: 65px;
}
.completion-spander.action{
	right: 165px;
}
.completion-spander.grow.action{
	right: 130px;
}
.completion-close.action{
	right: 0px;
}
.completion-link.action{
	right: 220px;
	width: 30px;
	height: 30px;
	padding: 3px 6px;
}

.completion:hover .button.action{
	display: inline-block;
}
.toggled.completion .completion-content{
	display: none;
}
.toggled.completion{
	opacity: .7;
	font-size: .8rem;
	padding-top: 5px;
	padding-bottom: 5px;
}

.link_modal input{
	margin-bottom: 0px
}

.link_modal .viz{
	position: relative;
	margin-bottom: 10px;
}

.solo-bot #bot-wrap,
.solo-bot .folder-tab[data-type='newsroom'],
.solo-bot .folder-tab[data-type='completions']{
	display: none;
}

@media screen and (max-width:800px){

	.completion-spander{
		display: none !important;
	}
	
	.completion-togg,
	.completion-close{
		display: inline-block;
	}

	.completion-content button,
	.completion-content select.code-theme-choice{
	    opacity: 1 !important;
		display: inline-block;
	}

	#audio-device,
	#gpt-voice{
		display: none !important;
	}
	
	#content{
		padding-top: 20px;
	}

	
	#bot-wrap{
		position: relative;
	    padding: 10px;
	    transition: .5s;
		overflow-x: auto;
	    /* overflow: hidden; */
		/* width: 200px; */
/*		overflow-y: auto;*/
		display: inline-block;
		vertical-align: top;
		width: 100%;
		height: 150px !important;
		white-space: nowrap
	}
	
	/* completions */
    div.folder-section[data-type="completions"] input[type=range]{
        max-width: 100%;
    }
	
	/* chat */
	/* input[type=text] */
    div.folder-section[data-type="chat"] textarea{
        max-width: calc( 100% - 130px);
        margin-top: 0px;
		display: inline-block;
		min-height: 50px;
		/* border: 2px solid blue; */
    }
	div.folder-section[data-type="chat"].expanded textarea{
		max-width: calc(100% - 100px);
	}
	
	.bot-explain{
		top: 75px;
		left: 90px;
	    max-width: 100px;
		/* border: 2px solid green; */
	}
	.expanded .bot-explain{
		top: 120px;
		left: 10px;
	    max-width: 150px;
		/* border: 2px solid red; */
	}
	div.folder-section[data-type="chat"] #gpt-submit{
		top: 78px;
		right: 10px;
		left: auto;
	}
	div.folder-section[data-type="chat"] #gen-image{
		right: 80px;
		left: auto;
		top: 78px;
	}
	div.folder-section[data-type="chat"].expanded #gpt-submit{
		right: 50px;
	}
	div.folder-section[data-type="chat"].expanded #gen-image{
		right: 140px;
		top: 125px;
	}
	div.folder-section[data-type="chat"] #gpt-clear{
		left: auto;
		right: 10px;
		top: 10px;
	}

    .shortcuts{
        display: inline-block;
        /* margin: 5px 0; */
        max-width: calc( 100% - 110px);
        vertical-align: top;
        margin-top: 25px;
    }
    .shortcuts .button{
        margin-top: 5px;
    }

	.gpt-response-area{
		padding: 10px 0;
	}
	.expanded .gpt-response-area{
		margin-top: 50px;
	}
	.completion{
		margin: 0;
	}

}

@keyframes pulse {
	25% {
		opacity: .5;
	}
	75% {
		opacity: 1;
	}

}
