@import url('/assets/open-sans-fontface/open-sans.css');
@import url('/assets/poppins/500.css');

/* Gleim */
.video-container {
    position: relative;
}
.video-container .playlist-toggle-button {
    position: absolute;
    z-index: 20;
    top: 15px;
    right: 25px;
    color: #fff;
    cursor: pointer;
}
.video-container .playlist-toggle-button:focus {
    outline: -webkit-focus-ring-color auto 5px;
}
.video-container .playlist {
    position: absolute;
    right: 0;
    bottom: 0;
    top: 0;
    z-index: 15;
    background-color: #000;
    opacity: 0.90;
    color: #fff;
    padding-top: 15px;
    overflow-y: auto;
    max-width: 400px;
    text-align: left;
    font-family: "Open Sans Light", Arial, sans-serif;
}
.video-container .playlist .video-link.active {
    color: #000;
}

/* Display a continuation arrow to the right and middle of text. */
.video-container .video-review-arrow {
    color: #225abc;
    font-size: 16px;
    line-height: 22px;
    padding-bottom: 2px;
    vertical-align: middle;
}

/* Display an opaque background for modal popups. */
.video-review-background {
    background: #000;
    height: 100%;
    left: 0;
    opacity: 0.75;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    transform: translate3d(0, 0, 98px);
    color: rgba(0, 0, 0, 0.75);
}

/* Display a feedback link box on top of everything with a shadow to set it off from the video. */
.video-container .video-review-box {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    position: absolute;
    right: 15px;
    top: 50px;
    width: 225px;
    z-index: 999;
}

/* Set the shared traits of the feedback link and feedback submitted boxes. */
.video-container .video-review-box,
.video-container .video-review-submitted {
    background-color: #fff;
    border-radius: 4px;
    display: none;
    padding: 28px 20px 20px;
}

/* The close button is an X in the upper right corner. */
.video-container .video-review-box-close {
    background-color: #fff;
    border: 0 solid #fff;
    cursor: pointer;
    font-size: 24px;
    position: absolute;
    right: 10px;
    top: 10px;
}

.video-container .video-review-box-close:hover {
    font-weight: 700;
}

/* Prevent background from scrolling when the modal is open. */
.modal-open {
    position: fixed;
    width: 100%;
}

/* The title of the feedback link box is also the link. */
.video-container .video-review-box-title {
    background-color: #fff;
    border: 0 solid #fff;
    color: #225abc;
    cursor: pointer;
    font-family: "Open Sans";
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    margin-top: 4px;
    vertical-align: middle;
}

.video-container .video-review-box-title:hover {
    text-decoration: underline;
}

/* The submit and close buttons are red and centered. */
.video-container .video-review-button {
    background-color: #d32f2f;
    border: 0 solid #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    border-radius: 3px;
    color: #fff;
    font-family: "Open Sans";
    font-size: 16px;
    font-weight: 600;
    margin-top: 40px;
    padding: 10px 12px;
    text-align: center;
}

.video-container .video-review-button:hover {
    background-color: #be2a2a;
}

/* The submit and close buttons are wrapped in this box. */
.video-container .video-review-button-box {
    text-align: center;
    width: 100%;
}

/* The video review form is a centered pop up. */
.video-container .video-review-form {
    background-color: #fff;
    border-radius: 4px;
    max-width: 700px;
    padding: 35px 55px;
    position: relative;
    text-align: left;
    z-index: 1000;
    overflow-y: scroll !important;
    -ms-overflow-style: none;
    scrollbar-width: none;
    height: 100%;
    max-height: 95vh;
    transform: translate3d(0, 0, 101px);
}

.video-review-form::-webkit-scrollbar, .video-review-submitted::-webkit-scrollbar {
    display: none;
}

/* This box contains the video review form and helps center it. */
.video-container .video-review-form-box {
    display: none;
    left: 50%;
    position: fixed;
    top: 50%;
    z-index: 1000;
    transform: translate3d(-50%, -50%, 100px);
}

/* This is the check mark on the submission confirmation pop-up. */
.video-container .video-review-form-check {
    color: #39a141;
    font-size: 75px;
    padding-top: 40px;
}

/* This error appears when the user types more than the allowed 255 characters. */
.video-container .video-review-form-comment-error {
    color: #e64d2b;
    display: none;
    margin-top: -1.5em;
    margin-bottom: 15px;
    font-size: 11px;
    font-weight: normal;
}

/* There is no need to resize the form comments because only 255 characters are allowed. */
.video-container .video-review-form-comments {
    resize: none;
    width: 100%;
    box-sizing: border-box;
    background: #FEFEFE;
    border: 1px solid #ACACAC;
}

