﻿.Meeting {
    height: 100%;
    display: grid;
    /* grid-template-rows: 5rem 1fr 5rem; */
    grid-template-rows: 6rem calc(100% - 12rem) 6rem;
    background: white;
    background-repeat: no-repeat;
    background-size: cover;
}

.attendees {
    color: black;
    font-size: 1rem;
}

/* -------- Header -------- */

.logo {
    max-height: 4rem;
}

.header-logo {
    margin-left: 2.8rem;
}

.companyLogo {
    margin-top: 2rem;
    margin-bottom: 1rem;
    width: 9rem;
}

.meeting-header {
    color: black;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
    transition: all .3s cubic-bezier(0,0,0,.5);
}

.sidebarOpen {
    margin-right: 40rem;
}

.space-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}


.eventName {
    color: black;
    font-size: 1.5rem;
    font-weight: 600;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)
}

.timer {
    margin-right: 2.8rem;
    font-size: 1.5rem;
    padding: 1rem;
}
.timerGuest {
    margin-right: 2.8rem;
    font-size: 1.5rem;
    padding: 1rem;
}
.blinking {
    color: white;
    animation: blinkingBackground 1s infinite;
}

.blinking_color {
    animation: blinkingColor 1s infinite;
}

/* -------- Main -------- */
.hidden {
    display: none;
}

.tile {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #424242;
    position: relative;
    overflow: hidden;
    z-index: 9;
}

.sizeWhenContentShare {
    /*max-width: 20rem;*/
    width: 20% !important;
    height: auto !important;
}

.contentSizeWhenContentShare {
    width: 80% !important;
    height: auto !important;
    top: auto !important;
    bottom: 0;
    left: 0;
   /*
    height: 100% !important;
    object-fit: contain!important;
   */
}

.nameplate {
    position: absolute;
    font-size: 1.3rem;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, .5);
    padding: .7rem;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    pointer-events: none;
    transition: all .1s cubic-bezier(0,0,0,.5);
}

.center {
    font-size: 100%;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
}

.eventora {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: all .1s cubic-bezier(0,0,0,.5);
}

.eventora_in_tile {
    font-family: myriad-pro, sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 2rem;
    -webkit-text-stroke-width: .1px;
    -webkit-text-stroke-color: gray;
    display: none!important;
}

.muted-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: all .1s cubic-bezier(0,0,0,.5);
}
/* -------- Sidebar -------- */
.sidebar {
    height: 100vh;
    width: 0;
    min-width: 0;
    background-color: #f5f5f5;
    transition: min-width .3s cubic-bezier(0,0,0,.5);
    z-index: 8;
    display: flex;
    flex-direction: column;
    margin-left: auto;
}

.pseudoElement {
    width: 0;
    margin-right: auto;
}

.open {
    min-width: 40rem;
}

.sidebar-attendees-header {
    margin-top: 2rem;
    align-self: center;
    color: black;
    font-size: 1.4rem;
    display: none;
}

.open .sidebar-attendees-header {
    display: block;
}

.attendees {
    padding-top: 2rem;
    font-size: 1.2rem;
    line-height: 1.5;
    display: none;
    height: 100vh;
    margin: .1rem .5rem;
    overflow-y: scroll;
}

.search_bar {
    display: none;
    align-items: center;
    justify-content: center;
    padding-top: .5rem;
}

#searchInput {
    outline: none;
    border: 1px solid rgba(0, 0, 0, 0.125);
    padding: .5rem;
    max-width: 90%;
}

.waiting_attendees {
    /*height: 20%;*/
}

.open .attendees {
    display: block;
}

.open .search_bar {
    display: flex;
}

.attendee-list-item {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin: 0 .5rem;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.attendeeName {
    width: 50%;
}

.waitingAttendeeHand {
    position: relative;
    font-size: 1.7rem;
}

.badges {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 50%;
}

.mute-badge {
    position: relative;
    width: 3rem;
    height: 2.5rem;
    margin: 0 .2rem;
    border: 1px solid rgba(0, 0, 0, 0.125);
    background-color: #E0E0E0;
    transition: all .1s cubic-bezier(0,0,0,.5);
}

.mute-badge:hover {
    cursor: pointer;
    transform: scale(1.1);
}

.volume-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    margin: 0 .5rem;
}

.more-options {
    font-size: 2rem;
    border: 0;
    padding: 0;
    background-color: white;
    width: 2rem;
}

