$am-ms: 200ms;

.dialog {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  &_mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
    opacity: 0;
    transition: opacity $am-ms ease-in;
    &_active {
      opacity: 1;
    }
    &--hidden {
      background: transparent;
    }
  }
  &_content {
    position: fixed;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity $am-ms ease-in;
    &_active {
      opacity: 1;
    }
  }
}
