html,
body {
  box-sizing: border-box;
}

.primary-gradient {
  background: linear-gradient(180deg, #a779f9 0%, #a272d1 100%);
}

.primary-matrix {
  transform: matrix(-1, 0, 0, 1, 0, 0);
}

.word-wrap {
  word-wrap: break-word;
}

/* width */
::-webkit-scrollbar {
  width: 8px;
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px #151419;
  border-radius: 3px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #704cb0;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.17);
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #704cb9;
}

.line-clamp {
  display: -webkit-box;
  height: 100px;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.625;
  word-wrap: break-word;
}

.transition-height {
  max-height: 0;
  transition: max-height 0.15s ease-out;
  overflow: hidden;
}

.transition-height.active {
  max-height: 824px;
  transition: max-height 0.25s ease-in;
}

.rotate-180 {
  transform: rotate(180deg);
}

.roller-spinner {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.roller-spinner div {
  animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 40px 40px;
}

.roller-spinner div:after {
  content: ' ';
  display: block;
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: black;
  margin: -4px 0 0 -4px;
}

.roller-spinner div:nth-child(1) {
  animation-delay: -0.036s;
}

.roller-spinner div:nth-child(1):after {
  top: 63px;
  left: 63px;
}

.roller-spinner div:nth-child(2) {
  animation-delay: -0.072s;
}

.roller-spinner div:nth-child(2):after {
  top: 68px;
  left: 56px;
}

.roller-spinner div:nth-child(3) {
  animation-delay: -0.108s;
}

.roller-spinner div:nth-child(3):after {
  top: 71px;
  left: 48px;
}

.roller-spinner div:nth-child(4) {
  animation-delay: -0.144s;
}

.roller-spinner div:nth-child(4):after {
  top: 72px;
  left: 40px;
}

.roller-spinner div:nth-child(5) {
  animation-delay: -0.18s;
}

.roller-spinner div:nth-child(5):after {
  top: 71px;
  left: 32px;
}

.roller-spinner div:nth-child(6) {
  animation-delay: -0.216s;
}

.roller-spinner div:nth-child(6):after {
  top: 68px;
  left: 24px;
}

.roller-spinner div:nth-child(7) {
  animation-delay: -0.252s;
}

.roller-spinner div:nth-child(7):after {
  top: 63px;
  left: 17px;
}

.roller-spinner div:nth-child(8) {
  animation-delay: -0.288s;
}

.roller-spinner div:nth-child(8):after {
  top: 56px;
  left: 12px;
}

@keyframes lds-roller {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#btnUploading.inactive {
  display: none;
}

#btnUpdating.inactive {
  display: none;
}

#btnUploading.active {
  display: block;
}

#btnUpdating.active {
  display: block;
}

#uploading {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-left: -10px;
  border: 2px solid #f3f3f3;
  border-radius: 50%;
  border-top: 3px solid #3498db;
  animation: spin 2s linear infinite;
}

#updating {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-left: -10px;
  border: 2px solid #f3f3f3;
  border-radius: 50%;
  border-top: 3px solid #3498db;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
