/*******************************
global styles
*******************************/

html, body {
    box-sizing: border-box;
    height: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    background-color: black;
    color: white;
    margin: 0;
    font-family: "Roboto", sans-serif;
}

h2 {
    margin-block-end: 0;
}

/* Tooltip container */
.tooltip {
    position: relative;
    display: inline-block;
}

/* Tooltip text */
.tooltip .tooltiptext {
    top: -5px;
    right: 105%;
    display: none;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;

    /* Position the tooltip text - see examples below! */
    position: absolute;
    z-index: 500;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
    visibility: visible;
    display: block;
}

dialog:not([open]) {
    display: none;
}

dialog {
    overflow: auto;
    min-height: 350px;
    background-color: rgb(43, 41, 41);
    color: white;
    /*
    border: solid gray 2px;
    border-radius: 10px;
    background-color: black;
    height: clamp(4rem, 30%, 400px);
    margin: 0 auto;
    margin: 0.6rem;
    */
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    border: 4px solid rgb(87, 87, 87);
    border-radius: 15px;
    filter: drop-shadow(4px 4px 4px #bbbbbb);
    position: relative;
    padding: 1.5rem;
    flex-grow: 1;
}

::backdrop,
    /* for native <dialog> */
dialog + .backdrop {
    /* for dialog-polyfill */
    /* a transparent shade of gray */
    background-color: rgba(0, 0, 0, 0.4);
}

.button {
    background-color: #4caf50;
    /* Green */
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    transition: 60ms;
    margin-inline: 1rem;
}

.button:hover {
    transform: scale(1.04);
}

/* Green */
.button-green {
    background-color: #4caf50;
}

/* Blue */
.button-blue {
    background-color: #008cba;
}

/* Red */
.button-red {
    background-color: #f44336;
}

/* Gray */
.button-gray {
    background-color: #e7e7e7;
    color: black;
}

/* Black */
.button-black {
    background-color: #555555;
}

body.noHost .noHostAware {
    opacity: 0.3;
}

input[type="text"],
input[type="number"], select {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    font-size: inherit;
}

input[type="checkbox"] {
    scale: 2.5;
    margin-right: 1rem;
}

#buttonlist {
    margin-top: 1.5rem;
}

#settingOptionlist {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-block: 1rem;
}

/*******************************
login page
*******************************/
#logins {
    width: 99vw;
    height: 99vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.gridElement {
    background-color: rgb(43, 41, 41);
    width: 80vw;
    height: clamp(4rem, 30%, 400px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0.6rem;
    border: 4px solid rgb(87, 87, 87);
    border-radius: 15px;
    filter: drop-shadow(4px 4px 4px #bbbbbb);
    position: relative;
    transition: 70ms;
}

.gridElement:hover {
    /*transform: scale(1.03);*/
    outline: 1px solid white;
}

.meeting_label {
    font-size: clamp(1rem, -0.875rem + 8.333vw, 3.5rem);
}

.meeting_info {
    font-size: clamp(0.7rem, -0.475rem + 5.333vw, 2.5rem);
}

.meeting_label {
    font-size: clamp(1rem, -0.875rem + 8.333vw, 3.5rem);
}

.meeting_info {
    font-size: clamp(1rem, -0.875rem + 8.333vw, 3.5rem);
}

.meeting_setting {
    font-size: 2rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
    transition: 70ms;
}

.meeting_setting:hover {
    transform: scale(1.4);
}

#settingsbuttons {
    position: absolute;
    top: 0px;
    right: 0px;
    margin-right: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}
.settingbutton {
    font-size: 2rem;
    font-size: clamp(0.7rem, -0.475rem + 3.333vw, 1.5rem);
    background-color: rgb(43, 41, 41);
    border-radius:50%;
    padding: 15px;
    border: 4px solid rgb(87, 87, 87);
    margin: 5px;
}
.settingbutton:hover {
    transform: scale(1.03);
}

fieldset {
    width: 99%;
    border-radius: 15px;
    margin-block-start: 0.5rem;
}

fieldset > legend {

}

/*******************************
login edit dialog
*******************************/
.form {

}

#tampermonkeyWarning {
    display: none;
    color: red;
}

body.noTampermonkey #tampermonkeyWarning {
    display: block;
}

/*******************************
meeting main layout
*******************************/
#zoomMeeting {
    display: none;
    overflow: hidden;
    height: 99vh;
    flex-direction: column;
}

.mainSection {
    overflow: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#footer {
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

/*******************************
meeting main
*******************************/
#zoomVideoAndSetting {
    display: flex;
    flex-wrap: wrap;
}

#ZoomEmbeddedApp {
    opacity: 1;
    display: inline-flex;
    float: left;
    flex-shrink: 1;
    margin-inline-end: 2rem;
}

#ZoomEmbeddedApp > * {
    position: relative !important;
}

#grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    list-style-type: none;
}

#grid > li {
    text-overflow: ellipsis;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
    align-content: center;
    height: clamp(5rem, -1.275rem + 20vh, 20rem);
    width: clamp(10rem, -1.275rem + 30vw, 30rem);

    background-color: #65605e;
    color: #f2edf0;
    font-size: clamp(1.3rem, -0.675rem + 3.333vw, 15vh);
    margin: 10px;
    float: left;
    overflow: hidden;
    text-align: center;
    border: 3px solid #65605e;
}

#grid > li:hover {
    outline: 1px solid white;
}

#grid > li .timer {
    font-size: clamp(1rem, -0.675rem + 1.333vw, 4vh);
    position: absolute;
    top: 15px;
    left: 15px;
}

#grid > li.gemeldet {
    animation: 1s infinite alternate ease-out handraised-animation;
}

.button.wartend, #grid > li.wartend {
    animation: 1s infinite alternate ease-out waitForAdmit-animation;
}

#noSpeaker {
    text-align: center;
    animation: 1s infinite alternate ease-out handraised-animation;
}

#grid li.unmuted {
    border: 3px solid greenyellow;
}

#grid li .teilnehmername {
    padding: 0.3rem;
    overflow-wrap: anywhere;
}

#grid li .teilnehmeranzahlBlock {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: 2.5rem;
    background-color: #373433;
    height: 100%;
    margin: 0;
    float: right;
}

#grid li .hostIcon {
    display: none;
}

#grid li .phoneIcon {
    display: none;
}

#grid li .spotlightIcon {
    display: none;
}

#grid li .wartendIcon  {
    display: none;
}

#grid li.admin .hostIcon {
    display: block;
}

#grid li.admitted .wartendIcon {
    display: block;
}

#grid li.phoneUser .phoneIcon {
    display: block;
}

#grid li.spotlighted .spotlightIcon {
    display: block;
}

#grid > li.fadeOut {
    animation: 10s fadeOut-animation;
}

@keyframes handraised-animation {
    from {
        background-color: red;
    }
    to {
        background-color: firebrick;
    }
}

@keyframes waitForAdmit-animation {
    from {
        background-color: blue;
    }
    to {
        background-color: darkblue;
    }
}

@keyframes fadeOut-animation {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.sideGridElement {
    text-overflow: ellipsis;
    display: flex;
    flex-direction: column;
    justify-content: center;

    position: relative;
    align-items: center;
    align-content: center;
    height: clamp(12rem, -1.275rem + 15vh, 30rem);
    width: clamp(10rem, -1.275rem + 22vw, 30rem);

    background-color: #65605e;
    color: #f2edf0;
    font-size: clamp(1.3rem, -1.375rem + 2.333vh, 10vh);
    margin: 10px;
    float: left;
    overflow: hidden;
    text-align: center;
    padding: 0.2rem;
    border: 3px solid #65605e;
    flex: 1;
}

.sideGridElementVideo {
    display: flex;
    flex: 1;
    position: relative;
    align-items: center;
    align-content: center;
    height: clamp(12rem, -1.275rem + 15vh, 30rem);
    width: clamp(10rem, -1.275rem + 22vw, 30rem);
}

.sideGridElement:hover {
    outline: 1px solid white;
}

.sideGridElement.sceneItem.drag-over {
    border-inline-start: 5px dashed red;
}

.sideGridElement.sceneItem.dragged-start {
    border: 5px dashed greenyellow;
}

.sideGridElement.sceneItem.error {
    animation: 1s infinite alternate ease-out handraised-animation;
}

.buttonToggle {

}

.buttonToggle.active {
    background-color: green;
    color: white;
    border-color: darkgreen;
}

.sideGridElement > .iconList {
    font-size: clamp(2.3rem, -0.375rem + 2.333vw, 10vh);
    padding-inline: 0.5rem;
}

.buttonToggle.active .offIcon {
    display: none;
}

.buttonToggle.active .onIcon {
    display: block;
}

.buttonToggle:not(.active) .offIcon {
    display: block;
}

.buttonToggle:not(.active) .onIcon {
    display: none;
}

#timer, #timer > * {
    transition: all 1s;
}

#timer .timerSmall {
    font-size: clamp(2.3rem, -0.675rem + 2.333vw, 6vh);
    margin-bottom: 0.5rem;
}

#timer.running .timerSmall {
    font-size: clamp(1.3rem, -0.675rem + 1.333vw, 4vh);
    display: block;
    top: 15px;
    left: 15px;
}

#timer .timerBig {
    opacity: 0;
}

#timer.running .timerBig {
    opacity: 1;
}

#timer.running {
    width: clamp(20rem, -1.275rem + 44vw, 60rem);
}

#timer.running .iconList {
    opacity: 0;
    font-size: 0.001px;
}

