* {
  box-sizing: border-box;
}

.toolbar-annotate {
  padding: 6px;
  z-index: 100;
}
.toolbar-annotate .spacer {
  display: inline-block;
  border-left: 1px solid #c1c1c1;
  height: 20px;
  margin: 0px 5px 0px;
}

.toolbar-annotate mat-icon {
  color: #757575;
  font-size: 20px;
  font-weight: 600 !important;
  margin: 0px 5px;
  cursor : pointer;
}

.toolbar-annotate a {
  color: #757575 !important;
  text-decoration: none;
}

.toolbar-annotate .text-size, .pen-size {
  position: relative;
}

.theme-construction {
  --radius: 0;
  --baseFg: black;
  --baseBg: white;
  --accentFg: #757575;
  --accentBg: white;
}

.toolbar-annotate select {
  font: 400 14px Muli;
  -webkit-appearance: none;
  appearance: none;
  color: var(--baseFg);
  border: 1px solid var(--baseBg);
  /* line-height: 1; */
  outline: 0;
  /* padding: 0.65em 2.5em 0.55em 0.75em;
  padding: 9px 25px 5px 7px; */
  border-radius: var(--radius);
  background-color: var(--baseBg);
  background-image: linear-gradient(var(--baseBg), var(--baseBg)),
  linear-gradient(-135deg, transparent 50%, var(--accentBg) 52%),
  linear-gradient(-225deg, transparent 50%, var(--accentBg) 50%),
  linear-gradient(var(--accentBg) 47%, var(--accentFg) 0);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: 1px 100%, 20px 22px, 20px 22px, 20px 100%;
  background-position: right 20px center, right bottom, right bottom, right bottom;   
}

/* .toolbar-annotate select:hover {
  background-image: linear-gradient(var(--accentFg), var(--accentFg)),
    linear-gradient(-135deg, transparent 50%, var(--accentFg) 50%),
    linear-gradient(-225deg, transparent 50%, var(--accentFg) 50%),
    linear-gradient(var(--accentFg) 42%, var(--accentBg) 42%);
} */

/* .toolbar-annotate select:active {
  background-image: linear-gradient(var(--accentFg), var(--accentFg)),
    linear-gradient(-135deg, transparent 50%, var(--accentFg) 50%),
    linear-gradient(-225deg, transparent 50%, var(--accentFg) 50%),
    linear-gradient(var(--accentFg) 42%, var(--accentBg) 42%);
  color: var(--accentFg);
  border-color: var(--accentBg);
  background-color: var(--accentBg);
} */

/* .toolbar-annotate button {
  background-color: #eaeaea;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 15px;
  padding: 3px;
  margin: 0;
  text-align: center;
  text-shadow: 1px 1px 0 #fff;
  position: relative;
  min-width: 27px;
  min-height: 27px;
} */
.toolbar-annotate button:after {
  content: ' ';
  display: block;
}
.toolbar-annotate mat-icon.active {
  color:#309be5;
}
/* .toolbar-annotate mat-icon:hover,
.toolbar-annotate mat-icon:focus {
  border-color: yellow;
} */

.toolbar-annotate button.pen {
  font-size: 16px;
}

.toolbar-annotate button.comment {
  font-size: 10px;
  color: #ffffff;
  text-shadow: 0 0 0 #000000;
}

.toolbar-annotate button.rectangle:after {
  width: 15px;
  height: 15px;
  border: 1px solid red;
  position: absolute;
  top: 4px;
  left: 4px;
}

.toolbar-annotate button.highlight:after {
  width: 17px;
  height: 17px;
  background: blue;
  position: absolute;
  top: 4px;
  left: 4px;
}

.toolbar-annotate button.strikeout:after {
  width: 15px;
  height: 1px;
  background: red;
  position: absolute;
  top: 12px;
  left: 4px;
}

.toolbar-annotate button.text:after {
  content: 'T';
  font-family: 'Times New Roman';
}

