/*  Last updated - Maurizio Frances, 16/5/18 2.11pm  */


/* Table of contents
––––––––––––––––––––––––––––––––––––––––––––––––––
- Color Variables
- Basic Modal Styles
- Fullscreen modal style
*/

/* Color Variables
–––––––––––––––––––––––––––––––––––––––––––––––––– */
:root {
  --modalOverlayBgColor: rgba(0,0,0,0.6);
  --modalShadowColor: rgba(0,0,0,0.6);
  --modalBgColor: #ffffff;

  --modalFullscreenBgColor: #f0f0f0;
   --modalFullscreenHeaderTitleColor: #5BC4BF;
  --modalFullscreenCloseIconColor: #5BC4BF;
}

/**************************\
  Basic Modal Styles
\**************************/
.modal__overlay {
  z-index: 9999;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.modal .background{
  height: 100%;
  z-index: -1;
  display: flex;
  justify-content: center;
  flex-direction: column;
  background: var(--modalOverlayBgColor);
}

.modal .containerScroller{
  width: 100%;
  margin: auto;
  overflow: auto;
}

.modal .container .columns{
  background-color: var(--modalBgColor);
  border-radius: 5px;
  padding: 10px;
  -webkit-box-shadow: 0px 0px 25px 0px var(--modalShadowColor);
          box-shadow: 0px 0px 25px 0px var(--modalShadowColor);
}

.modal .header h2{
  color: #484C54;
  margin-top: 0;
  margin-bottom: 10px;
  padding-bottom: 10px;
  font-size: 24px;
}

.modal .header svg {
    margin: 15px 0 5px;
    font-size: 30px;
    color: var(--popColour2, #704c97);
}

.modal p {
    padding: 0px 30px 15px;
    margin-bottom: 0;
}

/**************************\
  Fullscreen Modal Style
\**************************/
.modal.fullscreen .modal__overlay{
  background-color: var(--modalFullscreenBgColor);
  align-items: flex-start;
}

.modal.fullscreen .background{
  flex-direction: initial;
}


.modal.fullscreen .containerScroller{
  margin: initial;
  margin-top: 50px;
  
}

.modal.fullscreen .container{
  /*max-width: 100%;*/
  width: 100%;
  height: 100%;
  background: #EEE;
  
}

.modal.fullscreen .container .columns{
  -webkit-box-shadow:none;
  box-shadow: none;
}

.modal.fullscreen .header{
  height: 50px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal.fullscreen .header h1{
  color: var(--modalFullscreenHeaderTitleColor);
  font-size: 26px;
  width: 100%;
  text-align: center;
  padding-top: 10px;
}

.modal.fullscreen .header .close{
  position: absolute;
  right: 0;
  top: 0;
  cursor: pointer;

  width:50px;
  height:50px;
}

.modal.fullscreen .header .close .fa{
  color: var(--modalFullscreenCloseIconColor);
  margin-top: 0px;
  font-size: 50px;
  opacity: 0.4;
  -webkit-transition: 0.2s;
  -o-transition: 0.2s;
  transition: 0.2s;
}

.modal.fullscreen .header .close:hover .fa {
    opacity: 1;
    cursor: pointer;
}

.modal.fullscreen .header. .close.active {
    /*color: #5BC4BF;*/
    opacity: 1;
}


/**************************\
  Demo Animation Style
\**************************/
@keyframes mmfadeIn {
    from { opacity: 0; }
      to { opacity: 1; }
}

@keyframes mmfadeOut {
    from { opacity: 1; }
      to { opacity: 0; }
}

@keyframes mmslideIn {
  from { transform: translateY(15%); }
    to { transform: translateY(0); }
}

@keyframes mmslideOut {
    from { transform: translateY(0); }
    to { transform: translateY(-10%); }
}

.micromodal-slide {
  display: none;
}

.micromodal-slide.is-open {
  display: block;
}

.micromodal-slide[aria-hidden="false"] .modal__overlay {
  animation: mmfadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="false"] .modal__overlay .containerScroller {
  animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__overlay {
  animation: mmfadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__overlay .containerScroller {
  animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide .modal__overlay .containerScroller,
.micromodal-slide .modal__overlay {
  will-change: transform;
}
