img {
  height: auto;
  max-width: 100%;
}

.fwt_sd_container
{
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;

  flex-wrap: wrap-reverse;
  flex-flow: row wrap;
  position: relative;

  max-width: 100%;
  background: #fff;
  box-shadow: 0 1px 1px 0 rgba(0,0,0,.06),0 2px 5px 0 rgba(0,0,0,0.2);
}
/* 0.06 */
 
 
.fwt_sd_container .fwt_sd_rightSide
{
  position: relative;
  flex-basis: 130px;
  flex-grow: 1;
  background: #fff;
  
  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}
.fwt_sd_container .fwt_sd_leftSide
{
  position: relative;
  flex-basis: 300px;
  flex-grow: 1;
  border-right: 1px solid rgba(0,0,0,0.2);

  display: flex;
  flex-direction: column;
  justify-content: stretch;
  background: #e5ddd5;
}

.fwt_sd_container .fwt_sd_leftSide::before
{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0.06;
}

.fwt_sd_img_header
{
  position: relative;
  height: 60px;
  background: #ededed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
}

.fwt_sd_message_p
{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fwt_sd_message_p b
{
  background: #06d755;
  color: #fff;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  font-size: 0.75em;
  justify-content: center;
  align-items: center;
}
.fwt_sd_imgText
{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.fwt_sd_imgText h4
{
  font-weight: 600;
  font-size: 1.02em;
  margin-left: 15px;
  line-height: 1.2em;
}
.fwt_sd_imgText h4 span 
{
  font-size: 0.8em;
  color: #555;
  font-weight: 400;
}
 
 
.fwt_sd_imgBox
{
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 50px;
  overflow-x: hidden;
  overflow-y: scroll;
}
.fwt_sd_message
{
  position: relative;
  display: flex;
  width: 100%;
  margin: 5px 0;
}
.fwt_sd_message p 
{
  position: relative;
  right: 0;
  text-align: right;
  max-width: 100%;
  padding: 12px;
  border-radius: 10px;
  text-align: right;
  font-size: 0.9em;
  background: #dcf8c6;
}
.fwt_sd_message p:first-child:before
{
  content: '';
  position: absolute;
  top: 0;
  right: -12px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg,#dcf8c6 0%,#dcf8c6 50%,transparent 50%,transparent 100%);
}
.fwt_sd_message p span 
{
  display: block;
  margin-top: 5px;
  font-size: 0.85em;
  opacity: 0.5;
}
 
 
.fwt_sd_message.my_message
{
  justify-content: flex-end;
}
 
 
.fwt_sd_message.fwt_sd_frnd_message
{
  justify-content: flex-start;
}

.fwt_sd_message.fwt_sd_frnd_message p 
{
  text-align: left;
  background: #fff;
}

.fwt_sd_message.fwt_sd_frnd_message p:first-child:before
{
  content: '';
  position: absolute;
  top: 0;
  left: -12px;
  width: 24px;
  height: 24px;
  background: linear-gradient(225deg,#fff 0%,#fff 50%,transparent 50%,transparent 100%);
}
 
.fwt_sd_input_label
{
  position: relative;
  padding: 15px;
  height: 20px;
  background: #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.fwt_sd_imgBox_textarea
{
  position: relative;
  padding: 4px;
  flex-basis: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  background: #f0f0f0;
}

.fwt_sd_imgBox_textarea textarea
{
  height: 140px;
}


.fwt_sd_imgBox_button
{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 4px;
  height: 80px;
  justify-content: center;
}


.fwt_sd_imgBox_button button
{
  position: relative;
  display: flex;
  border: none;
  padding: 16px 16px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  transition-duration: 0.4s;
  cursor: pointer;
  background-color: #4CAF50;
  color: white;
}


.fwt_sd_imgBox_input
{
  position: relative;
  flex-basis: 110px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  background: #f0f0f0;
}

.fwt_sd_content #seed
{
  position: relative;
  width: 50%;
  margin: 0 3px;
  padding: 3px 3px;
  border: none;
  outline: none;
  border-radius: 8px;
  background-color: white;
  font-size: 1em;
  display: inline;
}

.fwt_sd_content #randomNumber
{
  position: relative;
  width: 30%;
  margin: 0 3px;
  padding: 3px 3px;
  color: #ffffff;
  background-color: #397bf3;
  font-size: 12px;
  border: 1px solid #2d63c8;
  border-radius: 10px;
  cursor: pointer;
  display: inline;
}

.fwt_sd_tab{
  display: flex;
  flex-wrap: wrap;
}

.fwt_sd_tab>label {
  display: block;
  padding: 6px 8px;
  font-size: 12px;
  cursor: pointer;
  position: relative;
  color: #FFF;
  background: #4A83FD;
  border-radius: 0px;
  border-left: 1px solid rgba(0,0,0,0.2);
  margin-bottom: 0px;
  order:1;
}

.fwt_sd_tab .fwt_sd_content {
  display: none;
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  top: 0px;
  background: #303030;
  color: #DFDFDF;
  order: 2;
}

.fwt_sd_tab  #prompt,#negative-prompt {
  width: 100%;
  padding: 0px;
  height: 200px;
  min-height: 200px;
  background-color: white;
  overflow: auto;
}

.fwt_sd_tab  #fwt_sd_saved {
  width: 100%;
  padding: 4px;
  height: 200px;
  min-height: 200px;
  overflow: auto;
}

.fwt_sd_tab>input[type="radio"],
.div {
  display: none;
}

.fwt_sd_tab>input[type=radio]:checked + label {
  top: 0;
  background: #303030;
  color: #F5F5F5;
}

.fwt_sd_tab>input[type=radio]:checked + label + .fwt_sd_content {
  display: block;
  opacity: 1;
  transition: opacity 400ms ease-out;
}

.fwt_sd_modal {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.4rem;
  flex-basis: 300px;
  padding: 1.3rem;
  min-height: 250px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 15px;
  z-index: 2;
}

.fwt_sd_modal_header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  height:30px;
  padding: 20px;
  background-color:#18456b;
  color:white;
}
.fwt_sd_modal_title {
  display: flex;
  margin-top: -10px;
  font-size:16px;
}

.fwt_sd_modal_header .fwt_sd_modal_btn_close {
  margin-top: -0px;
  color:white;
  transform: translate(10px, -10px);
  background: #18456b;

}

.fwt_sd_modal_body {
  display: flex;
  flex-basis: 300px;
  flex-grow: 1;
  flex-direction: column;
  justify-content: flex-start;
  color:#888;
  padding: 5px 35px 20px;
}

.fwt_sd_modal_body pre{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  line-height: 1.55;
  border-radius: 4px;
  color: rgb(26, 27, 30);
  background-color: rgb(248, 249, 250);
  font-size: 12px;
  padding: 10px;
  margin: 0px;
  overflow: auto;
  white-space: normal;
  max-height: 150px;
}

.fwt_sd_modal_body textarea{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  line-height: 1.55;
  border-radius: 4px;
  color: rgb(26, 27, 30);
  background-color: rgb(248, 249, 250);
  font-size: 12px;
  padding: 10px;
  margin: 0px;
  overflow: auto;
  white-space: normal;
  max-height: 200px;
  height: 200px;
}

.fwt_sd_modal_footer {
  display: flex;
  flex-direction: row-reverse;
  padding: 15px;
  text-align: right;
  border-top: 1px solid #e5e5e5;
}

.fwt_sd_modal .flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fwt_sd_modal_body input {
  padding: 0.7rem 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 0.9em;
}

.fwt_sd_modal_body p {
  font-size: 0.9rem;
  color: #777;
  margin: 0.4rem 0 0.2rem;
}



.fwt_sd_btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  font-weight: 700;
  background-color: black;
  color: white;
  border-radius: 5px;
  text-align: center;
  font-size: 1em;
}

.fwt_sd_btn_open {
  position: absolute;
  bottom: 150px;
}

.fwt_sd_content ol {
	margin: 0;
	position: relative;
}

.fwt_sd_content ol::before {
	content: '';
	width: 0.5rem;
	position: absolute;
	top: 0;
	left: 8%;
	background: gray;
	z-index: -1;
}

.fwt_sd_content li {
	background: gray;
}

.fwt_sd_content li + li {
	margin-top: 1rem;
}

.fwt_sd_content ::marker {
	color: tomato;
}

.fwt_sd_content a {
	color: white;
}

.fwt_sd_note {
	font-family:Arial, Helvetica, sans-serif ;
  font:small-caption;
}


.fwt_sd_hidden {
  display: none;
}

/* scrollbar */
 
::-webkit-scrollbar {
  width: 5px;
}
 
/* Track */
::-webkit-scrollbar-track {
  background: transparent; 
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: #bbb; 
}