{#-----------------------------------#}
{#           ANIMATIONS              #}
{#-----------------------------------#}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

{#-----------------------------------#}
{#         MAIN MODULE WRAPPER       #}
{#-----------------------------------#}

.number-counter-mod {
  width: 100%;
  display: flex;
  justify-content: center;
  animation: fade-in 1s ease-in;
}

.number-counter-grid {
  width: 100%;
}

{#-----------------------------------#}
{#           CARD STYLING            #}
{#-----------------------------------#}

.number-counter-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px;
}

.number-counter-card-inner {
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  
  {# Ensure long words break properly in all modern browsers #}
  word-break: break-word;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

{#-----------------------------------#}
{#           TEXT BLOCKS             #}
{#-----------------------------------#}

.number-counter-top-text,
.number-counter-left-text,
.number-counter-right-text,
.number-counter-bottom-text {
  display: flex;
  word-break: break-word;
}

{#-----------------------------------#}
{#        COUNTER + LABEL LAYOUT     #}
{#-----------------------------------#}

.number-counter-middle-container {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}

{#-----------------------------------#}
{#        TEXT ALIGNMENT CLASSES     #}
{#-----------------------------------#}

.left {
  justify-content: flex-start;
}

.center {
  justify-content: center;
}

.right {
  justify-content: flex-end;
}