@font-face {
    font-family: "titillium";
    font-style: normal;
    font-weight: normal;
    src: url('titilliumweb-regular.ttf') format('truetype');
}


@font-face {
    font-family: "titillium";
    font-style: normal;
    font-weight: bold;
    src: url('titilliumweb-bold.ttf') format('truetype');
}

body {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    color: var(--standard-text);
    background: var(--bg2);
}

body, input, select {
    font-size: var(--text2);
}

div {
    box-sizing: border-box;
}

button {
    font-size: inherit;
    border: none;
    border-radius: var(--border-radius);
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
}

* {
    /* firefox: */
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.splash {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(to bottom right, #23a39a, #014144);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    z-index: 100;
}

    .splash > * {
        transition: 1s;
    }

    .splash > svg {
        flex: 0 0 auto;
        height: 100px;
        width: 100px;
        fill: white;
        border-radius: 20%;
        box-shadow: 0 0 10px white;
    }

.ErrorPopup {
    top: 0;
    position: absolute;
    padding: 20px 30px;
    background-color: red;
    color: white;
    text-align: center;
    font-size: var(--text1);
    box-shadow: 0 0 5px var(--shadow);
    transition: 200ms;
}

.ConferenceWebaccessWelcomeScreen {
    position: relative;
    overflow: hidden;
    background: var(--bg2);
    box-shadow: 0 0 5px var(--shadow);
    margin: 10px;
    border-radius: 10px;
    max-width: 900px;
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    padding: 30px;
    font-size: var(--text1);
    color: var(--standard-text);
}

    .ConferenceWebaccessWelcomeScreen .background {
        background: var(--logo-bg) url('appclient_background1.svg');
        background-position: center center;
        background-repeat: repeat-x;
    }

    .ConferenceWebaccessWelcomeScreen .upper {
        flex: 0 1 100%; /* full-width */
        margin: 10px;
    }

    .ConferenceWebaccessWelcomeScreen .preview {
        margin: 10px;
        width: 480px;
        max-width: 100%;
        flex-shrink: 1;
        height: fit-content;
        box-sizing: border-box;
        border-radius: var(--border-radius);
        background: var(--border);
        padding: 5px;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }

        .ConferenceWebaccessWelcomeScreen .preview video {
            transform: scaleX(-1);
            width: 100%;
            height: 360px;
        }

        .ConferenceWebaccessWelcomeScreen .preview .counter {
            position: absolute;
            top: 0;
            left: 0;
            padding: 0 5px;
            border-radius: inherit;
            background-color: var(--border);
            color: var(--border-contrast);
            transition: 200ms;
        }

        .ConferenceWebaccessWelcomeScreen .preview:hover .counter {
        }

        .ConferenceWebaccessWelcomeScreen .preview .test {
            position: absolute;
            top: 0;
            right: 0;
            padding: 0 5px;
            border-radius: inherit;
            background-color: var(--border);
            color: var(--border-contrast);
            transition: 200ms;
            cursor: pointer;
            opacity: 0;
        }

        .ConferenceWebaccessWelcomeScreen .preview:hover .test {
            opacity: 1;
        }

        .ConferenceWebaccessWelcomeScreen .preview .test.active {
            background-color: var(--red);
            color: white;
            opacity: 1;
        }

        .ConferenceWebaccessWelcomeScreen .preview .info {
            position: absolute;
            overflow: hidden;
            bottom: 100%;
            left: 0;
            padding: 0 5px;
            white-space: break-spaces;
            background-color: var(--border);
            color: var(--border-contrast);
            transition: 200ms;
        }

        .ConferenceWebaccessWelcomeScreen .preview .controls {
            width: 100%;
            display: flex;
            flex-wrap: nowrap;
            justify-content: space-evenly;
            gap: 5px;
            padding-top: 5px;
            position: relative;
        }

            .ConferenceWebaccessWelcomeScreen .preview .controls.wrap {
                flex-wrap: wrap;
            }

        .ConferenceWebaccessWelcomeScreen .preview .VideoSettings {
            position: absolute;
            top: -5px;
            left: 50%;
            transform: translate(-50%, -100%);
            max-width: 80%;
            padding: 5px 10px;
            display: grid;
            grid-template-columns: auto auto;
            align-items: center;
            border-radius: var(--border-radius);
            background: rgba(221,221,221,0.9);
            color: black;
            transition: 200ms;
            opacity: 0;
        }

        .ConferenceWebaccessWelcomeScreen .preview:hover .VideoSettings {
            opacity: 1;
        }

        .ConferenceWebaccessWelcomeScreen .preview .VideoSettings input[type="range"] {
            margin: 0;
            padding: 0;
            height: 20px;
        }

    .ConferenceWebaccessWelcomeScreen .form {
        flex: 1 0 200px; /* min-width 200px */
        margin: 10px;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .ConferenceWebaccessWelcomeScreen .h1 {
        color: var(--heading);
        font-size: 30px;
        margin-bottom: 10px;
        padding: 0 5px;
    }

    .ConferenceWebaccessWelcomeScreen .text {
        color: var(--heading-text);
        font-size: larger;
        margin-bottom: 10px;
        padding: 0 5px;
    }

    .ConferenceWebaccessWelcomeScreen .label {
        color: var(--standard-text);
        margin-bottom: 10px;
        padding: 0 10px;
    }

@media (max-width: 845px) {
    .ConferenceWebaccessWelcomeScreen .preview {
        flex: 0 1 50%; /* max-width 50% */
    }
}

@media (max-width: 570px) {
    .ConferenceWebaccessWelcomeScreen .preview {
        flex: 0 1 45%; /* max-width 45% */
    }
}

@media (max-width: 525px) {
    /* smartphone portrait view (single column) */
    .ConferenceWebaccessWelcomeScreen {
        margin: 0;
        border-radius: 0;
        justify-content: center;
        height: 100%;
        padding: 0;
        overflow: hidden auto;
    }

        .ConferenceWebaccessWelcomeScreen .preview {
            flex: 0 1 380px; /* max-width 380px */
        }

        .ConferenceWebaccessWelcomeScreen .form {
            flex: 1 1 100%; /* full-width */
            max-width: unset;
        }

        .ConferenceWebaccessWelcomeScreen .text {
            margin-bottom: 5px; /* reduced */
        }
}

.ConferenceWebaccessWelcomeScreen .preview .overlay {
    position: relative;
    flex: 1 0 auto;
    width: 100%;
    transition: 200ms;
}

.ConferenceWebaccessWelcomeScreen input {
    height: 40px;
    width: 100%;
    border: 1px solid grey;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    outline: none;
    box-sizing: border-box;
    padding: 5px 10px;
}

.ConferenceWebaccessWelcomeScreen .button {
    height: 40px;
    border-radius: var(--border-radius);
    background-color: var(--accent);
    color: var(--accent-text);
    box-sizing: border-box;
    padding: 0 10px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.ConferenceWebaccessWelcomeScreen .DropDownButton {
    flex: 1 1 auto;
    max-width: calc((100% - 10px) / 3);
    height: 33px;
    display: flex;
    align-items: center;
    border-radius: var(--border-radius);
    background-color: var(--buttons);
    color: black;
    padding: 0 8px;
    font-size: small;
    position: relative;
    cursor: pointer;
    overflow: visible; /* for badge */
}

    .ConferenceWebaccessWelcomeScreen .DropDownButton.wrap {
        min-width: calc((100% - 10px) / 2);
        max-width: calc((100% - 10px) / 2);
    }

    .ConferenceWebaccessWelcomeScreen .DropDownButton * {
        pointer-events: none;
    }

    .ConferenceWebaccessWelcomeScreen .DropDownButton .DropDownMarker {
        flex: 0 0 20px;
        height: 20px;
        fill: var(--standard-text);
    }

    .ConferenceWebaccessWelcomeScreen .DropDownButton > .DropDownText {
        flex: 1 1 100%;
        margin: 0 7px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ConferenceWebaccessWelcomeScreen .DropDownButton > .DropDownSym {
        flex: 0 0 14px;
        fill: var(--standard-text);
    }

    .ConferenceWebaccessWelcomeScreen .DropDownButton:hover > .DropDownSym {
        fill: black;
    }

.ConferenceWebaccessWelcomeScreen .DropDownBox {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 5px;
    background: var(--bg1);
    border-radius: var(--border-radius);
    box-shadow: 0 0 5px var(--shadow);
    display: flex;
    flex-direction: column;
    padding: 3px;
    z-index: 1;
    transition: 200ms;
}

.ConferenceWebaccessWelcomeScreen .DropDownItem {
    margin: 1px;
    padding: 2px 5px;
    background-color: var(--bg2);
    border-radius: calc(var(--border-radius) / 2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

    .ConferenceWebaccessWelcomeScreen .DropDownItem .Checkmark {
        height: 16px;
        fill: var(--standard-text);
    }

    .ConferenceWebaccessWelcomeScreen .DropDownItem:hover {
        background-color: var(--hover-bg);
    }

.ConferenceWebaccessRoom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: var(--standard-text);
    fill: var(--standard-text);
}

    .ConferenceWebaccessRoom .Header {
        width: 100%;
        background-color: var(--bg2);
        display: flex;
    }

.FullscreenMode .Header,
.FullscreenMode .Footer,
.FullscreenMode .Sendctrl,
.FullscreenMode .UserBox,
.FullscreenMode .ChatBox,
.FullscreenMode .Thumbnails,
.FullscreenMode .HideThumbnailsButton {
    display: none !important;
}

.ConferenceWebaccessRoom .Header .left,
.ConferenceWebaccessRoom .Header .right {
    flex: 0 0 50%;
    padding: 0 10px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.ConferenceWebaccessRoom .Footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--bg2);
    border-top: 1px solid var(--bg3);
    padding: 10px 5px;
}

.ConferenceWebaccessRoom .FooterLine1,
.ConferenceWebaccessRoom .FooterLine2 {
    flex: 0 0 40px;
    width: 100%;
    display: flex;
    align-items: center;
}

.ConferenceWebaccessRoom .FooterLine2 {
    margin-top: 10px;
}

.flex_0_1_100percent {
    flex: 0 1 100%;
}

.ConferenceWebaccessRoom .Footer .Button {
    position: relative;
    overflow: visible; /* for badge */
    margin: 0 10px;
    height: 40px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: black;
    fill: black;
}

    .ConferenceWebaccessRoom .Footer .Button.Active {
        background-color: var(--accent);
        color: white;
        fill: white;
    }

    .ConferenceWebaccessRoom .Footer .Button.Disabled {
        color: var(--standard-text);
        fill: var(--standard-text);
    }

    .ConferenceWebaccessRoom .Footer .Button .Badge {
        position: absolute;
        top: -9px;
        left: -8px;
        min-width: 18px;
        min-height: 19px;
        border-radius: inherit;
        border: 1px solid var(--bg1);
        background-color: var(--accent);
        color: var(--accent-text);
        text-align: center;
        font-size: smaller;
        padding: 0 4px;
        opacity: 90%;
    }

        .ConferenceWebaccessRoom .Footer .Button .Badge:empty {
            display: none;
        }

    .ConferenceWebaccessRoom .Footer .Button .Counter {
        line-height: 8px;
        font-size: smaller;
    }

        .ConferenceWebaccessRoom .Footer .Button .Counter:empty {
            display: none;
        }

.FooterButtonBanner {
    position: relative;
    white-space: nowrap;
    z-index: 1;
    bottom: 95px;
    right: auto; /* set at runtime */
    color: var(--standard-text);
    transition: opacity 500ms;
    cursor: default;
}

    .FooterButtonBanner .Text {
        position: absolute;
        left: 0;
        top: 0;
        padding: 10px 20px;
        margin-bottom: 20px;
    }

    .FooterButtonBanner svg {
        position: absolute;
        left: 0;
        top: 0;
    }

    .FooterButtonBanner .Polygon {
        fill: var(--bg1);
        stroke-width: 2;
    }

.ConferenceWebaccessRoom .Content {
    width: 100%;
    display: flex;
    overflow: hidden;
    position: relative;
    background-color: var(--bg1);
}

.MediaBox {
    display: flex;
    overflow: hidden;
}

.FullsizeVideo {
    flex: 1 1 auto;
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

    .FullsizeVideo .VideoDiv {
        position: absolute;
        width: 100%;
        height: 100%;
        overflow: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .FullsizeVideo .VideoLabel {
        position: absolute;
        top: 0;
        max-width: 95%;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        padding: 0 10px;
        line-height: 32px;
        box-sizing: border-box;
        text-align: center;
        font-size: var(--text1);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: black; /* black on transparent white */
        background-color: #ffffff99;
        backdrop-filter: blur(3px);
        box-shadow: 0 0 5px var(--shadow);
    }

    .FullsizeVideo .RtpStats {
        position: absolute;
        bottom: -2px;
        border-radius: 2px;
        padding: 3px 10px 5px 10px;
        line-height: 20px;
        text-align: center;
        font-size: var(--text1);
        color: black; /* black on transparent white */
        background-color: #ffffff99;
        backdrop-filter: blur(3px);
        box-shadow: 0 0 3px grey;
    }

    .FullsizeVideo .QualityBtn {
        position: absolute;
        left: 0;
        width: 16px;
        height: 16px;
        padding: 5px;
    }

    .FullsizeVideo .ProgressInfo {
        position: absolute;
        top: 33%;
        font-size: var(--text1);
        font-style: italic;
    }

    .FullsizeVideo .ModeButton {
        position: absolute;
        bottom: 0;
        right: 0;
        --size: 32px;
        width: var(--size);
        height: var(--size);
        line-height: var(--size);
        box-sizing: border-box;
        padding: 0;
        border-top-left-radius: var(--border-radius);
        box-shadow: 0 0 5px var(--shadow);
        background-color: #dbdbdb66;
        backdrop-filter: blur(5px);
        font-size: calc(var(--size) / 2);
        color: var(--standard-text);
        fill: var(--standard-text);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

        .FullsizeVideo .ModeButton:hover {
            background-color: #dbdbdb;
        }

.Graph {
    width: 100%;
    flex: 0 0 40px;
    overflow: hidden;
}

    .Graph canvas {
        background: var(--bg1);
    }

    .Graph .ToolTip {
        position: fixed;
        color: black;
        background: var(--bg1);
        box-shadow: 0 0 3px var(--shadow);
        z-index: 5;
    }

        .Graph .ToolTip > p {
            padding: 2px 5px;
            white-space: nowrap;
        }

.Thumbnails {
    --spacing: 4px;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column; /* vertical list */
    overflow-y: auto; /* vertical scrolling */
    overflow-x: hidden;
    padding: calc(var(--spacing) / 2);
    --participant-width: 140px;
    --participant-height: calc(140px * var(--video-ratio));
}

@-moz-document url-prefix() {
    .Thumbnails {
        flex: 0 0 156px; /* 4 + 140 + 4 + 8 (4px for speaker-frame; 8px for vertical scrollbar on Firefox) */
    }
}

.Thumbnails .Participant {
    margin: calc(var(--spacing) / 2);
    width: var(--participant-width);
    height: var(--participant-height);
    border-radius: var(--border-radius);
    box-shadow: 0 0 5px var(--shadow);
    font-size: 10px;
    cursor: pointer;
}

    .Thumbnails .Participant[speaking] {
        border: 5px solid var(--orange);
    }

    .Thumbnails .Participant .Initials {
        border-width: 2px;
    }

.Gallery {
    --spacing: 4px;
    flex: 1 1 100%;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    /*background-color: var(--bg1);*/
    align-content: flex-start;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    padding: calc(var(--spacing) / 2);
    --participant-width: 320px;
    --participant-height: calc(320px * var(--video-ratio));
}

    .Gallery .Participant {
        margin: calc(var(--spacing) / 2);
        width: var(--participant-width);
        height: var(--participant-height);
        flex-grow: 0;
        flex-shrink: 0;
        cursor: initial; /* no click-pointer */
        border-radius: var(--border-radius);
        box-shadow: 0 0 10px var(--shadow);
    }

        .Gallery .Participant[speaking] {
            border: 8px solid var(--orange);
        }

    .Gallery .QualityPopup,
    .Thumbnails .QualityPopup,
    .FullsizeVideo .QualityPopup {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 10;
        margin: 5px 25px 7px 25px;
        max-width: 289px;
        max-height: 153px;
        padding: 16px;
        border-radius: 3px;
        background-color: white;
        box-shadow: 0 0 10px var(--shadow);
        display: grid;
        grid-template-columns: auto auto;
    }

.Thumbnails .QualityPopup {
    margin: 5px 5px 5px 24px;
    padding: 4px;
}

.QualityPopup .Label {
    color: black;
    padding: 0 5px;
    font-weight: bold;
    text-align: right;
}

@media (max-width: 510px) {
    .Content {
        flex-direction: column;
    }

    .MediaBox {
        flex-direction: column;
    }

    .Content .FullsizeVideo {
        margin-bottom: 0;
    }

    .Thumbnails {
        flex: 0 0 auto;
        max-width: 100%;
        flex-direction: row; /* horizontal list */
        overflow-x: auto; /* horizontal scrolling */
        overflow-y: hidden;
        padding-bottom: 4px; /* 4px for SpeakerFrame */
    }

        .Thumbnails .Participant {
            margin-bottom: 0;
            margin-right: 2px;
        }

    .Content .ChatBox {
        max-width: 100%;
        max-height: 200px;
    }
}

@media (max-width: 695px) {
    .ConferenceWebaccessRoom .Footer .Button {
        /* narrow buttons for narrow dispay */
        margin: 0 5px;
        padding: 0 10px;
    }
}

.ConferenceWebaccessRoom .Dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    backdrop-filter: blur(2px);
    background-color: var(--shader);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 500ms;
}

    .ConferenceWebaccessRoom .Dialog .Heading {
        padding: 10px 15px;
        margin-top: 10px;
        font-size: larger;
        background: #bfe7e2;
        color: #333333;
        display: flex;
        justify-content: space-between;
    }

        .ConferenceWebaccessRoom .Dialog .Heading:first-child {
            margin-top: 0;
        }

    .ConferenceWebaccessRoom .Dialog .Text {
        margin-bottom: 20px;
    }

    .ConferenceWebaccessRoom .Dialog .DialogButton {
        border-radius: var(--border-radius);
        background: var(--buttons);
        color: black;
        line-height: 40px;
        padding: 0 20px;
        cursor: pointer;
    }

        .ConferenceWebaccessRoom .Dialog .DialogButton:hover {
            background: #BFE7E2;
        }

.RaiseHandOff, .RaiseHandOn {
    flex: 0 0 40px;
    height: 40px;
    margin: 0 5px;
    padding: 7px;
    background: none;
    cursor: pointer;
}

    .RaiseHandOff svg, .RaiseHandOn svg {
        transition: 100ms;
    }

@media (min-width: 510px) {
    .RaiseHandOff:active svg, .RaiseHandOn:active svg {
        transform: scale(0.9)
    }
}

@media (max-width: 510px) {
    .RaiseHandOff, .RaiseHandOn {
        background: #dbdbdb;
    }
}

.RaiseHandOff svg path.filling {
    fill: white;
}

.RaiseHandOff:hover svg path.filling {
    fill: #bfe7e2;
}

.RaiseHandOn svg path.filling {
    fill: #49BAAE;
}

.RaiseHandOff svg path.outline,
.RaiseHandOn svg path.outline {
    fill: black;
}

.RadioButtonGroup {
    display: flex;
    flex-direction: column;
    padding: 5px 10px;
    max-height: calc(3 * 28px + 10px); /* 3 RadioButtons (28px) plus 10px vertical padding */
    position: relative;
    overflow: auto;
}

.RadioButton {
    display: flex;
    align-items: center;
    cursor: pointer;
}

    .RadioButton svg {
        box-sizing: border-box;
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
        margin: 5px;
        border: 0.5px solid var(--standard-text);
        border-radius: 50%;
        fill: transparent;
    }

    .RadioButton div {
    }

.UserBox {
    position: relative;
    flex: 0 0 300px;
    overflow: hidden;
    transition: opacity 200ms;
    background-color: var(--bg2);
    box-shadow: 0 0 10px var(--shadow);
    border-radius: var(--border-radius);
    padding-bottom: 5px;
    margin: 10px;
    display: flex;
    flex-direction: column;
}

    .UserBox > .Heading {
        position: relative;
        text-align: center;
        margin: 6px;
    }

    .UserBox > .ScrollList {
        display: flex;
        flex-direction: column;
        padding: 0 5px 0px 5px;
        overflow-y: auto;
    }

        .UserBox > .ScrollList > .User {
            margin-bottom: 8px;
            flex-shrink: 0;
            font-size: var(--text3);
            background-color: var(--bg3);
            border: 2px solid var(--standard-text);
            border-radius: var(--border-radius);
            overflow: hidden;
        }

            .UserBox > .ScrollList > .User:last-child {
                margin-bottom: 0;
            }

            .UserBox > .ScrollList > .User > * {
                /*background-color: white;*/
            }

            .UserBox > .ScrollList > .User .Name {
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            .UserBox > .ScrollList > .User .Initials,
            .UserBox > .ScrollList > .User .Meter {
                background-color: var(--standard-text);
                color: var(--bg1);
            }

        .UserBox > .ScrollList > .Speaking .Meter {
            background-color: var(--accent);
        }

        .UserBox > .ScrollList > .Speaking {
            border: 2px solid var(--accent);
        }

        .UserBox > .ScrollList > .Muted {
            /*background-color: #f4f4f4;
            fill: #c1c1c1;*/
            opacity: 0.5;
            filter: greyscale(0.5);
        }

.ChatBox {
    position: relative;
    flex: 0 0 300px;
    overflow: hidden;
    transition: opacity 200ms;
    background-color: var(--bg2);
    box-shadow: 0 0 10px var(--shadow);
    border-radius: var(--border-radius);
    margin: 10px;
    display: flex;
    flex-direction: column;
}

    .ChatBox .Heading {
        position: relative;
        text-align: center;
        margin: 6px;
    }

    .ChatBox a {
        color: var(--orange);
        text-decoration: none;
    }

.ChatMessageList {
    position: relative;
    overflow-y: scroll;
    max-width: 100%;
    padding: 0 5px;
    margin-right: -5px;
    flex: 1 1 100%;
}

.ChatScrollUp, .ChatScrollDown {
    position: absolute;
    width: 25px;
    height: 25px;
    overflow: hidden;
    right: 0;
    margin: 5px;
}

    .ChatScrollUp svg, .ChatScrollDown svg {
        position: absolute;
        width: 15px;
        height: 15px;
        fill: black;
    }

.ChatMessage {
    background-color: white;
    color: black;
    border: 1px solid var(--standard-text);
    border-radius: var(--border-radius);
    margin-bottom: 5px;
    overflow: hidden;
}

    .ChatMessage:last-child {
        margin-bottom: 0;
    }

.ChatMessageHead {
    color: var(--standard-text);
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ChatMessageText {
    margin: 5px;
    overflow: auto;
}

.ChatMessageAttachment {
    display: flex;
    padding: 2px;
    background-color: #dbdbdb;
    cursor: pointer;
}

    .ChatMessageAttachment:hover {
        background-color: #BFE7E2;
    }

.ChatEditor {
    position: relative;
    background-color: var(--accent);
    border-radius: var(--border-radius);
    border: 1px solid var(--standard-text);
    flex: 1 0 auto;
    color: white;
    padding: 5px;
    margin: 5px;
}

.ChatEditorMenu, .ChatEditorStyles, .ChatEditorEmojis {
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    transition: 200ms;
}

.ChatEditorStyles {
    justify-content: flex-start;
}

    .ChatEditorStyles button {
        cursor: pointer;
        outline: none;
        padding: 2px 6px;
        border: none;
        background-color: transparent;
        color: white;
    }

.ChatEditorEmojis {
    flex-wrap: wrap;
    font-size: large;
    justify-content: center;
}

    .ChatEditorEmojis div {
        cursor: pointer;
    }

.ChatEditorMenu div {
    cursor: pointer;
    margin: 0 5px;
    margin-top: 5px;
}

.ChatEditorInput {
    width: 100%;
    min-height: 40px;
    overflow: auto;
    box-sizing: border-box;
    outline: none !important;
    border: 1px solid var(--standard-text);
    border-radius: var(--border-radius);
    background-color: white;
    color: black;
    padding: 2px;
}

.ChatEditorAttachButton {
    width: 20px;
    height: 20px;
    position: absolute;
    cursor: pointer;
}

    .ChatEditorAttachButton svg {
        position: absolute;
        width: 100%;
        height: 100%;
        fill: black;
    }

    .ChatEditorAttachButton input {
        position: absolute;
        width: 100%;
        height: 100%;
        opacity: 0;
    }

.ChatEditorAttachments {
    display: flex;
    align-items: center;
    background: var(--standard-text);
    fill: white;
    white-space: nowrap;
    transition: 200ms;
    overflow: hidden;
}

/*
[contenteditable=true]:empty:not(:focus):before {
    content: attr(placeholder);
    color: grey;
    font-style: italic;
}
    */

@keyframes shake {
    0% {
        transform: rotate(0deg);
    }

    1%, 5% {
        transform: rotate(10deg);
    }

    2%, 6% {
        transform: rotate(20deg);
    }

    3%, 7% {
        transform: rotate(-10deg);
    }

    4%, 8% {
        transform: rotate(-20deg);
    }

    10%, 100% {
        transform: rotate(0deg);
    }
}

.shaking {
    animation: shake;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-out;
}

.hidden {
    display: none !important;
}

.clickable {
    background-color: var(--buttons);
    cursor: pointer;
}

    .clickable:hover {
        background-color: #BFE7E2;
    }

.x {
    position: absolute;
    width: 30px;
    height: 30px;
    font-size: 30px;
    line-height: 30px;
    text-align: center;
    background-color: inherit;
    cursor: pointer;
    transition: 200ms;
}

.FullscreenButton {
    position: absolute;
    z-index: 3; /* above z-index of 'Frame' */
    left: 0;
    bottom: 0;
    --size: 32px;
    width: var(--size);
    height: var(--size);
    line-height: var(--size);
    box-sizing: border-box;
    padding: 0;
    color: var(--standard-text);
    fill: var(--standard-text);
    border-top-right-radius: var(--border-radius);
    box-shadow: 0 0 5px var(--shadow);
    background-color: #dbdbdb66;
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.HideThumbnailsButton {
    position: absolute;
    top: 0;
    right: 0;
    --size: 32px;
    width: var(--size);
    height: var(--size);
    line-height: var(--size);
    box-sizing: border-box;
    padding: 0;
    color: var(--standard-text);
    fill: var(--standard-text);
    border-bottom-left-radius: var(--border-radius);
    box-shadow: 0 0 5px var(--shadow);
    background-color: #dbdbdb66;
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

    .FullscreenButton > svg,
    .HideThumbnailsButton > svg {
        width: 22px;
        height: 22px;
        flex: 0 0 auto;
        pointer-events: none;
    }

    .FullscreenButton:hover,
    .HideThumbnailsButton:hover {
        background-color: #dbdbdb;
    }

.FullsizeVideoPlayer {
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: contain;
    transition: width 200ms;
}

.object-fit-cover {
    object-fit: cover;
}

.OverlayButtonBadge {
    position: absolute;
    bottom: 0;
    right: 2px;
    font-size: var(--text3);
    /* background-color: var(--accent); */
}

.MediaBox .IceCheckingInfo {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    height: 40px;
    padding: 0 10px;
    z-index: 3; /* above z-index of 'Frame' */
    font-size: larger;
    white-space: nowrap;
    background-color: var(--bg1);
    border: 2px solid var(--accent);
    border-radius: var(--border-radius);
    box-sizing: border-box;
    transition: 200ms;
    display: flex;
    align-items: center;
}

.NotificationBox {
    position: absolute;
    z-index: 3; /* above z-index of 'Frame' */
    box-sizing: border-box;
    transition: 200ms;
}

    .NotificationBox .Notification {
        min-width: 220px;
        max-width: 362px;
        max-height: 120px;
        margin: 2px 5px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        color: black;
        fill: black;
        background-color: #dbdbdb66;
        backdrop-filter: blur(5px);
        border: 1px solid black;
        border-radius: 3px;
        transition: 200ms;
    }

        .NotificationBox .Notification:hover {
            background-color: #dbdbdb; /* remove transparency */
        }

        .NotificationBox .Notification .Text {
            margin: 5px 5px 5px 35px;
            overflow: hidden;
            text-overflow: ellipsis;
            cursor: pointer;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 3;
        }

.NotificationHeading {
    margin: 5px;
    display: flex;
    align-items: center;
    font-size: var(--text1);
}

.Participant {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #006069;
    /* vertical flex-box for video and label */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

    .Participant .Player {
        width: 100%;
        height: 100%;
        align-self: center;
        object-fit: cover;
        border-radius: inherit;
    }

    .Participant .Initials {
        position: absolute;
        left: 32%;
        top: 18%;
        right: 32%;
        bottom: 18%;
        border: 2px solid #3d8288;
        border-width: calc(var(--participant-height) / 60);
        box-shadow: 0 0 calc(var(--participant-height) / 2) #204346;
        overflow: hidden;
        border-radius: 50%;
        color: white;
        font-size: calc(var(--participant-height) / 5);
        text-transform: uppercase;
    }

    .Participant .InitialsInner {
        width: 100%;
        height: 100%;
        background-color: #008691;
        border: 2px solid #006069;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

@media (max-width: 510px) {
    .Participant {
    }
}

.Participant > .TopOverlay {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
}

.Participant > .BottomOverlay {
    position: absolute;
    left: 0;
    bottom: 0;
    max-width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    flex-wrap: wrap;
    white-space: nowrap;
    border-radius: 2.5px;
    overflow: hidden;
}

.Participant[speaking] > .TopOverlay,
.Participant[speaking] > .BottomOverlay {
}

.Participant .TopOverlay > *,
.Participant .BottomOverlay > * {
    background-color: rgba(221,221,221,0.4);
}

.Participant:hover .TopOverlay > *,
.Participant:hover .BottomOverlay > * {
    background-color: rgba(255,255,255,0.8);
}

.Participant .Symbols {
    display: flex;
    background-color: transparent !important;
}

.Participant .Label,
.Participant .RtpStats {
    padding: 0 5px;
    padding-bottom: 0.07em;
    backdrop-filter: blur(3px);
    color: black;
    max-width: 100%;
    max-height: 20px;
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: 200ms;
}

.Participant .RtpStats {
    flex: 0 0 100%;
    text-align: center;
    background-color: plum !important;
}

.Participant .FullsizeBtn {
    float: right;
    width: 20px;
    height: 20px;
    padding: 3px;
    margin: 0;
    border-radius: 2.5px;
    box-sizing: border-box;
    backdrop-filter: blur(3px);
    fill: black;
    transform: rotateY(180deg);
    cursor: pointer;
    transition: 200ms;
    opacity: 0; /* show on hover */
}

.Participant:hover .FullsizeBtn {
    opacity: 1;
}

.Thumbnails .Participant .FullsizeBtn {
    width: 13px; /* smaller on thumbnails */
    height: 13px;
    padding: 2px;
}

.Participant .MuteSymbol {
    display: block;
    fill: black;
    width: 20px;
    height: 20px;
    padding: 3px;
    box-sizing: border-box;
    background-color: var(--accent) !important;
    fill: white;
}

.Participant .HandSymbol {
    height: 20px;
    padding: 1px;
    flex: 0 0 auto;
    box-sizing: border-box;
    background-color: var(--accent) !important;
}

.Participant .QualityBtn {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    margin: 1px;
    background-color: transparent !important;
}

.Alert {
    position: absolute;
    z-index: 100;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(2px);
    background-color: var(--shader);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .Alert .AlertBox {
        padding: 20px 40px;
        max-width: 90%;
        min-width: 200px;
        display: flex;
        flex-direction: column;
        align-items: center;
        border: 4px solid var(--red);
        border-radius: calc(2 * var(--border-radius));
        background: var(--bg1);
        font-size: var(--text1);
        color: var(--standard-text);
        transition: 200ms;
    }

    .Alert .AlertText {
        text-align: center;
    }

    .Alert .AlertButton {
        margin-top: 20px;
        background-color: var(--standard-text);
        border-radius: var(--border-radius);
        padding: 5px 20px;
        cursor: pointer;
        color: white;
    }

.fullscreenShader {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
    backdrop-filter: blur(2px);
    background-color: var(--shader);
}

.permissionsPopup {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: var(--border-radius);
    background-color: var(--bg2);
    border: 2px solid var(--bg3);
    color: var(--standard-text);
    font-size: var(--text1);
    padding: 5px;
    z-index: 100;
}

    .permissionsPopup svg {
        height: 27px;
        fill: var(--border);
        pointer-events: none;
        position: absolute;
        left: 10px;
        top: 7px;
    }

    .permissionsPopup .heading {
        background-color: var(--bg1);
        border-radius: inherit;
        width: 100%;
        text-align: center;
        padding: 5px 10px;
    }

    .permissionsPopup .text {
        margin: 10px 5px;
    }

    .permissionsPopup .okay {
        background-color: var(--standard-text);
        border-radius: inherit;
        margin-bottom: 5px;
        padding: 5px 20px;
        cursor: pointer;
        color: white;
    }

.spinner {
    --tile-size: 20px;
    --tile-offset: calc( 4 * var(--tile-size) / 5);
    --animate-from: calc( (2 * var(--tile-offset)) + (var(--tile-size) / 5) );
    --animate-to: calc( var(--tile-size) * 7 );
    width: var(--animate-to);
    height: calc( var(--tile-size) * 3 );
    position: relative;
    overflow: visible;
}

.spinnerTile {
    position: absolute;
    width: var(--tile-size);
    height: var(--tile-size);
    box-sizing: border-box;
    border-radius: 10%;
    transition: 200ms ease-out;
}

    .spinnerTile:nth-child(1) {
        top: var(--tile-offset);
        left: 0;
        background-color: #808080; /*grey*/
    }

    .spinnerTile:nth-child(2) {
        top: 0;
        left: var(--tile-offset);
        background-color: #17BAAE; /*green*/
    }

    .spinnerTile:nth-child(3) {
        top: calc( 2 * var(--tile-offset) );
        left: var(--tile-offset);
        background-color: #17BAAE; /*green*/
    }

    .spinnerTile:nth-child(4) {
        top: var(--tile-offset);
        left: var(--animate-from);
        background-color: #F59B10; /*orange*/
        animation-duration: 2s;
        animation-name: spin;
        animation-timing-function: linear;
        animation-play-state: running;
        animation-iteration-count: infinite;
    }

@keyframes spin {
    0% {
        left: var(--animate-from);
        transform: rotateZ(0deg);
    }

    50% {
        left: var(--animate-to);
        transform: rotateZ(-45deg);
    }

    100% {
        left: var(--animate-from);
        transform: rotateZ(-90deg);
    }
}

.spinnerText {
    position: relative;
    font-size: var(--h2);
    color: var(--standard-text);
    margin-top: 5px;
}

@supports (-moz-appearance:none) {
    /* for Firefox exclusively */
    meter {
        height: 6px;
        margin: 5px;
        border-radius: 2px;
    }
}

.ring-spinner {
    display: inline-block;
}

    .ring-spinner:after {
        content: " ";
        display: block;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        border: 2px solid transparent;
        border-color: var(--standard-text) transparent var(--standard-text) transparent;
        animation: ring-spinner 1.2s linear infinite;
    }

@keyframes ring-spinner {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
