:root {
    --colour-background: rgba(211, 224, 252, 1);
    width: 100%;
    height: 100%;
    font-size: 1.2vh;
}

[hidden] {
    display: none !important;
}

body {
    overflow: hidden;
    margin: 0;
    width: 100%;
    height: 100%;
}

*, *:before, *:after {
    box-sizing: border-box;
}

#room {
    border: black 5px solid;
    position: absolute;
    background: linear-gradient(to right, grey 1px, transparent 1px),
    linear-gradient(to bottom, grey 1px, transparent 1px);
    background-size: 500px 500px;
}

.peer-other {
    position: absolute;
    z-index: -1;
}

.peer-myself {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 1;
}

.video-wrapper {
    border: black 2px solid;
    border-radius: 50%;
    overflow: hidden;
}

.video-wrapper video {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transform: scaleX(-1);
}

.under-wrapper video {
    transform: translateX(-50%);
}

.header-container {
    position: fixed;
    background-color: var(--colour-background);
    width: 100%;
    z-index: 10;
}

.header {
    display: flex;
    justify-content: space-between;
}

.header-title {
    font-size: 2.5rem;
    display: flex;
}

.header > * {
    margin-left: 1rem;
    margin-right: 1rem;
}

.header-settings {
    display: flex;
}

.header-settings > *, .header-title > * {
    margin: auto 1.5rem;
}

.round-button {
    width: 2rem;
    height: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.room-container {
    position: fixed;
    left: 50%;
    top: 50%;
}

.overlay {
    width: 100%;
    height: 100%;
    backdrop-filter: blur(2px);
    position: fixed;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay-content {
    background: var(--colour-background);
    padding: 3rem;
    font-size: 1.7rem;
}

.header .material-icons {
    font-size: 2.5rem;
}

select {
    font-size: 1rem;
}


.connection-status {
    margin-top: 2rem;
}

.connection-status > div {display: list-item;}

.connection-status > div > div {
    display: inline;
}