@import url('https://fonts.cdnfonts.com/css/sf-pro-display');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
}

.wrapper {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-end; /* push player to bottom of iframe */
        font-family: 'SF Pro Display', sans-serif;
}


/*timeline*/
#tlWrap {
    position: relative;
    width: 100%;
}

#timeline {
    position: absolute;
    background-color: rgb(247, 119, 0);
    height: 0.2rem;
    width: 100%;
    z-index: 100;
}

/* Small, subtle timeline head (range thumb) */
#timeline {
    -webkit-appearance: none;
    appearance: none;
}

#timeline::-webkit-slider-runnable-track {
    height: 0.2rem;
    background: rgba(255,255,255,0.25);
    border-radius: 2px;
}

#timeline::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    margin-top: -3px; /* center the thumb on the track */
    box-shadow: none;
    cursor: pointer;
    opacity: 0;
}

#timeline::-moz-range-track {
    height: 0.2rem;
    background: rgba(255,255,255,0.25);
    border-radius: 2px;
}

#timeline::-moz-range-thumb {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    box-shadow: none;
    cursor: pointer;
}

#timeline::-ms-track {
    height: 0.2rem;
    background: transparent;
    border-color: transparent;
}

#timeline::-ms-thumb {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    cursor: pointer;
}

.player {
    position: sticky;
    padding-top: 6px;
    display: flex;
    width: 100%;
    gap: 0.2rem;
    height: 2.5rem;
    background-color: rgba(32, 34, 37, 0.5);
}

/*BUTTONS*/
button {
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    background-size: cover;
    background-color: transparent;
    border: none;
    filter: invert(100%);
    -webkit-filter: invert(100%);
}

/*ffw rew*/
#rew {
    background-image: url(/player/images/rewind.png);
    display: none !important;
}
#ffw {
    background-image: url(/player/images/fast-forward.png);
    display: none !important;
}

/*play pause controls*/
.controls {
    display: block;
    position: relative;
    width: 2rem;
}

#play {
    display: block;
    position: absolute;
    background-image: url(/player/images/play.png);
}

#pause {
    display: none;
    position: absolute;
    background-image: url(/player/images/pause.png);
}

/*volume etc*/
.volumecontrol {
    width: 50%;
    display: flex;
    gap: 1rem;
}

.volumes {
    position: relative;
    display: none;
    width: 2rem;
}

.volumes[data-volLevel="1"] {
    display: block;
}

#volMu, #volLo, #volHi {
    background-size: cover;
    filter: invert(100%);
    -webkit-filter: invert(100%);
}

#volMu {background-image: url(/player/images/mute.png);}
#volLo {background-image: url(/player/images/low-volume.png);}
#volHi {background-image: url(/player/images/high-volume.png);}

#slideContainer {
    contain: content;
    width: 0rem;
}

#volumeslider {
    position: absolute;
    height: 5px;
    width: 4rem;
    top: 40%;
}

.volumecontrol:hover > #slideContainer{
    width: 10rem;
}

#volumeslider {
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 3px;
    background-image: linear-gradient(white, white);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
  

#volumeslider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 1rem;
    width: 1rem;
    border-radius: 1rem;
    background: white;
    cursor: pointer;
    transition: background .3s ease-in-out;
    border: none;
}

#volumeslider::-moz-range-thumb {
    -webkit-appearance: none;
    height: 1rem;
    width: 1rem;
    border-radius: 1rem;
    background: white;
    cursor: pointer;
    transition: background .3s ease-in-out;
    border: none;
}

#volumeslider::-ms-thumb {
    -webkit-appearance: none;
    height: 1rem;
    width: 1rem;
    border-radius: 1rem;
    background: white;
    cursor: pointer;
    transition: background .3s ease-in-out;
    border: none;
}

#volumeslider::-webkit-slider-thumb:hover {
    background: rgb(243, 243, 243);
}

#volumeslider::-moz-range-thumb:hover {
    background: rgb(243, 243, 243);
}

#volumeslider::-ms-thumb:hover {
    background: rgb(243, 243, 243);
}


#volumeslider::-webkit-slider-runnable-track  {
    -webkit-appearance: none;
    box-shadow: none;
    border: none;
    background: transparent;
}

#volumeslider::-moz-range-track {
    -webkit-appearance: none;
    box-shadow: none;
    border: none;
    background: transparent;
}

#volumeslider::-ms-track {
    -webkit-appearance: none;
    box-shadow: none;
    border: none;
    background: transparent;
}
  
---------------------------------------------*/
.infotext {
    font-family: 'SF Pro Display', sans-serif;
    font-size: 3rem;
    color: rgba(255, 0, 0, 1);
    margin: 0;
    padding: 0;
    text-shadow: lightblue 2px 4px 2px;
}

.information {
    color:#add8e6;
    display: block;
    position: relative;
    text-align: right;
    padding-right: 1rem;
    text-shadow: rgb(120, 120, 120) 2px 2px 0px;
}

@media (max-width: 500px) {
    .volumecontrol {
        display: none !important;
    }
}

/* Responsive fallback for `.infotext` inside the player iframe so it doesn't overflow */
@media (max-width: 800px) {
    .infotext { font-size: 2rem; }
}

@media (max-width: 420px) {
    .infotext { font-size: 1.6rem; }
    .information { padding-right: 0.6rem; }
}

@keyframes timeline {
    0% {
        width: 0vw;
    }
    100% {
        width: 100vw;
    }
}

@keyframes timelineHead {
    0% {
        transform: translateX(0vw)
    } 100% {
        transform: translateX(100vw)
    }
}