body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: var(--background-image);
    cursor: none;
}

body.nobg {
    background: none !important;
}

body[d-broadcaster_code="ffhand"] {
    zoom: 0.6;
}

/*
h1 {
    position: relative;
    background-image: -webkit-linear-gradient(var(--secondary-color) 0, var(--secondary-color) 46%, var(--primary-color) 50%, var(--secondary-color) 54%, var(--secondary-color) 58%, var(--secondary-color) 90%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 4px #f5f5f5;
    font-family: var(--font-family), 'Titillium Web', sans-serif;
    font-style: italic;
    margin: 0;
    text-shadow: none;
    font-size: 6rem;
    line-height: 6rem;
    text-align: center;
    margin: 0 auto;
    width: 100%;
}

h1:before {
    content: 'Karaoke';
    position: absolute;
    z-index: 10;
    background-image: -webkit-linear-gradient(-40deg, transparent 0, transparent 40%, #fff 50%, transparent 60%, transparent 100%);
    background-position: -680px 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-stroke: 0;
    -webkit-animation-name: chrome_effect;
    -webkit-animation-duration: 12s;
    -webkit-animation-delay: 2s;
    -webkit-animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
    animation-name: chrome_effect;
    animation-duration: 12s;
    animation-delay: 2s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    width: 100%;
}
*/
@keyframes chrome_effect {
    0% {
        background-position: -680px 0
    }

    10% {
        background-position: 420px 0
    }

    100% {
        background-position: 420px 0
    }
}

@-webkit-keyframes chrome_effect {
    0% {
        background-position: -680px 0
    }

    10% {
        background-position: 420px 0
    }

    100% {
        background-position: 420px 0
    }
}

#lyrics-container {
    position: relative;
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 15vh;
}

#current-line,
#next-line {
    font-family: var(--secondary-font-family);
}

#current-line {
    font-size: 5vw;
    line-height: 0.9;
    font-weight: bold;
    text-align: center;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-transform: uppercase;
    gap: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 80%, rgba(0, 0, 0, 1) 100%);
}

#current-line {
    justify-content: end;
    align-items: end;
}

.line {
    position: relative;
    width: 100%;
    height: 5rem;
    line-height: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.line-base,
.line-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}

.line-base {
    color: var(--secondary-color);
}

.line-overlay {
    color: var(--fourth-color);
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.1s linear;
}

#next-line {
    font-size: 4vw;
    color: var(--third-color);
    margin-top: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    font-style: italic;
}

.live-icon {
    display: inline-block;
    margin: 0 auto;
    border-radius: 50%;
    background: red;
    width: 20px;
    height: 20px;
    animation: live 2s infinite;
}

.text {
    display: none;
    text-align: center;
    color: red;
    font-weight: bold;
    position: relative;
    padding: 1rem;
    text-align: center;
    margin: 0 auto;
    background: #FFF;
    position: absolute;
    top: 0;
}

@keyframes live {

    0%,
    100% {
        background: none;
    }

    50% {
        background: red;
    }
}

#outro {
    display: none;
    width: 100vw;
    margin: 0 auto;
    position: absolute;
    z-index: 9999;
    background: url(uploads/outro.png);
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    top: 0px;
    bottom: 0px;
    width: 100%;
}

.progress-container {
    width: 50vw;
    height: 10vh;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.progress-bar {
    height: 100%;
    background-color: var(--background-color);
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 5px;
}

.sync-indicator,
.play-indicator {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: none;
}

.sync-indicator {
    background-color: #4CAF50;
    animation: blink 1s infinite;
}

.play-indicator {
    background-color: red;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

.Live__videoContainer iframe {
    object-fit: cover;
}

/* Ensure the lyrics are visible over the video background */
#lyrics-container {
    position: relative;
    z-index: 10;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
    /* Add text shadow for better visibility */
}

/* Make sure the text in the lyrics is more visible */
.line-base,
.line-overlay,
#next-line {
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

/* Add these styles to your karaoke.min.css file */

.Live__videoContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Place it behind all other content */
    overflow: hidden;
    display: none;
    /* Hidden by default, will be shown via JS when needed */
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Adjust opacity as needed */
    z-index: -1;
    display: none;
    /* Hidden by default, will be shown via JS when needed */
}

body.has-live-feed #lyrics-container {
    position: fixed;
    bottom: 50px;
    left: 0;
    width: 100%;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

body.has-live-feed #next-line {
    display: none;
}

body.has-live-feed .line-base,
body.has-live-feed .line-overlay {
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
    font-size: 1.5em;
}

body[d-broadcaster_code="24h"] #current-line {
    justify-content: center;
    align-items: center;
}

body[d-broadcaster_code="ffhand"] .line {
    height: 3rem;
    line-height: 3rem;
}

body[d-broadcaster_code="ffhand"] #current-line {
    font-size: 5vw;
}