.chatBoxWrapper ::-webkit-scrollbar-track {
  -webkit-box-shadow: none;
  background-color: transparent;
}
.chatBoxWrapper ::-webkit-scrollbar {
  width: 0.5em;
  background-color: transparent;
}
.chatBoxWrapper ::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.15); /*  rgba(255,255,255, 0.15); */
  border: none;
  border-radius: 0.1em;
}

/* *********************************************************************************** */


.chatIconWrapper {
  position: fixed;
  bottom: 5px; /* 8px; */
  right: 8px;
  width: 48px;
  height: 48px;
  border-radius: 0px; /* 50%; */
  background-color: transparent;
  text-align: center;
  z-index: 1000;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  /*box-shadow: 0px 2px 8px rgba(0,0,0,0.75);
  border: 2px solid rgba(255,255,255,0.2); */
}

.chatIcon {
  overflow: hidden;
}

.chatIcon a {
  flex: 0 0 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.chatIcon a img {
  height: 38px;
  width: auto;
  box-shadow: 0px 2px 8px rgba(0,0,0,0.75);
  opacity: 0.92;
}



/* *********************************************************************************** */
/* chat box interface */

#chatBoxWrapper {
  position: fixed;
  bottom: 16px;
  right: 64px;
  background-color: #FEFEFE;
  color: #222;
  z-index: 1000;
  font-family: 'Roboto Mono', monospace;
  font-size: 13px;
  line-height: 1.4em;
  border-radius: 0.25rem; /* 1rem; */
  overflow: hidden;
  box-shadow: 0px 2px 8px rgba(0,0,0,0.75);
  -webkit-transition: all 350ms ease; /* ease-in-out; */
  -moz-transition: all 350ms ease; /* ease-in-out; */
  -o-transition: all 350ms ease; /* ease-in-out; */
  transition: all 350ms ease; /* ease-in-out; */
}
/* fullscreen chatbox */
.fullSize {
  bottom: 0px !important; /* 16px; */
  right: 0px !important; /* 64px;   */
  min-width: 50vw;
  min-height: 100vh;
}
/* narrow chatbox */
.narrow {
  min-width: 380px; /* 300px; */
  min-height: 300px; /* 160px; /* 300px */
}

/* paragraphs */
.chatBoxWrapper p {
  margin: 0px;
  line-height: 1.35em;
}

.chatBoxInside {
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  display: flex;
}

/* *********************************************************************************** */
/* chat Top */
.chatBoxTopWrapper {
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  background: transparent; /* green; */
  z-index: 1001;
  /* border-bottom: 1px solid rgba(255,255,255,0.35); */
  border-bottom: 1px solid rgba(0,0,0,0.25);
}


/* chatBoxTop menu */
.chatBoxTopWrapper .right {
  display: block;
  float: right;
}

ul#chatBoxTopMenu {
  list-style-type: none;
  margin: 0px 2px 0px 0px;
  padding: 0px;
  display: block;
  float: right;
}
ul#chatBoxTopMenu li {
  list-style-type: none;
  display: block;
  float: left;
}
ul#chatBoxTopMenu li a {
  display: block;
  float: left;
  /* border-left: 1px solid rgba(255,255,255,0.1); */
  border-left: 1px solid rgba(0,0,0,0.075);
  padding: 0px 8px; /* 0.25rem 0.65rem; */
  height: 32px;
  text-decoration: none;
  content: "";
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
ul#chatBoxTopMenu li a img {
  display: block;
  height: 18px;
  width: auto;
  /* content: ""; */
  flex: 0 0 100%;
}

/* NY user isWriting wrapper */
#isWritingWrapper {
  display: block;
  float: right;
  /* background: pink; */
  height: 32px;
  text-align: right;
  min-width: 250px;
  overflow: hidden;
  padding-top: 10px;
  padding-right: 12px;
  font-size: 13px;
  line-height: 13px;
  opacity: 0.65;
}

#userPopisWritingWrapperupWrapper.hidden {
  display: none;
}




/* left */
.chatBoxTopWrapper .left {
  display: block;
  float: left;
}

/* left icon */
ul#chatBoxTopIcon {
  display: block;
  float: left;
  list-style-type: none;
  margin: 0px 1rem 0px 0px;
  padding: 0px;
}

ul#chatBoxTopIcon li {
  display: block;
  float: left;
  list-style-type: none;
}
ul#chatBoxTopIcon li a {
  display: flex;
  height: 32px;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0px 8px;
}

ul#chatBoxTopIcon li a img {
  flex: 0 0 100%;
  height: 11px; /* 12px; /* 18px; */
  opacity: .9;
}

/* name */
/*
.chatBoxTopWrapper .chatBoxTopWrapperName {
  display: block;
  float: left;
  border: 1px solid red;
}
*/


