/********************************************************
 * div that's put on top of everything to make it dark
 * modal means user must address the dialog
 * (like the save dialog in other applications)
 ***************************************************/
.modal-background {
  display: inline-block;
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: black;
  opacity: 0.2;
}

/* Modal Content */
.modal-content {
	z-index: 2;
}


/* the following is largely stolen from
 * https://www.columbia.edu/~njn2118/journal/2019/4/26.html */

.floating-window {
  z-index: 2;
  border: 1px solid black;
  background-color: white;
  position: absolute;

  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.floating-window-bar {
  padding: 3px;
  cursor: move;
  background-color: #666666;
  color: white;
}

.floating-window-close {
  cursor: pointer;
  display: inline-block;
  position: absolute;
  top: 3px;
  right: 3px;
  background-color: white;
  width: 14px;
  height: 14px;
  padding-left: 2px;
  padding-top: 2px;
}

.floating-window-body {
  color: black;
  overflow: auto;
}
