@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    height: 100%;
    display: table;
}

body {
    height: 100%;
    display: table-cell;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    background: #f5f5f5;
}

.wrapper {
    min-height: 100%;
    background: #1A3675 url('/assets/pattern.svg') no-repeat;
}

.content {
    position: relative;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.content-header {
    padding: 100px 40px;
}

.content-header h1 {
    text-transform: uppercase;
    font-size: 2.4em;
}

.content-header h1,
.content-header span {
    color: #fff;
}

.content p {
    margin-top: 100px;
    font-weight: bold;
    color: #fff;
}

.vap-logo-area {
    display: flex;
    margin: auto;
    justify-content: center;
    align-items: center;
}

.back-layer {
    position: relative;
}

.back-layer, .mid-layer {
    background: rgba(255, 255, 255, .25);
    border-radius: 50%;
}

.logo-layer {
    width: 160px;
    height: 160px;
    background: #fff url('/assets/mostcall-logo.svg') no-repeat 50% 50%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.back-layer, .mid-layer, .logo-layer {
    padding: 20px;
}

.logo-layer img {
    width: 100%;
}

.video-call-button {
    height: 80px;
    position: absolute;
    border-radius: 50%;
    bottom: -20px;
    cursor: pointer;
}

.video-call-button:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, .35);
}

.video-call-button img {
    width: 80px;
    height: 80px;
}

footer {
    width: 100%;
    background: #fff;
    position: fixed;
    bottom: 0;
}

footer img {
    height: 80px;
    margin: 20px 20px 10px 20px;
}

footer a {
    float: right;
    position: absolute;
    right: 20px;
    bottom: 20px;
    color: #1A3675;
    font-size: 1.2em;
    text-decoration: none;
    text-transform: uppercase;
}

footer a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 512px) {
    .content-header {
        padding: 50px 15px;
    }

    .content-header h1 {
        font-size: 1.6em;
    }

    .content p {
        margin-top: 50px;
    }

    .back-layer, .mid-layer {
        padding: 15px;
    }

    .logo-layer {
        padding: 10px;
        width: 140px;
        height: 140px;
    }

    .logo-layer img {
        width: 140px;
    }

    .video-call-button {
        height: 70px;
    }

    .video-call-button img {
        width: 60px;
        height: 60px;
    }

    footer img {
        height: 40px;
        margin: 10px;
    }
    
    footer a {
        right: 10px;
        bottom: 10px;
        font-size: 1.2em;
    }
}

/* Waiting room */

.wait-icon {
    padding-top: 50px;
    margin: auto;
}

.wait-icon img {
    width: 180px;
    height: 180px;
}

.info-text span {
    font-weight: bold;
    font-size: 1.2em;
}


@media screen and (max-width: 512px) {
    .wait-icon {
        padding-top: 0;
    }
    
    .wait-icon img {
        width: 120px;
        height: 120px;
    }
}

/* Oprators list */

.lists {
    display: flex;
    width: 600px;
    margin: auto;
}

.operators, .waitUsers {
    flex-grow: 1;
}

.operators h3, .waitUsers h3 {
    margin: 30px 15px;
}

.operators ul li, .waitUsers ul li {
    height: 60px;
    list-style: none;
    display: flex;
    margin: 5px 15px;
    padding: 10px;
    background: #fff;
    border-radius: 10px;
    border: #E8E8E8 solid 1px;
}

.operators ul li .avatar-img {
    margin-right: 10px;
    border-radius: 50%;
    flex-grow: 2;
}

.operator-info {
    flex-grow: 8;
}

.operator-info .operator-name,
.operator-info .operation {
    text-align: left;
    padding: 8px 0 0;
    color: #fff;
}

.operator-info .operation span {
    font-weight: bold;
    font-size: 1.4em;
}

/* Active operators */

.operators ul li.active {
    background-color: #3AB54A;
}

/* Inactive operators */

.operators ul li.inactive .avatar-img {
    background: url('../assets/avatar-inactive.svg') no-repeat;
}

.operators ul li.inactive .operator-info .operator-name {
    color: #C8C8C8;
}

.operators ul li.inactive .operator-info .operation {
    color: #333333;
}

/* Busy operators */

.operators ul li.busy {
    background-color: #F33939;
}

