@charset "UTF-8";
/* hal.css : Andrew Grout 10/3/17 GDS-088A-71478 Javascript Ch3 Ex5 */ 

body {background-color:#000;
	background: url("../img/mesh.gif");
	text-align:center;	margin: 10px;
	margin: 0;
	padding 0;
	font-family: helvetica;
  	display: flex;
  	display: -webkit-flex;
  	flex-direction: column;
  	align-items: center;
}

#container {
	margin: 0;
	padding 0;
}

#conversation {background-color: #fff;
	margin: 0 auto 20px auto;
	width: 800px;
	height: 400px;
	border-radius: 16px;
	overflow-y: auto;
}

.noscript {
    color:red;    
    border: solid 1px #EEE;
	text-align:center;
	background-color: white;
	margin: 0 auto 20px auto;
	padding: 20px;
	width: 600px;
	height: 20px;
	border-radius: 16px;
	font-family: 'Orbitron', sans-serif;
	font-size: 1.5em;
	word-spacing: 0.5em;
}

textarea:focus, input:focus{
    outline: none;	/* remove border from input box */
}

h1 {height: 200px;
	width: 247px;
	text-indent: -9999px;
	color: orange;
	background: url("../img/hal_logo.jpg") no-repeat center center;
	margin: 10px 10px 0 120px;
	display: inline-block;
}

h2 {font-family: 'Orbitron', sans-serif;
	font-size: 1em;
	word-spacing: 0.5em;
	color: red;
	margin: 0;
	padding 0;
	display: inline-block;
	line-height: 150%;
  	text-align: left;
  	max-width: 300px;
	word-wrap: break-word;
	
	position: relative;
  	transform: translateY(40%);
}

h2 em {color: white;
	font-style: normal;
}

.middle > * {
	vertical-align: middle;
  	height: 200px;
  	padding 0;
  	margin 0;
}

#eye {
	height: 200px;
	width: 200px;
	margin-left: auto ;
  	margin-right: auto ;
	display: inline-block;
	background: url("../img/hal.gif") no-repeat;	
}

#eye:hover {
	background: url("../img/hal_0.gif?rnd=12334") no-repeat center center;
}

#inputBox {
	border: solid 1px #EEE;
	text-align:right;
	background-color: white;
	margin: 0 auto 20px auto;
	padding: 20px;
	width: 600px;
	height: 20px;
	border-radius: 16px;
	overflow-y: auto;
	font-family: helvetica;
	font-size: 1em;
}

#chat {
	border: solid 1px #EEE;
	display: flex;
	flex-direction: column;
	text-align:left;
	background-color: white;
	margin: 0 auto 20px auto;
	padding: 20px;
	width: 600px;
	height: 300px;
	border-radius: 16px;
	overflow-y: auto;
}

.hal, .human {
	display: flex;
	flex-direction: column;
	word-wrap: break-word;
	flex-shrink: 0;
}


.msg {
  border-radius: 20px;
  padding: 8px 15px;
  margin-top: 5px;
  margin-bottom: 5px;
  display: inline-block;
  max-width: 75%;
}


.hal {
  align-items: flex-start;
}

.hal .msg {
  margin-right: 25%;
  background-color: #ddd;
  position: relative;
}

.hal .msg:before {
  content: "";
  position: absolute;
  z-index: 0;
  bottom: 0;
  left: -7px;
  height: 20px;
  width: 20px;
  background: #ddd;
  border-bottom-right-radius: 15px;
}

.hal .msg:after {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: -10px;
  width: 10px;
  height: 20px;
  background: white;
  border-bottom-right-radius: 10px;
}

.human {
  align-items: flex-end;
}

.human .msg {
  color: white;
  margin-left: 25%;
  background: linear-gradient(to bottom, #00D0EA 0%, #0085D1 100%);
  background-attachment: fixed;
  position: relative;
}

.human .msg:before {
  content: "";
  position: absolute;
  z-index: 0;
  bottom: 0;
  right: -8px;
  height: 20px;
  width: 20px;
  background: linear-gradient(to bottom, #00D0EA 0%, #0085D1 100%);
  background-attachment: fixed;
  border-bottom-left-radius: 15px;
}

.human .msg:after {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: 0;
  right: -10px;
  width: 10px;
  height: 20px;
  background: white;
  border-bottom-left-radius: 10px;
}
