#toggle-annotations {
  position: absolute;
  z-index: 1;
  top: 2px;
  right: 94px;
  height:48px;
  width:48px;
  color:#767676;
/*  background-image: url("images-multizoom/toggle_ann_pan.png");
  right: 2em;
  left: auto;
  -webkit-transition: margin-right 0.5s ease;
  transition: margin-right 0.5s ease;*/
}

#toggle-annotations.active {
/*  margin-right: 150px;*/
}

.margin-container {
  position: absolute;
  display:block;
  width: 0px;
  background: white;
  right: 0;
  top: 82px;
  height: calc(100% - 92px);
  text-align: left;
  z-index: 9;
  cursor: ew-resize;
  font-family: "Open Sans","Lucida Grande","Segoe UI","Arial","Verdana","Lucida Sans Unicode","Tahoma","sans-serif";
  font-size:14px;
  border-top: 1px solid lightgray;
  border-left: 1px solid lightgray;
  padding-top: 10px;
  opacity: 0.98;
  transition: all 2s; /* cannot resize the pane with this - must turn it off on resize start */
}

ul.annotation-list {
  list-style: none;
  margin: 0;
  display: inline-block;
  position: relative;
  /*padding:100vh 10px 100vh 10px;
  width:100%;
  min-height:220vh*/
  padding: 0 10px 0 10px;
  width: calc(100% - 20px);
  height: calc(100% - 2.5em);
  overflow-y: auto;
}

li.empty-item{
  display:none;
  visibility: hidden;
}

li.empty-item:first-child:last-child{
  display:inline-block;
  visibility: visible;
  position: relative;
  top: 8em;
  right: 0;
  height: 200px;
  width: 100%;
}

li.empty-item:first-child:last-child:after {
  content: 'No annotations to show.';
  display: block;
  position: absolute;
  text-align:center;
  top: 0;
  width: 100%;
  height: 100%;
  left: 0;
  font-size: 1em;
  color: rgb(223, 223, 223);
}

.annotation-list .marginalia-item {
  font-size: 90%;
  float: left;
  margin-bottom: 20px;
  margin-right: 10px;
  border:1px solid transparent;
  cursor: pointer;
  background-color: white;
  border-radius: 2px;
  box-shadow: 0 4px 6px 1px rgba(50, 50, 50, 0.14);
  box-sizing: border-box;
  color: black;
  line-height: 1.5;
/*  min-width: 180px;*/
/*  min-width: 280px;*/
  max-width: 250px;
  width: calc(100% - 2px);
  position: relative;
}

.annotation-list .marginalia-item .text {
/*  padding: 30px 17px 30px 20px;*/
  padding: 3px 2px 3px 2px;
  overflow: auto;
}

.annotation-list .marginalia-item nav.controls {
  position: relative;
  top: 0;
  right: 0;
}

.annotation-list .marginalia-item .dropdown-toggle {
  float: right;
  padding: 2px 17px;
  font-size: 16px;
  border-radius: 3px;
  color: #9E9E9E;
}

.annotation-list .marginalia-item .dropdown-toggle:hover,
.annotation-list .marginalia-item .dropdown-toggle:focus {
  -webkit-box-shadow: 0 1px 2px 0 rgba(0,0,0,.1);
  box-shadow: 0 1px 2px 0 rgba(0,0,0,.1);
  background-color: #fff;
  border-color: #c2c2c2;
}

.annotation-list .marginalia-item .controls.dropdown.open .dropdown-toggle,
.annotation-list .marginalia-item .dropdown-toggle:active{
  -webkit-box-shadow: inset 0 1px 2px 0 rgba(0,0,0,.1);
  box-shadow: inset 0 1px 2px 0 rgba(0,0,0,.1);
  background-color: #e1e1e1;
  border-color: #c2c2c2;
}

.annotation-list .marginalia-item .dropdown-menu {
  left: inherit;
  right: 0;
  top: 33px;
  border-radius: 1px;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.13);
  border-color: transparent;
  position: absolute;
  z-index: 10;
  display: none;
  float: left;
  min-width: 160px;
  padding: 5px 0;
  margin: 2px 0 0;
  list-style: none;
  font-size: 14px;
  background-color: #fff;
}

.annotation-list .marginalia-item .open>.dropdown-menu {
    display: block;
}

.annotation-list .marginalia-item .dropdown-menu>li>a {
  border: 1px solid transparent;
  border-radius: 0px;
  border-width: 0px;
  border-left-width: 10px;
  text-align: left;
  padding: 10px 20px 10px 12px;
  display: block;
  clear: both;
  font-weight: 400;
  line-height: 1.42857143;
  color: #333;
  white-space: nowrap;
}

