/* Style the Image Used to Trigger the Modal */

/* The Modal (background) */
div.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 99;
  top: 2%;
  width: 100%;
  /* Full width */
  max-height: 95%;
  /* Full height */
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.9);
  /* Black w/ opacity */
  overflow:hidden;
}

.clear { 
  clear:both; 
}

div#myModalControls {
  height: 10%;
  width: 100%;
  margin-top: 1em;
}

div#img-controls, div#pdf-controls, div#mmi-controls, div#dload-controls {
  position: relative;
  color: white;
  float: left;
}

div#dload-controls {
  float: right;
}

div#img-controls input, div#img-controls select, div#pdf-controls input, div#pdf-controls select {
  color: black;
}

div#mmi-controls range {
  border-left: 1em;
  border-right: 1em;
}

#zoom-level {
  /* img tools */
  width:3em;
  text-align: center;
}

div#close-controls {
  margin-left: 5%;
  float: right;
  padding-right: 1em;
  position: relative;
  text-align: center;
}

img#myModalClose {
  float: right;
}

div.modal div#modal-content {
  width: 90%;
  /* float:left; */
  position: relative;
  height:90%;
  margin:auto;
  /* border: .1em dotted yellow; */
}

div#modal-content {
  display: inline-block;  
}

div#prev {
  /* float:left; */
  width: 5%;
  display: inline-block;
}

div#next {
  float: right;
  width: 5%;
}

/* Next & previous buttons */
div#myModal .prev,
div#myModal .next {
  cursor: pointer;
  display: inline-block;
  /* left: 0; */
  position: absolute;
  top: 50%;
  /* width: 20px; */
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
  z-index: 110;
}

/* Position the "next button" to the right */
div#myModal .next {
  /* left: 95%; */
  float: right;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
div#myModal .prev:hover,
div#myModal .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

#modal-loading {
	width: 60%;
	margin-left: 20%;
	text-align: center;
	padding-top: 15%;
	font-size: 1.5em;
}

div#modal-img-wrapper, div#modal-pdf-wrapper, div#modal-video-wrapper, div#modal-audio-wrapper {
  margin-left: auto;
  margin-right: auto;
  margin-top: .5em;
  margin-bottom: auto;
  /* align: center; */
  width: 90%;
  height: 90%;
  overflow: auto;
}

div#modal-pdf-wrapper{
  display: none;
}

img#imgModal {
  display: block;
  /* max-width: 100%; */
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

#the-canvas {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#modal-video-wrapper, #mmi-controls {
  display: none;
  vertical-align: middle;
}

#modal-content .modal-error {
  color: red;
  width: 50%;
  margin-left: 25%;
  margin-top: 10%;
  display: none;
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  /* height: 150px; */
}

#modal-table-wrap{
  background-color: black;
  opacity: 0.8;
  width: 30%;
  display: none;
  position: absolute;
  right: 0%;
  z-index: 100;
  border-right: 1em solid black;
  float: right;
  padding-right: 1em;
  overflow: auto;
  max-height:86%;
  overflow-x: hidden;
}

#seperator {
	cursor: col-resize;
  position: fixed;
	/* background: url(https://raw.githubusercontent.com/RickStrahl/jquery-resizable/master/assets/vsizegrip.png) center center no-repeat #535353; */
  background: url("https://raw.githubusercontent.com/RickStrahl/jquery-resizable/master/assets/vsizegrip.png") center center no-repeat grey;
	width: 10px;
  height: 85%;
	min-width: 10px;
  display: none;
  z-index: 101;
  float: right;
}

#docinfo{
  table-layout: fixed;
  color: white;
  width: 100%;
  font-weight: normal;
  font-size: small;
  margin-left: 1em;
  /* margin-right: 15%; */
  float: left;
  /* border: .1em dotted green; */
}

.modal-tr, .modal-td-col2, .modal-td-col1 {
  border-bottom: 1px dotted grey;
  padding: 2px 2px 2px 2px;
  color: white;
}

.modal-td-col2 {
  /* width: 85%; */
  word-break: break-all;
}

/* .modal-td-col1 {
  width: 200px;
} */

@keyframes zoom {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px) {
  .modal-content {
    width: 100%;
  }
}

video {
  height: 97%;
  width: 90%;
  top: 0;
  /* right: 0;
  bottom: 0; */
  
  position: absolute;
  /* background-color: rgba(215, 38, 61, 0); */
}

audio {
  width: 100%;
  margin-top: 20%;
}

#video__container {
  /* height: 100vh; */
  overflow: hidden;
}
