html, body {
    min-height:100%;
}

body, main {
    height:100vh;
}

main, .level {
    display: flex;
}

.level {
    justify-content: center;
}

.controls {
    text-align: center;
    position: relative;
    z-index: 4;
}

.optionNumber {
    font-size: 30px;
}

.roomCodeInput {
    width: 150px;
}

.localVideoContainer
{
    background-color: black;
    height: 100%;
}

.mask, .localVideo {
    height:100%;
    width: 100%;
}

.mask {
    position: absolute;
    top: 0;
    left: 0;
    background-color: white;
}

.localVideo {
    background-color: black;
    position: relative;
    object-fit: contain;
    transform: scaleX(-1);
    transition-duration: 1000ms;
    z-index: 2;
}

.remoteVideo
{
    background-color: black;
    position: absolute;
    object-fit: contain;
    height: 100%;
    right: 0;
    transition-duration: 1000ms;
    margin: auto;
    text-align: center;
    z-index: 1;
}

@media screen and (max-width: 1023px) {
    .localVideoContainer {
        position: absolute;
        bottom: 0;
        right: 0;
        height: 20%;
    }

    .controls {
        width: 100%;
    }

    .mask {
        z-index: 3;
    }

    .remoteVideo {
        width: 100%;
        object-fit: cover;
    }
}

@media screen and (min-width: 1024px) {
    .localVideoContainer {
        width: 50%;
    }

    .localVideo {
        z-index: 2;
    }

    .mask {
        z-index: 1;
    }

    .controls {
        width: 50%;
    }

    .remoteVideo {
        width: 50%;
    }
}

.callActionButtons {
    /* background-color: green; */
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: 100%;
    z-index: 10;
    bottom: 10px;
}

.callActionButtons button {
    position: relative;
    cursor: pointer;
    right: 0;
    margin-right:5px;
    background-color: rgb(158, 158, 158);
    border-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.75;
    letter-spacing: 0.02857em;
    text-transform: uppercase;
    min-height: 36px;
    border-radius: 50%;
    padding: 0;
    min-width: 0;
    width: 56px;
    height: 56px;
    text-decoration: none;
    box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12);
    color: rgba(0, 0, 0, 0.87);
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}

.callActionButtons button svg, .changeLanguage svg {
    color: white;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    display: inline-block;
    transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; font-size: 1.5rem;
}

.callActionButtons button svg path {
    fill: currentColor;
    font-size: 1.5rem;
}

.changeLanguage svg path {
    fill: grey;
    font-size: 1.5rem;
}

button.hangup {
    background-color: rgb(244, 67, 54);
}

.loader {
    margin: auto;
    border: 20px solid #EAF0F6;
    border-radius: 50%;
    border-top: 20px solid #FF7A59;
    width: 75px;
    height: 75px;
    animation: spinner 2s linear infinite;
}
  
.changeLanguage {
    position: absolute;
    align-self: center;
    bottom: 0;
    width: 100%;
}

@keyframes spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dottyText:after {
    display: inline-block;
    animation: dotty steps(1,end) 1s infinite;
    content: '';
}

@keyframes dotty {
    0%  { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100%{ content: ''; }
}

@-webkit-keyframes dotty {
    0%  { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100%{ content: ''; }
}