.modal {
  display: flex;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  justify-content: center;
  align-items: center;
  z-index: 100;
  background: transparent;
  overflow: auto;
  padding: 8px;
  outline: none;
  border-radius: var(--radius-modal);

  header {
    background: var(--bgcolor-modal-header);
    padding: 8px 16px;
    font-size: 1.2em;
    border-top-left-radius: var(--radius-modal);
    border-top-right-radius: var(--radius-modal);
  }

  footer {
    background: var(--bgcolor-modal-footer);
    padding: 16px;
    border-bottom-left-radius: var(--radius-modal);
    border-bottom-right-radius: var(--radius-modal);
  }

  &.fullScreen{
    padding: 0;
  }
}

.dialog {
  position: relative;
  z-index: 20;
  transform: translateY(-200px);
  display: flex;
  flex-direction: column;
  border: var(--border-modal);
  outline-offset: 2px;
  border-radius: var(--radius-modal);
  font-family: var(--main-font);
  background: var(--bgcolor-modal);
  color: var(--color-modal);
  padding: 0;
  max-width: 880px;
  min-width: 200px;
  margin: 0 auto;
  
  &.fullWidth{
    width: 100%;
  }
  
  &.fullScreen{
    width: 100%;
    height: 100%;
    max-width: 100% !important;
    padding: 0;
    border-radius: 0;
  }
}

.closeButton {
  background-color: transparent;
  border: none;
  outline: inherit;
  transition: color 0.2s, background-color 0.2s;
  user-select: none;
  cursor: pointer;
  min-width: 18px;
  min-height: 18px;
  padding: 0.25em;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: none;

  &:focus {
    outline: 0.2em solid var(--color-button-focused);
  }

  &:not([disabled]) {
    &:hover {
      background: var(--bgcolor-tabbutton-pointed);
    }
  }
  &:disabled {
    cursor: not-allowed;
    color: gray;
  }
}

.dialogTitle {
  flex: 1;
  font-size: 1.25rem;
  color: var(--color-modal-header)
}

.dialogBody {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 6px 16px;
  background-color: var(--bgcolor-modal-body);
  color: var(--color-modal-body);
}

.dialogFooter {
  display: flex;
  flex: 1;
  flex-direction: row-reverse;
  padding: 8px;
}
