body {
    --libre-vid-timing-len: 1200ms;
    --libre-fade-in-len: 2000ms;
}

div.tk-slider {
    width: 100%;
    padding: 20px;
}

.tk-img-container {
    width: 469px;
    height: 351px;
    position: relative;
    margin: auto;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    box-shadow: 5px 5px 5px 0 var(--theme-dark);
}

.tk-slide {
    opacity: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    border: 2px solid black;
    height: 100%;
    width: 100%;
}

.tk-slideNumber {
    display: none;
}

.tk-rangeslidercontainer {
    width: 75%; /* Width of the outside container */
    display: flex;
    align-items: center;
}

/* The slider itself */
.tk-rangeslider {
    -webkit-appearance: none;  /* Override default CSS styles */
    appearance: none;
    width: 100%; /* Full-width */
    height: 15px; /* Specified height */
    background: #dfe2e4; /* Grey background */
    outline: none; /* Remove outline */
    opacity: 0.9; /* Set transparency (for mouse-over effects on hover) */
    -webkit-transition: .2s; /* 0.2 seconds transition on hover */
    transition: opacity .2s;
    margin-left: 20px;
    border-radius: 10px;
}

/* Mouse-over effects */
.tk-rangeslider:hover {
    opacity: 1; /* Fully shown on mouse-over */
}

/* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */
.tk-rangeslider::-webkit-slider-thumb {
    -webkit-appearance: none; /* Override default look */
    appearance: none;
    width: 15px; /* Set a specific slider handle width */
    height: 40px; /* Slider handle height */
    background: #5ab963; /* Green background */
    cursor: pointer; /* Cursor on hover */
    border-radius: 3px;
    border: 1px solid white;
}

.tk-rangeslider::-webkit-slider-thumb:hover {
    box-shadow: 2px 2px 5px 0 #000a07;
}

.tk-rangeslider::-moz-range-thumb {
    -moz-appearance: none; /* Override default look */
    width: 15px; /* Set a specific slider handle width */
    height: 40px; /* Slider handle height */
    background: #5ab963; /* Green background */
    cursor: pointer; /* Cursor on hover */
}

.tk-rangeslider::-moz-range-thumb:hover {
    box-shadow: 2px 2px 5px 0 #000a07;
}

.tk-controls {
    width: 100%;
    background: linear-gradient(45deg, #346bd4, rgb(71, 109, 198) 70.71%);
    opacity: 0.99;
    padding: 3px 3px;
    margin: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    /* box-shadow: 2px 2px 2px rgb(148, 141, 141); */
    border: 1px solid black;
    position: absolute;
    bottom: 0;
}

.tk-controls > div {
    width: 100%;
    margin: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.tk-start {
    margin: auto;
}

.tk-end {
    animation-name: flipPic;
    animation-duration: var(--libre-vid-timing-len);
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in;
}

.tk-turnpage {
    animation-name: flipPic;
    animation-duration: var(--libre-vid-timing-len);
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in;   
}

.tk-slider .tk-active {
    animation: fadeIn;
    animation-duration: var(--libre-fade-in-len);
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in;  
}

.tk-slide img {
    height: 100%;
    width: 100%;
}

@keyframes flipPic {
    from {
        transform: rotateY(0);
        transform-origin: right;
        opacity: 1;
    }
    to {
        transform: rotateY(90deg);
        transform-origin: right;
        opacity: 0;
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

#runbutton {
    height: 64px;
    width: 64px;
    opacity: 0.92;
    margin-left: 12px;
}

#runbutton:hover {
    opacity: 1;
}

a[tk-id="openbox"] {
    margin-bottom: 20px;
}

@media screen and (max-width: 568px) {
    .tk-img-container {
        width: 320px;
        height: 240px;
        position: relative;
        margin: auto;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        box-shadow: 5px 5px 5px 0 var(--theme-dark);
    }

    .tk-rangeslidercontainer {
        width: 60%;
    }
}