/* animation keyframes */
@-webkit-keyframes dialog-anim-open {
	0% { opacity: 0; -webkit-transform: scale(0.5, 0.5); }
	100% { opacity: 1; -webkit-transform: scale(1, 1); }
}

@keyframes dialog-anim-open {
	0% { opacity: 0; -webkit-transform: scale(0.5, 0.5); transform: scale(0.5, 0.5); }
	100% { opacity: 1; -webkit-transform: scale(1, 1); transform: scale(1, 1); }
}

@-webkit-keyframes dialog-anim-close {
	0% { opacity: 1; -webkit-transform: scale(1, 1); }
	100% { opacity: 0; -webkit-transform: scale(0.5, 0.5); }
}

@keyframes dialog-anim-close {
	0% { opacity: 1; -webkit-transform: scale(1, 1); transform: scale(1, 1); }
	100% { opacity: 0; -webkit-transform: scale(0.5, 0.5); transform: scale(0.5, 0.5); }
}

/* globals */
.unversal-content-player-dialog {
    box-sizing: border-box;
}

.unversal-content-player-dialog *, ::after, ::before {
    box-sizing: inherit;
    color: inherit;
}

.noSelect
{
    user-select:none;
    -o-user-select:none;
    -moz-user-select:none;
    -khtml-user-select:none;
    -webkit-user-select:none;
}

/* transition invoking */
.ucp-sidebar, .ucp-canvas, .scroll-content.smooth, .ucp-sidebar-element, .element-wrapper::before, .element-wrapper::after {
    -webkit-transition-duration: .3s;
    -moz-transition-duration: .3s;
    -o-transition-duration: .3s;
    transition-duration: .3s;
}

 /* text-cut */
.text-cut { 
    overflow: hidden;
    text-overflow: ellipsis;
}

/* dialog */
.unversal-content-player-dialog {
    position: fixed;
    top: 0;
    left: 0;
    
    width: 100%;
    height: 100%;
    
    margin: 0;
    padding: 0;
    
    font-size: 1rem;
    line-height: 1.5;
    background-color: rgba(38,38,38,.95); /* deepdark, 95% */    
    
    opacity: 0;
    z-index:9999;
    
    -webkit-transform: scale(0, 0); 
    transform: scale(0, 0);
}

.unversal-content-player-dialog.dialog--open,
.unversal-content-player-dialog.dialog--close {
	animation-duration: .3s;
	animation-fill-mode: forwards;
}

.unversal-content-player-dialog.dialog--open {
	animation-name: dialog-anim-open;
}

.unversal-content-player-dialog.dialog--close {
	animation-name: dialog-anim-close;
}

/* mobile: force landscape */
@media only screen and (max-device-width: 480px) and (orientation: portrait) {

    .unversal-content-player-dialog .ucp-mobile-layer {
        position: absolute;
        left: 100%;

        transform: rotate(90deg);
        transform-origin: left top;

        width: 100vh;
        height: 100vw;
    }

}

/* canvas & sidebar basics */
.ucp-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    
    width: 50px; /* sidebar-width-collapsed */
    height: 100%;
    
    background-color: #dddddd; /* light gray */
    color: #333333; /* charcoal */
    z-index: 999;
}

.ucp-canvas {
    position: absolute;
    top: 0;
    right: 0;
    left: 50px; /* sidebar-width-collapsed */
    bottom: 0;
    
    min-width: 320px; /* mobile-size */
    
    padding-top: 50px; /* titlebar-height */
}

/* titlebar */
.ucp-canvas .ucp-titlebar {
    position: absolute;
    top: 0;
    
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    
    display: -ms-flexbox;
    -ms-flex-wrap: wrap;
    -ms-flex-align: center;
    -ms-flex-pack: justify;

    width: 100%;
    height: 50px; /* titlebar-height */
    
    padding: 0 20px 0 40px;
    
    color: #fff; /* white */
    background-color: rgba(38,38,38,.66); /* deepdark, 66% */
}

.ucp-titlebar .ucp-title-wrapper {
    display: flex;
    flex-basis: 1024px;
    align-items: center;
    justify-content: space-between;
    
    display: -ms-flexbox;
    -ms-flex-preferred-size: 1024px;
    -ms-flex-align: center;
    -ms-flex-pack: justify;
    
    max-width: 75%;
    height: 100%;
    margin: 0 auto;
}

.ucp-titlebar .ucp-titlebar-button {
    padding: 5px;
    color: inherit;
    
    font-weight: normal;
    font-size: 1.5em;
    line-height: 1;
    
    text-shadow: none;
    text-transform: none;
    
    background: transparent;
    background-size: 1.5rem;
    background-position: center;
    background-repeat: no-repeat; 

    border: 1px solid transparent;
    border-radius: 2px;
    opacity: 1;
    cursor: default;
}

