@use "../variables" as v;
.invites {
  z-index: 30;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba($color: v.$px1, $alpha: 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  .box {
    width: calc(100% - 60px);
    max-width: 500px;
    background-color: v.$px2;
    box-shadow: 0 0 10px v.$black;
    padding: 40px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    animation: slide_up_in 0.5s;
    .img {
      width: 100%;
      img {
        display: block;
        margin: 0 auto;
        width: 80px;
        height: 80px;
        border-radius: 10px;
        object-fit: cover;
        object-position: center;
        -o-object-fit: cover;
        -o-object-position: center;
      }
    }
    .title {
      width: 100%;
      text-align: center;
      p.name {
        color: v.$white;
        font-size: 1.5rem;
      }
      p.members {
        font-size: 1rem;
        i {
          color: v.$cred;
        }
      }
    }
    .actions {
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      .btn {
        display: block;
        flex-grow: 1;
        padding: 10px;
        font-weight: bold;
        color: v.$px1;
        background-color: v.$pm1;
        text-decoration: none;
        text-align: center;
        border-radius: 10px;
        &.btn-cancel {
          background-color: v.$px1;
          color: v.$softwhite;
        }
      }
    }
  }
  &.out {
    .box {
      animation: popup_out 0.5s forwards;
    }
  }
}
