/*!
 * youtube-chapters
 * A YouTube chapter generator
 * https://github.com/VD39/youtube-chapters
 * @author Vijay Dubb
 * @version 3.1.0
 * Copyright 2013. MIT licensed.
 */

article, aside, details, figcaption, figure, footer, header, hgroup, img, menu, nav, section, video {
    display: block
}

.loading {
    position: absolute
}

.loading .loading-wrapper {
    position: relative;
    height: 150px
}

.loading .loading-wrapper:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 999;
    width: 150px;
    border: 10px solid #fff;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%)
}

.loading .loading-wrapper:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 15px;
    z-index: 999;
    -webkit-animation-name: loading-youtube-video;
    animation-name: loading-youtube-video;
    -webkit-animation-duration: .5s;
    animation-duration: .5s;
    -webkit-animation-direction: alternate;
    animation-direction: alternate;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite
}

.loading .loading-wrapper .loading-text {
    position: absolute;
    top: 70%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%)
}

@-webkit-keyframes loading-youtube-video {
    0% {
        -webkit-transform: translate(-72.5px, -7.5px);
        transform: translate(-72.5px, -7.5px)
    }

    to {
        -webkit-transform: translate(58.5px, -7.5px);
        transform: translate(58.5px, -7.5px)
    }
}

@keyframes loading-youtube-video {
    0% {
        -webkit-transform: translate(-72.5px, -7.5px);
        transform: translate(-72.5px, -7.5px)
    }

    to {
        -webkit-transform: translate(58.5px, -7.5px);
        transform: translate(58.5px, -7.5px)
    }
}

.preview {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 200px;
    background: var(--dark);
    border-radius: var(--radius)
}

.youtube-chapter-wrapper {
    visibility: hidden;
    padding: 0;
    margin: 0;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex
}

.youtube-chapter-wrapper.complete {
    visibility: visible
}

.youtube-chapter-wrapper .youtube-wrapper {
    -webkit-box-flex: 3;
    -ms-flex: 3 1 60%;
    flex: 3 1 60%
}

.youtube-chapter-wrapper .youtube-wrapper .fluid-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 25px;
    height: 0
}

.youtube-chapter-wrapper .youtube-wrapper .fluid-wrapper .youtube-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%
}

.youtube-chapter-wrapper .chapters-wrapper {
    width: 350px;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 40%;
    flex: 1 1 40%;
    overflow-x: hidden;
    background: var(--dark);
    /* height: 549px!important; */
}

.youtube-chapter-wrapper .chapters-wrapper .chapter-point-wrapper {
    cursor: pointer;
        border-bottom: 1px solid;
}

.youtube-chapter-wrapper .chapters-wrapper .chapter-point-wrapper:last-child {
    border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0
}

.youtube-chapter-wrapper .chapters-wrapper .chapter-point-wrapper.current, .youtube-chapter-wrapper .chapters-wrapper .chapter-point-wrapper.current:hover {
    background-color: var(--color1)!important;
    color: var(--text1) !important;
}

.youtube-chapter-wrapper .chapters-wrapper .chapter-point-wrapper:hover {
background-color: var(--color3) !important;
color: var(--text1)!important;
}

.youtube-chapter-wrapper .chapters-wrapper .chapter-point-wrapper .chapter-point {
    display: block;
    padding: 10px 55px 10px 15px;
    text-decoration: none;
}

.youtube-chapter-wrapper .chapters-wrapper .chapter-point-wrapper .time {
    float: right;
    margin-right: -45px;
    color: var(--text1) !important;
}

.youtube-chapter-wrapper .text-wrapper {
    -webkit-box-flex: 1;
    -ms-flex: 1 100%;
    flex: 1 100%;
    margin-top: 15px
}

.youtube-chapter-wrapper .text-wrapper .text-point {
    display: none;
    padding: 10px;
    border: 1px solid #ccc
}

.youtube-chapter-wrapper .text-wrapper .text-point.current {
    display: flex;
    align-items: center;
}

@media only screen and (min-width: 280px) and (max-width: 991px) {
    /*alterar pra funcionar perfeitamente no mobile*/
    .wrapper {
        display: flex;
    }
    .youtube-chapter-wrapper .chapters-wrapper {
        overflow-y: visible !important;
        height: 223px !important;
        flex: auto;
    }
}