:root {
  --primary: #0194ff;
  --secondary: #e91e1e;
  --dark: #1f2323;
  --mid: #5d5d5d;
  --light: #f9f9f9;
  --success: #45bd3c;
}

/* For Storybook */
body {
  font-family: "Work Sans", sans-serif;
  color: var(--dark);
}
h3 {
  margin: 20px 5px 10px 0px;
}

/* Custom buttons */
.b-reg {
  padding: 13px 15px;
  margin: 7px;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 0.5rem;
  color: var(--light);
}
.b-mid {
  height: 43px;
  margin: 7px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  color: var(--light);
}
.b-small {
  padding: 7px;
  margin: 3px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 0.25rem;
  color: var(--light);
}
.b-styled {
  padding: 9px 12px;
  margin: 3px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 0.5rem;
  border: 2px solid var(--dark) !important;
  color: var(--dark);
}
.b-view {
  min-width: 50px;
  height: 30px;
  align-self: center;
  font-size: 0.85rem;
  border-radius: 0.5rem;
  border: none;
  color: var(--primary);
  background-color: rgba(0, 178, 255, 0.18);
}
.b-link {
  width: auto;
  height: 50px;
  font-size: 0.875rem;
  color: var(--mid);
  background-color: transparent;
}

/* Background colors */
.bg-primary {
  background-color: var(--primary);
}
.bg-secondary {
  background-color: var(--secondary);
}
.bg-dark {
  background-color: var(--dark);
}
.bg-mid {
  background-color: var(--mid);
}
.bg-light {
  background-color: var(--light);
}
.bg-success {
  background-color: var(--success);
}

/* Font colors */
.f-primary {
  color: var(--primary);
}
.f-secondary {
  color: var(--secondary);
}
.f-dark {
  color: var(--dark);
}
.f-mid {
  color: var(--mid);
}
.f-light {
  color: var(--light);
}

/* Font sizes */
.f1 {
  font-size: 3rem;
}
.f2 {
  font-size: 2.25rem;
}
.f3 {
  font-size: 1.5rem;
}
.f4 {
  font-size: 1.25rem;
}
.f5 {
  font-size: 1rem;
}
.f6 {
  font-size: 0.875rem;
}
.f7 {
  font-size: 0.75rem;
}

/* Font weights */

.fw5 {
  font-weight: 500;
}
.fw7 {
  font-weight: 700;
}
.b {
  font-weight: 700;
}

/* Border radius */

.br1 {
  border-radius: 0.125rem;
}
.br2 {
  border-radius: 0.25rem;
}
.br3 {
  border-radius: 0.5rem;
}
.br4 {
  border-radius: 1rem;
}
.br5 {
  border-radius: 50%;
}

/* Line height */

.lh-title {
  line-height: 1.25;
}
.lh-copy {
  line-height: 1.5;
}

/* Box shadow */

.shadow-1 {
  box-shadow: 0 8px 10px -2px rgba(0, 0, 0, 0.05);
}
.shadow-2 {
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
}
.shadow-3 {
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);
}
.shadow-4 {
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
}
.shadow-5 {
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
}

/* CSS for loading indicator in ButtonLoader. */

.lds-ring {
  display: inline-block;
  position: relative;
  width: 20px;
  height: 20px;
}
.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 18px;
  height: 18px;
  margin: 3px;
  border: 2px solid #fff;
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #fff transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* CSS for StatusLoader indicator to be used in status message component. */

.lds-ellipsis {
  display: inline-block;
  position: relative;
  width: 64px;
  height: 64px;
}
.lds-ellipsis div {
  position: absolute;
  top: 27px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
  left: 6px;
  animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
  left: 6px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
  left: 26px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
  left: 45px;
  animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(19px, 0);
  }
}
