/*Allgemein*/

html {
  font-size: 1rem;
  width: 100%;
  height: 100%;
}

body {
  	font-family: 'Quicksand', sans-serif;
	width: 100%;
    height: 100%;

	background-color: rgb(248,248,248);
}

body.debug {
    display: flex;
    justify-content: center;
    align-items: center;
}

body.toggleBackground{
	background-image:url(background.png); 
	background-position:center top;
}

/* Links sollen blau aber ohne Unterstrich dargestellt werden */
a {
	text-decoration: none;
	color: rgb(0, 163, 218);
}

a:hover {
	text-decoration: none;
	color: rgb(38, 144, 180);
}



/* Positionierung des Chatfensters*/

#container {
	margin: 0px;
	padding: 0px;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	padding-bottom: 50px;
	padding-right: 50px;
	right:0px;
	bottom: 0px;
	position: absolute;
	z-index: 2; 
}

#container.debug {
	position: relative;
	padding: 0;
	height: 100%;
	width: 100%;

	justify-content: center;
	align-items: center;
    flex-direction: column;
}


/*Chatfenster allgemein*/

/*Breite der Scrollbar im Chatfenster*/
::-webkit-scrollbar
{
  width: 4px;
}

/*Farbe und Form der Scrollbar im Chatfenster*/
::-webkit-scrollbar-track
{
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
}

/*Farbe und Form der Pfeile im Chatfenster*/
::-webkit-scrollbar-thumb
{
  background: rgba(0, 0, 0, 0.5);
  border-radius: 2px;
}

#chatwindow
{
	height: 600px; 
	width: 400px; 
	
	border-radius: 10px; 
	border-style: solid; 
	border-color: lightgray; 
	border-width: 1px;

	background-color: white; 
	box-shadow: 0 20px 40px rgba(0, 0, 0, .15);
	padding-top: 5px;
	z-index: 3;

	transition:
		width .5s 0s cubic-bezier(.1, 1.2, .3, 1),
		height .6s .15s cubic-bezier(.1, 1.2, .3, 1),
		border-radius .5s .00s ease-in-out,
		background-color .2s linear ;
}

#chatwindow.debug {
	height: 1000px;
	max-height: 80%;

	width: 800px;
	max-width: 90%;

	box-shadow: 0px 0px 20px rgb(0 0 0 / 10%);
}

#chatwindow.minimized {
	width: 65px;
	height: 65px;
	padding: 0px;
	border-radius: 30px; 

	/*background-color: rgb(31, 54, 121); */

	transition:
		width 2s .3s cubic-bezier(.1, 1.2, .3, 1),
		height .3s .00s ease-in-out,
		border-radius 1s .00s ease-in-out,
		background-color .5s linear .2s;
}


#debugButtonContainer {
	display: none;
	margin-top: 20px;
    font-size: 22px;

	align-items: center;

	width: 800px;
	max-width: 90%;
}

#debugButtonContainer.debug {
	display: flex;
}

.debugButton {
	border-width: 1px;
    border-color: rgb(0,0,0,0.2);
    border-radius: 15px;
	outline: none;

    background-color: white;
	color: gray;
    padding: 7px;
	
    font-size: 20px;

	margin-right: auto;
    margin-left: auto;
	margin-top: 3px;
}

#buildBotButton.debug {
	display: block;
}

.oobString {
	margin-top: 0px;
	padding: 10px;
    background: rgb(217 238 255);
    border-radius: 10px;
}



/* Nachricht-Formatierung */

.message-body {
	overflow-y: auto;
	height: calc(100% - 120px);
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 0, 0, 0.5) rgba(0, 0, 0, 0.1);
}

.message {
	white-space: pre-wrap;
	overflow-wrap: break-word;
}

.m-received > .message {
	border-radius: 10px 10px 10px 0px;
	background-color: rgb(245, 245, 245);
}

.m-sent > .message {
	border-radius: 10px 10px 0px 10px;
	background-color: #d7ffe5;
}

