.text-regular {
    font-weight: 400;
}

#animation_container {
    position: relative;
    width: 100% !important;
    height: auto !important;
    max-width: 1400px;
    max-height: 500px;
    margin: -30px auto 0;
    background-color: #fff;
}

@media (min-width: 992px) and (max-height: 700px) {
    #animation_container {
        width: 70% !important;
    }
}

#animation_container::before {
    content: '';
    display: block;
    padding: 0 100% calc(500 / 1400 * 100%) 0;
}

#canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

#dom_overlay_container {
    overflow: hidden;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 1400px;
    max-height: 500px;
    pointer-events: none;
}

body.no-header .breadcrumb-section {
    display: none;
}


/* === Animation text columns wrap */

.animation-columns {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    margin-right: -10px;
    margin-left: -10px;
}

.animation-columns:nth-child(2) {
    margin-top: 32px;
}


/* === Animation text column */

.animation-column {
    position: absolute;
    top: 0;
    padding: 0 10px;
}


/* === Title and blue boxes visibility styles */

.blue-box,
.animation-title {
    opacity: 0;
}

.animation-title.is-visible {
    opacity: 1;
    transition: opacity 500ms 500ms;
}

.animation-column:first-child .blue-box.is-visible,
.animation-column:first-child .animation-title.is-visible {
    transition: opacity 500ms;
}


/* === Blue box */

.blue-box {
    height: 100%;
    padding: 15px 20px;
    background-image: linear-gradient(135deg, #004e9e, #00264E);
    color: #fff;
}

.blue-box p:last-child {
    margin-bottom: 0;
}

.blue-box a {
    display: inline-block;
    margin: 10px 0 5px;
    padding: 10px 20px;
    border: solid 1px #fff;
    color: #fff;
}

.blue-box a:hover {
    background-color: #fff;
    color: #004e9e;
}


/* === Section titles */

.animation-section-title {
    opacity: 0;
    position: absolute;
    top: calc(-20px + (-35 - -20) * (100vw - 320px) / (991 - 320));
    width: calc(100% / 3);
    font-size: calc(8px + (20 - 8) * (100vw - 320px) / (991 - 320));
    line-height: 1.3;
}

.animation-section-title:nth-child(3) {
    left: 0;
}

.animation-section-title:nth-child(3).fade-in {
    transition: opacity 500ms;
}

.animation-section-title:nth-child(4) {
    left: 50%;
    transform: translateX(-50%);
}

.animation-section-title:nth-child(5) {
    right: 0;
}

.animation-section-title.fade-in {
    opacity: 1;
    transition: opacity 500ms 500ms;
}


/* === Media queries */

@media (max-width: 991px) {
    #animation_container {
        margin-top: calc(40px + (70 - 40) * (100vw - 320px) / (991 - 320));
    }

    .animation-title.hide-me {
        opacity: 0;
        transition: opacity 500ms;
    }
    
    .blue-box {
        display: none;
    }
}

@media (min-width: 992px) {
    body.no-header .headslider-container.no-headerslider~#content,
    body.no-header #content {
        padding-top: 105px;
    }

    body.no-header .headslider-container.no-headerslider {
        display: none;
    }

    .animation-columns {
        flex-direction: row;
    }

    .animation-columns:nth-child(2) {
        margin-top: 64px;
    }

    .animation-column {
        position: static;
        width: calc(100% / 3);
    }

    .blue-box.is-visible {
        opacity: 1;
        transition: opacity 500ms 500ms;
    }

    .animation-section-title {
        display: none;
    }
}

@media (min-width: 1280px) {
    .animation-title {
        padding-right: 20px;
    }
}

@media (min-width: 1400px) {
    .animation-title {
        padding-right: 60px;
    }
}