@media screen and (max-width: 512px) {
    .lists {
        width: auto;
        padding: 0 5px;
    }

    /* .operators, .waitUsers {
        padding: 0 8px;
    } */

    .operators {
        padding-right: 3px;
    }

    .waitUsers {
        padding-left: 3px;
    }

    .operators h3, .waitUsers h3 {
        margin: 15px;
    }

    .operators ul li, .waitUsers ul li {
        height: 40px;
        margin: 5px 0;
        padding: 5px;
    }

    .operators ul li .avatar-img img {
        width: 40px;
        height: 40px;
    }

    .operator-info .operator-name, .operator-info .operation {
        padding: 3px 0 0;
    }
}

/* Wait users list */

.wait {
    width: 100%;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.waitUsers-no {
    color: #EBA313;
    font-size: 32px;
    font-weight: bold;
}

/* My order */

.waitUsers ul li.my-order {
    background-color: #3AB54A;
    color: #fff;
}

.waitUsers ul li.my-order .waitUsers-no {
    color: #fff;
}

@media screen and (max-width: 512px) {
    .waitUsers-no {
        font-size: 1.6em;
    }
}

/* Video call and chat */

.video-call {
    height: 100%;
    background: #333333;
    box-sizing: border-box;
}

#video-chat {
    width: 100%;
    height: 100%;
    position: relative;
}

#self-video {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1001;
}

#self-video video {
    width: 320px;
    height: 240px;
}

#main-video {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
}

#main-video video {
    width: auto;
    height: 100%;
    position: absolute;
    bottom: 0;
    z-index: 900;
}

.bottom-bar {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: absolute;
    bottom: 0;
    z-index: 999;
}

#controls img {
    width: 60px;
    height: 60px;
    margin: 8px;
    border-radius: 50%;
    cursor: pointer;
}

#controls {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#controls img:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, .35);
}

.chat-msg {
    width: 20%;
    height: 100%;
    padding: 0 15px;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 1000;
}

#chat {
    width: 100%;
    margin: 0 auto;
}

.msg-area {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0 0 30px 0;
}

.msg-area input {
    width: 100%;
    padding: 15px;
    border-radius: 50px;
    background: rgba(255, 255, 255, .35);
    border: none;
    font-size: 1.2em;
}

.msg-area input:focus {
    outline: none;
}

.msg-area div img {
    width: 30px;
    color: #fff;
    cursor: pointer;
    margin-left: 10px;
}

#messages {
    height: 85%;
    /*margin: 15px auto;*/
    /* display: flex;
    flex-direction: column;
    justify-content: flex-end; */
    overflow-x: hidden;
    position: relative;
}

/* Scrollbar */

#messages::-webkit-scrollbar-track
{
	/* -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); */
	background-color: rgba(255, 255, 255, 0);
}

#messages::-webkit-scrollbar
{
	width: 1px;
	background-color: rgba(255, 255, 255, 0);
}

#messages::-webkit-scrollbar-thumb
{
	background-color: rgba(255, 255, 255, .05);
}

#messages {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .05)
                     rgba(255,255,255, 0);
}

/* ********* */

#messages div {
    padding: 10px;
    margin: 5px 0;
    border-radius: 15px;
    color: rgba(0, 0, 0, 1);
    background: rgba(255, 255, 255, .15);
}

#messages h3,
#messages p {
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 1);
}

#messages h3 {
    margin-bottom: 5px;
    font-size: 1em;
    font-style: italic;
}

#messages div.self-msg {
    margin-left: 25%;
}

#messages div.answer-msg {
    margin-right: 25%;
}

#btnNext {
    padding-top: 58px;
}

@media screen and (max-width: 512px) {
    #self-video {
        width: 160px;
        height: 200px;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        overflow: hidden;
    }

    #self-video video {
        height: 100%;
    }

    #main-video {
        width: 100%;
        height: 100%;
        overflow: hidden;
        position: relative;
    }

    #main-video video {
        width: auto;
        height: 100%;
    }
    
    .chat-msg {
        width: 100%;
        padding: 0;
        bottom: 60px;
        z-index: 1000;
    }

    #messages {
        height: 30%;
        margin: 10px;
        padding: 0;
    }

    #messages .self-msg {
        margin-left: 25%;
    }
    
    #messages .answer-msg {
        margin-right: 25%;
    }
    
    .msg-area {
        margin: 0 10px 30px 10px;
    }

    #controls img {
        margin: 8px 8px 15px;
    }
}