#timer.running .timerBig {
    font-size: clamp(5.3rem, -1.375rem + 7.333vh, 20vh);
}

#timer .buttonlist {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    flex-wrap: nowrap;
    align-items: center;
    flex-grow: 1;
    gap: 0.3rem;
    width: 100%;
}

#timer .buttonlist > * {
    padding: 0.5rem;
    margin-block-start: auto;
}

#timer .timerStart {
    display: block;
}

#timer .timerPause, #timer .timerReset {
    display: none;
}

#timer.running .timerPause {
    display: block;
}

#timer.running .timerStart, #timer.running .timerReset {
    display: none;
}

#timer.running.pause .timerPause {
    display: none;
}

#timer.running.pause .timerStart, #timer.running.pause .timerReset {
    display: block;
}


/*******************************
scene
*******************************/
#sceneForm {
    max-width: 1300px;
}

#editScene fieldset {
    flex: 1 1 clamp(200px, 49%, 100%);
    min-width: 200px;
}

button.sceneedit, button.timer {
    width: 100%;
    font-size: clamp(1.3rem, -1.375rem + 2.333vh, 10vh);
    padding: 0.5rem;
    margin-block-start: auto;
}

button.sceneedit:hover {
    outline: 1px solid black;
}

#sceneInput {
    max-height: 80vh;
    overflow-y: auto;
    flex-flow: column;
    justify-content: flex-start;
    padding: 0.5rem;
}

#editSceneSettings {
    width: 99%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

#teilnehmerlisteScene {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 3px;
    list-style-type: none;
    min-height: 10rem;
    max-height: 15vh;
    overflow-y: auto;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    align-content: flex-start;
}

#teilnehmerlisteScene > li {
    text-overflow: ellipsis;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
    align-content: center;
    height: clamp(5rem, -1.275rem + 7vh, 10rem);
    width: clamp(10rem, -1.275rem + 11vw, 15rem);

    background-color: #65605e;
    color: #f2edf0;
    font-size: clamp(1.3rem, -1.375rem + 1.333vw, 5vh);
    margin: 3px;
    float: left;
    overflow: hidden;
    text-align: center;
    border: 3px solid #65605e;
    flex-grow: 1;
}

form > * {
    width: 99%;
}

#filterUserListScene {
    width: 100%;
}

.inputIcon {
    float: right;
    margin-right: 5px;
    margin-top: -45px;
    position: relative;
    z-index: 2;
    color: rgb(43, 41, 41);
}

.removeIcon {
    float: right;
    margin-right: 45px;
    margin-top: -45px;
    position: relative;
    z-index: 2;
    color: rgb(43, 41, 41);
}

.removeIcon:hover {
    scale: 1.05;
}

#teilnehmerlisteScene > li:hover {
    outline: 1px solid white;
}

#teilnehmerlisteScene li .teilnehmername {
    padding: 0.1rem;
    overflow-wrap: anywhere;
}

#teilnehmerlisteScene li .teilnehmeranzahlBlock {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: 2.5rem;
    background-color: #373433;
    height: 100%;
    margin: 0;
    float: right;
}

#teilnehmerlisteScene li .teilnehmerIcon {
    font-size: clamp(1.3rem, -1.375rem + 1.333vw, 3vh);
}

#teilnehmerlisteScene li.used {
    opacity: 0.3;
}

#teilnehmerlisteScene li .hostIcon {
    display: none;
}

#teilnehmerlisteScene li .phoneIcon {
    display: none;
}

#teilnehmerlisteScene li .spotlightIcon {
    display: none;
}

#teilnehmerlisteScene li.admin .hostIcon {
    display: block;
}

#teilnehmerlisteScene li.phoneUser .phoneIcon {
    display: block;
}

#teilnehmerlisteScene li.spotlighted .spotlightIcon {
    display: block;
}

#teilnehmerlisteScene li .wartendIcon {
    display: none;
}

#teilnehmerlisteScene::after {
    content: '';
    flex-grow: 1000000000;
    order: 100000;
}

#selectedUserScene {
    display: flex;
    gap: 0.5rem;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-start;
    align-items: center;
    padding: 0.5rem;
    padding-inline-start: 0.5rem;
    margin: 0;
    /*flex-grow: 1;*/
}
/*
#selectedUserScene::after {
    content: '';
    flex-grow: 1000000000;
}
*/

#selectedUserScene li.zoomteilnehmer {
    list-style: none;
    display: flex;
    flex-direction: row;
    align-content: center;
    flex-wrap: nowrap;
    align-items: center;
    background-color: grey;
    border-radius: 0.3rem;
    width: max-content;
    height: 3.5rem;
    padding: 0.5rem;
    padding-inline: 1rem;
    justify-content: flex-start;
    /*flex-grow: 1;*/
}