.host-badge {
    display: inline-block;
    min-width: 1em; /* em unit */
    padding: .3em .5em; /* em unit */
    border-radius: 40%;
    font-size: 80%;
    text-align: center;
    background: #1779ba;
    color: #fefefe;
    margin-left: .5rem;
}

#volume-meter {
    width: 3rem;
}

.admin-buttons {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.admin-button {
    font-size: 1.2rem;
    display: none;
    padding: .5rem;
    width: 8rem;
    margin-left: .5rem;
    border: 1px solid rgba(0, 0, 0, 0.125);
    background-color: #E0E0E0;
    transition: all .1s cubic-bezier(0,0,0,.5);
}

.admin-button:hover {
    cursor: pointer;
    transform: scale(1.1);
}

.open .admin-button {
    display: inline-block;
}

.messages {
    display: none;
    flex-direction: column;
    flex: 1 1 auto;
    overflow: hidden;
    height: 100vh;
    padding: .5rem;
}

.open .messages {
    display: flex;
}

.receive-message {
    padding: .5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.send-message-field {
    display: inline-block;
    width: 100%;
    resize: none;
    border-color: rgba(0, 0, 0, 0.125);
    outline: none;
    padding: 1rem 1.4rem;
    font-family: inherit;
}

.send-button {
    padding: 1rem;
}

.message-bubble-sender-self {
    font-size: 1.2rem;
    font-weight: 600;
    color: black;
    margin-right: 1rem;
    margin-top: 1rem;
    margin-bottom: .5rem;
    align-self: flex-end;
}

.message-bubble-sender-other {
    font-size: 1.2rem;
    font-weight: 600;
    color: black;
    margin-left: 1rem;
    margin-top: 1rem;
    margin-bottom: .5rem;
}

.message-bubble-self {
    display: table;
    max-width: 90%;
    overflow-wrap: break-word;
    font-size: 1.2rem;
    color: white;
    background-color: #0078FF;
    border-radius: 17px;
    padding: .3rem 1.5rem;
    margin: .1rem 1rem;
    align-self: flex-end;
}

.message-bubble-other {
    display: table;
    overflow-wrap: break-word;
    font-size: 1.2rem;
    color: black;
    background-color: #f5f5f5;
    border-radius: 17px;
    padding: .3rem 1.5rem;
    margin: .1rem 1rem;
}

.hand-other, .hand-self {
    color: white;
    font-size: 1.1rem;
    background-color: black;
    border-radius: 17px;
    padding: .5rem 2rem;
    margin: .2rem 2rem;
}

.raisedhands {
    position: absolute;
    bottom: 6rem;
    left: 10rem;
    transform: translate(-50%);
    z-index: 9;
}

.waitingroom_popup {
    width: 150px;
    background-color: #555;
    color: #fff;
    text-align: center;
    font-size: 1.3rem;
    border-radius: 6px;
    padding: 8px 5px;

    position: absolute;
    bottom: 6rem;
    left: 50%;
    transform: translate(-50%);
    z-index: 9;
}

.waitingroom_popup::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.handbutton {
    margin-left: 2rem;
    z-index: 9;
    color: black;
}

.hand {
    width: 1rem;
    font-size: 1.5rem;
}

.hand-time {
    font-size: 80%;
    text-align: right;
}
/* --------------------------- */

/* -------- Display View ---------*/

.meeting-main-display {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
}

.above-grid {
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-display {
    display: flex;
    align-items: flex-end;
    justify-content: center;

    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.display-view {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    align-self: flex-end;
    /*z-index: 10;*/
}

.spotlight-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    align-self: flex-start;
    height: 100%;
    background-color: #f5f5f5;
    padding: 2rem;
}

.display-tile {
    width: 10rem;
    height: 10rem;
    margin: .1rem;
    cursor: pointer;
    transition: filter .1s cubic-bezier(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9;
    /* PWC */
    pointer-events: none;
    /* PWC */
}

.pin-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    font-size: 1.5rem;
}

.fullScreen-icon {
    position: absolute;
    font-size: 2rem;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, .5);
    padding: .1rem .5rem;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .1s cubic-bezier(0,0,0,.5);
}

.fullScreen-icon:hover {
   cursor: pointer;
}

.display-tile:hover .video {
    -webkit-filter: blur(2px);
    filter: blur(2px);
}

.display-tile:hover .nameplate {
    -webkit-filter: blur(2px);
    filter: blur(2px);
}

.display-tile:hover .pin-icon {
    opacity: 1;
}

.grid-tile:hover .fullScreen-icon {
    opacity: 1;
}

.active {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: 8;
    /*PWC*/
    z-index: 11;
    /*PWC*/
    pointer-events: none;
    transition: right .3s cubic-bezier(0,0,0,.5);
}

.activeOpen {
    right: 40rem;
}

.presenter {
    z-index: 11;
}

.active-icon {
    position: absolute;
    font-size: .8rem;
    top: 1rem;
    background: rgba(255, 255, 255, .2);
    padding: 0rem .5rem 0rem .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none
}

/* ------------------------ */
/* -------- Footer -------- */
.meeting-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    transition: all .3s cubic-bezier(0,0,0,.5);
}

.footer-logo {
    width: 7rem;
    margin-right: 2rem;
    z-index: 11;
}

.footer-buttons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    /* PWC */
    z-index: 11;
    /* PWC */
    /* OGILVY */
    z-index: 1000;
    /* OGILVY */
}