/* *********************************************************************************** */
/* chat input */


.chatBoxInputWrapper {
  width: 100%;
  position: absolute;
  bottom: 0px; /* fixes to bottom first */
  height: 36px; /* 3em; */
  padding: 0px; /* 4px; */
  overflow: hidden;
  /* border-top: 1px solid rgba(255,255,255,0.35); */
  border-top: 1px solid rgba(0,0,0,0.25);
}

/* exact same height of input and button 
https://stackoverflow.com/questions/6726135/css-exact-same-height-and-alignment-of-button-and-input-text-box */

.chatBoxInputWrapper fieldset {
  font-size: 1em;
  border: 0px;
  padding: 0px;
  margin: 0px;
  height: 36px;
}

.chatBoxInputWrapper label,
.chatBoxInputWrapper input,
.chatBoxInputWrapper button {
  font-family: monospace;
  font-size: inherit;
  /* padding-top: 3px; /* 0.2em; */
  /* padding-bottom: 4px; /* 0.2em; */ 
  padding: 0px;
  margin: 0px; /* 0.1em 0.2em; */
  height: 34px; /* 36px; */ /* minus border! */
  /* the following ensures they're all using the same box-model for rendering */
  -moz-box-sizing: content-box; /* or `border-box` */
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
}

.chatBoxInputWrapper input[type='text'] {
  float: left;
  border: 0px;
  /* border-right: 1px solid rgba(255,255,255,0.25); */
  border-right: 1px solid rgba(0,0,0,0.15); /* 0.25); */
  background: transparent;
  color: #222; /* white; */
  outline: none;
  border-radius: 0px; /* 0.25em; */
  padding-left: 8px;
  padding-right: 8px;
  margin-right: 0px;
  width: calc(100% - 67px); /* 100px; */
  font-family: 'Roboto Mono', monospace;
}

.chatBoxInputWrapper button {
  padding-left: 0px;
  padding-right: 0px;
  outline: none;
  border: 0px;
  border-radius: 0px; /* 0.25rem 0.25em 0.5em 0.25em; /* 0px 0.25em 0.25em 0px; */
  width: 50px;
  line-height: 1.4; /* 4px; */
  padding-bottom: 2px;
  border: 0px; /* 1px solid transparent; */
  outline: none;
  background-color: transparent;
  color: #222; /* white; */
  cursor: pointer;
  font-family: 'Roboto Mono', monospace;
}




/* ************************************************** */
/* user popup wrapper */
#userPopupWrapper {
  position: absolute;
  width: 100%;
  left: 0px;
  bottom: 36px;
  min-height: 2rem;
  border: 0px;
  border-top: 1px solid black;
  overflow: hidden;
  background: white;
}

#userPopupWrapper.hidden {
  display: none;
}

ul#userPopup {
  display: block;
  float: left;
  list-style-type: none;
  padding: 0.25rem 4px;
  margin: 0px;
}

ul#userPopup li {
  display: block;
  float: left;
}

ul#userPopup li a {
  display: block;
  float: left;
  padding: 0.1rem 4px;
}


/* span for inline input user */
#chatInput span.user {
  color: blue;
}



/* *********************************************************************************** */

/* conversation */
.chatBoxMainWrapper {
  width: 100%;
  height: auto;
  /* position: absolute; */
  margin-bottom: 36px;
  margin-top: 32px;
  line-height: 1.25em;
  overflow-y: scroll;
  overflow-x: hidden;
  padding: 12px 8px 0px 8px; /* bottom-margin is handled by conversation LIs */
}

.chatBoxMainWrapper ul {
  margin: 0px;
  padding: 0px;
  list-style-type: none;
  line-height: 1.4;
  /* border: 1px solid red; */
}
.chatBoxMainWrapper ul::after {
  content: "";
  display: table;
  clear: both;
}

.chatBoxMainWrapper ul li {
  box-shadow: 0px 2px 3px rgba(0,0,0,0.15);
}


/* ******************************************************* */
/* DEFAULT chat look, without a user class */
.chatBoxMainWrapper ul li {
  background: lightgreen;
  padding: 0.45em 0.65em;
  width: auto;
  border-radius: 0.5rem;
  display: block;
  float: left;
  margin-right: 8px;
  margin-left: 34px;
  margin-bottom: 12px;
  position: relative;
  width: calc(100% - 34px);
}

/* avatar */
.chatBoxMainWrapper ul li::before {
  position: absolute;
  top: 0;
  left: -34px;
  right: auto;
	width: 24px;
	height: 24px;
	border-radius: 50%;
  content: '';
  background-color: #666;
  background-image: none; /* url(../images/avatars/seagull.jpg); */
  background-size: cover;
  background-position: center;
  box-shadow: 0px 2px 3px rgba(0,0,0,0.15);
}

