﻿/* The Modal (background) */
.modal {
  display: none;
  /* Hidden by default */
  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: #000000;
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4);
  /* Black w/ opacity */
  align-items: center;
}
.modal .btn {
  border-radius: 0;
}
/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  /*margin: 15% auto;*/
  /* 15% from the top and centered */
  margin: auto;
  padding: 0px;
  border: 0px solid #888;
  width: 80%;
  /* Could be more or less, depending on screen size */
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  pointer-events: auto;
  background-clip: padding-box;
  /*  border-radius: .3rem;*/
  border-radius: 0;
  outline: 0;
}
.modal-open {
  display: flex;
}
body.modal-open {
  overflow-y: hidden;
}
.modal .header {
  background-color: white;
  height: 100%;
  margin-top: 0px;
  padding: 10px;
  border-top-left-radius: 0.3rem;
  border-top-right-radius: 0.3rem;
}
.modal.warning .header {
  background-color: orange;
}
.modal h2 {
  margin: 0px;
}
.modal .content {
  padding: 15px;
  border-top: solid 1px lightgrey;
  /*   border-bottom: solid 1px lightgrey;*/
  border-bottom: none;
}
.modal .footer {
  background-color: white;
  /* height: 40px;*/
  height: 40px;
  margin-top: 0px;
  padding: 0px;
  display: flex;
  justify-content: flex-end;
  border-bottom-left-radius: 0.3rem;
  border-bottom-right-radius: 0.3rem;
  text-align: left;
  position: relative;
}
.modal button {
  appearance: auto;
  display: none;
  /*  margin-left: 15px;*/
  /*    padding: 5px 20px 0px 20px;*/
  /*  display: block;*/
  float: left;
  cursor: pointer;
  text-align: center;
  width: 50%;
  /*line-height: 46px;*/
  height: 100%;
  overflow: hidden;
  /*padding: 0 10px;*/
  padding: 5px 10px 0px 10px;
  transition: color 0.2s, background-color 0.2s;
  box-sizing: border-box;
  border: none;
  /*  border-radius:0;*/
}
/*
.modal .footer button:first-child[style*="display:block"] {
    border-bottom-left-radius: .3rem;
}
.modal .footer button:last-child {
    border-bottom-right-radius: .3rem;
}*/
.modal input[type="text"] {
  display: none;
}
.modal.std #modalDynClose {
  display: block;
}
.modal.warning #modalDynClose {
  display: block;
}
.modal.okcancel button[action="ok"],
.modal.okcancel button[action="cancel"] {
  display: block;
}
.modal.yesno button[action="yes"],
.modal.yesno button[action="no"] {
  display: block;
}
.modal button[action="close"],
.modal button[action="no"],
.modal button[action="cancel"] {
  background-color: #ddd;
  /*    color: #666;*/
}
/*.modal button[action="close"]:hover, .modal button[action="no"]:hover, .modal button[action="cancel"]:hover {
    background-color: #ccc;
}*/
.modal button[action="yes"],
.modal button[action="ok"] {
  background-color: #6bb8ff;
  /*background-color: white;*/
}
/*.modal button[action="yes"]:hover, .modal button[action="ok"]:hover {
    background-color: #3fa3ff;
}*/
.modal button:enabled:hover {
  filter: brightness(90%);
}
.modal button[action="yes"]:disabled,
.modal button[action="ok"]:disabled {
  background-color: #b3dbff;
  color: #818181;
  cursor: not-allowed;
}
.modal.input input[type="text"] {
  display: block;
}
/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}
.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
@media screen and (max-width: 1024px) {
  .modal .footer {
    height: 85px;
  }
  .modal {
    font-size: 60px;
  }
  .modal .modal-content {
    max-width: none;
    width: Calc(100% - 20px);
    margin: 10px 30px 10px 30px;
  }
  .modal h2 {
    font-size: 60px;
  }
  .modal button,
  .modal input,
  .modal select,
  .modal datalist option {
    font-size: 60px;
  }
  .modal button {
    line-height: 46px;
  }
  .modal .modal-content {
    font-size: 50px;
  }
  .modal .ui-tabs-panel {
    padding-left: 0;
  }
  /*        .modal button {
            border-color: black;
            border-width: 1px;
        }*/
  .close {
    font-size: 60px;
  }
}
.modal-content {
  max-width: 400px;
  /* width: Calc(100% - 20px);*/
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  /*    margin-bottom: 0px !important;*/
}
#modalDyn {
  z-index: 9999;
}