.color {
  display: inline-block;
  padding : 10px;
}
.color-selected {
  border: 3px solid #666;
  width: 30px;
  height: 30px;
  margin-top: -1px;
  margin-left: -2px;
  margin-right: -2px;
}
.pen-color .color, .text-color .color, .area-color .color {
    border-radius : 3px;
}
.text-color, .pen-color, .area-color {
  display: inline-block;
  font: 300 14px Muli;
}
.toolbar-header{
    background: #fff;
    padding : 0px;
    border-bottom: 1px solid #d0d0d0;
    height: auto !important;
}

/* */
.pdfViewer .canvasWrapper {
    box-shadow: 0 0 3px #bbb;
}

.pdfViewer .page {
    margin-bottom: 10px;
}

.annotationLayer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#content-wrapper {
    position: static;
    left: 0;
    bottom: 0;
    overflow: scroll;
    right:250px;
    top: 125px;
}

#comment-wrapper {
    top: 109px;
    right: 0;
    bottom: 0;
    overflow: auto;
    background: #eaeaea;

    /* width: 250px; */
    border-left: 1px solid #d0d0d0;
}

#comment-wrapper h4 {
    margin: 10px;
}

#comment-wrapper .comment-list {
    font-size: 12px;
    position: relative;
    left: 0;
    right: 0;
    bottom: 0;
}

#comment-wrapper .comment-list-item {
    border-bottom: 1px solid #d0d0d0;
    border-top: 1px solid #d0d0d0;
    padding: 10px;
}

#comment-wrapper .comment-list-container {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    bottom: 37px;
    overflow: auto;
}

#comment-wrapper .comment-list-form, .update-comment {
    position: inherit;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px;
}

#comment-wrapper .comment-list-form input, .update-comment{
    padding: 10px;
    border-radius: 5px;
    width: 100%;
}

.pdfViewer .page {
    border-image: none;
}

#outer-dropzone {
    height: 140px;
  }
  
  #inner-dropzone {
    height: 80px;
  }
  
  .dropzone {
    background-color: #ccc;
    border: dashed 4px transparent;
    border-radius: 4px;
    margin: 10px auto 30px;
    padding: 10px;
    width: 80%;
    transition: background-color 0.3s;
  }
  
  .drop-active {
    border-color: #aaa;
  }
  
  .drop-target {
    background-color: #29e;
    border-color: #fff;
    border-style: solid;
  }
  
  .drag-drop {
    display: inline-block;
    min-width: 40px;
  
    color: #fff;
    
  
    touch-action: none;
    -webkit-transform: translate(0px, 0px);
            transform: translate(0px, 0px);
  
    transition: background-color 0.3s;
    z-index: 1000;
  }
  
  .drag-drop.can-drop {
    color: #000;
  }

  

.annotator-frame {
    transition: margin-left 150ms cubic-bezier(0.55, 0, 0.2, 0.8);
	width: 428px;
	margin-left: -428px !important;
}