.ucp-titlebar .ucp-titlebar-button:hover,
.ucp-titlebar .ucp-titlebar-button:focus,
.ucp-titlebar .ucp-titlebar-button:active {
    border-color: rgba(0,0,0,1); /* black, 100%*/
    background-color: rgba(0,0,0,.45); /* black, 45%*/
    box-shadow: inset 1px 1px 1px rgba(153,153,153,.33); /* shadedgray, 33% */
}

.ucp-titlebar .ucp-titlebar-button:disabled {
    opacity: .5;
    pointer-events: none;
}

.ucp-titlebar .ucp-titlebar-button.close {
    background-image: url('../images/contentplayer_material-icons_24px.svg#close');
}

.ucp-titlebar .ucp-titlebar-button.prev {
    background-image: url('../images/contentplayer_material-icons_24px.svg#skip-previous');
}

.ucp-titlebar .ucp-titlebar-button.next {
    background-image: url('../images/contentplayer_material-icons_24px.svg#skip-next');
}


.ucp-titlebar .ucp-titlebar-button .accessibility-caption {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    
    font-size: 1;
    
    overflow: hidden;
    visibility: hidden;
}

.ucp-titlebar .ucp-title {
    width: 100%;
    height: 1.5em;
    margin-bottom: .2em;
    text-align: center;
}

/* canvas elements */
.ucp-canvas .ucp-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.ucp-content-container {
    display: block;
    position: relative;
    top: 50%;
    
    margin: auto;
    max-height: 100%;
    max-width: 100%;   
    
    border: 0;

    -webkit-transform: translate(0,-50%);
    transform: translate(0,-50%);
}

/* sidebar slide handling */
.slide-trigger { 
    position: absolute;
    clip: rect(0, 0, 0, 0);
}

.ucp-sidebar .slide-handle {
    position: absolute;
    top: 5px;
    right: -35px;
    
    border-top-right-radius: 5px; 
    border-bottom-right-radius: 5px; 
    background-color: #dddddd; /* light gray */
    z-index: -1;
}

.ucp-sidebar .slide-handle > label {
    display: block;
    height: 40px;
    width: 40px;
    
    margin: 0;
    cursor: pointer;
    
    background-image: url('../images/contentplayer_material-icons_24px.svg#chevron-right-deepdark');
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat; 
}

.slide-trigger:checked ~.ucp-sidebar .slide-handle > label {
    background-image: url('../images/contentplayer_material-icons_24px.svg#chevron-left-deepdark');
}

.slide-trigger:checked ~.ucp-sidebar {
    width: 350px; /* sidebar-width-open */
}

.slide-trigger:checked ~.ucp-canvas {
    left: 350px; /* sidebar-width-open */
}

/* sidebar's slideout */
.ucp-sidebar .slideout-surface {
    position: absolute;
    top: 0;
    left: 0;
    
    display: flex;
    flex-flow: column;
    
    display: -ms-flexbox;
    -ms-flex-direction: column;
    
    width: 100%;
    height: 100%;
    
    overflow: hidden
}

/* show handle inside the bar on smaller devices */
@media only screen and (max-device-height: 768px) and (orientation: portrait), 
       only screen and (max-device-width: 768px) and (orientation: landscape){
    .ucp-sidebar .slide-handle {
        right: 5px;
        z-index: 1;
    }
}

/* list & items - basics */
.ucp-sidebar .ucp-sidebar-contentlist {
    display: block;
    margin: 0;
    padding: 0;
    
    list-style: none;
    
    position: absolute;
    top: 0;
    left: 0;
}

.ucp-sidebar .ucp-sidebar-title,
.ucp-sidebar .ucp-sidebar-element {
    display: block;
    width: 350px; /* sidebar-width-open */
    
    padding: 0 25px;
    
    border-top: 1px solid rgba(255,255,255,.05);
    border-bottom: 1px solid rgba(0,0,0,.1);
}

.ucp-sidebar .ucp-sidebar-title {
    padding: 1em 25px 1em 75px;
}

.ucp-sidebar .ucp-sidebar-title h3 {
    margin: 0 0 .5em;
    font-size: 1.25rem;
    line-height: 1.2;
    font-weight: 400;
    white-space: normal;
}

.ucp-sidebar .ucp-sidebar-element {
    cursor: pointer;
}

.ucp-sidebar .ucp-sidebar-element.active {
    cursor: default;
    background-color: #cccccc; /* pale gray */
}

.ucp-sidebar .ucp-sidebar-element:not(.active):hover {
    background-color: #f0f0f0; /* highlight */
}

.slide-trigger:checked ~.ucp-sidebar .ucp-sidebar-element {
    padding-left: 35px;
}

.ucp-sidebar-element > a {
    color: inherit;
}

.ucp-sidebar-element .element-wrapper {
    position: relative;
    
    height: 5.5em;  
    margin: -1px 0;
    padding: .5em 0 .5em 40px;
}

.ucp-sidebar-element.active .element-wrapper {
    cursor: default;
}

/* list & items - scrolling */
.scroll-container {
    position: relative;  
    flex-basis: 100%;
    margin-bottom: 40px;
}

.scroll-container .disable {
    display: none;
}

