/*The element that opens the modal*/

a.modal-link {
  cursor: pointer;
  text-decoration: none;
  margin: 0em auto !important;
  padding: 0em auto !important;
  color: #a6adba;
}

a.modal-link:hover,
a.modal-link:focus {
  text-decoration: underline;
}

/* The Modal (background) */

.modal-background {
  display: block;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 5;
  /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Fallback color */
  background-color: rgba(0, 6, 61, 0.3);
  /* Black w/ opacity */
  transition: padding 1s;
}

.modal-wrapper {
  position: relative;
  width: 100%;
  height: 120%;
}

/* Modal Content */

.modal-content {
  position: absolute;
  z-index: 6;
  background-color: white;
  margin: auto;
  padding: 1em 1em 1em 1em;
  width: 100%;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.modal-content > form > p {
  padding: 1em 0 !important;
  margin: 1em 0 !important;
  font-size: 16px;
  color: #333 !important;
}

.modal-content > form > input,
.modal-content > form > textarea {
  color: #333;
}

/* The Close Button */

.close {
  color: #aaaaaa !important;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 10px;
}

.close:hover,
.close:focus {
  color: #000 !important;
  background: none !important;
  text-decoration: none;
  cursor: pointer;
}

/* The calculus wait Modal (background) */

.wait-modal {
  display: block;
  /* Hidden by default */
  position: fixed;
  /* Stay in place within containing div. Containing div must have a relative position */
  z-index: 5;
  /* Sit on top but not of menu*/
  right: 0;
  left: 0px;
  top: 0;
  /*width: 100%;  Full width otherwise left, right, etc. don't work */
  height: 100%;
  /* Full height */
  overflow: hidden;
  /* Enable scroll if needed */
  background-color: rgba(0, 6, 61, 0.3);
  opacity: 50%;
  /* Black w/ opacity */
}

/* #layout .wait-modal {
    left: 150px!important;
} */

/* Modal calculus wait Content */

.wait-modal-content {
  /* background-color: white; */
  /*border: 2px solid #dbdbdb;*/
  /* box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); */
  /*margin:1em;*/
  height: 100%;
  /* color: black; */
  color: #00063c;
  /*border-radius:5px;*/
  /*width: 100%;*/
  /*max-height:85vh;*/
  /*overflow:auto;*/
}

/* .wait-modal-content i {

    color: white;
} */

.wait-modal-content-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 7;
}

#access-modal input[type="text"],
#access-modal input[type="tel"],
#access-modal input[type="email"],
#access-modal select {
  width: 100%;
}

#access-modal input:invalid,
#accountcreation-screen input:invalid {
  border-color: #d61f31 !important;
  color: #d61f31 !important;
}

.access-modal-title {
  text-transform: none;
  letter-spacing: 0;
}

#access-modal .access-modal-subtitle {
  margin-bottom: 1em;
}

#access-modal .access-modal-bottom-text {
  color: #aaaaaa;
  padding-top: 0.5em;
  font-size: 90%;
}

/* ------------------------------------
 * TABLET as of iPad mini vertical - sm
 * ------------------------------------
*/

@media screen and (min-width: 35.5em) {
  /* The Modal (background) */
  .modal {
    padding-top: 30px;
    /* Location of the box */
  }
  /* Modal Content */
  .modal-content {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* border: 1px solid #888; */
    /* border-radius:5px; */
    width: 80%;
    max-width: 600px;
  }
  #access-modal .modal-content {
    max-width: 400px;
    padding: 2em;
    border-radius: 10px;
  }
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  #access-modal.ie10up {
    background-color: rgba(255, 255, 255, 0.95) !important;
    /*Replace the blurring effect*/
  }
}
