@import "icomoon/style.css";

.jost {
    font-family: "Jost", sans-serif;
    font-optical-sizing: auto
}

:root {
    --body-bg: linear-gradient(-180deg, rgb(131, 168, 166) 0%, rgb(40, 61, 59) 100%);
    ;
    --blanket-color: #1e1f23e6;
    --intro-bg: #dbdbdb;
    --intro-cl: #000;
    --chat-wrap-bg: #fff;
    --chat-wrap-ch-bg: linear-gradient(white 30%, #beb3b300), linear-gradient(#fff0, white 70%) 0 100%, radial-gradient(50% 0, farthest-side, #0003, #0000), radial-gradient(50% 100%, farthest-side, #0003, #0000) 0 100%;
    --chat-wrap-ch-bg: linear-gradient(white 30%, #fff0), linear-gradient(#fff0, white 70%) 0 100%, radial-gradient(farthest-side at 50% 0, #0003, #0000), radial-gradient(farthest-side at 50% 100%, #0003, #0000) 0 100%;
    --chat-wrap-ch-bgc: #fff;
    --chat-wrap-ch-cl: #000;
    --chat-wrap-cb-bg: #f6f6f6;
    --chat-wrap-cb-cl: #000;
    --settings-bg: #fff;
    --settings-cl: #283d3b;
    --settings-link-h-bg: #f6f6f6;
    --settings-link-h-cl: #878787;
    --actions-bg: #ffffffe6;
    --actions-btn-cl: #000;
    --actions-btn-h-bg: #ffff;
    --actions-btn-h-cl: #000;
    --actions-btn-a-bg: #a2a2a2;
    --vh: 1vh
}

* {
    outline: none;
    box-sizing: border-box
}

html,
body {
    margin: 0;
    line-height: 1.6;
    font: 1rem/1.6 Jost, sans-serif;
    background: var(--body-bg);
    background-repeat: no-repeat;
    background-attachment: fixed;
}

input {
    display: block;
    box-sizing: border-box;
    border: 1px solid #efefef;
    border-radius: .5rem;
    padding: .6rem;
    font-size: 1rem
}

.light {
    color: #878787
}

.red {
    color: #c0392b
}

.bold {
    font-weight: 700
}

.italic {
    font-style: italic
}

#blanket {
    position: absolute;
    z-index: -1;
    min-height: 100vh;
    min-height: -webkit-fill-available
}

#videos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center
}

#videos .video {
    flex-shrink: 0;
    width: 500px;
    height: 300px;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    padding: .5rem
}

#videos .video video {
    width: 100%;
    height: 100%;
    display: block;
    margin: auto;
    box-sizing: border-box;
    object-fit: cover;
    border-radius: .5rem
}

#videos img {
    max-width: 100%;
}

#videos .video video.mirror {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg)
}

#videos .video:fullscreen video {
    background: #000;
    object-fit: contain;
    border: none
}

#videos .video button {
    position: absolute;
    bottom: 1rem;
    right: .5rem;
    z-index: 10;
    font-size: 2rem;
    color: #edddd4;
    background: none;
    border: none;
    cursor: pointer;
    padding: .1rem .4rem;
    text-shadow: 2px 2px 2px #000000;
}

#videos .video:fullscreen button {
    display: none
}

#videos.mt8 .video {
    width: 200px;
    height: 150px
}

.videoAvatarImg {
    z-index: 1;
    visibility: hidden;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)
}

.videoPeerName {
    z-index: 2;
    position: absolute;
    padding: 0 .75rem 0 0;
    bottom: 1rem;
    left: 3rem;
    font-weight: 700;
    font-size: .7rem;
    color: #edddd4;
    background-color: #000000b3;
    border: none;
    border-top-right-radius: .25rem;
    border-bottom-right-radius: .25rem;
    height: 2rem;
    line-height: 2rem;
    box-sizing: border-box
}

.audioEnabled.icon-mic-off,
.audioEnabled.icon-mic {
    text-align: center;
    z-index: 3;
    position: absolute;
    padding: 0 .25rem;
    bottom: 1rem;
    left: 1rem;
    font-weight: 700;
    font-size: 1rem;
    color: #edddd4;
    background-color: #000000b3;
    border-top-left-radius: .25rem;
    border-bottom-left-radius: .25rem;
    border: none;
    height: 2rem;
    width: 2rem;
    line-height: 2rem;
    box-sizing: border-box
}

#app>#appWrap {
    display: none
}

#intro {
    background: var(--intro-bg);
    position: relative;
    top: 6rem;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    max-width: 32rem;
    margin: auto;
    padding: 1rem;
    box-sizing: border-box;
    border-radius: 1rem;
    box-shadow: 0 5px 15px #00000029 0 1px 4px #00000029;
}

img {
    max-width: 30%;
    display: block;
    margin-left: auto;
    margin-right: auto
}

#intro h2 {
    text-align: center
}

#intro h3 {
    margin: 0
}

#intro #center {
    text-align: center
}

#intro label {
    font-weight: 700
}

#intro .buttons {
    display: flex;
    justify-content: space-between;
}

