.redirect-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    transition: opacity 0.3s;
    display: none;
}

.redirect-overlay--visible {
    display: flex;
}

.redirect-overlay-card {
    box-sizing: border-box;
    position: relative;
    background-color: #fff;
    width: 540px;
    height: 425px;
    padding: 54px 75px 44px;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    line-height: normal;
    top: 20%;
}

.redirect-overlay-icon-button {
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 15px;
    width: 20px;
    height: 20px;
}

.redirect-overlay-icon-button:hover {

}

.redirect-overlay-icon-button::before,
.redirect-overlay-icon-button::after{
    content: '';
    display: block;
    width: 2px;
    height: 20px;
    background-color: black;
    position: absolute;
    left: 50%;
}

.redirect-overlay-icon-button::before {
    transform: rotate(-45deg);
}

.redirect-overlay-icon-button::after {
    transform: rotate(45deg);
}

.redirect-overlay-push {
    transform: translateY(30%);
    animation-delay: 4s;
    animation-duration: 0.7s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
    animation-name: overlayPushUp;
}

.redirect-overlay__logo-container {
    position: relative;
}

.redirect-overlay-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: absolute;
    top: 0;
    left: 50%;
    animation-delay: 2.8s;
    animation-duration: 1s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
}

.redirect-overlay-logo--testlab {
    background-color: #408ed6;
    transform: translateX(-50%);
    z-index: 1;
    animation-name: slideTestlab;
}

.redirect-overlay-logo--testlab > img {
    width: 36px;
}

.redirect-overlay-logo--preely {
    background-color: #2f323a;
    transform: translateX(-50%);
    animation-name: slidePreely;
    opacity: 0;
}

.redirect-overlay-logo--preely > img {
    width: 30px;
    margin-left: 2px;
}

.redirect-overlay-title {
    transform: translateX(22%);
    animation-name: titleSlide;
    animation-delay: 1.3s;
    animation-duration: 0.7s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
}

.redirect-overlay-title > span {
    opacity: 0;
    animation-name: titleFadeIn;
    animation-delay: 2s;
    animation-duration: 1s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
}

.redirect-overlay__stage-2 {
    transition: opacity 0.5s;
    opacity: 0;
    animation-name: titleFadeIn;
    animation-delay: 5s;
    animation-duration: 1s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
}

.has-preely-dot {
    position: relative;
}

.has-preely-dot::after {
    display: block;
    position: absolute;
    right: -3px;
    bottom: 2px;
    transform: translateX(100%);
    transform-origin: 0 100%;
    width: 10px;
    height: 10px;
    content: '';
    background-image: url(../img/preely-dot.svg);
    background-repeat: no-repeat;
    background-size: contain;
}

.ok-button {
    border-radius: 5px;
    min-width: 80px;
    background-color: #ff8700;
    display: inline-block;
    color: white;
    line-height: 28px;
    margin-top: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.ok-button:hover {
    background-color: #ea7600;

}

@keyframes slideTestlab {
    50% {
        opacity: 1;
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(-50%);
        opacity: 0;
    }
}

@keyframes slidePreely {
    50% {
        transform: translateX(0%);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%);
        opacity: 1;
        z-index: 1;
    }
}

@keyframes titleSlide {
    100% {
        transform: translateX(0%);
    }
}

@keyframes titleFadeIn {
    100% {
        opacity: 1;
    }
}

@keyframes overlayPushUp {
    100% {
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    from,
    20%,
    40%,
    60%,
    80%,
    to {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }

    0% {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }

    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }

    40% {
        transform: scale3d(0.9, 0.9, 0.9);
    }

    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }

    80% {
        transform: scale3d(0.97, 0.97, 0.97);
    }

    to {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

.animated {
    animation-duration: 1s;
    animation-delay: 0.5s;
    animation-fill-mode: both;
}

.animated.infinite {
    animation-iteration-count: infinite;
}

.bounceIn {
    animation-duration: 0.75s;
    animation-name: bounceIn;
}