.scroll-container .scrollbar {
    position: absolute;
    top: 0;
    right: -10px;
    width: 22px;
      
    z-index: 999;
    opacity: 0;
}

.scroll-container:hover .scrollbar,
.scroll-container .scrollbar:active{
   opacity: 1;
}

.scroll-container .viewport {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.scrollbar .track {
    position: relative;
    margin: 0 15px 0 4px;
    background: #b3b3b3; /* timeline gray */
}

.scrollbar .thumb {
    position: absolute;
    top: 0;
    left: -1px;

    height: 25px;
    width: 5px;
    border-radius: 3px;
    
    cursor: pointer;
    background: #808080; /* dark gray */
}

.scroll-content {
    /* iOS support */
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

/* list & items - indicators */
.ucp-sidebar-element .element-wrapper::before,
.ucp-sidebar-element .element-wrapper::after{
    position: absolute;
    left: 0;
    
    display: block;
    content: '';
}

.ucp-sidebar-element .element-wrapper::before {
    top: -50%;
    height: 100%;
    
    -webkit-transform: translate(-50%,0);
    transform: translate(-50%,0);
    
    border-left: 4px solid #b3b3b3; /* timelinegray */
}

.ucp-sidebar-element .element-wrapper::after {
    top: 50%;
    width: 1.5em;
    height: 1.5em;
    
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    
    border-radius: 50%;
    border: 2px solid #b3b3b3; /* timeline gray */
    background-color: #cccccc; /* pale gray */
    background-image: none;
    background-size: 1.25em;
    background-position: center;
    background-repeat: no-repeat;
  
    z-index: 1;
}

.ucp-sidebar-element.completed .element-wrapper::before,
.ucp-sidebar-element.completed .element-wrapper::after,
.ucp-sidebar-element.active .element-wrapper::before,
.ucp-sidebar-element.active .element-wrapper::after{
    border-color: #999999; /* shaded gray */
}

.ucp-sidebar-element.locked .element-wrapper::before {
    border-left-style: dotted;
}

.ucp-sidebar-element:first-child .element-wrapper::before {
    border: none !important;
}

.ucp-sidebar-element.completed .element-wrapper::after,
.ucp-sidebar-element.active .element-wrapper::after{
    background-color: #999999; /* shaded gray */
}

.ucp-sidebar-element.locked .element-wrapper::after {
    background-image: url('../images/contentplayer_material-icons_24px.svg#lock-gray');
    background-size: 1em;
}

.ucp-sidebar-element.active .element-wrapper::after {
    background-image: url('../images/contentplayer_material-icons_24px.svg#play-arrow');
}

.ucp-sidebar-element.passed .element-wrapper::after {
    background-image: url('../images/contentplayer_material-icons_24px.svg#check');
}

.ucp-sidebar-element.failed .element-wrapper::after {
    background-image: url('../images/contentplayer_material-icons_24px.svg#fail');
}

.slide-trigger:checked ~.ucp-sidebar .ucp-sidebar-element.passed .element-wrapper::before,
.slide-trigger:checked ~.ucp-sidebar .ucp-sidebar-element.passed .element-wrapper::after {
    border-color: #379b00; /* dark green */
    background-color: #3fb500; /* green */
}

.slide-trigger:checked ~.ucp-sidebar .element-wrapper::after {
    width: 2em;
    height: 2em;
    background-size: 1.5em;
}

.slide-trigger:checked ~.ucp-sidebar .ucp-sidebar-element.active .element-wrapper::after {
    width: 3em;
    height: 3em;
    
    border: 2px solid #0058a0; /* dark blue */
    background-color: #0071b9; /* tuv blue */ 
}

/* list & items - inner elements */
.element-wrapper > small {
    display: inline-block;
    font-size: 75%;
    color: #808080; /* dark gray */
}

.element-wrapper .element-title {
    display: inline-block;
    width: 100%;
    max-height: 3em;
    font-weight: bold;
}

.element-wrapper .element-subline {
    position: absolute;
    /*right: 0;*/
    left: 40px; /* temp. until media-type shown*/
    bottom: 10px;
}

.ucp-endcard {
    position: absolute;
    top: 50%;
    left: 50%;
    
    transform: translate(-50%, -50%);
    
    color: #fff;
    text-align: center;
}

.ucp-endcard h1{
    margin: 2rem 0;
}

.ucp-endcard .ucp-endcard-button {
    padding: .33rem 2rem;
    margin: .5rem;
    
    color: #000;
    background-color: #dddddd;
    border: 0;
    
    box-shadow: inset 1px 1px 1px rgba(255,255,255,.33);
}

/* Errors */

.error {
    position: relative;
    top: 50%;
    transform: translate(0, -50%);
    
    max-width: 50vw;
    margin: auto;
    padding: 2em 5em;
    border-radius: 3px;
    
    background-color: #ff6666; /* red */
    border: 5px solid #a00000; /* dark red */
    text-align: center;
}

.error > * {
    display: block;
    line-height: 2em;
}

.error > a {
    color: #0071b9;
}





