body
{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: var(--theme-bg);
    color: white;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

#standard_url
{
    width: 60%;
    height: 50px; 
    border-radius: 20px; 
    text-align: center;
    background-color: #aaa;
    box-shadow: 0 0 2vw rgba(0, 0, 0, 0.7);
    border: 2px solid black;
    font-size: 16pt;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    margin-top: 100px;
}

@media only screen and (max-width: 900px)
{
    #standard_url
    {
        width: 80%;
    }
}

@media only screen and (max-width: 600px)
{
    #standard_url
    {
        width: 90%;
    }
}

.play-button
{
    width: 100px; 
    height: 60px;
    border-radius: 30px; 
    margin-top: 50px; 
    background-color: #aaa;
    color: #222;
    font-size: 40px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition-duration: 0.2s;
    transition-timing-function: ease-in-out;
    font-family: Arial, Helvetica, sans-serif;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}

.play-button:hover
{
    background-color: #fff;
    color: #666;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.video-button
{
    padding: 10px 20px;
    background-color: var(--theme-bg);
    color: #555;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.video-button:hover
{
    color: #aaa;
}

.spinner-parent
{
    z-index: 2;
    left: 50% !important;
    top: 50% !important;
    overflow: visible !important;
    font-size: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.spinner-parent>.spinner-body
{
    z-index: 2;
    width: 7vw;
    height: 7vw;
    padding: 0;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 50%;
    background: 
        radial-gradient(farthest-side,#F4F4F4 94%,#0000) top/0.8vw 0.8vw no-repeat,
        conic-gradient(#0000 30%,#F4F4F4);
    -webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - 0.8vw),#000 0);
    mask: radial-gradient(farthest-side,#0000 calc(100% - 0.8vw),#000 0);
    animation:s3 1s infinite linear;
    
    transition-duration: 1s;
    transform: translateX(-50%) translateY(-50%);
}

@keyframes s3
{ 
    100%{transform: translateX(-50%) translateY(-50%) rotate(1turn)}
}


.error-icon
{
    mask: none !important;
    -webkit-mask: none !important;
    background: transparent !important;
    font-size: 100pt !important;
    border-radius: 0 !important;
    padding: 0 !important;
    height: fit-content !important;
    color: red !important;
    animation: none !important;
}


#videoPlayer
{
    border-radius: 1.7vw;
    width: 60vw;
    height: 34vw;
    max-width: 90vw;
    max-height: 90vh;
    border: 0.4vw solid black;
    box-shadow: 0 0 2vw rgba(0, 0, 0, 0.7);
    background-color: black;
    z-index: 1;
    transition: all 1s cubic-bezier(0.77, 0, 0.175, 1);
}


#videoPlayer:not(.vjs-fullscreen) video
{
    object-fit: cover !important;
}


.vjs-fullscreen
{
    border: none !important;
    border-radius: 0 !important;
}


.vjs-poster>img
{
    object-fit: cover !important;
    filter: brightness(0.5) grayscale(0.8) blur(2px);
    transition-duration: 1s;
}


.loaded-img
{
    filter: none !important;
}


#video
{
    filter: brightness(0);
}


.video-js
{
    padding: 0 !important;
    overflow: hidden;
}

.display-flex
{
    display: flex !important;
}

.video-js.download-menu-open .vjs-control-bar
{
    opacity: 1 !important;
}

.seg
{
    cursor: help;
    height: 100%;
    position: absolute;
}

#skipsegment
{
    padding: 10px;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 50vh;
    background-color: #222;
    color: white;
    transition-duration: 0.5s;
    cursor: pointer;
    position: absolute;
    bottom: 70px;
    right: 1vw;
    font-size: 12pt;
    transform: translate(120%, 0);
    opacity: 0;
}

/* Expandable menu styles */
#expandable-menu-container {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 100;
}

.expand-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--theme-bg-light);
    color: #555;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier( 0.86, 0, 0.07, 1 );
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.expand-button:hover {
    color: #aaa;
    background-color: #444;
}

.expand-button.expanded {
    transform: rotate(180deg);
}

.expandable-content {
    position: absolute;
    bottom: 50px;
    right: 0;
    background-color: var(--theme-bg-light);
    border-radius: 8px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s cubic-bezier( 0.86, 0, 0.07, 1 );
    width: 200px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.expandable-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expandable-content li {
    padding: 12px 15px;
    color: #888;
    border-bottom: 1px solid #444;
    cursor: default;
    transition: background-color 0.2s;
}

.expandable-content li:last-child {
    border-bottom: none;
}

.expandable-content li:hover {
    background-color: #3a3a3a;
}

.expandable-content a {
    color: inherit;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.expandable-content i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.vjs-download-menu {
    position: absolute;
    bottom: 110%;
    right: 50%;
    transform: translateX(50%);
    background-color: #333;
    border-radius: 7px;
    color: #eee;
    text-align: center;
    display: none;
    flex-direction: column;
    width: 100px;
    overflow: hidden;
    transition: all .2s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 10;
}

.vjs-download-option {
    padding: 0 12px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 1.5em !important;
}

.vjs-download-option:hover {
    background-color: #666;
}

.time_disp {
    font-size: 10pt;
    font-family: 'Courier New', Courier, monospace;
}

/* Time selection menu styles */
.time-selection-menu {
    position: absolute;
    bottom: 100%; /* Appear above the download menu */
    right: 50%;
    transform: translateX(50%);
    background-color: #333;
    border-radius: 7px;
    color: #eee;
    text-align: center;
    display: flex;
    flex-direction: column; /* Stack items vertically */
    padding: 10px;
    gap: 5px; /* Spacing between items */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.86, 0, 0.07, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.time-selection-menu.hidden {
    display: none !important; /* Hide when not toggled */
}

.time-selection-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    border-radius: 5px;
}

.time-button {
    background-color: #444;
    color: #eee;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.time-button:hover {
    background-color: #555;
}

.time-button i {
    margin-right: 5px; /* Add space between icon and text */
}



.menu-button {
  cursor: pointer;
  padding: 10px !important;
}
.menu-button:hover {
  background-color: #555;
}


.vjs-subtitle-menu {
    position: absolute;
    bottom: 110%;
    right: 50%;
    transform: translateX(50%);
    background-color: #333;
    border-radius: 7px;
    color: #eee;
    text-align: center;
    display: none;
    flex-direction: column;
    width: 100px;
    max-height: 500px;
    overflow-y: auto;
    transition: all .2s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 10;
    padding: 10px;
    margin: 10px;
}

.vjs-subtitle-option {
    background: none;
    border: none;
    color: #eee;
    padding: 8px 0;
    cursor: pointer;
    text-align: center;
    width: 100%;
    display: block;
    font-size: 1.2em !important;
    font-weight: bold;
}

.vjs-subtitle-option:hover {
    background-color: #666 !important;
}



.vjs-resolution-menu {
    position: absolute;
    bottom: 110%;
    right: 50%;
    transform: translateX(50%);
    background-color: #333;
    border-radius: 7px;
    color: #eee;
    text-align: center;
    display: none;
    flex-direction: column;
    width: 100px;
    overflow: hidden;
    transition: all .2s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 10;
}

.vjs-resolution-option {
    background: none;
    border: none;
    color: #eee;
    padding: 8px 0;
    cursor: pointer;
    text-align: center;
    width: 100%;
    display: block;
    font-size: 1.2em !important;
    font-weight: bold;
}

.vjs-resolution-option:hover {
    background-color: #666 !important;
}

.vjs-resolution-option-current {
    background-color: #555 !important;
}

.vjs-repeat-button {
    cursor: pointer;
    padding: 10px !important;
}

.vjs-button.vjs-active {
    color: var(--vjs-theme-custom--primary) !important;
}

.vjs-repeat-menu {
    position: absolute;
    bottom: 110%;
    right: 50%;
    transform: translateX(50%);
    background-color: #333;
    border-radius: 7px;
    color: #eee;
    text-align: center;
    display: none;
    flex-direction: column;
    width: 100px;
    overflow: hidden;
    transition: all .2s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 10;
}

.vjs-playback-speed-menu {
    position: absolute;
    bottom: 110%;
    right: 50%;
    transform: translateX(50%);
    background-color: #333;
    border-radius: 7px;
    color: #eee;
    text-align: center;
    display: none; /* Controlled by JavaScript */
    flex-direction: column;
    width: 100px;
    max-height: 500px;
    overflow-y: auto;
    transition: all .2s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 10;
    padding: 10px;
    margin: 10px;
}

.vjs-playback-speed-option {
    background: none;
    border: none;
    color: #eee;
    padding: 8px 0;
    cursor: pointer;
    text-align: center;
    width: 100%;
    display: block;
    font-size: 1.2em !important;
    font-weight: bold;
}

.vjs-playback-speed-option:hover {
    background-color: #666 !important;
}

.vjs-playback-speed-option-current {
    background-color: #555 !important;
}

.vjs-title-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    z-index: 2;
    background: none;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-title-bar {
    opacity: 0;
}

.vjs-title-bar-text {
    color: white;
    font-size: 1.5em;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    pointer-events: all !important;
    width: fit-content;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vjs-uploader-text {
    color: rgb(235, 235, 235);
    font-size: 1.2em;
    margin-top: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    pointer-events: all !important;
    width: fit-content;
}