/* ============================================================================
   01-base.css — part 1 of 9 of the former main.css
   Typography, dropzone theming and text/colour utilities

   LOAD ORDER MATTERS. These files are linked in numeric order from
   shared_elements/main/main.html. They were split by position and never
   reordered, so the cascade is byte-for-byte what the single file produced.
   Moving a rule between them can change which declaration wins.
   ============================================================================ */
h1{
    font-family: 'Work Sans';
    font-size: 4rem;
    color: var(--ks-black-2);
    font-weight: 300;
    margin: 0;
}

h2,
.h2-style
{
    font-family: 'Work Sans';
    font-size: 2.5rem;
    color: var(--ks-black-2);
    font-weight: 300;
    margin: 0;
}

h3,
.h3-style
{
    font-family: 'Work Sans';
    font-style: normal;
    font-size: 2rem;
    color: var(--ks-black-2);
    font-weight: 300;
    line-height: 28px;
    margin: 0;
}

h4,
.h4-style
{
    font-family: 'Work Sans';
    font-size: 1.5rem;
    color: var(--ks-black-2);
    font-weight: 300;
    margin: 0;
}

h5,
.h5-style
{
    font-family: 'Work Sans';
    font-size: 1.1rem;
    color: var(--ks-black-2);
    font-weight: 300;
    margin: 0;
}

legend
{
    font-family: 'Work Sans';
    color: var(--ks-black-2);
    font-weight: 300;
}

@keyframes button_to_progress_bar {
    0%
    {
        padding: 0;
        min-width: 224px;
        min-height: 49px;
        border-radius: 6px;
    }
    25%
    {
        width: 100%;
        min-height: 19px;
        background-color: var(--ks-grey);
    }
    50%
    {
        border-radius: 2.5rem;
    }
    100%
    {
        padding: 0;
        min-height: 19px;
        background-color: var(--ks-grey);
        border-radius: 2.5rem;
        width: 100%;
    }
}

@keyframes progress_bar_thickness_scaling
{
    0%
    {
        border-bottom: 49px solid var(--ks-green);
        border-radius: 6px;
    }
    25%
    {
        border-bottom: 19px solid var(--ks-green);
    }
    50%
    {
        border-radius: 2.5rem;
    }
    100%
    {
        border-bottom: 19px solid var(--ks-green);
        border-radius: 2.5rem;
    }
}

.fa-facebook
{
    color: var(--facebook-color);
}

.fa-twitter
{
    color: var(--twitter-color);
}

/*
______
|  _  \
| | | |_ __ ___  _ __ _______  _ __   ___
| | | | '__/ _ \| '_ \_  / _ \| '_ \ / _ \
| |/ /| | | (_) | |_) / / (_) | | | |  __/
|___/ |_|  \___/| .__/___\___/|_| |_|\___|
                | |
                |_|
*/

.dropzone
{
    background-color: var(--ks-white);
    color: var(--eC-black);
    border: 1px dashed var(--eC-primary-darker);
    border-radius: 4px;
    width: 100%;
}

.dropzone.dropzone-alternative
{
    background-color: transparent !important;
    color: unset;
    border: none !important;
    border-radius: 100%;
    position: relative;
    height: 240px !important;
    width: 240px !important;
}

.dropzone.dropzone-alternative .user-info-avatar-overlay
{
    position: absolute;
    width: 200px;
    height: 200px;
    top: calc(0% + 20px);
    left: calc(0% + 20px);
    border-radius: 100%;
    background-color: var(--ks-grey);
    opacity: 70%;
    overflow: hidden;
}

.dropzone.dropzone-alternative .user-info-no-avatar
{
    background-color: var(--eC-primary);
    position: absolute;
    left: 20px;
    width: 200px;
    height: 200px;
    border-radius: 100%;
}

.dropzone.dropzone-alternative .user-info-no-avatar span
{
    height: 64px;
    width: 64px;
    font-size: 64px;
    line-height: 64px;
    color: var(--ks-grey);
}

.dropzone.dropzone-alternative .user-info-avatar
{
    pointer-events: none;
}

.dropzone.dropzone-alternative .dz-image,
.dropzone.dropzone-alternative .dz-details
{
    display: none;
}

.dropzone.dropzone-alternative .dz-success-mark
{
    position: relative;
    margin: 0;
    left: -24px;
    top: 27px;
}

.dropzone.dropzone-alternative .dz-error-mark
{
    position: relative;
    margin: 0;
    top: -27px;
    left: -24px;
}