#selectedUserScene li.zoomteilnehmer.selected {
    border: 5px solid green;
}

#selectedUserScene li.zoomteilnehmer.error {
    animation: 1s infinite alternate ease-out handraised-animation;
}


.fa-2x {
    vertical-align: middle;
}

#selectedUserScene li.zoomteilnehmer:hover {
    outline: 1px solid white;
}


#selectedUserScene .sceneActionlist {
    margin-inline-start: 0.5rem;
    display: flex;
    flex-grow: 1;
}

#selectedUserScene .remove {
    margin-inline-start: auto;
    padding-inline-start: 1rem;
}

#selectedUserScene .sceneActionlist > *:hover {
    scale: 1.05;
}

#selectedUserScene .fa-circle {
    color: firebrick;
}
#selectedUserScene .toggle.active .fa-circle {
    color: green;
}

#sceneButtonlist {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-block-start: 1.5rem;
    background-color: inherit;
    padding: 1rem;
    gap: 0.5rem;
}

/*******************************
meeting user list
*******************************/
input[name="teilnehmerlisteFilter"] {
    width: 70%;
}
select[name="teilnehmerTypFilter"] {
    width: 29%;
}

#autorename input[type="text"],
#autorename input[type="number"], #autorename select {
    width: auto;
    padding: 12px 20px;
    margin: 8px 0;
}

tr .hostIcon {
    display: none;
}

tr .phoneIcon {
    display: none;
}

tr .spotlightIcon {
    display: none;
}

tr .wartendIcon  {
    display: none;
}

tr.admin .hostIcon {
    display: block;
}

tr.wartend .wartendIcon  {
    display: block;
}

tr.phoneUser .phoneIcon  {
    display: block;
}

tr.spotlighted .spotlightIcon {
    display: block;
}

#teilnehmerliste {
    font-size: 1rem;
    font-size: clamp(0.5rem, -0.475rem + 3.333vw, 10vh);
}

#teilnehmerliste tbody > tr > td {
    border-bottom: 1px lightgray solid;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    text-align: center;
}

#teilnehmerliste tr:not(.admin) .hostIcon {
    display: none;
}

#teilnehmerliste tr.admin .hostIcon {
    display: block;
}

#teilnehmerliste tr:not(.videoOn) .userCameraOn {
    display: none;
}

#teilnehmerliste tr.videoOn .userCameraOn {
    display: block;
}

#teilnehmerliste tr:not(.videoOn) .userCameraOff {
    display: block;
}

#teilnehmerliste tr.videoOn .userCameraOff {
    display: none;
}

#teilnehmerliste tr:not(.muted) .userMuted {
    display: none;
}

#teilnehmerliste tr.muted .userMuted {
    display: block;
}

#teilnehmerliste tr:not(.muted) .userUnmuted {
    display: block;
}

#teilnehmerliste tr.muted .userUnmuted {
    display: none;
}

#autorename li {
    list-style: none;
}

.autrorename_buttonlist {
    margin-inline: 1rem;
    font-size: 2rem;
}
.autrorename_buttonlist i:hover {
    transform: scale(1.03);
}

.autrorename_entry {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

li .saveButton {
    opacity: 0.3;
}

li.changed .saveButton {
    opacity: 1;
}

th {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: black;
}

/*******************************
meeting footer
*******************************/
.anzahl {
    text-overflow: ellipsis;
    display: inline-block;
    align-items: center;
    justify-content: space-between;
    align-content: center;

    background-color: #65605e;
    color: #f2edf0;
    font-size: 3rem;
    font-size: clamp(0.7rem, -0.475rem + 5.333vw, 2.5rem);
    margin-top: 10px;
    margin-left: 10px;
    margin-right: 10px;
    padding: 10px;

    overflow: hidden;
    text-align: center;
    border: 3px solid #65605e;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.anzahlSubtitle {
    font-size: 1rem;
    font-size: clamp(0.5rem, -0.475rem + 3.333vw, 1.5rem);
}

#anzahlTeilnehmer {
    /*margin-right: 2rem;*/
}

body.noHost .wartend {
    opacity: 0.3;
}


#logoutbutton {
    background-color: #f44336;
}

.teilnehmerIcon {
    font-size: 3rem;
    font-size: clamp(0.7rem, -0.675rem + 4.333vw, 1.8rem)
}

#phoneIconOnline {
    color: firebrick;
    animation: 1s infinite alternate ease-out phoneoffline-animation;
}

body.jwconfConnected #phoneIconOnline {
    color: green;
    animation: none;
}

body.noJwConf .jwconfCounter {
    display: none;
}

@keyframes phoneoffline-animation {
    from {
        color: red;
    }
    to {
        color: firebrick;
    }
}

#phoneIconComputerConnected {
    display: none;
}

body.conferenceConnectedOnComputer #phoneIconComputerConnected {
    display: block;
}