.char {
    color: #fded80;
    transition: color 0.3s linear, text-shadow 0.3s linear;
    text-shadow:
        1px 0 #154ea2,
        -1px 0 #154ea2,
        0 1px #154ea2,
        0 -1px #154ea2;
}

.char.active {
    color: #154ea2;
    text-shadow:
        1px 0 #fded80,
        -1px 0 #fded80,
        0 1px #fded80,
        0 -1px #fded80;
}



@font-face {
    font-family: 'DIN-Black';
    src: url('../Assets/FontsFree-Net-DIN-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

body {
    padding: 0;
    margin: 0
}

#unity-container {
    position: absolute
}

#unity-container.unity-desktop {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%)
}

#unity-container.unity-mobile {
    position: fixed;
    width: 100%;
    height: 100%
}

#unity-canvas {
    background: #231F20
}

.unity-mobile #unity-canvas {
    width: 100%;
    height: 100%
}

#unity-loading-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none
}

#unity-logo {
    width: 154px;
    height: 130px;
    background: url('unity-logo-dark.png') no-repeat center
}

#unity-progress-bar-empty {
    width: 141px;
    height: 18px;
    margin-top: 10px;
    margin-left: 6.5px;
    background: url('progress-bar-empty-dark.png') no-repeat center
}

#unity-progress-bar-full {
    width: 0%;
    height: 18px;
    margin-top: 10px;
    background: url('progress-bar-full-dark.png') no-repeat center
}

#unity-footer {
    position: relative
}

.unity-mobile #unity-footer {
    display: none
}

#unity-logo-title-footer {
    float: left;
    width: 102px;
    height: 38px;
    background: url('unity-logo-title-footer.png') no-repeat center
}

#unity-build-title {
    float: right;
    margin-right: 10px;
    line-height: 38px;
    font-family: arial;
    font-size: 18px
}

#unity-fullscreen-button {
    cursor: pointer;
    float: right;
    width: 38px;
    height: 38px;
    background: url('fullscreen-button.png') no-repeat center
}

#unity-warning {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%);
    background: white;
    padding: 10px;
    display: none
}

#recordingpagecontainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    pointer-events: none;
}

#bearContainer {
    position: absolute;
    bottom: -3%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    left: 30%;
    height: 50%;
    width: auto;
    display: none;
    z-index: 500;
}

#bearBodyWrapper {
    position: relative;
    width: 100%;
    height: 100%;
    animation: bodySwing 2s infinite ease-in-out;
    transform-origin: bottom center;
}

#bearBody {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

#bearHand {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 3;
    animation: handSwing 2s infinite ease-in-out;
    transform-origin: bottom center;
}


@keyframes bodySwing {
    0% {
        transform: rotate(-1.5deg);
    }

    50% {
        transform: rotate(1.5deg);
    }

    100% {
        transform: rotate(-1.5deg);
    }
}

@keyframes handSwing {

    0% {
        transform: translateX(0.5px);
    }

    50% {
        transform: translateX(-0.5px);
    }

    100% {
        transform: translateX(0.5px);
    }
}


#buttoncontainer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8%;
    height: 20%;
    z-index: 1001;
    pointer-events: none;
}

#recorderbutton {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 41%;
    width: auto;
    pointer-events: auto;
}

#recorderbutton:active {
    transform: translateX(-50%) scale(1.2);
}

#backbutton:active {
    transform: scale(1.2);
}

#backbutton {
    position: absolute;
    left: 20%;
    bottom: 61%;
    height: 32%;
    width: auto;
    pointer-events: auto;
}

#previewpagecontainer {
    position: absolute;
    top: 22%;
    left: 50%;
    width: 65%;
    height: 60%;
    display: none;
    transform: translate(-50%);
    border-radius: 1%;
}

#recordedOutput {
    width: 100%;
    height: 100%;
    position: absolute;
}

#recordedOutput video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* or cover if you want edge-to-edge */
    border-radius: 8px;
    /* optional, for polish */

}

#capture-area {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* âœ… clip anything outside */
}

#lyrics-container {
    position: absolute;
    bottom: 18%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 90%;
    text-align: center;
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: bold;
    height: auto;
    z-index: 9999;
    font-family: 'DIN-Black', sans-serif;
    overflow-wrap: break-word;
    word-break: break-word;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

}

.lyric-line {
    display: inline-block;
    width: 100%;
    white-space: normal;
    text-align: center;
}


#countdown-container {
    position: absolute;
    top: 68%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.1em;
    font-weight: bold;
    font-family: 'DIN-Black', sans-serif !important;
    color: #fded80;
    z-index: 10000;
    display: none;
    text-align: center;
    paint-order: fill stroke;
    text-shadow:
        /* stroke */
        -2.5px -2.5px 0 #154ea2,
        2.5px -2.5px 0 #154ea2,
        -2.5px 2.5px 0 #154ea2,
        2.5px 2.5px 0 #154ea2,
        0px 2.5px 0 #154ea2,
        2.5px 0px 0 #154ea2,
        0px -2.5px 0 #154ea2,
        -2.5px 0px 0 #154ea2,

        /* Directional shadow */
        -0px 0px 0 #154ea2,
        -0px 0px 0 #154ea2,
        -0px 0px 0 #154ea2,
        -0px 0px 0 #154ea2,
        -0px 0px 0 #154ea2,
        -0px 0px 0 #154ea2;
}

#countup-container {
    font-family: 'DIN-Black', sans-serif;
    position: absolute;
    top: 68%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.2rem;
    font-weight: 900;
    color: #fded80;
    z-index: 10000;
    display: none;
    text-align: center;
    text-shadow:
        /* stroke */
        -2.5px -2.5px 0 #154ea2,
        2.5px -2.5px 0 #154ea2,
        -2.5px 2.5px 0 #154ea2,
        2.5px 2.5px 0 #154ea2,
        0px 2.5px 0 #154ea2,
        2.5px 0px 0 #154ea2,
        0px -2.5px 0 #154ea2,
        -2.5px 0px 0 #154ea2,

        /* Directional shadow */
        0px 0px 0 #154ea2,
        -1px 1px 0 #154ea2,
        -2px 2px 0 #154ea2,
        -3px 3px 0 #154ea2,
        -4px 4px 0 #154ea2,
        -5px 5px 0 #154ea2;
}
