@import "/UI/Core/Styles/Theme.scss";

RTVOverlay {
    width: 100%;
    height: 100%;
    pointer-events: none;

    .rtv-notice {
        align-self: center;
        margin-top: -250px;
        margin-left: 32px;
        width: 280px;

        flex-direction: column;
        align-items: stretch;
        gap: 5px;

        padding: 10px 14px 9px 14px;
        border-left: 3px solid rgba( $yellow, 0.8 );
        border-radius: 4px;
        background-color: $widget-color-dark;
        backdrop-filter: $widget-backdrop-filter;
        background-image: linear-gradient( rgba( 130, 100, 20, 0.08 ), rgba( 50, 50, 50, 0.08 ) );
        box-shadow: 0px 0px 24px rgba( 0, 0, 0, 0.4 );

        &.compact {
            padding: 6px 14px;
            gap: 4px;
        }
    }

    .rtv-vote-bar-row {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        margin: 2px -16px;

        .rtv-vote-bar {
            flex-grow: 1;
            margin: 0;
        }
    }

    .rtv-count {
        font-family: "Poppins";
        font-size: 13px;
        font-weight: 800;
        letter-spacing: 0.5px;
        text-shadow: 0px 1px 2px rgba( 0, 0, 0, 0.9 );
        min-width: 28px;
        flex-shrink: 0;
        white-space: nowrap;

        &.yes {
            color: rgba( $green, 1.0 );
            text-align: right;
        }

        &.no {
            color: rgba( $red, 1.0 );
            text-align: left;
        }
    }

    .rtv-title {
        font-family: "Poppins";
        font-size: 13px;
        font-weight: 900;
        letter-spacing: 1.6px;
        text-transform: uppercase;
        color: rgba( $yellow, 1.0 );
        text-shadow:
            0px 1px 2px rgba( 0, 0, 0, 0.95 ),
            0px 0px 10px rgba( $yellow, 0.55 ),
            0px 0px 18px rgba( $yellow, 0.25 );
        text-align: center;
        margin-bottom: 1px;

        &.compact {
            font-size: 11px;
            letter-spacing: 1.2px;
        }
    }

    .rtv-copy {
        font-family: "Poppins";
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.3px;
        color: rgba( 255, 255, 255, 0.72 );
        text-shadow: 0px 1px 2px rgba( 0, 0, 0, 0.8 );
    }

    .rtv-vote-bar {
        flex-direction: row;
        height: 18px;
        overflow: hidden;
        border-radius: 3px;
        background-color: rgba( 0, 0, 0, 0.32 );
        margin: 2px 0;

        .yes-fill,
        .no-fill {
            height: 100%;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            transition: width 0.12s linear;
        }

        .yes-fill {
            background-color: rgba( $green, 0.82 );
        }

        .no-fill {
            background-color: rgba( $red, 0.82 );
        }

        .rtv-vote-label {
            font-family: "Poppins";
            font-size: 13px;
            font-weight: 900;
            letter-spacing: 0.9px;
            color: rgba( 255, 255, 255, 1 );
            text-stroke-width: 1px;
            text-stroke-color: rgba( 0, 0, 0, 0.9 );
            text-shadow: 0px 1px 3px rgba( 0, 0, 0, 0.9 );
        }
    }

    .rtv-instruction {
        font-family: "Poppins";
        font-size: 9px;
        font-weight: 500;
        letter-spacing: 0.3px;
        color: rgba( 255, 255, 255, 0.65 );
        text-shadow: 0px 1px 2px rgba( 0, 0, 0, 0.8 );
        white-space: nowrap;
    }

    .rtv-copy-smaller {
        font-family: "Poppins";
        font-size: 8px;
        font-weight: 500;
        color: rgba( 255, 255, 255, 0.5 );
        text-shadow: 0px 1px 2px rgba( 0, 0, 0, 0.8 );
    }

    .rtv-key {
        font-family: "Poppins";
        font-size: 9px;
        font-weight: 800;
        letter-spacing: 0.5px;
        color: rgba( $yellow, 0.95 );
        text-shadow: 0px 1px 2px rgba( 0, 0, 0, 0.85 );
    }

    .rtv-command {
        font-family: "Poppins";
        font-size: 9px;
        font-weight: 800;
        letter-spacing: 0.3px;
        text-shadow: 0px 1px 2px rgba( 0, 0, 0, 0.85 );

        &.yes {
            color: rgba( $green, 0.95 );
        }

        &.no {
            color: rgba( $red, 0.95 );
        }
    }

    .rtv-timer {
        font-family: "Dinish", "Dinish-Regular", "Dinish-Bold";
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.4px;
        color: rgba( 255, 255, 255, 0.65 );
        text-align: right;
        margin-top: 1px;
        text-shadow: 0px 1px 2px rgba( 0, 0, 0, 0.8 );
    }

    .inline-space {
        margin-left: 3px;
        margin-right: 3px;
    }
}
