/* video-consent.css — ported verbatim from Advantech2015 Web/css/tuple/video-consent.css
   (not from the video-consent-gdpr-spec.md doc excerpt — that markdown sample is abbreviated
   and missing several rules that exist in the real shipped file, notably the sk-three-bounce
   loading animation and the #material-content specificity-override rules below). */

.video-consent {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
}

.video-consent__loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.video-consent--pending .video-consent__placeholder,
.video-consent--pending .video-consent__player {
    display: none;
}

.video-consent:not(.video-consent--pending) .video-consent__loading {
    display: none;
}

@supports (aspect-ratio: 16 / 9) {
    .video-consent {
        aspect-ratio: 16 / 9;
        padding-top: 0;
    }
}

.video-consent__placeholder,
.video-consent__player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-consent__placeholder {
    background: #000;
}

.video-consent .video-consent__thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
}

#material-content .video-consent__thumbnail {
    box-sizing: content-box;
}

.video-consent__overlay {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 20px;
    padding: 16px;
    text-align: center;
}

    #material-content .video-consent__overlay a, .video-consent__overlay a {
        color: #fff;
        text-decoration: underline !important;
    }

.video-consent__play-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    position: relative;
    flex-shrink: 0;
}

    .video-consent__play-icon::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 54%;
        transform: translate(-50%, -50%);
        border-style: solid;
        border-width: 9px 0 9px 16px;
        border-color: transparent transparent transparent #1a1a1a;
    }

#material-content .video-consent__notice, .video-consent__notice, .video-consent p.video-consent__notice {
    color: #fff;
    line-height: 1.5;
    margin: 0;
}

#material-content .video-consent__notice, .video-consent p.video-consent__notice {
    font-size: 14px;
}

    #material-content .video-consent__notice a, .video-consent p.video-consent__notice a {
        font-size: 14px;
    }

.video-consent.video-consent.video-consent .video-consent__notice.video-consent__notice {
    color: #fff !important;
    font-size: 14px !important;
    padding: 0 !important;
    line-height: 1.5;
    margin: 0;
}

.video-consent__notice {
    font-size: 12px;
}

.video-consent__privacy-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
}

    .video-consent__privacy-link:hover {
        color: #fff;
    }

#material-content .video-consent__btn {
    font-size: 16px;
}

.video-consent__btn {
    padding: 10px 22px;
    color: #004280;
    background-color: #fff;
    border-color: #fff;
    line-height: 1.5;
    cursor: pointer;
    border: 0;
    text-decoration: none;
    display: block;
    font-weight: normal;
    border-radius: 999px;
}

    .video-consent__btn i {
        margin-left: 3px;
    }

    .video-consent__btn:hover {
        background: #004280;
        color: #fff;
    }

.video-consent__player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

    .video-consent__player iframe {
        width: 100%;
        height: 100%;
        border: none;
        display: block;
    }

#material-content .video-consent__notice a.video-consent__privacy-link, .video-consent__notice a.video-consent__privacy-link, .video-consent .video-consent__notice a.video-consent__privacy-link {
    color: #fff;
    text-decoration: underline;
}

/*------------------------------------------
  START loading animated
  Source : http://tobiasahlin.com/spinkit/
-------------------------------------------*/
.sk-three-bounce {
    margin: 40px auto;
    width: 80px;
    text-align: center;
}

    .sk-three-bounce .sk-child {
        width: 20px;
        height: 20px;
        background-color: #004280;
        border-radius: 100%;
        display: inline-block;
        -webkit-animation: sk-three-bounce 1.4s ease-in-out 0s infinite both;
        animation: sk-three-bounce 1.4s ease-in-out 0s infinite both;
    }

    .sk-three-bounce .sk-bounce1 {
        -webkit-animation-delay: -0.32s;
        animation-delay: -0.32s;
    }

    .sk-three-bounce .sk-bounce2 {
        -webkit-animation-delay: -0.16s;
        animation-delay: -0.16s;
    }

@-webkit-keyframes sk-three-bounce {
    0%, 80%, 100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }

    40% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes sk-three-bounce {
    0%, 80%, 100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }

    40% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}
