﻿/* custom video controls */

.video-wrapper {
    position: relative;
    background-color: #212121;
}

.video-section .play-pause-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
}

.video-section .fa-pause {
    padding-left: 20px;
    padding-right: 20px;
}

/* Custom Progress Bar */
.progress-bar {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    overflow: hidden;
    cursor: pointer;
}

.progress {
    width: 0%;
    height: 100%;
    background: #fff;
    transition: width 0.1s linear;
}

/* Sound Icon */
.sound-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 20px;
    cursor: pointer;
    background: rgba(9, 9, 9, 0.5); /* same as #090909 with 0.8 opacity. This is how you can give only the background color opacity */
    color: white;
    padding: 10px;
    border-radius: 50%;
}

/* Video Loader */
.loading-spinner {
    width: 77px;
    height: 77px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none; /*Initially hidden */
}

.spinner-animation {
    border: 5px solid #fff;
    border-top: 5px solid transparent;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
