/* General Container Styles */
#oh-vip-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100vh;
    width: 100%;
    margin: 3rem auto;
    padding: 3rem;
    background: #f9f9f9;
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Video Container Styles */
#oh-vip-video-container {
    position: relative;
    width: 100%;
    height: 60vh;
    margin: 0.5rem 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Video Styles */
#oh-vip-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: black;
}

#oh-vip-loading-bar {
    position: relative;
    width: 100%;
    height: 35px;
    background-color: #f3f3f3;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    margin: 8px;
}

#loading-progress-bar {
    height: 100%;
    background-color: #d38221;
    width: 0;
	transition: width 0.4s ease; /* Smooth transition effect */
}

/* Timer Styles */
#oh-vip-timer {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    padding: 0.2em 0.5em;
    font-size: 1.5em;
    font-weight: 600;
    border-radius: 0.5rem;
    background: #fffffff0; /* Semi-transparent background */
    color: #980000; /* Red text */
    border: 2px solid #980000; /* Red border */
    display: inline-block;
}

/* Button Styles */
.oh-btn {
    font-weight: normal;
    font-size: 1.1em;
    padding: .8rem 1.9rem .8rem 1.9rem;
    font-family: inherit;
    text-align: center;
    color: #fff;
    background: #007bff;
    border: none;
    border-radius: 0.3rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    margin: 0.5rem;
    width: 100%; /* Allow buttons to adjust width based on content */
    max-width: 100%; /* Limit maximum width for larger screens */
}

.oh-btn:hover {
    background: #0056b3;
    transform: none; /* Remove the translateY transformation on hover */
}

.oh-btn:active {
    background: #004085;
    transform: none; /* Remove the translateY transformation on click */
}

.oh-btn:disabled {
    opacity: 0.5;
    visibility: visible;
}

/* Button Container */
.oh-video-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: nowrap;
    grid-gap: 0;
}

#oh-vip-record-btn {
    background-color: #33a333;
}

#oh-vip-stop-btn {
    background-color: #cf3b3b;
}

/* Question Text Fade-In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#oh-vip-questions {
    font-size: 1.8em;
    color: black;
    background-color: #fdfdfd;
    font-weight: normal;
    animation: fadeIn 1s ease-in-out;
    white-space: pre-wrap;
    margin-bottom: 1rem;
    max-width: 100%;
    padding: 1rem 2rem 1rem 2rem;
    border-radius: .3em;
    word-wrap: break-word;
    word-break: break-word;
    text-align: center;
    hyphens: auto;
    box-shadow: inset -4px 7px 7px 0px rgba(0, 0, 0, 0.1);
}

/* Adjustments for Mobile */
@media (max-width: 768px) {
    #oh-vip-questions {
        font-size: 1.5em;
    }
    .oh-video-btns {
        flex-wrap: wrap;
    }
}

/* Progress Bar Styles */
#oh-progress-bar-container {
    padding: 0;
    margin: 3rem auto; /* Center the progress bar container horizontally */
    width: 50%;
    height: 3em; /* Adjust height as needed */
}

#oh-progress-bar {
    height: 100%;
    background-color: #252A38;
    border-radius: 1.5em;
    color: white;
    position: relative;
    overflow: hidden; /* Ensure progress overflow is hidden */
}

#oh-progress-bar::before {
    content: attr(data-label);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    color: white;
    z-index: 1; /* Ensure text is above the progress bar */
    font-weight: bold;
    background-color: #ffffff00;
}

/* Adjusted width based on --width variable */
#oh-progress-bar::after {
    content: '';
    display: block;
    height: 100%;
    background-color: #d38221;
    border-radius: 1.5em;
    transition: width 0.3s ease-in-out; /* Smooth transition for width change */
    width: calc(var(--width, 0) * 1);
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0; /* Ensure progress bar is below the text */
}

@media (max-width: 768px) {
    #oh-progress-bar-container {
        height: 2em;
    }
	#oh-vip-container {
		padding: 1.3rem;
	}
}

@media (max-width: 435px) {
    #oh-progress-bar-container {
        margin: 1.2rem auto
    }
    #oh-vip-timer {
        margin: 0.25rem 0;
    }
    .oh-video-btns {
        margin-top: 0;
    }
}
