@import url("https://fonts.googleapis.com/css?family=Fira+Sans:400,400i,700");
@import url("https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700");

/* GENERIC STYLES */
.wrap {
  margin: 0 auto;
  max-width: 700px;
  width: 95%;
  /*font-family: PT Sans, serif;*/
}

* {
  box-sizing: border-box;
}

li {
  margin-bottom: 10px;
}

/* BUTTON STYLES */
.button {
    padding: 0 15px;
    box-shadow: 0px 0px 2px 1px rgba(0, 0, 0, 0.3);
    background-color: #A7B59E;
    color: #000;
    display: inline-block;
    float: left;
    width: 100%;
    height: 50px;
    line-height: 50px;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
    margin: 0 20px 20px 0;
}

    .button:hover {
        background-color: #A7B59E; /* darkened version of #3b5998 */
        color: #fff;
        box-shadow: none;
    }

.button:last-child {
  margin: 0 20px 0 0;
}

.button-container {
  font-size: 0;
  overflow: auto;
  height: auto;
  padding: 20px 0;
}

/* MODAL WINDOW STYLES */
.modal {
  display:block ;
  overflow: hidden;
  position: fixed;
  width: 800px;
  max-width: 95%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1040;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation-name: fade-in-slide-down;
  animation-duration: 0.4s;
}

.modal__header {
  border-bottom: 1px solid grey;
  height: 40px;
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  align-items: center;
  padding: 0 15px;
}

.modal__header p {
  margin: 0;
}

.modal__close {
  cursor: pointer;
  font-size: 28px;
  font-weight: bold;
}

.modal__close svg {
  width: 13px;
  height: 12px;
  fill: #fff;
}

.modal__body {
  padding: 20px;
  /*max-height: 80vh;*/
  height:300px;
  background-color: #fff;
  overflow:auto;
  /*overflow-y: scroll;
 
  overflow-x: hidden;
  -webkit-overflow-scrolling:touch;*/
  
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: none;
  background-color: rgba(0, 0, 0, 0.5);
  animation-name: fade-in;
  animation-duration: 0.4s;
}

.overlay.is-visible {
  display: inherit;
  touch-action: none;
}

/* Animation Keyframes */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-in-slide-down {
  from {
    transform: translate(-50%, -100%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

@keyframes fade-in-slide-up {
  from {
    transform: translate(-50%, 0%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

/* Stop body scroll on mobile/desktop when modal is open */
.has-modal {
  /* height: 100%; */
  width: 100%;
  overflow: hidden;
}

/* Custom styles for the modal content wrappers */

/* Video modal */
.video__wrap {
  width: 100%;
  position: relative;
  overflow: hidden;
  display: block;
}

.video__wrap:before {
  content: "";
  display: block;
}

.video__wrap--16x9:before {
  padding-bottom: 56.25%;
}

.video__wrap--4x3:before {
  padding-bottom: 75%;
}

.video__wrap--3x2:before {
    padding-bottom: 66.66%;
  }
  
  .video__wrap--square:before {
    padding-bottom: 100%;
  }
  
  iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  /* Share link styles */
  .share__link {
    display: block;
  }
  
  /* Loader */
  .loader {
    display: block;
    z-index: 1000;
    border: 3px solid transparent;
    border-top: 3px solid #3b5998;
    border-radius: 50%;
    height: 50px;
    width: 50px;
    position: relative;
    margin: 0 auto;
    animation: spin 1s linear infinite;
  }
  
  .loader:before {
    content: "";
    display: block;
    position: absolute;
    z-index: 1000;
    border: 5px solid transparent;
    border-top: 5px solid #3b5998;
    border-radius: 50%;
    height: 50px;
    width: 50px;
    top: -8px;
    bottom: 0;
    left: -8px;
    right: 0;
    animation: spin 2s linear infinite;
  }
  
  /* Spin animation */
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  