.dropzone.dropzone-alternative .dz-preview
{
    margin: 0;
    position: absolute;
    left: 120px;
    top: 70px;
}
.dropzone.dropzone-alternative .dz-preview .dz-spinner
{
    color: var(--eC-primary);
    left: -15px;
}

.dropzone.dropzone-alternative .dz-message
{
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100%/2 - (49px - 8.5px));
}

.dropzone .dz-preview.dz-image-preview
{
    background: none;
}

.dropzone .dz-preview.dz-file-preview .dz-image
{
    background: none;
    border-radius: 4px;
}

.dropzone .dz-preview .dz-image
{
    border-radius: 4px;
}

.dropzone .dz-preview .dz-image img
{
    max-width: 200px;
}

.dropzone .dz-preview.dz-processing:not(.dz-success) .dz-details .dz-size
{
    display: none;
}

.dropzone .dz-message
{
    margin: 1rem 0;
    pointer-events: none;
}

.dropzone .dz-preview .dz-details .dz-filename
{
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
}

.dropzone .dz-preview.dz-success .dz-details .dz-filename
{
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
}

.dropzone.dz-drag-hover
{
    background-color: var(--ks-white-2);
    color: var(--ks-lightgrey);
    border: 1px solid var(--ks-grey);
}

.dropzone.dz-started
{
    background-color: var(--eC-primary-fade-2);
    color: var(--eC-primary-fade-3);
    border: 1px dashed var(--eC-primary);
}

.dropzone.dz-started .dz-message {
    color: transparent;
}

.dropzone .dz-preview .dz-spinner
{
    position: absolute;
    color: var(--ks-grey);
    /* Centered vertically and adjusted for the parent's margin */
    top: calc(50% - 20px);
    left: 0;
    right: 0;
    z-index: 21;
}

.dropzone .dz-success-mark g circle
{
    fill: var(--ks-green);
}

.dropzone .dz-preview.dz-complete .dz-spinner
{
    display: none;
}

.dropzone-error-container {
    position: absolute;
}

.dropzone-error-container > .error-field {
    color: var(--ks-error-red);
    height: 0;
}

.dropzone-delete-instance
{
    border: none;
    background-color: transparent;
}

.dropzone-delete-icon
{
    color: var(--ks-danger);
    font-size: 1.2rem;
}

/*
______          _
|  ___|        | |
| |_ ___  _ __ | |_
|  _/ _ \| '_ \| __|
| || (_) | | | | |_
\_| \___/|_| |_|\__|
*/

.fill-primary {
    fill: var(--eC-primary);
}

.text-primary {
    color: var(--eC-primary) !important;
}
.text-primary-darker {
    color: var(--eC-primary-darker) !important;
}

.text-dark-primary
{
    color: var(--eC-text-primary) !important;
}

.text-dark-secondary
{
    color: var(--eC-text-secondary) !important;
}

.text-info {
    color: var(--ks-info-blue) !important;
}

.text-danger {
    color: var(--ks-danger) !important;
}

.text-white {
    color: var(--ks-white) !important;
}

.text-glow-white {
    text-shadow: 0px 0px 2px var(--ks-white);
}

.text-black {
    color: var(--ks-black-2) !important;
}

.text-glow-black {
    text-shadow: 0px 0px 2px var(--ks-black-2) !important;
}

.text-grey {
    color: var(--ks-grey) !important;
}

.text-large {
    font-size: 20px !important;
}

.text-dark-orange {
    color: var(--ks-dark-orange) !important;
}

.text-success {
    color: var(--ks-green) !important;
}

.text-alert {
    color: var(--ks-yellow) !important
}

.fw-300
{
    font-weight: 300 !important;
}

.fw-500
{
    font-weight: 500 !important;
}

.text-mid
{
    font-size: 14px;
    margin: 0;
    font-weight: 400;
    line-height: 16px;
}

.text-table {
    vertical-align: middle;
    line-height: 1rem;
}

.text-sub
{
    font-size: 12px;
    line-height: 14px !important;
    font-weight: 300;
}

.text-standard
{
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: var(--ks-black-2);
}

/* Standard text that uses Work Sans instead of Roboto */
.text-standard-alt
{
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: var(--ks-black-2);
}

.text-file-size
{
    font-size: 14px;
    line-height: 16px;
    height: 16px;
    font-weight: 400;
    color: var(--ks-grey);
}

.wb-breakall {
    word-break: break-all;
}

.horizontal-line {
    background-color: rgba(var(--eC-primary-rgb), 0.5);
    width: 100%;
    height: 2px;
    margin: auto 0;
}

.popper-shadow {
    box-shadow: 2px 3px 5px rgba(var(--eC-primary-darker-rgb), 0.2);
}