/* The labels need to fill their containers. */
.video-container .video-review-form-label {
    width: 100%;
}

/* Put a space in front of each questions on the review form. */
.video-container .video-review-form-question {
    margin-top: 10px;
}

/* Style the heading of each question that contains the text. */
.video-container .video-review-form-question h3 {
    background-color: white;
    border: 0;
    color: #1a355a;
    font-family: "Open Sans";
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    margin: 15px 0;
    padding-bottom: 5px;
    max-width: 100%;
    text-align: left !important;
}

/* Style some descriptive text within the pop-ups. */
.video-container .video-review-form-text {
    font-family: "Open Sans";
    font-size: 14px;
    line-height: 18px;
    margin-top: 15px;
}

/* Style the form title. */
.video-container .video-review-form-title {
    color: #1a355a;
    font-family: Poppins, "Open Sans";
    font-size: 28px;
    line-height: 36px;
}

/* Align the feedback icon below the menu button at the same size and similar location. */
.video-container .video-review-icon {
    background-color: #fff;
    border: 0;
    border-radius: 50%;
    color: #2a71eb;
    cursor: pointer;
    height: 29px;
    padding: 2px 0 0 0;
    position: absolute;
    right: 22px;
    top: 72px;
    width: 29px;
    z-index: 12;
}

.video-container .video-review-icon .video-rate-review {
    font-size: 22px;
}

.video-container .video-review-rating {
    color: #2a71eb;
    font-size: 30px;
}

span.ratings-text {
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2px;
}

/* Use flex to switch between 5 and 3/2 layouts for each rating card row. */
.video-container .video-review-rating-box {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    user-select: none;
    padding-bottom: 25px;
}

/* Set off each rating card with a slight shadow. */
.video-container .video-review-rating-card {
    border-radius: 4px;
    font-size: 11px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    text-align: center;
    width: 80px;
}

.video-container .video-review-rating-card div {
    box-sizing: border-box;
    font-family: "Open Sans", Arial, sans-serif;
    height: 100%;
    padding: 12px 8px;
    width: 100%;
    max-height: 90px;
}

.video-container .video-review-rating-card input:checked + div {
    border: 2px solid #2a71eb;
    border-radius: 4px;
}

