html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: black; 
    overflow: hidden;
}

.custom-video-player {
    position: fixed;
    top: 0;
    left: 0%;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    overflow: hidden;  /* Ensures no scrolling occurs */
    transform: scale(0);
    opacity: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: 0.4s ease-in-out;
}

.custom-video-player .close-btn {
    position: absolute;
    top: 3vh;
    right: 2vw;
    border: none;
    background: none;
    display: flex;
    align-items: center; /* Centers the content horizontally in the flex container */
    justify-content: center; /* Centers the content vertically in the flex container */
    color: rgb(186, 186, 186);
    font-size: calc(2vw + 2vh);
    cursor: pointer;
    z-index: 1050;
    border-radius: 64px;
    padding: 0px 0.8vw;
    transition: 0.3s;
}

.custom-video-player .close-btn:hover {
    transform: scale(1.25);
    transition: 0.3s;
    color: black;
    background-color: rgb(255, 210, 11);
} 

.custom-video-player .close-btn:active {
    transform: scale(0.9);
    transition: 0.3s;
    background-color: rgb(108, 40, 175);
}

.custom-video-player video {
    width: 90vw;
    flex: content;
    justify-content: center;
    object-fit: cover;
    opacity: 1;
    border: 1px solid #d0d0d077;
    border: 0.11vw solid #d0d0d077;
    transform: scale(0.75);
}

.custom-video-player .controls {
    width: 65%;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 24px;
    margin-bottom: 10vh;
    padding: 1%;
    transition: 0.3s;
}

.top-bar {
    width: 100%;
    position: absolute;
    color: white;
    transition: 0.5s;
    opacity: 0;
    height: 100vh;
    transition: 0.4s;
}

.custom-video-player .video-overlay {
    position: fixed;
    margin-top: -4vh;
    font-size: calc(4vw + 4vh);
    color: white;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;  /* Allows clicks to pass through to the video */
    opacity: 0; /* Initially hidden */
    transition: 0.4s;
    z-index: 10005;
}

.controls {    
    padding: 10px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* Centers controls horizontally */
    bottom: 4vh;
    width: 90%;
    display: flex;
    color: white;
    z-index: 2; /* Ensures controls are above the video */
}

.controls button {
    cursor: pointer;
    background: none;
    border: 0px solid rgb(154, 154, 154);
    color: white;
    background-color: rgba(255, 255, 255, 0);
    padding: 24px 24px;
    border-radius: 16px;
    transition: 0.2s;
}

.controls button:hover {
    background-color: rgb(255, 210, 11);
    color: rgb(0, 0, 0);
    transform: scale(1.1);
    transition: 0.2s;
}

.controls button:active {
    background-color: rgb(79, 17, 141);
    color: rgb(0, 0, 0);
    transform: scale(0.9);
    transition: 0.2s;
}

.controls input[type="range"] {
    flex-grow: 1;
    margin: 0 45px;
    cursor: pointer;
}