  html,
  body {
    padding: 0;
    margin: 0;
    font-size: 14px;
    overscroll-behavior-y: contain;
  }


  table,
  tr,
  td {
    border: 1px solid black
  }

  body {
    font-family: Arial;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

input[type='checkbox'] {
    accent-color: #767676;
    
}

  .grid,
  .detail,
  .special

  /*, .special-minor*/
  ,
  .micro,
  .now {
    position: absolute;
    top: 0;
  }

  .grid .grid-name,
  .detail .grid-name,
  .specialv2 .grid-name {
    position: -webkit-sticky;
    position: sticky;
    z-index: 18
  }

  .grid-name {
    white-space: nowrap;
    background-color: rgba(255,255,255,0.8);
    width: fit-content;
  }

  /* The tops are needed so they would stick in place  */
  .grid .grid-name {
    top: 0;
    font-size: 11px
  }

  .grid .bcad {
    top: 15px;
  }

  .detail .grid-name {
    top: 35px;
    transform-origin: top;
    transform: scale(0.6) translateX(-2.5rem) rotate(-60deg);
  }

  .detail .bcad {
    top: 50px;
  }

  .grid .grid-name.bcad,
  .detail .grid-name.bcad {
    color: #0449E8;
  }

  /* The width is used to color the line */
  .grid {
    width: 1px;
    background-color: #c4c3c3;
  }

  .special

  /*, .special-minor */
    {
    width: .15em; /* so it will be the same for all when scaled  //2px;*/
    transition: top .5s;
    z-index: 9997;
  }

  .specialv2 {
    width: .15em; /*2px;*/
    color:#fff;
    display: inline-block;
    position: absolute;

  }

  /* The left border is used to color the line and make it appear dotted */
  .detail {
    border-left: 1px dashed #e8e8e8;
    top: 30px;
  }

  .micro {
    border-left: 1px dotted #fff6e8;
    top: 30px;
  }

  .now {
    background-color: #ccc;
    top: 30px;
  }

  .special .grid-name {
    font-size: 13px;
    padding: 2px 10px;
    display: inline-block
  }

  .special .bcad {
    top: 25px
  }

  .special .text {
    top: 40px
  }

  .special.minor .grid-name {
    position: absolute;
    top: 100px;
    font-size: 13px
  }

  .special.minor .bcad {
    top: 115px
  }

  .arrow-bottom,  .arrow-top {
    width: 0;
    height: 0;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    position: absolute;
    left: -3px;
    cursor: pointer;
  
  }

  .arrow-top {
    top: 100px;
  }

  .arrow-bottom {
    bottom: 100px;
  }

  .line-top, .line-bottom {
    height:100px;
    width:inherit;
    background-color: salmon;
    position: absolute;
    cursor: pointer;
  }

  .line-top {
    top: 0;
  }

  .line-bottom {
    bottom: 0;
  }



  /* .special-minor .text {top: 130px} */

  /* This is the `+` indicator for expanding the events (family, horns) */
  .expand {
    top: 2px;
    background-color: white;
    font-size: 12px;
    border: 1px solid;
    border-color: var(--expand-border-color);
    border-radius: 10px;
    line-height: 9px;
    width: 10px;
    height: 10px;
    text-align: center;
    /*top:-5px; padding:0 5px; background-color:white; font-size:18px */
  }

  .expand:hover {
    cursor: pointer
  }

  .layer {
    position: absolute;
    left: 20px;
    width: 800px;
    /* height:1px */
  }

  #grids {
    top: 0;
    /* background-color: #fff; */
  }


  .family,
  .prophet,
  .judge,
  .nation,
  .king,
  .king-judah,
  .king-israel,
  .kingdom,
  .procurator,
  .event-king,
  .event-family,
  .event-judge,
  .event-prophet,
  .event-kingdom,
  .filler {
    display: block;
    position: relative;
    height: 16px;
    border: 2px solid transparent
  }

  .filler.small {
    height: 10px
  }

  span {
    position: absolute;
    white-space: nowrap
  }


  #table-sb,
  #table-sb tr,
  #table-sb td {
    text-align: center;
    border: none;
  }

  #table-sb {
    padding: 0;
  }




  .rightclickPane {
    background-color: rgb(204, 204, 204);
    position: absolute;
    z-index: 90000;
    padding: 20px;
    margin: auto;
    display: none;
    width: 200px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    overflow: auto;

  }


  .rightclickPane button {
    padding: 5px 10px;
  }

  .rightclickPane label {
    display: block;
    font-weight: 600;
    font-size: 10px;
  }

  .rightclickPane .title {
    font-weight: 600;
    font-size: 10px;
  }

  .rightclickPane .header {
    display: block;
    position: relative;
    clear: both;
    padding-bottom: 10px;
    font-size: 12px;
    font-weight: 600;
    /* text-align: center; */
    text-transform: uppercase;
  }

  .rightclickPane .form-group {
    clear: both;
    padding-bottom: 10px;
  }

  .rightclickPane .form-control {
    display: block;
    width: 100%;
    
  }

  .rightclickPane .part {
    padding: 10px 0 0 15px;
    
  }

  .rightclickPane small {
    font-weight: 600;

  }

  #saveSession td {
    padding-bottom: 10px;
  }

  #saveSession #btn-save {
    width: 100%;
    padding: 5px;
    display: block;
  }


  .rightclickPane .links {
    text-decoration: underline;
    color: #3954b5;
  }

  .close-view {
    float: right;
    clear: both;

  }

  #saveSession small {
    /* text-align: center; */
    display: block;

  }

  #cbCompareLayers label{
    display:inline-block;
  }

  .text-success {
    color: #007800;
  }

  .text-danger {
    color: #780000;
  }


  .loading-text {
    font-size: 10px;
    font-weight: bold;
    color: #007800;
    ;
  }

  .dots::after {
    content: '';
    display: inline-block;
    text-align: left;
    animation: dots 1.5s steps(4, end) infinite;
  }

  #cbCompareLayers{
    overflow: auto;
  }

  .clutter {
    visibility: hidden;
  }

  @keyframes dots {

    0%,
    20% {
      content: '';
    }

    40% {
      content: '.';
    }

    60% {
      content: '..';
    }

    80%,
    100% {
      content: '...';
    }
  }
  .results-list {
    padding: 5px 0;
    border-bottom: 1px solid #999;

  }

  .results-list:hover {
    font-weight: 600;
    cursor: pointer;
  }

  .foundhere {
    background-color: #ffff0080;
    background-color: rgba(255,255,0,0.5);
    padding: 10px;
    font-size:larger;
    z-index: 999999999999999;
    position: absolute;
    bottom: 30px;
    font-weight: 600;
  }


  /* positioning name */
  .name {
    left: 5px;
    top: 3px
  }

  .name.link {
    width: fit-content;
    white-space: nowrap;
    z-index: 999;
  }

  div.family span.name {
    left: 90px
  }

  div.judge span.name,
  div.king-judah span.name,
  div.king-israel span.name,
  div.kingdom span.name {
    top: -18px
  }

  div.nation {
    height: 50px;
    position: absolute
  }

  div.nation span.name {
    top: 30px;
  }

  div.nation span.yrs {
    left: 0;
  }

  div.event-family,
  div.filler {
    height: 30px;
  }

  div.event-family span.name {
    top: 15px;
  }

  div.event-king {
    height: 50px;
    position: absolute
  }

  div.event-king span.name {
    top: 30px;
    left: -60px;
  }

  /* king */

  div.event-kingdom,
  div.event-judge {
    height: 25px;
    top: -20px
  }

  div.event-kingdom span.name,
  div.event-judge span.name {
    top: 15px;
    left: 20px;
  }

  /* king */
  div.event-kingdom.yrs span.name {
    top: 0px;
  }

  /* king */

  /*  div.event-position span.name {top:3px;} /* judge and king : event */

  /* positioning number of yrs */
  .yrs {
    right: 5px
  }

  .yrs.less20 {
    right: -10px;
    left: 1px
  }

  .yrs.twoToFour {
    left: 8px
  }

  /* divs special cases */
  div.philistines {
    height: 180px;
  }

  div.philistines span.name {
    top: 160px;
  }

  div.philistines span.yrs {
    top: 140px;
  }

  div.gap {
    border-style: dotted;
  }

  div.jephtah-expression {
    height: 50px;
    top: auto;
    position: absolute
  }

  div.jephtah-expression span.name {
    top: 20px
  }

  div.jephtah-expression span.yrs {
    top: 35px
  }

  div.judge-breakdown {
    top: 20px
  }

  /* Samuel and Eli */

  /* to extend the line of the nation connectin it to its root */
  span.filler {
    left: -2px;
    top: -20px;
    position: absolute
  }

  /* for the records that is_line is true */
  div.in-line {
    position: absolute;
    top: auto;
  }

  /* magnifying glass */
  /* magnifying glass glass/button */
  .mg {
    display: inline-block;
    position: absolute;
    width: 8px;
    height: 8px;
    border: 2px solid var(--mg-bg-color);
    border-radius: 10px;
    cursor: pointer;
  }

  /* magnifying glass handle  */
  .mg::before {
    display: inline-block;
    position: absolute;
    right: -7px;
    bottom: -4px;
    width: 9px;
    height: 2px;
    content: "";
    border-width: 0;
    background: var(--mg-bg-color);
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
    ;
  }

  /* popup life detail */
  .popup {
    display: none;
    position: absolute;
    top: -3px;
    padding: 20px;
    z-index: 10000;
    border: 3px solid var(--popup-name-color);
    background-color: aliceBlue;
  }

  .popup.show {
    display: block;
  }

  .popup .event {
    display: block;
    position: relative;
    width: min-content;
    left: 10px;
    border-width: 2px;
    border-style: solid;
    border-color: transparent transparent transparent var(--popup-name-color);
    color: var(--popup-name-color);
  }

  .popup .event div {
    background-color: aliceBlue;
  }

  .popup .event div.title {
    top: -18px;
    position: relative;
    display: inline-block;
  }

  .popup .event div.title-event {
    top: 15px;
    position: absolute;
    left:5px;
  }


  .popup .popup-grid span {
    /* transform: scale(0.6) translateX(-0.1rem); */
    transform-origin: top;
    transform: scale(0.6) translateX(-2.5rem) rotate(-60deg);
  }

  .popup-grid span {
    top: -5px;
    left: -12px;
    transform: rotate(-60deg);
    background-color: aliceBlue
  }


  #container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    left:-1px; /* need to adjust by 1px because of hover */
  }

  #main {
    position: absolute;
    transform-origin: top;
  }

  :root {
    --floats-color: #0F9D58;
  }

  /* mini map */
  .bg-thousand-mini {
    position: absolute;
    width: 66.66666666666667px;
    height: 100%;
  }

  #mini {
    position: absolute;
    left: 20px;
    bottom: 20px;
    width: 539px;
    height: 170px;
    background: #efeeee;
    /*border:1px solid #ddd;*/
    box-shadow: 1px 10px 15px #464646;
    cursor: pointer;
    display: none;
    z-index: 10;
  }

  #open-mini {
    position: absolute;
    left: 13px;
    bottom: 13px;
  }

  #icon_marker {
    display: block;
    position: absolute;
    top: 25%;
    left: 40%;
    width: 10px;
    height: 5px;
    background-color: #fff;
    border: 1px solid #b52600;
    filter: alpha(opacity=50);
    opacity: .7;
    -moz-opacity: .5;
    z-index: -1;
  }

  .icon-lines {
    position: relative;
    height: 1.5px;
  }

  #minilayer {
    position: absolute;
    /* top: 20px; */
    width: 529px;
    height: 150px;
    overflow-y: scroll
  }

  #minigrids {
    z-index: -1;
  }

  #minigrids .grid-name {
    font-size: 10px;
    opacity: .7;
  }

  .minigrid {
    position: absolute;
    width: 1px;
    height: 100%;
    background-color: #a0a0a0;
  }

  #vt_minimap_marker {
    display: block;
    position: absolute;
    top: 0%;
    left: 0%;
    width: 25px;
    height: 10px;

    background-color: #fff;
    border: 1px solid #b52600;
    filter: alpha(opacity=50);
    opacity: .7;
    -moz-opacity: .5;
    /*z-index: -1;*/
  }

  #minilayerBGNow {
    position: absolute;
    height: 100%;
    z-index: -10;
    background-color: #ccc;
  }

  /* .zoom { position:absolute; padding-top: 5px; left: 70px; bottom: 10px; z-index: 9; } */

  .zoom-button {
    display: inline-block;
    position: relative;
    width: 25px;
    height: 25px;
    background-color: #F0F8FF;
    color: #0F9D58;
    border: 3px solid #0F9D58;
    border-radius: 15px;
    text-align: center;
    /* line-height: 25px; */
    font-size: 20px;
    font-weight: 600;
    box-shadow: 1px 4px 10px -3px #424242;
    cursor: pointer;
    /* float: right; */
  }

  #zoom-count {
    font-size: 9px;
    line-height: 28px;
  }

  /* custom right click */
  #context-menu {
    width: 250px;
    max-height: 400px;
    display: none;
    position: absolute;
    overflow: hidden;
    border: 1px solid #CCC;
    white-space: nowrap;
    font-family: sans-serif;
    background: #FFF;
    color: #333;
    border-radius: 5px;
    z-index: 80;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;

  }

  #context-menu ul {
    list-style-type: none;
    padding-left: 0px;
    margin-top: 5px;
  }

  #context-menu li {
    padding: 3px 12px 3px 15px;
    color: #686868;
    font-size: 13px;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  }

  #context-menu li svg{
    padding-left: 5px;
  }
  #context-menu li.separator{
    border-top: 1px solid #dadce0;
    margin: 8px 0 3px 0px;
    padding: 0;
  }

  #context-menu li.btn {
    cursor: pointer;
  }

  #context-menu li.disabled {
    pointer-events: none;
    color: #c9c9c9;
    /* cursor: not-allowed; */
  }

  #context-menu li.btn:hover {
    background-color: #F3F4F6;
  }

  #close-calc {
    top: initial;
    padding: 2px;
    top: -15px;
    right: -10px;
    width: 10px;
    height: 10px;
    z-index: 86;
    font-size: 15px;
    line-height: 8px;
    opacity: 0.8;
  }

  #calculatedYrs {
    padding-top: 10px
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  a:hover {
    text-decoration: underline;
  }

  .hover {
    position: absolute;
    top: 15px;
    width: 250px;
    opacity: 0;
    padding: 5px;
    z-index: 10;
    display: 'block';
    white-space: break-spaces;
    background-color: #fff;
    border: 2px solid var(--hover-border-color);
    ;
    box-shadow: 2px 4px 6px 2px #a7a6a6;
    color: #595959
  }

  .hover span {
    position: relative;
  }

  /* pins on right clicking */
  .pin {
    z-index: 85;
  }

  .pin-circle {
    transform: perspective(40px) rotateX(20deg) rotateZ(-45deg);
    transform-origin: 50% 50%;
    border-radius: 50% 50% 50% 0;
    padding: 0 3px 3px 0;
    width: 20px;
    height: 20px;
    background: #0449E8;
    position: absolute;
    top: 0px;
    left: 7px;
    margin: -2.2em 0 0 -1.3em;
    -webkit-box-shadow: -1px 1px 4px rgba(0, 0, 0, .5);
    -moz-box-shadow: -1px 1px 4px rgba(0, 0, 0, .5);
    box-shadow: -1px 1px 4px rgba(0, 0, 0, .5);
  }

  .pin-circle:after {
    content: '';
    width: 10px;
    height: 10px;
    margin: 8px 0 0 5px;
    background: #ffffff;
    position: absolute;
    border-radius: 50%;
    -moz-box-shadow: 0 0 10px rgba(0, 0, 0, .5);
    -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, .5);
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
    -moz-box-shadow: inset -2px 2px 4px hsla(0, 0, 0, .5);
    -webkit-box-shadow: inset -2px 2px 4px hsla(0, 0, 0, .5);
    box-shadow: inset -2px 2px 4px hsla(0, 0, 0, .5);

  }

  /*
    .pin-circle {
      top:-20px;
      left:-6px;
      position: absolute;
      width: 8px;
      height: 8px;
      border: 3px solid #0449E8;
      border-radius: 50%;
      z-index:2
    }
  */

  .xxxxpin-foot {
    top: -10px;
    left: -9px;
    position: absolute;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #0449E8;

  }

  .xxxpin-foot:before {
    content: "";
    position: absolute;
    top: -10px;
    left: -15px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 5px solid #fff;
    opacity: 2
  }

  #pin {
    background-color: rgba(4, 73, 232, .2);
    position: absolute;
    width: 0;
    height: 50px;
    border: 2px solid transparent;
    color: #0449E8;
    text-align: right;
    font-weight: bold;
    z-index: 9991;
  }

  #pin .input {
    width: 50px;
    position: relative;
    padding-right: 10px;
  }

  #tooltip::before {
    content: ""; 
    border-style: solid;
    border-width: 10px 10px 0 0;
    border-color: #000 transparent transparent transparent;
    left: 0;
    top: 0;
    position: absolute;
  }

  #calcu {
    position: relative;
    top: 0px;
    display: none;
    background-color: rgba(255,255,255,0.7);
    padding: 5px;
    box-shadow: 1px 4px 10px -3px #424242;
  }

  /* check boxes */
  #settings {
    z-index: 25;
    position: absolute;
    bottom: 90px;
    left: 20px;
    background-color: #fff;
    border: 3px solid #0F9D58;
    padding: 5px;
    border-radius: 5px;
    color: #0F9D58;
    font-weight: normal;
    font-size: 10px;
    display: none;
    box-shadow: 1px 10px 15px #464646;
    height: 550px;
  }

  #settings-chbxs {
    height: 90%;
    overflow: auto;
  }
  #open-settings {
    bottom: 82px;
    left: 13px;
    width: 25px;
    height: 25px;
    border-radius: 25px;
    z-index: 10;
  }

  .chk-three {
    margin-left: 20px;
  }

  /* gear */
  .parent {
    position: absolute;
    top: 6px;
    right: 6px;
  }

  .gear {
    position: relative;
    width: 13px;
    height: 13px;
    margin: auto;
    background: #0F9D58;
    border-radius: 50%;
  }

  .gear .center {
    position: absolute;
    top: 3px;
    left: 3px;
    z-index: 10;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
  }

  .tooth {
    position: absolute;
    top: -2px;
    left: 5px;
    z-index: 1;
    width: 3px;
    height: 17px;
    background: #0F9D58;
  }

  .tooth:nth-child(2) {
    transform: rotate(45deg);
  }

  .tooth:nth-child(3) {
    transform: rotate(90deg);
  }

  .tooth:nth-child(4) {
    transform: rotate(135deg);
  }

  /* Default styles Used by many */
  .float-style {
    position: absolute;
    background-color: #F0F8FF;
    border: 3px solid var(--floats-color);
    z-index: 20;
  }

  #bg-white-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    width: 12000px;
    z-index: 10;
    opacity: .9;
    background-color: #fff;
  }

  #bg-black-full {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #000;
    /* opacity: .8; */
    z-index: 9998;
  }

  #wait {
    position: absolute;
    width: 180px;
    top: 45%;
    left: 50%;
    margin-left: -90px;
    font-size: 30px;
    color: #fff;
    /* display:none; */
    z-index: 9999;
    text-align: center;
  }

  .close {
    position: absolute;
    padding: 2px;
    top: -15px;
    right: -15px;
    width: 15px;
    height: 15px;
    background-color: #F0F8FF;
    color: #EE3E80;
    border: 2px solid #EE3E80;
    border-radius: 15px;
    text-align: center;
    line-height: 12px;
    font-weight: 600;
    cursor: pointer
  }

  .close-lg {
    top: initial;
    padding: 2px;
    left: -10px;
    bottom: -10px;
    width: 20px;
    height: 20px;
    box-shadow: 1px 4px 10px -3px #424242;
    font-size: 18px;
    line-height: 15px;
    z-index: 11
  }

  /* Instructions */
  .btn-open {
    width: 25px;
    height: 25px;
    box-shadow: 1px 4px 10px -3px #424242;
    color: var(--floats-color);
    border-radius: 25px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;

  }

  #instructions {
    bottom: 55px;
    left: 20px;
    /*height: 460px;*/
    width: 350px;
    padding: 20px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 1px 10px 15px #464646;
    display: none;
    z-index: 20;
  }

  #instructions .title {
    font-size: 13px;
    /*color:#0c7542;*/
    color: var(--floats-color)
  }

  .action {
    padding-bottom: 5px;
    padding-top: 15px;
    color: var(--floats-color)
  }

  .action-details {
    padding-left: 15px;
    padding-top: 5px;
  }

  .highlight {
    position: relative;
    font-weight: 600;
    font-size: 15px;
    color: var(--floats-color)
  }

  .for-qstn {
    position: relative;
    --mg-bg-color: var(--floats-color);
  }

  #open-instructions {
    bottom: 48px;
    left: 13px;
    text-align: center;
  }

  #close-instructions {
    top: auto;
    right: auto;
    bottom: -10px;
    left: -10px;
  }

  .bg-thousand {
    position: absolute;
    width: 2000px;
  }



  .moveme,
  .movememini {
    z-index: 99999;
    background-color: rgba(200, 200, 200, 0.5);
  }
  .moveme {
    box-shadow: 3px 3px #222;
  }
  .movememini {
    box-shadow: .2px .2px #222;
  }

  .list-unstyled {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
  }

  .list-unstyled li {
    padding-bottom: 10px;
  }

  /*body{background: #198;}*/






  /* keyframes*/
  @-webkit-keyframes mwe-popups-fade-in-up {
    0% {
      opacity: 0;
      -webkit-transform: translate(0, 20px);
      -moz-transform: translate(0, 20px);
      -ms-transform: translate(0, 20px);
      transform: translate(0, 20px)
    }

    100% {
      opacity: 1;
      -webkit-transform: translate(0, 0);
      -moz-transform: translate(0, 0);
      -ms-transform: translate(0, 0);
      transform: translate(0, 0)
    }
  }

  @-moz-keyframes mwe-popups-fade-in-up {
    0% {
      opacity: 0;
      -webkit-transform: translate(0, 20px);
      -moz-transform: translate(0, 20px);
      -ms-transform: translate(0, 20px);
      transform: translate(0, 20px)
    }

    100% {
      opacity: 1;
      -webkit-transform: translate(0, 0);
      -moz-transform: translate(0, 0);
      -ms-transform: translate(0, 0);
      transform: translate(0, 0)
    }
  }

  @keyframes mwe-popups-fade-in-up {
    0% {
      opacity: 0;
      -webkit-transform: translate(0, 20px);
      -moz-transform: translate(0, 20px);
      -ms-transform: translate(0, 20px);
      transform: translate(0, 20px)
    }

    100% {
      opacity: 1;
      -webkit-transform: translate(0, 0);
      -moz-transform: translate(0, 0);
      -ms-transform: translate(0, 0);
      transform: translate(0, 0)
    }
  }

  @-webkit-keyframes mwe-popups-fade-in-down {
    0% {
      opacity: 0;
      -webkit-transform: translate(0, -20px);
      -moz-transform: translate(0, -20px);
      -ms-transform: translate(0, -20px);
      transform: translate(0, -20px)
    }

    100% {
      opacity: 1;
      -webkit-transform: translate(0, 0);
      -moz-transform: translate(0, 0);
      -ms-transform: translate(0, 0);
      transform: translate(0, 0)
    }
  }

  @-moz-keyframes mwe-popups-fade-in-down {
    0% {
      opacity: 0;
      -webkit-transform: translate(0, -20px);
      -moz-transform: translate(0, -20px);
      -ms-transform: translate(0, -20px);
      transform: translate(0, -20px)
    }

    100% {
      opacity: 1;
      -webkit-transform: translate(0, 0);
      -moz-transform: translate(0, 0);
      -ms-transform: translate(0, 0);
      transform: translate(0, 0)
    }
  }

  @keyframes mwe-popups-fade-in-down {
    0% {
      opacity: 0;
      -webkit-transform: translate(0, -20px);
      -moz-transform: translate(0, -20px);
      -ms-transform: translate(0, -20px);
      transform: translate(0, -20px)
    }

    100% {
      opacity: 1;
      -webkit-transform: translate(0, 0);
      -moz-transform: translate(0, 0);
      -ms-transform: translate(0, 0);
      transform: translate(0, 0)
    }
  }

  @-webkit-keyframes mwe-popups-fade-out-down {
    0% {
      opacity: 1;
      -webkit-transform: translate(0, 0);
      -moz-transform: translate(0, 0);
      -ms-transform: translate(0, 0);
      transform: translate(0, 0)
    }

    100% {
      opacity: 0;
      -webkit-transform: translate(0, 20px);
      -moz-transform: translate(0, 20px);
      -ms-transform: translate(0, 20px);
      transform: translate(0, 20px)
    }
  }

  @-moz-keyframes mwe-popups-fade-out-down {
    0% {
      opacity: 1;
      -webkit-transform: translate(0, 0);
      -moz-transform: translate(0, 0);
      -ms-transform: translate(0, 0);
      transform: translate(0, 0)
    }

    100% {
      opacity: 0;
      -webkit-transform: translate(0, 20px);
      -moz-transform: translate(0, 20px);
      -ms-transform: translate(0, 20px);
      transform: translate(0, 20px)
    }
  }

  @keyframes mwe-popups-fade-out-down {
    0% {
      opacity: 1;
      -webkit-transform: translate(0, 0);
      -moz-transform: translate(0, 0);
      -ms-transform: translate(0, 0);
      transform: translate(0, 0)
    }

    100% {
      opacity: 0;
      -webkit-transform: translate(0, 20px);
      -moz-transform: translate(0, 20px);
      -ms-transform: translate(0, 20px);
      transform: translate(0, 20px)
    }
  }

  @-webkit-keyframes mwe-popups-fade-out-up {
    0% {
      opacity: 1;
      -webkit-transform: translate(0, 0);
      -moz-transform: translate(0, 0);
      -ms-transform: translate(0, 0);
      transform: translate(0, 0)
    }

    100% {
      opacity: 0;
      -webkit-transform: translate(0, -20px);
      -moz-transform: translate(0, -20px);
      -ms-transform: translate(0, -20px);
      transform: translate(0, -20px)
    }
  }

  @-moz-keyframes mwe-popups-fade-out-up {
    0% {
      opacity: 1;
      -webkit-transform: translate(0, 0);
      -moz-transform: translate(0, 0);
      -ms-transform: translate(0, 0);
      transform: translate(0, 0)
    }

    100% {
      opacity: 0;
      -webkit-transform: translate(0, -20px);
      -moz-transform: translate(0, -20px);
      -ms-transform: translate(0, -20px);
      transform: translate(0, -20px)
    }
  }

  @keyframes mwe-popups-fade-out-up {
    0% {
      opacity: 1;
      -webkit-transform: translate(0, 0);
      -moz-transform: translate(0, 0);
      -ms-transform: translate(0, 0);
      transform: translate(0, 0)
    }

    100% {
      opacity: 0;
      -webkit-transform: translate(0, -20px);
      -moz-transform: translate(0, -20px);
      -ms-transform: translate(0, -20px);
      transform: translate(0, -20px)
    }
  }

  .mwe-popups-fade-in-up {
    -webkit-animation: mwe-popups-fade-in-up 0.2s ease forwards;
    -moz-animation: mwe-popups-fade-in-up 0.2s ease forwards;
    animation: mwe-popups-fade-in-up 0.2s ease forwards
  }

  .mwe-popups-fade-in-down {
    -webkit-animation: mwe-popups-fade-in-down 0.2s ease forwards;
    -moz-animation: mwe-popups-fade-in-down 0.2s ease forwards;
    animation: mwe-popups-fade-in-down 0.2s ease forwards
  }

  .mwe-popups-fade-out-down {
    -webkit-animation: mwe-popups-fade-out-down 0.2s ease forwards;
    -moz-animation: mwe-popups-fade-out-down 0.2s ease forwards;
    animation: mwe-popups-fade-out-down 0.2s ease forwards
  }

  .mwe-popups-fade-out-up {
    -webkit-animation: mwe-popups-fade-out-up 0.2s ease forwards;
    -moz-animation: mwe-popups-fade-out-up 0.2s ease forwards;
    animation: mwe-popups-fade-out-up 0.2s ease forwards
  }

  /* end keyframes */