﻿

.weutil.ui.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 200; /* Sit on top */
  padding-top: 300px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  
}

.weutil.ui.modal.show {
    display:block;
}

/* Modal Content */
.weutil.ui .modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border: 1px solid #888;
  width: 80%;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  -webkit-animation-name: weUtilUiAnimateTop;
  -webkit-animation-duration: 0.4s;
  animation-name: weUtilUiAnimateTop;
  animation-duration: 0.4s;
  border-radius: 10px;
}

  
/* Add animation (fade in the popup) */
@-webkit-keyframes weUtilUiFadeIn  {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes weUtilUiFadeIn {
  from {opacity: 0;}
  to {opacity:1 ;}
}

/* Add Animation */
@-webkit-keyframes weUtilUiAnimateTop {
  from {top:-300px; opacity:0} 
  to {top:0; opacity:1}
}

@keyframes weUtilUiAnimateTop {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}


/* The Close Button */
.weutil.ui .modal-content .close {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.weutil.ui .modal-content .close:hover,
.weutil.ui .modal-content .close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.weutil.ui .modal-content .modal-header {
  padding: 2px 16px;
  background-color: var(--header-bg-color);
  color: var(--header-text-color);
  
}

.weutil.ui .modal-content .modal-header h2 { font-size: max(18px, 2.0vw); color: var(--header-text-color);}


.weutil.ui .modal-content .modal-body {
    display:flex;    
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align:center; 
    padding: 35px 10%; 
    min-height: 100px;
    background-color: #fff;
}

.weutil.ui .modal-content .text { flex: 1 1 100%; font-size: max(18px, 1.3vw);padding-bottom:25px;}
.weutil.ui.modal .btn {
    display: table-cell;
vertical-align: middle;
    flex: 0 1 auto;
    width: min(200px,40%);
    margin-left: 4%;
    margin-right: 4%;
    
    font-size: max(16px, 1.5vw);
}
.weutil.ui .modal-content .modal-footer {
  padding: 2px 16px;
  background-color: #5cb85c;
  color: white;
  min-height: 30px;
  background-color: var(--header-bg-color);
  color: var(--header-text-color);
}