/* speech bubble */
.chatBoxMainWrapper ul li::after {
  position: absolute;
  border-left: 7px solid transparent;
  left: -7px;
  right: auto;
  top: 9px;
  content: " ";
  width: 0;
  height: 0;
	border-top: 7px solid lightblue;
}


/* ******************************************************* */
/* AaUOSBot */
.chatBoxMainWrapper ul li.aauos {
  background-color: lightseagreen;
}
.chatBoxMainWrapper ul li.aauos::before {
  background-image: url(../images/avatars/aauos.jpg);
}
.chatBoxMainWrapper ul li.aauos::after {
	border-top: 7px solid lightseagreen;
}

/* seagulls */
.chatBoxMainWrapper ul li.seagulls {
  background-color: lightskyblue;
}
.chatBoxMainWrapper ul li.seagulls::before {
  background-image: url(../images/avatars/seagull2.jpg);
}
.chatBoxMainWrapper ul li.seagulls::after {
	border-top: 7px solid lightskyblue;
}

/* grauballeMan */
.chatBoxMainWrapper ul li.grauballeMan {
  background-color: burlywood;
}
.chatBoxMainWrapper ul li.grauballeMan::before {
  background-image: url(../images/avatars/grauballe.jpg);
}
.chatBoxMainWrapper ul li.grauballeMan::after {
	border-top: 7px solid burlywood;
;
}

/* head of tourism */
.chatBoxMainWrapper ul li.headOfTourism {
  background-color: pink;
}
.chatBoxMainWrapper ul li.headOfTourism::before {
  background-image: url(../images/avatars/tourism.jpg);
}
.chatBoxMainWrapper ul li.headOfTourism::after {
	border-top: 7px solid pink;
}

/* urban developer */
.chatBoxMainWrapper ul li.urbanDeveloper {
  background-color: lightgreen;
}
.chatBoxMainWrapper ul li.urbanDeveloper::before {
  background-image: url(../images/avatars/UrbanDev_64x64.jpg);
}
.chatBoxMainWrapper ul li.urbanDeveloper::after {
	border-top: 7px solid lightgreen;
}

/* urban developer */
.chatBoxMainWrapper ul li.elo {
  background-color: lightgray;
}
.chatBoxMainWrapper ul li.elo::before {
  background-image: url(../images/avatars/elo.jpg);
}
.chatBoxMainWrapper ul li.elo::after {
	border-top: 7px solid lightgray;
}



/* ******************************************************* */
/* RIGHT side -avatar on the right side */
.chatBoxMainWrapper ul li.rightSide {
  float: right;
  margin-left: 8px;
  margin-right: 34px;  
}
.chatBoxMainWrapper ul li.rightSide::before {
  left: auto;
  right: -34px;
}
.chatBoxMainWrapper ul li.rightSide::after {
  border-right: 7px solid transparent;
  border-left: 0px;
  left: auto;
  right: -7px;
}


/* ******************************************************* */
/* You - on the left side! */
.chatBoxMainWrapper ul li.leftSide {
  float: left;
  margin-right: 8px;
  margin-left: 34px;
}

/* avatar */
.chatBoxMainWrapper ul li.leftSide::before {
  left: -34px;
  right: auto;
  /* background-image: url(../images/avatars/man_1.jpg); */
}

/* speech bubble */
.chatBoxMainWrapper ul li.leftSide::after {
  border-left: 7px solid transparent;
  border-right: 0px;
  left: -7px;
  right: auto;
}


/* LINKS formatting inside chat interface */
.chatBoxMainWrapper ul li a {
  text-decoration: underline;
  color: blue;
}

.chatBoxMainWrapper ul li a.mediaLink {
  text-decoration: underline;
  color: darkred;
}


/* ******************************************************************************* */
/* ******************************************************************************* */
/* ******************************************************************************* */

@media (min-width: 0px) {

  /* fullscreen chatbox */
  .fullSize {
    bottom: 0px !important; /* 16px; */
    right: 0px !important; /* 64px;   */
    min-width: 100vw;
    min-height: 50vh;
  }

}



/* ******************************************************************************* */

@media (min-width: 800px) {

  /* fullscreen chatbox */
  .fullSize {
    min-width: 50vw;
    min-height: 100vh;
  }

}






/* *********************************************************************************** */
/* chatGrid */

.chatGrid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* flex-start; /* center */
  align-items: flex-start; /* center; */
  list-style: none;
  margin: 0 auto;
  padding: 0px; /* 8px 8px; /*  0.5rem 1rem; */
}

.chatGrid-cell {
  flex: 1;
}




/* *********************************************************************************** */
/* *********************************************************************************** */
/* *********************************************************************************** */
/* *********************************************************************************** */
/* *********************************************************************************** */
/* FONTS */


