@import '../../commons/scss/colors';

.dazzler-core-modal {
  .modal-content {
    background-color: $neutral;
    border: $neutral-light 0.125rem solid;
    border-radius: 5px;
    width:  calc(60%);

    @media only screen and (max-width: 600px) {
      width: calc(90%);
    }
    @media only screen  and (max-width: 1000px) {
      width: calc(80%);
    }

    margin-top: 2rem;
    margin-right: auto;
    margin-left: auto;
  }

  .modal-overlay {
    display: none;
    z-index: 1000;
    &.modal-active {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: block;
      background-color: rgba(0,0,0, 0.8);
    }
  }
  .modal-header {
    border-bottom: $neutral-dark 0.125rem solid;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    .modal-closer {
      border: $neutral-light;
      border-radius: 5px;
      width: 2rem;
      height: 2rem;
      cursor: pointer;
      user-select: none;
      display: flex;
      justify-content: center;
      align-items: center;
      align-self: flex-start;
      font-weight: bolder;
      &:hover, &:focus {
        background-color: $neutral-dark;
      }
    }
  }
  .modal-body {
    padding: 0.5rem;
  }
  .modal-footer {
    border-top: $neutral-dark 0.125rem solid;
    padding: 0.5rem;
  }

  &.dazzler-preset-size-tiny {
    width: calc(20%);
  }
  &.dazzler-preset-size-small {
    width: calc(40%);
  }
  &.dazzler-preset-size-medium {
  }
  &.dazzler-preset-size-large {
    width: calc(65%);
  }
  &.dazzler-preset-size-larger {
    width: calc(75%);
  }
  &.dazzler-preset-size-x-large {
    width: calc(85%);
  }
  &.dazzler-preset-size-xx-large {
    width: calc(90%);
  }
  &.dazzler-preset-size-xxx-large {
    width: calc(95%);
  }
}
