
html.open-modal {
  overflow: hidden !important;
}

/*
html.open-modal.modal-window-scrolling {
  overflow-y: auto !important;
}
*/



body > .header {
  transition: border-bottom-color 0.3sease;
  transition-delay:  0.1s;
}

body > .header:before {
}

body.modal-screen-background-active-in-frame {
  background-color: #2f475b;
}

body.modal-screen-background-active-in-frame > .header {
  border-bottom-color: #595959;
  transition: border-bottom-color 0.4s ease;
}

body.modal-screen-background-active-in-frame > .header:before {
  content: " ";
  position: absolute;
  top: 0px;
  left: 0px;
  background-color: rgba(15, 43, 62, 0.5);
  opacity: 1;
  height: 100%;
  width: 100%;
  z-index: 100;
  transition: opacity ease 0.3s;
  pointer-events: all;
  transition: opacity 0.4s ease;
}



.modal {
  display: none;
  position: fixed;
  top: 0px;
  left: 0px;
  height: auto;
  width: 100%;
  box-sizing: border-box;
  margin: 0px;
  padding: 0px;
  z-index: 100000003;
  padding: 12px;
  padding-top: 6vh;
  padding-bottom: 5vh;
  outline: none !important;
  background-color: transparent;
  border: 0px;
  overscroll-behavior-x: none;
  overscroll-behavior-y: none;
}

.modal .sticky-header-row{
  top: -6vh;
}

.modal.modal-shown {
  display: block;
}

.modal.modal-shown.modal-window-scrolling {
  height: 100vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  top: 0px !important;
  transform: translateX(0);
}

.modal-screen-background {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0.65;
  z-index: 100000003;
  display: none;

  filter: alpha(opacity=65);
  -moz-opacity: 0.65;
  -khtml-opacity: 0.65;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=65)";

  overscroll-behavior-x: none;
  overscroll-behavior-y: none;
}

.modal > .modal-header,
.modal > .modal-body,
.modal > .modal-footer {
  clear: both;
  height: auto;
  width: 400px;
  max-width: 92vw;
  margin-left: auto;
  margin-right: auto;
  background-color: white;
  color: black;
  border: 1px solid #0098da;
  border-top: 0px;
  padding: 10px 12px;
  box-sizing: border-box;
}

.modal > .modal-body {
  padding: 10px 16px;
}

@media(max-width:992px) {
  .modal > .modal-header,
  .modal > .modal-body,
  .modal > .modal-footer {
    width: 350px;
  }

  .modal > .modal-body {
    padding: 10px 12px;
  }
}

@media(max-width:450px) {
  .modal > .modal-header,
  .modal > .modal-body,
  .modal > .modal-footer {
    width: 250px;
  }
}


.modal .modal-header {
  border-top: 1px solid #0098da;
  border-top-left-radius: 2.5px;
  border-top-right-radius: 2.5px;
  background-color: #0098da;
  color: white;
  font-size: 14px;
}

.modal .modal-body {
  padding-top: 15px;
  padding-bottom: 20px;
  min-height: 30px;
  border-bottom: 0px;
  color: black; /* #0098da */
  overflow-y: auto;
}

.modal.modal-window-scrolling .modal-body {
  overflow: visible;
}

.modal .modal-footer {
  border-top: 0px;
  border-bottom-left-radius: 2.5px;
  border-bottom-right-radius: 2.5px;
  background-color: #fff;
  overflow: hidden;
  padding-top: 5px;
  font-size: 0px;
  text-align: right;
  margin-bottom: 40px;
}
.modal .modal-footer:after {
  content: '';
  display: table;
  clear: both;
}
.modal .modal-footer .btn {
  margin-top: 5px;
}

.modal .modal-footer .btn.pull-right:first-child {
  margin-right: 6px;
}

.modal .modal-footer .btn:not(.pull-right) {
  margin-right: 0px;
}

.modal .modal-footer .btn:not(.pull-right):last-child {
  margin-right: 6px;
}



.modal .modal-body a:not(.btn) {
  color: #0098da;
  text-decoration: underline;
}



/* Variationer */

.modal.modal-sm > .modal-header,
.modal.modal-sm > .modal-body,
.modal.modal-sm > .modal-footer {
  width: 300px;
}

.modal.modal-lg > .modal-header,
.modal.modal-lg > .modal-body,
.modal.modal-lg > .modal-footer {
  width: 650px;
}

.modal.modal-xl > .modal-header,
.modal.modal-xl > .modal-body,
.modal.modal-xl > .modal-footer {
  width: 800px;
}

.modal.modal-sl > .modal-header,
.modal.modal-sl > .modal-body,
.modal.modal-sl > .modal-footer {
  width: 1100px;
}




/* Prompt dialog */

.modal #modal_prompt_answer {
  width: 100%;
  background-color: white;
  border-color: #0098da;
  color: black;
  box-sizing: border-box;
}

.modal .question_text {
  display: block;
}

