/* TODO: Create tailwind styles for this component */
.sb-topLeft {
  @apply top-0 left-0 bottom-auto right-auto;
}

.sb-topCenter {
  transform: translateX(-50%);
  @apply top-0 bottom-auto left-1/2;
}

.sb-topRight {
  @apply right-0 top-0 left-auto bottom-auto;
}

.sb-bottomLeft {
  @apply right-auto left-0 bottom-0 top-auto;
}

.sb-bottomCenter {
  @apply top-auto bottom-0 left-1/2;
  transform: translateX(-50%);
}

.sb-bottomRight {
  margin: 10px 0 0;
  @apply top-auto bottom-0 left-auto right-0;
}

.sb-topLeft .sb-item,
.sb-topCenter .sb-item,
.sb-topRight .sb-item {
  margin: 10px 0 0;
}

.sb-bottomLeft .sb-item,
.sb-bottomCenter .sb-item,
.sb-bottomRight .sb-item {
  margin: 0 0 10px;
}

.sb-closeBtn {
  text-shadow: none;
  width: 20px;
  height: 20px;
  right: 5px;
  top: 5px;
  @apply overflow-hidden opacity-100 rounded-full p-1 bg-white cursor-pointer absolute text-center duration-300 transition-all ease-in-out;
}

.sb-closeBtn:hover {
  background: #fff;
}

.sb-closeIcon {
  @apply w-full relative overflow-hidden h-full block leading-none;
}

.sb-closeIcon:after,
.sb-closeIcon:before {
  content: ' ';
  height: 2px;
  width: 12px;
  @apply duration-300 transition-all ease-in-out block bg-black opacity-100 absolute;
}

.sb-closeIcon:before {
  left: 4px;
  top: 3px;
  transform: rotate(45deg);
  transform-origin: 0px 50%;
}

.sb-closeIcon:after {
  right: 3px;
  top: 5px;
  transform: rotate(-45deg);
  transform-origin: calc(100% - 3px) 50%;
}

.sb-title {
  @apply break-normal text-lg font-bold;
}

.sb-message {
  @apply break-normal text-base;
}

.sb-item {
  animation: fadein 1s;
  box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.2), 0 1px 18px 0 rgba(0, 0, 0, 0.12),
    0 3px 5px -1px rgba(0, 0, 0, 0.14);
  @apply relative p-5 text-white overflow-hidden rounded-md transition-height ease-in-out duration-300;
}

@keyframes fadein {
  from {
    top: 30px;
    @apply opacity-0;
  }
  to {
    @apply opacity-100 top-0;
  }
}

/* Internet Explorer */
@-ms-keyframes fadein {
  from {
    top: 30px;
    @apply opacity-0;
  }
  to {
    @apply opacity-100;
    top: 0;
  }
}