/* roboto-mono-300 - latin */
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/roboto-mono-v12-latin-300.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/roboto-mono-v12-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/roboto-mono-v12-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/roboto-mono-v12-latin-300.woff') format('woff'), /* Modern Browsers */
       url('../fonts/roboto-mono-v12-latin-300.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/roboto-mono-v12-latin-300.svg#RobotoMono') format('svg'); /* Legacy iOS */
}
/* roboto-mono-regular - latin */
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/roboto-mono-v12-latin-regular.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/roboto-mono-v12-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/roboto-mono-v12-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/roboto-mono-v12-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../fonts/roboto-mono-v12-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/roboto-mono-v12-latin-regular.svg#RobotoMono') format('svg'); /* Legacy iOS */
}
/* roboto-mono-500 - latin */
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/roboto-mono-v12-latin-500.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/roboto-mono-v12-latin-500.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/roboto-mono-v12-latin-500.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/roboto-mono-v12-latin-500.woff') format('woff'), /* Modern Browsers */
       url('../fonts/roboto-mono-v12-latin-500.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/roboto-mono-v12-latin-500.svg#RobotoMono') format('svg'); /* Legacy iOS */
}
/* roboto-mono-600 - latin */
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/roboto-mono-v12-latin-600.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/roboto-mono-v12-latin-600.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/roboto-mono-v12-latin-600.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/roboto-mono-v12-latin-600.woff') format('woff'), /* Modern Browsers */
       url('../fonts/roboto-mono-v12-latin-600.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/roboto-mono-v12-latin-600.svg#RobotoMono') format('svg'); /* Legacy iOS */
}
/* roboto-mono-700 - latin */
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/roboto-mono-v12-latin-700.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/roboto-mono-v12-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/roboto-mono-v12-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/roboto-mono-v12-latin-700.woff') format('woff'), /* Modern Browsers */
       url('../fonts/roboto-mono-v12-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/roboto-mono-v12-latin-700.svg#RobotoMono') format('svg'); /* Legacy iOS */
}
/* roboto-mono-300italic - latin */
@font-face {
  font-family: 'Roboto Mono';
  font-style: italic;
  font-weight: 300;
  src: url('../fonts/roboto-mono-v12-latin-300italic.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/roboto-mono-v12-latin-300italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/roboto-mono-v12-latin-300italic.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/roboto-mono-v12-latin-300italic.woff') format('woff'), /* Modern Browsers */
       url('../fonts/roboto-mono-v12-latin-300italic.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/roboto-mono-v12-latin-300italic.svg#RobotoMono') format('svg'); /* Legacy iOS */
}
/* roboto-mono-italic - latin */
@font-face {
  font-family: 'Roboto Mono';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/roboto-mono-v12-latin-italic.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/roboto-mono-v12-latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/roboto-mono-v12-latin-italic.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/roboto-mono-v12-latin-italic.woff') format('woff'), /* Modern Browsers */
       url('../fonts/roboto-mono-v12-latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/roboto-mono-v12-latin-italic.svg#RobotoMono') format('svg'); /* Legacy iOS */
}
/* roboto-mono-500italic - latin */
@font-face {
  font-family: 'Roboto Mono';
  font-style: italic;
  font-weight: 500;
  src: url('../fonts/roboto-mono-v12-latin-500italic.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/roboto-mono-v12-latin-500italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/roboto-mono-v12-latin-500italic.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/roboto-mono-v12-latin-500italic.woff') format('woff'), /* Modern Browsers */
       url('../fonts/roboto-mono-v12-latin-500italic.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/roboto-mono-v12-latin-500italic.svg#RobotoMono') format('svg'); /* Legacy iOS */
}
/* roboto-mono-600italic - latin */
@font-face {
  font-family: 'Roboto Mono';
  font-style: italic;
  font-weight: 600;
  src: url('../fonts/roboto-mono-v12-latin-600italic.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/roboto-mono-v12-latin-600italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/roboto-mono-v12-latin-600italic.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/roboto-mono-v12-latin-600italic.woff') format('woff'), /* Modern Browsers */
       url('../fonts/roboto-mono-v12-latin-600italic.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/roboto-mono-v12-latin-600italic.svg#RobotoMono') format('svg'); /* Legacy iOS */
}
/* roboto-mono-700italic - latin */
@font-face {
  font-family: 'Roboto Mono';
  font-style: italic;
  font-weight: 700;
  src: url('../fonts/roboto-mono-v12-latin-700italic.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/roboto-mono-v12-latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/roboto-mono-v12-latin-700italic.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/roboto-mono-v12-latin-700italic.woff') format('woff'), /* Modern Browsers */
       url('../fonts/roboto-mono-v12-latin-700italic.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/roboto-mono-v12-latin-700italic.svg#RobotoMono') format('svg'); /* Legacy iOS */
}
