.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.fadeIn {
    animation-name: fadeIn;
}

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

.fadeOut {
    animation-name: fadeOut;
}

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

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all 0.4s;
    background: rgba(0,0,0,0.7);
    z-index: 999;
    display: none;

    &.active {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.modal-inner {
    width: 500px;
    height: 400px;
    background: #fff;
    border-radius: 2px;
}

@media ( max-width: 768px ){
  .modal-inner {
    width: calc(100vw - 30px);
  }
}