.annotator-frame{ 
	user-select: none;
	direction: ltr;
	background: none;
	font-size: 14px;
	line-height: 20px;
	height: 100%;
	position: fixed;
	top: 0;
	left: 100%;
	z-index: 2147483647;
	margin: 0;
	padding: 0;
	border: 0;
}
.annotate-frame-inner{
	border: none;
    height: 100%;
    width: 100%;
    z-index: 3;
    position: relative;
}



    .pdfViewer .canvasWrapper {
      box-shadow: 0 0 3px #bbb;
    }
    .pdfViewer .page {
      margin-bottom: 10px !important
    }

    .annotationLayer {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
    }
	
	.thread-card {
		border: 1px solid #dbdbdb;
		box-shadow: 0 1px 1px rgba(0,0,0,.1);
		border-radius: 2px;
		background-color: #fff;
		padding: 1em;
		cursor: default;
	}
	
	.thread {
		display: flex;
		flex-direction: row;
		justify-content: flex-start;
		align-items: stretch;
	}
	
	.thread__content {
		flex-grow: 1;
		max-width: 100%;
	}
	
	.annotation-header__row {
		display: flex;
		flex-direction: row;
		justify-content: flex-start;
		align-items: baseline;
		flex-wrap: wrap-reverse;
	}
	
	a {
		color: #bd1c2b;
		text-decoration: none;
	}
	.annotation-user__user-name { 
        font-size: 13px;
		color: #202020;
		font-weight: bold;
	}
	.annotation-header__timestamp {
		margin-left: auto;
	}
	.markdown-editor__input{
		font-weight: normal;
		font-size: 13px;
		border: 1px solid #dbdbdb;
		border-radius: 2px;
		color: #737373;
		background-color: #fafafa;
		line-height: 1;
		min-height: 6em;
		resize: vertical;
		width: 100%;
	}
	.markdown-editor__input:focus {
		outline: none;
		background-color: #fff;
		border-color: #51a7e8;
		box-shadow: 0px 1px 2px rgba(0,0,0,.075) inset, 0px 0px 5px rgba(81,167,232,.5);
	}
	.annotation>*+*:not([class*=svg-icon--inline]) {
		margin-top: 1em;
	}
	.u-layout-row {
		display: flex;
		flex-direction: row;
		justify-content: flex-start;
		align-items: stretch;
		margin-top: 1em;
	}
	
	.annotation-publish-control {
		display: flex;
		flex-direction: row;
		justify-content: flex-start;
		align-items: stretch;
	}
	.annotation-publish-button {
		display: flex;
		flex-direction: row;
		justify-content: flex-start;
		align-items: stretch;
		position: relative;
	}
	
	.annotation-publish-button__primary {
		padding: 0;
		margin: 0;
		background-color: transparent;
		border-style: none;
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;
		padding: .5em;
		border-radius: 2px;
		border: none;
		padding: 0;
		margin: 0;
		background-color: transparent;
		border-style: none;
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;
		padding: .5em;
		border-radius: 2px;
		border: none;
		color: #595959;
		font-weight: 700;
		background-color: #f2f2f2;
		color: #f2f2f2;
		background-color: #595959;
		padding: .75em;
		border-top-right-radius: 0;
		border-bottom-right-radius: 0;
	}

	.annotation-publish-control>*+* {
		margin-left: 1em;
	}
	
	.annotation-publish-control__cancel-button {
		padding: 0;
		margin: 0;
		background-color: transparent;
		border-style: none;
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;
		padding: .5em;
		border-radius: 2px;
		border: none;
		color: #595959;
		font-weight: 700;
		background-color: #f2f2f2;
		padding: .75em;
	}
	
	.annotation-license {
		/* line-height: 1.4; */
		/* font-weight: normal; */
		color: #202020;
		font-size: 11px;
		border-top: 1px solid #dbdbdb;
		padding-top: .5em;
		margin-top: 1em;
	}
	
	.thread-list__card {
		margin-bottom: 1em;
	}
	
	.u-layout-row {
		display: flex;
		flex-direction: row;
		justify-content: flex-start;
		align-items: stretch;
	}

	.annotation__actions {
		margin-left: auto;
	}

	.button--icon-only {
		padding: 0;
		margin: 0;
		background-color: transparent;
		border-style: none;
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;
		padding: .5em;
		border-radius: 2px;
		border: none;
        color: #595959;
        cursor : pointer;
	}
	
	.annotation-share-control {
		position: relative;
	}
	
	.excerpt {
		transition: max-height .15s ease-in;
		overflow: hidden;
		position: relative;
	}
	
	.excerpt__content {
		display: inline-block;
	}
	
	.markdown-view {
		line-height: normal;
		cursor: text;
		overflow-wrap: break-word;
		word-break: break-word;
	}

	.markdown-view p:last-child {
		margin-bottom: 1px;
	}
	
	
	