.dialog-overlay {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: fixed;
  color: black;
  z-index: 10;
}

.dialog {
  display: grid;
  grid-template-columns: 1fr 20px minmax(200px, 525px) 20px 1fr;
  grid-template-rows: 1fr 20px minmax(200px, max-content) 20px 1fr;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,.85);

  &__box {
    grid-column: 3;
    grid-row: 3;
    position: relative;
    pointer-events: auto;

    &__contents {
      padding: 30px;
      box-shadow: 0px 0px 30px 1px #202020;
      border-radius: 12px;
      display: flex;
      flex-direction: column;
      text-align: center;
      position: relative;
      background-color: white;

      &__title {
        @extend %top-title;
        margin-bottom: 20px;
      }

      &__body {
        font-size: 0.9em;
        font-weight: bold;
        color: black;
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow-y: auto;
        margin: 10px 0;

        a { color: black }
      }

      &__links {
        display: flex;
        justify-content: center;
        margin: 16px 0;
        a {
          margin: 0 12px;
          color: black;
        }
      }


      &__close {
        position: absolute;
        right: 12px;
        top: 6px;
        color: black;
        font-size: 1.8em;
        font-weight: bold;

        background: none;
        cursor: pointer;
        border: none;
      }
    }
  }
}

.dialog__box__contents__body p:first-child {
  margin-top: 0;
}

.invite-form, .invite-team-form, .add-media-form, .custom-scene-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0;

  &__buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  &__link {
    display: flex;
    flex-direction: row;
  }

  &__link_field {
    @extend %rounded-border;
    @extend %default-font;
    color: black;
    font-size: 1.2em;
    background-color: transparent;
    line-height: 2.0em;
    padding-left: 1.25em;
    padding-right: 1.25em;
    margin: 0.5em 0;
    width: 100%;
  }

  &__action-button {
    @extend %bottom-action-button;
    margin-left: 6px;
    margin-right: 6px;
    appearance: none;
    width: 128px;
    text-align: center;
    -moz-appearance: none;
    -webkit-appearance: none;
  }
}

.invite-team-form {
  &__action-button {
    width: 350px;
  }
}

.mailing-list-form {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  margin: 0;

  &__first {
    width: 100%;
  }

  &__email_field {
    @extend %rounded-border;
    @extend %default-font;
    color: black;
    font-size: 1.2em;
    background-color: transparent;
    line-height: 2.5em;
    padding-left: 1.25em;
    padding-right: 1.25em;
    margin: 0.5em 0;
    width: 100%;
  }

  &__submit {
    @extend %bottom-button;
    margin-top: 0;
    margin-bottom: 0;
  }

  &__privacy {
    margin-top: 10px;
    font-size: 0.7em;
  }

  &__privacy_checkbox {
    @extend %checkbox;
    vertical-align: middle;
    margin-bottom: 18px;
  }

  &__privacy_checkbox:checked {
    @extend %checkbox-checked;
    vertical-align: middle;
  }
}


.info-dialog {
  &__help {
    text-align: left;

    &__hud {
      width: 316px;
      max-width: 100%;
      margin: 12px 0;
    }
  }
}


.info-dialog--action-button {
  @extend %bottom-button;
  margin-left: 6px;
  margin-right: 6px;
  appearance: none;
  width: 168px;
  text-align: center;
  -moz-appearance: none;
  -webkit-appearance: none;
  margin: auto;
  text-decoration: none;
}