.annotation-list .marginalia-item .dropdown-menu>li>a:hover,
.annotation-list .marginalia-item .dropdown-menu>li>a:active {
    border-left-color: rgb(203, 203, 203);
    background-color: rgb(242, 242, 242);
}

.annotation-list .marginalia-item .dropdown-menu>li>a.btn-delete:hover,
.annotation-list .marginalia-item .dropdown-menu>li>a.btn-delete:active {
    border-left-color: rgb(255, 161, 161);
    background-color: rgb(255, 234, 234);
}

.annotator-hl {
  cursor: pointer;
}

.annotator-hl.marginalia-annotation-selected{
  background: rgba(133,168,197, 0.46);
  /*padding:5px;*/
  border: 3px solid white;
  outline: 3px solid gray;
}

.annotation-list .marginalia-item-selected{
  border-color: rgb(133,168,197);
  cursor:initial;
}

.annotation-footer {
  padding: 5px;
  font-size: 75%;
}

.annotation-created {
  font-style: italic;
}

.annotation-author {
  font-weight: bold;
}

/*
******************
* Show/Hide Styles
******************
*/

.margin-container-hide .margin-container{
/*  right: 0;*/
   width: 0px;
}

.margin-container-show .margin-container{
  display:block;
/*  right: -150px;*/
   width: 200px;
}

/*
.margin-container, .inner{
  transition-property: right, left;
  transition-duration: 0.6s;
  transition-timing-function: ease;
}
 */

.inner {
  position: relative;
  z-index: 3;
  left: 0;
}

.margin-container-show .inner {
/*  left: -150px;*/
}


.annotator-editor .annotator-item.annotator-checkbox,
.annotator-viewer {
/*  display:none !important;*/
}

.annotation-usercontainer-wrapper {
	position: relative;
	padding-right: 8px;
	float: right;
	min-width: 44px; /* 44 + 2*1 + 2*2 */
	max-width: calc(100% - 142px); /* in IE calc is not compatible with display:flex, so we wrap it in a div that is display:block and apply it to it */
}
.annotation-usercontainer-wrapper-without-pdf-export {
	max-width: calc(100% - 96px);
}
.annotation-usercontainer {
	position: relative;
	height: 63px; /* 40 + 23 to accomodate scroll-bar in Windows browsers */
	max-width: 100%;

	/* horizontal scrolling */
	display: flex;
	flex-flow: row nowrap;
	align-items: flex-start;
	overflow-x: auto;
}
.annotation-userentry {
	display: inline-block;
	border-radius: 50%;
	width: 38px;
	line-height: 38px;
	text-align: center;
	vertical-align: middle;
	margin: 1px 2px 4px 2px;
	font-style: normal;
	font-stretch: condensed;
	font-family: sans-serif;
	font-weight: bolder;
	font-size: x-large;
	color: white;
	opacity: 1.0;
	border-color: black;
	border-width: 1px;
	border-style: inset;
	cursor: pointer;

	/* horizontal scrolling */
	flex: 0 0 auto;
}

.comment-input-container {
	position: absolute;
	bottom: 0.5em;
	right: 10px;
	width: calc(100% - 20px);
	height: 1.5em;
	background-color: gray;
	display: none;
}
.comment-input {
	margin: 0px;
	border: 1px solid black;
	padding: 3px 2px;
	width: calc(100% - 6px);
	height: calc(100% - 8px);
	font-family: "Open Sans","Lucida Grande","Segoe UI","Arial","Verdana","Lucida Sans Unicode","Tahoma","sans-serif";
}
.pane-opacity-slider { z-index: 11; display: none; position: absolute; top: 150px; right: 14px; width: 8em; height: 0.8em;
	font-family: "sans-serif"; font-size: 0.9em; text-indent:-6.2em; line-height: 0.8; color: gray; }

@media (max-width: 319px) {	/* for EmbedUnizoom preview in UploadAndZoom - 319 < mobile phone */
	.annotation-usercontainer {
		height: 30px; /* to accomodate scroll-bar in some Windows browsers */
		padding-right: 8px;
		max-width: calc(100% - 70px);
	}
	.annotation-userentry {
		width: 25px;
		line-height: 25px;
		font-size: medium;
	}
	.margin-container { top: 53px; height: calc(100% - 60px); font-size: 10px; }
	.comment-input { font-size: 0.6em; }
}