#intro .buttons button {
    background: #283d3b;
    color: #fff;
    font-size: 1rem;
    border: none;
    border-radius: 15px;
    padding: .5rem 1rem;
    cursor: pointer
}

#intro .buttons a:hover {
    background: #9f2929;
    transition: ease-in-out .3s;
    color: #DBDBDB;
    border-radius: 15px
}

#intro .buttons button:hover {
    background: #197278;
    transition: ease-in-out .3s
}

#intro .buttons a {
    color: #000;
    font-size: 1rem;
    border: 1px solid;
    border-radius: .25rem;
    border-radius: 15px;
    padding: .5rem 1rem;
    cursor: pointer;
    text-decoration: none !important
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: .5rem;
    box-sizing: border-box;
    text-align: center;
    text-shadow: 1px 1px 1px #000000;
    color: #edddd4
}

footer a {
    color: #edddd4
}

#chatWrap {
    background: var(--chat-wrap-bg);
    position: fixed;
    bottom: 6rem;
    left: 0;
    right: 0;
    z-index: 100;
    width: 20.8rem;
    margin: auto;
    padding: 1rem;
    box-sizing: border-box;
    border-radius: 1rem;
    box-shadow: 0 5px 15px #00000029 0 1px 4px #00000029
}

#chatWrap #chats {
    overflow-y: auto;
    overflow: auto;
    max-height: 200px;
    margin: auto;
    color: var(--chat-wrap-ch-cl);
    background: var(--chat-wrap-ch-bg);
    background: var(--chat-wrap-ch-bg);
    background-repeat: no-repeat;
    background-color: var(--chat-wrap-ch-bgc);
    background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
    background-attachment: local, local, scroll, scroll
}

#chatWrap .chat {
    margin: .5rem 0
}

#chatWrap .chat .name {
    font-weight: 700
}

#chatWrap .chat .date {
    font-size: small
}

#chatWrap #composeBox {
    position: relative;
    background: var(--chat-wrap-cb-bg);
    color: var(--chat-wrap-cb-cl);
    border-radius: 1rem;
    padding: .7rem 1rem;
    margin-top: .5rem;
    max-height: 4.2rem;
    overflow-y: auto
}

#chatWrap #composeBox #placeholder {
    position: absolute;
    z-index: 5;
    opacity: .5
}

#chatWrap #composeBox #compose {
    position: relative;
    z-index: 10
}

#chatWrap #noChat {
    padding: 1rem;
    text-align: center
}

#settings {
    background: var(--settings-bg);
    color: var(--settings-cl);
    box-shadow: 0 5px 15px #00000029 0 1px 4px #00000029;
    position: fixed;
    bottom: 5rem;
    left: 0;
    right: 0;
    z-index: 100;
    width: 20.8rem;
    margin: auto;
    box-sizing: border-box;
    border-radius: 1rem;
    max-height: 26rem;
    overflow-y: auto
}

::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #283d3b;
    border-radius: 10px;
}

#settings .label {
    padding: .5rem 1rem;
    font-weight: 700;
    text-align: center
}

#settings .separator {
    margin: 0;
    border-top: 1px solid var(--actions-btn-a-bg)
}

#settings .link {
    padding: .5rem 1rem;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer
}

#settings .link.indent {
    padding: .5rem 1rem .5rem 2rem
}

#settings .link.active:before {
    content: "✔️";
    margin-right: .5rem
}

#settings .link:hover {
    background: var(--settings-link-h-bg);
    color: var(--settings-link-h-cl)
}

#settings #name {
    display: flex;
    align-items: center
}

#settings input {
    background: none;
    border: none;
    flex: 1
}

#actionsWrap {
    position: fixed;
    bottom: 1rem;
    left: 0;
    right: 0;
    z-index: 100;
    display: inline-flex;
    transition: all .25s ease-out;
    opacity: 1;
    transform: translateY(-.5rem);
}

#actionsWrap.hidden {
    opacity: 0;
    transform: translateY(1rem);
    z-index: -1
}

#actions {
    z-index: 100;
    box-shadow: 0 5px 15px #00000029 0 1px 4px #00000029;
    margin: auto;
    box-sizing: border-box;
    border-radius: 1rem;
    transition: opacity 250ms;
    background: var(--actions-bg);
}

#actions button,
#actions a {
    flex: 1;
    background: none;
    border: none;
    font-size: 1.25rem;
    padding: 1rem;
    cursor: pointer;
    margin: auto;
    color: var(--actions-btn-cl);
}

#actions button:hover,
#actions a:hover {
    background-color: #878787;
    color: var(--actions-btn-h-cl);
    border-radius: 1rem
}

#actions button.active {
    background: var(--actions-btn-a-bg);
    border-radius: 1rem
}

#actions a.icon-exit,
#actions a.icon-mic-off,
#actions a.icon-video-off {
    text-decoration: none !important;
    color: #e74c3c !important;
}

@media only screen and (max-width: 800px) {
    #videos .video {
        width: 50vw;
        height: 33.3vh
    }
}