.video-container .video-review-rating-card:hover,
.video-container .video-review-rating-card:focus-within {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Use inputs with custom style appearance for each rating card. */
.video-container .video-review-rating-input {
    appearance: none;
    position: absolute;
}

/* Center the submission pop-up. */
.video-container .video-review-submitted {
    margin: auto;
    position: relative;
    text-align: center;
    width: 300px;
    z-index: 1000;
    overflow-y: scroll !important;
    -ms-overflow-style: none;
    scrollbar-width: none;
    max-height: 95vh;
}

/* Style the smiley faces on the feedback link pop-up. */
.video-container .video-smileys {
    margin: auto;
    padding-top: 5px;
    width: 170px;
}

.video-container .video-title {
    position: absolute;
    display: none;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px;
    font-size: 20px;
    z-index: 10;
    background-image: linear-gradient(to right, #333, #28bff0);
    text-align: left;
    color: #fff;
}
.video-container:hover .video-title {
    display: block;
}

.video-container .playlist h2,
.video-container .playlist h3 {
    text-transform: uppercase;
}
.video-container .playlist h2 {
    margin: 0px 0px 0px 15px;
    font-weight: normal;
    font-size: 20px;
    text-align: left !important;
    font-family: "Open Sans Light", Arial, sans-serif;
}
.video-container .playlist h3 {
    margin: 0px 0px 5px 15px;
    font-weight: bold;
    font-size: 20px;
    text-align: left !important;
    font-family: "Open Sans Light", Arial, sans-serif;
}
.video-container .playlist label {
    margin: 0px 0px 10px 15px;
    display: block;
    cursor: pointer;
    color: #fff;
    font-size: 12px;
    font-weight: normal;
}
.video-container .playlist label i {
    margin-right: 20px;
    color: #28bff0;
}
.video-container .playlist label.toggle-suggest-video-btn {
    width: fit-content;
    padding: 3px;
}
.video-container .playlist label.toggle-suggest-video-btn:hover {
    text-decoration: underline;
}
.video-container .playlist label.toggle-suggest-video-btn:focus {
    outline: -webkit-focus-ring-color auto 5px;
}
.video-container .playlist .video-link {
    padding: 10px 20px;
    border-top: 1px solid #28bff0;
    font-size: 12px;
}
.video-container .playlist .video-link:hover {
    cursor: pointer;
    text-decoration: underline;
}
.video-container .playlist .video-link span,
.video-container .playlist .video-link img,
.video-container .playlist .video-link a {
    margin-right: 10px;
}
.video-container .playlist .video-link.active {
    background-color: #28bff0;
}
.video-container .playlist .video-link.active span {
    font-weight: bold;
}
.video-container .playlist .video-link.recommended-video {
    font-weight: bold;
}
.video-container .playlist a {
    color: #fff;
}
.video-container .playlist a:focus {
    outline-offset: 2px;
}
.video-container .playlist .video-link.active a {
    color: #000;
}
.video-container .playlist-feedback-button-tooltip,
.video-container .playlist-toggle-button-tooltip {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 8px 10px;
    width: 140px;
    position: absolute;
    border-radius: 0;
    z-index: 1;
    font-family: Avenir, "Avenir Next", "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    right: 40px;
}

.video-container .playlist-feedback-button-tooltip {
    top: -1px;
}

.video-container span.playlist-toggle-button:focus .playlist-toggle-button-tooltip,
.video-container span.playlist-toggle-button:hover .playlist-toggle-button-tooltip,
.video-container .video-review-icon:focus .playlist-feedback-button-tooltip,
.video-container .video-review-icon:hover .playlist-feedback-button-tooltip {
    visibility: visible;
}

.plyr {
    font-weight: initial;
}
.plyr__controls .plyr__controls__item.plyr__progress__container {
    position: absolute;
    top: 20px;
    right: 10px;
    left: 10px;
}
.plyr__progress .plyr__tooltip {
    margin-bottom: 0;
}
.plyr__menu__container {
    background-color: #333;
    color: #fff;
    right: -35px;
    margin-bottom: 30px;
    border-radius: 0;
}
.plyr--video .plyr__control.plyr__tab-focus,
.plyr--video .plyr__control:hover,
.plyr--video .plyr__control[aria-expanded=true] {
    background: transparent;
}
.plyr__controls .plyr__controls__item:first-child {
    margin-right: initial;
}
.plyr__controls .plyr__controls__item.plyr__volume {
    margin-left: auto;
}
.plyr__menu__container .plyr__control {
    color: #fff;
}
.plyr__menu__container .plyr__control--back::after {
    border-right-color: #fff;
}
.plyr__menu__container .plyr__control--forward::after {
    border-left-color: #fff;
}
.plyr__menu__container::after {
    border-top-color: transparent;
}
.plyr__control.plyr__tab-focus {
    box-shadow: none;
}
.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::before {
    background: transparent;
}
.plyr__tooltip {
    background-color: #333;
    color: #fff;
    border-radius: 0;
    margin-bottom: 15px;
}
.plyr__tooltip::before {
    content: unset;
}
.plyr__menu .plyr__control[aria-expanded=true] svg {
    transform: initial;
}
button[data-plyr="quality"] .plyr__badge {
    background-color: #ff0000;
}
button[data-plyr="rewind"]:not(:hover):not(:focus) .plyr__tooltip,
button[data-plyr="play"]:not(:hover):not(:focus) .plyr__tooltip,
button[data-plyr="fast-forward"]:not(:hover):not(:focus) .plyr__tooltip {
    display: none;
}
button[data-plyr="captions"] .icon--pressed {
    fill: #28bff0;
}

@media only screen and (max-width: 480px) {
    .plyr__controls .plyr__controls__item.plyr__progress__container {
        top: 30px;
    }
}

@media all and (-ms-high-contrast:none), all and (-ms-high-contrast:active) {
    .plyr__controls .plyr__controls__item.plyr__progress__container {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
    }
}

@media only screen and (orientation: landscape) 
and (max-device-width: 920px) {
    .video-container .video-review-submitted {
        top: 0;
    }

    .video-container .video-review-form-box {
        height: 80vh;
    }
}

@media only screen and (max-width: 679px) {

    .video-container .video-review-form-box {
        min-width: 360px;
        overflow-y: auto;
        width: 100%;
        height: 80vh;
    }

    /* Wrap and center the rating cards on small screens. */
    .video-container .video-review-rating-box {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Split the rating cards in a 3/2 pattern on small screens. */
    .video-container .video-review-rating-box .video-review-rating-card {
        flex: 0 0 30%;
        margin: 1%;
    }

    /* Fixing position of submitted box on small screens. */
    .video-container .video-review-submitted {
        left: 0;
        top: 0;
    }
}

@media only screen and (min-width: 680px) {
    /* Set the feedback form to a fixed width when the screen is large enough. */
    .video-container .video-review-form-box {
        width: 675px;
    }
}
