video,
.aem-GridColumn.aem-GridColumn--default--8,
.aem-GridColumn.aem-GridColumn--default--12,
img {
    -webkit-transition: all 700ms ease-in-out;
    -moz-transition: all 700ms ease-in-out;
    -ms-transition: all 700ms ease-in-out;
    -o-transition: all 700ms ease-in-out;
    transition: all 700ms ease-in-out;
}

body.theater-mode .aem-Grid.aem-Grid--default--12>.aem-GridColumn.aem-GridColumn--default--8,
body.theater-mode .responsivegrid.aem-GridColumn--offset--tablet--0.aem-GridColumn--default--none.aem-GridColumn--phone--none.aem-GridColumn--phone--12.aem-GridColumn--tablet--none.aem-GridColumn.aem-GridColumn--tablet--12.aem-GridColumn--offset--phone--0.aem-GridColumn--default--4.aem-GridColumn--offset--default--0 {
    width: 100% !important;
}
.aem-Grid.aem-Grid--default--4.aem-Grid--tablet--12.aem-Grid--phone--12 {
    display: inline-block;
}
body.theater-mode .aem-Grid.aem-Grid--default--4.aem-Grid--tablet--12.aem-Grid--phone--12 {
    width: 49.5%;
    vertical-align: top;
}
body.theater-mode #theater-mode {
    color: #268703;
}

#course-video {
    width: 100% !important;
    height: 35vw !important;
}

.page-title-wrapper { display: none !important; }

/* video controls */
#video-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    padding: 7px;
    background: rgba(0, 0, 0, .3);
    transform: translateX(-50%);
    border-radius: 30px;
    max-width: 400px;
    min-width: 400px;
    transition: all 450ms ease-in-out;
    display: none;
}
#video-controls.visible {
    display: block;
}

#video-wrapper:focus > video + #video-controls,
#video-wrapper:hover > video + #video-controls {
    z-index: 2;
}
#video-controls > button {
    padding: 0;
    width: 31px;
    font-size: 18px;
    text-align: center;
    color: #eee;
    background-color: transparent;
    /* border: 1px solid #eee; */
    border: none;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    transition: all .175s ease-in;
}
#video-controls > button:focus {
    /* border: 1px solid #999; */
    outline: none;
    box-shadow: none;
}
#video-controls > button,
#video-controls > input,
#video-controls > div {
    display: inline-block;
}
#video-controls > .button-spacer {
    width: 45px;
}

#video-controls > button:hover {
    color: #268703;
    border-color: #fff;
}

#volume-bar, #progress-bar {
    -webkit-appearance: none;
    border: none;
    outline: none;
    border-radius: 5px;
    background: #ccc;
    padding: 0;
}
#volume-bar {
    width: 75px;
    height: 6px;
}
.progress-box {
    display: block;
}
#progress-bar {
    width: 250px;
    display: inline-block;
    height: 5px;
}
.progress-box span {
    font-size: 8pt;
    display: inline-block;
    color: #fff;
    width: 40px;
}
#volume-bar::-webkit-slider-thumb,
#progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    border: none;
    height: 8px;
    width: 8px;
    border-radius: 50%;
    background: #268703;
    margin-top: -1px;
    transition-property: height, width, margin-top;
    transition-duration: 250ms;
}
#volume-bar:hover::-webkit-slider-thumb,
#progress-bar:hover::-webkit-slider-thumb {
    height: 16px;
    width: 16px;
    margin-top: -5px;
}
#volume-bar:focus,
#progress-bar:focus {
    outline: none;
}
#volume-bar:focus::-webkit-slider-runnable-track,
#progress-bar:focus::-webkit-slider-runnable-track {
    outline: none;
}
#volume-bar::-webkit-slider-runnable-track,
#progress-bar::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    background: #ccc;
    border: none;
    border-radius: 3px;
    height: 6px;
}
#progress-bar::-webkit-slider-runnable-track {
    width: 300px;
}
#volume-bar::-webkit-slider-runnable-track {

}

#volume-bar::-moz-range-track,
#progress-bar::-moz-range-track {
    height: 5px;
    background: #ccc;
    border: none;
    border-radius: 3px;
}
#volume-bar::-moz-range-thumb,
#progress-bar::-moz-range-thumb {
    border: none;
    height: 8px;
    width: 8px;
    border-radius: 50%;
    background: #268703;
}

#volume-bar:-moz-focusring,
#progress-bar:-moz-focusring{
    outline: none;
    outline-offset: -1px;
}

#volume-bar::-ms-track,
#progress-bar::-ms-track {
    height: 5px;
    background: transparent;
    border-color: transparent;
    border-width: 6px 0;
    color: transparent;
    padding: 0;
}
#volume-bar::-ms-fill-lower,
#progress-bar::-ms-fill-lower {
    background: transparent;
    border-radius: 10px;
}
#volume-bar::-ms-fill-upper,
#progress-bar::-ms-fill-upper {
    background: transparent;
    border-radius: 10px;
}
#volume-bar::-ms-thumb,
#progress-bar::-ms-thumb {
    border: none;
    height: 8px;
    width: 8px;
    border-radius: 50%;
    background: #268703;
}
#volume-bar:focus::-ms-fill-lower,
#progress-bar:focus::-ms-fill-lower {
    background: transparent;
}
#volume-bar:focus::-ms-fill-upper,
#progress-bar:focus::-ms-fill-upper {
    background: transparent;
}

@media (max-width: 1200px) {
    #video-controls > #theater-mode {
        display: none;
    }
}


/** play button pulse **/
#play-button > img {
    border-radius: 25%;
    box-shadow: 0 0 0 0 rgba(0,0,0,1);
    transform: scale(1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}
