﻿div.portalModal {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: calc(100vw - (100vw - 100%));
    height: calc(100vh - (100vh - 100%));
    background-color: rgba(0,0,0,0.4);
}

div.portalModalContent {
    max-height: 90% !important;
    box-sizing: border-box;
    background-color: #fefefe;
    position: relative;
    padding: 30px;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid #888;
    overflow: hidden;
    margin:0 auto;
}

.portalModalContent body, .portalModalContent form {
    overflow:auto;
}

.portalModalClose {
    color: #aaa;
    position: absolute;
    right: 6px;
    top: -6px;
    font-size: 28px;
    font-weight: bold;
}

.portalModalClose:hover,
.portalModalClose:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modalLoading {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
}

.modalLoading:after {
  content: " ";
  display: block;
  width: 40px;
  height: 40px;
  margin: 8px;
  border-radius: 50%;
  border: 8px solid;
  border-color: #81b9dc #81b9dc #81b9dc transparent;
  animation: modalLoading 1.2s linear infinite;
}

@keyframes modalLoading {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}