.footer_icon {
    border: none;
    background-color: #E0E0E0;
    font-size: 1.5rem;
    transition: all .1s cubic-bezier(0,0,0,.5);
}

/* ------------------------ */
/* --- SIDEBAR TOOLTIPS --- */
/* ------------------------ */
button .tooltiptext,
.waitingAttendeeHand .tooltiptext2 {
    font-size: 1rem;
    visibility: hidden;
    width: 80px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    bottom: 130%;
    left: 50%;
    margin-left: -40px;
}

button .tooltiptext::after,
.waitingAttendeeHand .tooltiptext2::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: black transparent transparent transparent;
}

/* Hover for non-touch devices */
@media(hover: hover) and (pointer: fine) {
    button:hover .tooltiptext,
    .waitingAttendeeHand:hover .tooltiptext2 {
        visibility: visible;
    }
}

button:focus {
    outline: none;
}

/* ------------------------ */
/* -------- TOOLTIP ------- */
/* ------------------------ */
.button .tooltiptext {
    font-size: 1rem;
    visibility: hidden;
    width: 80px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    bottom: 130%;
    left: 50%;
    margin-left: -40px;
    cursor: default;
}

.button .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: black transparent transparent transparent;
}

@media(hover: hover) and (pointer: fine) {
    .button:hover .tooltiptext {
        visibility: visible;
    }

    .button:hover:enabled {
        cursor: pointer;
        transform: scale(1.1);
    }
}

#button-grid:hover .tooltiptext {
    visibility: visible;
}

.phone {
    height: 50%;
    background-color: #f44336;
}

#button-attendees {
    position: relative;
}

#button-attendees .badge {
    position: absolute;
    top: -6px;
    right: -6px;
    padding: 2px 6px;
    border-radius: 50%;
    background-color: red;
    color: white;
}

#button-leave {
    background-color: #f44336;
}

.button {
    border: none;
    outline: none;
    width: 3.2rem;
    height: 3.2rem;
    background-color: #E0E0E0;
    border-radius: 50%;
    margin: .1rem .2rem;
    box-shadow: 0 3px 2px -1px rgba(0,0,0,.2), 0 2px 5px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12);
    transition: all .1s cubic-bezier(0,0,0,.5);
    /*
    display: table-cell; 
    vertical-align: middle;
    */
}

/*.button:hover:enabled {
    cursor: pointer;
    transform: scale(1.1);
}*/

/* ------------------------ */
/* --- TOOLTIP DROPDOWN --- */
/* ------------------------ */

.tooltipDropdown-content {
    background-color: black;
    min-width: 160px;
    overflow: auto;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    width: 80px;
    font-size: 1rem;
    border-radius: 6px;
}

.tooltipDropdown-content div {
    color: white;
    padding: 1rem;
    text-decoration: none;
    display: block;
    text-align: left;
}

.no-padding {
    padding: 0 !important;
}

.tooltipDropdown-option:hover {
    cursor: pointer;
}

.active-option, .tooltipDropdown-option:hover {
    background-color: #424242;
}

.active-option {
    cursor: default;
    pointer-events: none;
}


button:focus {
    outline: none;
}

/* ------------------------ */
/* ------- DROPDOWN ------- */
/* ------------------------ */
.dropdown {
    float: left;
    overflow: hidden;
}

