
/* Modal */
#window-overlay {
    display: none;
    pointer-events: all;
    position: fixed;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 100;
    opacity: 0;
  }
  #window-overlay.active {
    display: block;
    -webkit-animation: overlay-reveal 1s forwards;
            animation: overlay-reveal 1s forwards;
  }
  #window-overlay.out {
    -webkit-animation: overlay-hide 500ms forwards;
            animation: overlay-hide 500ms forwards;
    opacity: 1;
  }
  
  @-webkit-keyframes overlay-reveal {
    to {
      opacity: 1;
    }
  }
  
  @keyframes overlay-reveal {
    to {
      opacity: 1;
    }
  }
  @-webkit-keyframes overlay-hide {
    to {
      opacity: 0;
    }
  }
  @keyframes overlay-hide {
    to {
      opacity: 0;
    }
  }
  .modal_block {
    position: fixed;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -30%);
        -ms-transform: translate(-50%, -30%);
            transform: translate(-50%, -30%);
    background-color: #fff;
    z-index: 200;
    display: block;
    padding: 45px;
    border-radius: 24px;
    min-width: 270px;
    max-width: 480px;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05), 0 2px 2px rgba(0, 0, 0, 0.05), 0 4px 4px rgba(0, 0, 0, 0.05), 0 6px 8px rgba(0, 0, 0, 0.05), 0 8px 16px rgba(0, 0, 0, 0.05);
            box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05), 0 2px 2px rgba(0, 0, 0, 0.05), 0 4px 4px rgba(0, 0, 0, 0.05), 0 6px 8px rgba(0, 0, 0, 0.05), 0 8px 16px rgba(0, 0, 0, 0.05);
    display: none;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-flow: row wrap;
        -ms-flex-flow: row wrap;
            flex-flow: row wrap;
    -webkit-box-align: center;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-justify-content: space-around;
        -ms-flex-pack: distribute;
            justify-content: space-around;
    opacity: 0;
  }
  .modal_block .modal_block--text p {
    margin-bottom: 5px;
  }
  .modal_block .header {
    display: block;
    text-align: center;
    font-size: 2em;
    font-family: "Libre Baskerville", georgia, serif;
  }
  .modal_block .subjectText {
    display: block;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    position: relative;
    margin-bottom: 10px;
  }
  .modal_block .subjectText::before {
    content: "";
    width: 30%;
    height: 2px;
    background-color: #333;
    position: absolute;
    top: 120%;
    left: 50%;
    -webkit-transform: translate(-50%, 0);
        -ms-transform: translate(-50%, 0);
            transform: translate(-50%, 0);
  }
  .modal_block .button-full {
    isolation: isolate;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    border: none;
    color: #fff;
    background: -o-linear-gradient(310deg, #B1C954, #637711);
    background: linear-gradient(140deg, #B1C954, #637711);
  }
  .modal_block .button-full::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    -webkit-transition: opacity 300ms ease-in;
    -o-transition: opacity 300ms ease-in;
    transition: opacity 300ms ease-in;
    opacity: 0;
  }
  .modal_block .button-full:hover::before {
    -webkit-transition: opacity 100ms ease-out;
    -o-transition: opacity 100ms ease-out;
    transition: opacity 100ms ease-out;
    opacity: 1;
  }
  .modal_block .button-full::before {
    background: -o-linear-gradient(310deg, #e3f88c, #769400);
    background: linear-gradient(140deg, #e3f88c, #769400);
  }
  .modal_block .button-full-outline, .modal_block .button-full {
    margin: 10px 0;
  }
  .modal_block.active {
    -webkit-animation: modal-in 800ms cubic-bezier(0.075, 0.82, 0.165, 1) forwards;
            animation: modal-in 800ms cubic-bezier(0.075, 0.82, 0.165, 1) forwards;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
  }
  .modal_block.out {
    -webkit-animation: modal-out 500ms ease-in forwards;
            animation: modal-out 500ms ease-in forwards;
  }
  
  @-webkit-keyframes modal-in {
    to {
      opacity: 1;
      -webkit-transform: translate(-50%, -50%);
              transform: translate(-50%, -50%);
    }
  }
  
  @keyframes modal-in {
    to {
      opacity: 1;
      -webkit-transform: translate(-50%, -50%);
              transform: translate(-50%, -50%);
    }
  }
  @-webkit-keyframes modal-out {
    from {
      opacity: 1;
      -webkit-transform: translate(-50%, -50%);
              transform: translate(-50%, -50%);
    }
    to {
      -webkit-transform: translate(-50%, -30%);
              transform: translate(-50%, -30%);
      opacity: 0;
    }
  }
  @keyframes modal-out {
    from {
      opacity: 1;
      -webkit-transform: translate(-50%, -50%);
              transform: translate(-50%, -50%);
    }
    to {
      -webkit-transform: translate(-50%, -30%);
              transform: translate(-50%, -30%);
      opacity: 0;
    }
  }
  .noscroll {
    overflow: hidden;
  }