/*
 * Watson Q&A Cartridge
 * Licensed Materials - Property of IBM
 * IPSC : 6949-62W
 * (C) Copyright IBM Japan, Ltd. 2016 All Rights Reserved.
 */
 body {
    height: 100%;
    margin: 0;
    overflow: hidden;
 }

 .baselayout {
 	height: 100%;
 	margin: 0;
 }

 .navbar {
 	background: #404041;
 	position: relative;
	margin-bottom: 20px;

	background-image: url('/icons/cloud.svg');
	background-repeat: no-repeat;
    background-position: right top;
    background-size: 75px auto;

	display: flex;
	justify-content: start;
	align-items: end;
 }
 .navbar h1 {
 	font-size: 120%;
 	color: #fff;
 	font-weight: bold;

 	padding: 5px 0 5px 30px;
	margin: 0;
}
.navbar h2 {
	font-size: 90%;
 	color: #fff;
 	font-weight: bold;

 	padding: 5px 0 5px 10px;
	margin: 0;
}
.container {
	height: 80%;
	display: flex;
	flex-flow: column;
}
#contents{
	height: calc(100% - 70px);
}

#chat-history {
	position: relative;
	flex: 1 1 auto;
}
#chat-wrapper {
	width: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	max-height: 100%;
	position: absolute;
}

@keyframes appear {
    from {opacity:0;}
    to {opacity:1;}
}
.chat-elem {
    animation-name: appear;
    animation-duration: 0.3s;
    opacity:1;
    margin-bottom:10px;
}

.chat-elem:before,
.chat-elem:after {
    content: "";
    display: table;
}
.chat-elem:after {
    clear: both;
}
.chat-elem-wordbreak {
	word-break: break-all;
}
.statement-answer .chat-statement {
	float: left;
}
.statement-question .chat-statement {
	float: right;
}

.chat-statement {
    -webkit-box-shadow: 3px 3px 5px -3px rgba(0,0,0,0.75);
	-moz-box-shadow: 3px 3px 5px -3px rgba(0,0,0,0.75);
	box-shadow: 3px 3px 5px -3px rgba(0,0,0,0.75);
	color: white;
	display: block;
	max-width: 80%;
	padding: 15px;
	min-height: 3.7em;
}
.chat-statement a {
	color: #075698;
	font-weight: bold;
	cursor: pointer;
	background-color: var(--bs-green);
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	padding: 0 2px;
}
.chat-statement .confidence {
	font-size: 90%;
	margin: 0 0 0 5px;
}
.form-inline .input-group .input-group-addon.btn-question {
	width: 32px;
	padding: 6px 15px;
}

/* comic bubbles */
.triangle-right::after {
	border-color: transparent #5596E6;
    border-width: 15px 25px 0 0;
    border-style: solid;
    content: "";
    display: block;
    position: absolute;
    width: 0;
    bottom: auto;
    left: -25px;
    top: 16px;
}
.triangle-right {
    background: #5596E6 none repeat scroll 0 0;
    border-radius: 10px;
    margin: 0 0 0 40px;
    padding: 15px;
    position: relative;
}

.triangle-left::after {
    border-style: solid;
    content: "";
    display: block;
    position: absolute;
    width: 0;
    border-color: transparent #075698;
    border-width: 15px 0 0 25px;
    bottom: auto;
    left: auto;
    right: -25px;
    top: 16px;
}
.triangle-left {
    background: #075698 none repeat scroll 0 0;
    border-radius: 10px;
    margin: 0 40px 0 0;
    padding: 15px;
    position: relative;
}

/* avatars */
.avatar {
	display: block;
	background-repeat: no-repeat;
	background-position: center center;
    background-size: 65% auto;
    width: 50px;
    height: 50px;
	margin: 3px 0 0 0;
	-webkit-box-shadow: 3px 3px 5px -3px rgba(0,0,0,0.75);
	-moz-box-shadow: 3px 3px 5px -3px rgba(0,0,0,0.75);
	box-shadow: 3px 3px 5px -3px rgba(0,0,0,0.75);
}

.avatarUser {
	-webkit-mask-image: url('/icons/avatar.svg');
	mask-image: url('/icons/avatar.svg');
	background-color: #075698;
	float:right;
}

.avatarWatson {
	-webkit-mask-image: url('/icons/cloud.svg');
	mask-image: url('/icons/cloud.svg');
	background-color: #5596E6;
	float:left;
}

/* input */
#input-form {
	flex: 0 1 70px;
	margin-top:5px;
}
#input-form .btn span {
	vertical-align:middle;
}
#input-form .glyphicon {
	font-size:250%;
}

/* feedback */
#feedback-form {
	margin:1px 0 -10px;
}
.modal {
	color: #333;
}
.modal select {
	width: 100%;
}
.modal-dialog {
	margin: 10% auto;
}
.modal-title {
	text-align: left;
}
#login {
	width:350px;
	margin: 0 auto;
}
#menu {
	margin-right: 35px;
	margin-left: auto;
}

.none {
    display: none !important;
}

.form-select {
	background-image: url('/icons/select.svg');
}