.navbar div:hover, .dropdown:hover{
    background-color: red;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 2.5rem;
    top: 1rem;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content div {
    float: none;
    color: black;
    padding: 1rem;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content div:hover, .send-button:hover {
    background-color: #ddd;
    cursor:pointer;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ------------------------ */
/* ------ THE SWITCH ------ */
/* ------------------------ */
/*the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    min-height: 34px;
    margin-top: auto;
}

#spotlight-checkbox:disabled + .slider.round {
    opacity: 0.5;
    cursor: default;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: rgb(133, 177, 64);
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* ------------------------ */
/* ------ ANIMATIONS ------ */
@keyframes blinkingBackground {
    0% {
        background-color: #ef0a1a;
    }

    50% {
        background-color: #bf0815;
    }

    100% {
        background-color: #ef0a1a;
    }
}

@keyframes blinkingColor {
    0% {
        color: #ef0a1a;
    }

    50% {
        color: #bf0815;
    }

    100% {
        color: #ef0a1a;
    }
}
/* ------------------------ */

/* ------------------------ */
/*       MEDIA QUERIES      */
/* ------------------------ */
@media only screen and (max-width: 1000px) {
    .Meeting {
        grid-template-rows: 7rem calc(100% - 14rem) 7rem;
    }

    .footer-logo {
        margin-right: 1rem;
    }

    .handbutton {
        margin-left: 1rem;
    }

    .open {
        min-width: 30rem;
    }

    .sidebarOpen {
        margin-right: 30rem;
    }

    .activeOpen {
        right: 30rem;
    }

    .raisedhands {
        bottom: 7.5rem;
    }
}

@media only screen and (max-width: 803px) {

    .button {
        margin: 0rem .2rem;
        width: 2.7rem;
        height: 2.7rem;
    }

    .footer_icon {
        font-size: 1.3rem;
    }

    .send-button {
        font-size: 1.2rem;
    }

    .send-message-field {
        font-size: 1.1rem;
    }

    .message-bubble-sender-self,
    .message-bubble-sender-other {
        font-size: 1.2rem;
    }

    .message-bubble-self,
    .message-bubble-other {
        font-size: 1.2rem;
    }

    #button-attendees .badge {
        padding: .2px 4px;
    }

    .button .tooltiptext {
        font-size: 1rem;
        width: 50px;
        margin-left: -25px;
    }
}

@media only screen and (max-width: 580px) {
    /* .Meeting{
        grid-template-rows: 8.5rem calc(100% - 17rem) 8.5rem;
    } */

    html {
        font-size: 50%;
    }

    .raisedhands {
        bottom: 7rem;
    }

    .footer-buttons {
        top: 46%;
        transform: translate(-50%, -50%);
        /* OGILVY. REVERT THIS AFTER TEST IS DONE
        z-index: 10;*/
    }

    .button {
        margin: 0rem .2rem;
        width: 2.7rem;
        height: 2.7rem;
    }

    .footer_icon {
        font-size: 1.3rem;
    }

    .send-button {
        font-size: 1.2rem;
    }

    .send-message-field {
        font-size: 1.2rem;
    }

    /*.message-bubble-sender-self {
        font-size: 1.2rem;
    }

    .message-bubble-self {
        font-size: 1.2rem;
    }*/

    #button-attendees .badge {
        padding: .2px 4px;
    }

    .mute-badge {
        margin: 0 .2rem;
    }

    .attendee-list-item {
        padding: 1rem 1rem;
    }
    .mute-badge {
        width: 2rem;
    }

    .admin-button {
        font-size: 1.2rem;
        width: 5rem;
    }
}

@media only screen and (max-width: 450px) {

    .footer-logo {
        width: 6rem;
        margin-right: .5rem;
    }

    .handbutton {
        margin-left: .5rem;
    }

    .open {
        min-width: 20rem;
    }

    .sidebarOpen {
        margin-right: 20rem;
    }

    .activeOpen {
        right: 20rem;
    }

    .messages {
        height: 40%;
    }
}

@media only screen and (max-width: 356px) {
    html {
        font-size: 44%;
    }

    .footer-logo {
        margin-right: 0rem;
    }

    .handbutton {
        margin-left: 0rem;
    }
}

@media only screen and (max-width: 315px) {
    html {
        font-size: 40%;
    }
}

@media only screen and (max-width: 286px) {
    .Meeting {
        grid-template-rows: 10rem calc(100% - 20rem) 10rem;
    }

    .raisedhands {
        bottom: 10rem;
    }
}
