/*===========
Modal
=========== */
.modal {
  .modal-dialog {

    .close {
      top: -18px;
      position: absolute;
      right: -18px;
      height: 36px;
      width: 36px;
      background-color: $dark;
      opacity: 1;
      border: 2px solid $white;
      text-shadow: none;
      color: $white;
      border-radius: 50%;
    }

    .modal-title {
      margin: 0;
    }

    .modal-content {
      -moz-box-shadow: none;
      -webkit-box-shadow: none;
      border-radius: 0;
      box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.3);

      .modal-header {
        border-bottom-width: 2px;
        margin: 0;
      }
      .modal-body {
        padding: 20px;
      }

    }
  }
}

.modal-full {
  width: 98%;
}

/* Custom-modal */
.modal-demo {
  background-color: $white;
  width: 600px;
  border-radius: 4px;
  display: none;

  .close {
    position: absolute;
    top: 14px;
    right: 25px;
    color: $white;
    opacity: 0.5;
    font-weight: normal;
    font-size: 26px;

    &:hover {
      opacity: 1;
    }
  }
}

.custom-modal-title {
  padding: 15px 25px 15px 25px;
  line-height: 22px;
  font-size: 18px;
  background-color: $primary;
  color: $white;
  text-align: left;
  margin: 0;
}

.custom-modal-text {
  padding: 20px;
}

.custombox-modal-flash, .custombox-modal-rotatedown {
  .close {
    top: 20px;
    z-index: 9999;
  }
}