.alert {
  border-radius: 0;
  margin-bottom: 40px;
  position: relative;

  &>ul {
    padding-left: 20px;
  }

  .btn-sm {
    margin-top: 10px;

    + .btn-sm {
      margin-left: 5px;
    }
  }

  .header {
    margin-bottom: 10px;
  }

  &.alert-dismissable .close, &.alert-dismissible .close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
  }

  &.error p {
    overflow: hidden;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;

    -ms-word-break: break-all;
    word-break: break-word;
  }
}

.full-alert {
  overflow: auto;
  text-align: center;
  padding: 20px;
  margin: 80px 60px 60px;

  .alert-content {
    text-align: left;
  }

  code, pre {
    background-color: #f9f2f4;
    color: #a94442;
    border: none;
  }

  code {
    padding: 1px 4px;
  }

  summary {
    cursor: pointer;
    outline: none;
  }

  summary:focus {
    text-decoration: underline;
  }
}

.global-error {
  left: 0;
  position: absolute;
  right: 0;
  top: 40px;
  z-index: 2000;
}

.project-content .alert-warning {
  position: relative;
  border-bottom: 1px solid #ddd;

  code, pre {
    color: #8a6d3b;
    border: none;
  }
}

.project-content .alert-warning,
.global-error {
    margin-bottom: 0;

    button {
      font-size: 1em;
      position: absolute;
      top: 10px;
      right: 10px;
    }
  }
