/* avdjs - AVPopup (popup.js): the window, its title bar, close button, body and foot. Each
   application adjusts the colors in its theme, with these same classes */

/* popup.js sets the heights with the borders and padding included, whatever the application uses */
.popupWindow, .popupWindowHead, .popupWindowClose, .popupWindowBody, .popupWindowFoot { box-sizing: border-box; }

.popupWindow {
  display: block;
  position: fixed;
  left: 50%;
  top: 50%;
  width: 128px;
  height: 128px;
  margin-top: -64px;
  margin-left: -64px;
  padding: 0;
  user-select: none;
  overflow: hidden;
  background: #aaa;
  color: black;
  border-radius: 8px;
  border: 1px solid;
  border-color: #ccc #888 #888 #ccc;
  box-shadow: 3px 3px 9px 1px rgba(0,0,0,0.66666);
  pointer-events: auto;
}

.popupWindowHead {
  display: block;
  position: relative;
  margin: 4px;
  min-height: 1em;
  font-weight: bold;
  user-select: none;
  overflow: hidden;
}

.popupWindowClose {
  display: block;
  position: relative;
  margin: 4px;
  padding: 0 0.125em;
  float: right;
  font-size: 1.25em;
  height: 1em;
  line-height: 1em;
  cursor: pointer;
}

.popupWindowBody {
  clear: both;
  display: block;
  position: relative;
  margin: 4px;
  height: auto;
  padding: 4px;
  user-select: none;
  overflow: auto;
  background: #f4f4f4;
  color: black;
  border-radius: 6px;
  border: 1px solid;
  border-color: #888 #ccc #ccc #888;
}

.popupWindowFoot {
  display: block;
  position: relative;
  margin: 4px;
  padding: 0;
  height: auto;
  user-select: none;
  text-align: center;
  overflow: hidden;
}

/* The darkened page under the windows, when the application does not have its own */
#avPopupCover {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}