.m-received > .message, .m-sent > .message {
	display: inline-block;
	position: relative;
	padding: 10px;
	padding-bottom: 7px;
	margin: 3px ;
	min-width: 120px;
	max-width: 90%;
}

.msg-timestamp {
	position: absolute;
	right: 0;
	bottom: 0;
	margin-right: 5px;
}

.m-received > div > p, .m-sent > div > p {
	margin-bottom: 10px;
}

.messageText {
	margin-bottom: 10px;
}


/* Formatierung der Buttons zur Auswahl von Antworten*/

.buttons {
	max-width: 90%;
}

.choiceButton {
	margin: 3px;
	border-color: lightgray;
	color: rgb(100, 100, 100);
}

.choiceButton:focus {
	outline: none !important;
	box-shadow:none !important;
}

.choiceButton:active {
	outline: none !important;
	box-shadow:none !important;
}

/* Bilder die gerade auf den Server hochladen */
.sending {
	opacity: 40%;
}





/*Eingabefeld*/

#input-bar {
	border-top-style: none; 
	border-color: rgb(240, 240, 240); 
	border-width: 1px; 
	display: flex; 
	align-items: center; 
	justify-content: center;
}

#frmChat {
	width: 90%;
	margin-top: 10px;
}

#frmChat.debug {
width: 95%;
}

#sendButton {
	background-color: white;
}

#txtMessage {
	border-style: none;
	outline-style:none;
	box-shadow:none;
	border-color:transparent;
}

#txtMessage:active {
	border-style: none;
	outline-style:none;
	box-shadow:none;
	border-color:transparent;
}


/* Formatieren des input-Feldes zum Bilduploads */

.inputfile {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.inputfile + label {
    max-width: 80%;
    font-size: 1.25rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    display: inline-block;
    overflow: hidden;
	opacity: 60%;
}

.inputfile + label svg {
    width: 1em;
    height: 1em;
    vertical-align: middle;
    fill: currentColor;
    margin-top: -0.25em;
    margin-right: 0.25em;
}





/* Titel des Chatfensters*/

#contact-header {
	border-radius: 8px 8px 0px 0px;
	display: grid;
	grid-template-columns: [first] 20% auto [last] 20%;
	cursor: pointer;
}

#contact-header.debug {
	cursor: auto;
}

#contact-header.minimized {
	padding-top: 10px;
	display: flex;
	justify-content: center;
	vertical-align: middle;
}

#contact-name {
    height: 50px;
    line-height: 50px;
	color: gray;
	text-align: center;
	user-select: None;
}

#contact-name:hover {
    height: 50px;
    line-height: 50px;
	color: gray;
	text-align: center;
	cursor: pointer;
}

#contact-name.debug {
	cursor: auto;
}

.align-box {
	justify-content: center;
}

#versionString {
    margin-left: 10px;
    color: lightgray;
	display: none;
}

.debug #versionString {
	display: inline;
}


/* Pfeil zum auf- und zuklappen*/

.minimizeButton {
    outline: 0;
    border: none;
    background-color: transparent;
    opacity: 0.5;
	
	width: 30px;
	height: 30px;
	float: right;
	position: relative;

	margin-top: 10px;
	margin-right: 10px;

	transition: 
		transform .2s .3s ease-in-out;
}

.minimizeButton.debug {
	display: none;
}

	
.minimizeButton:before,
.minimizeButton:after{
	position: absolute;
	content: "";
	width: 10px;
	height: 2px;
	background-color: black;
	position: absolute;
	border-radius: 2px;
	
	top: 14px;
	left: 10px;
}

.minimizeButton:before{
	transform: translateX(-3px) rotate(45deg);
}

.minimizeButton:after{
	transform: translateX(3px) rotate(-45deg);
}

.minimizeButton:hover{
	opacity: 0.7;
	cursor: pointer;
}

.minimizeButton:focus {
	outline: none;
	box-shadow:none;
	border-color:transparent;
	border: none;
}

.minimizeButton.minimized{
	margin: 0px;
	margin-top: 10px;
	transform: rotate(180deg);
}