body,
html {
    background-color: black;
    margin: 0px;
    width: 100%;
    height: 100%;
    padding: 0px;
    overflow: hidden;
    position: absolute;
}

/* Кнопки управления камерой */

#controls-container {
    position: absolute;
    width: 90%;
    height: auto;
    padding: 2%;
    top: 2%;
    background-color: #00000052;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    opacity: 0.7;
}

label,
div {
    font-family: monospace;
    font-size: x-large;
    color: white;
}

select {
    background-color: black;
    font-family: monospace;
    font-size: x-large;
    color: white;
    padding-left: 1em;
    width: 65%;
    margin: 1%;
}

#control-buttons {
    display: flex;
    position: absolute;
    width: 20%;
    height: 1.5em;
    top: 50%;
    transform: translateY(-50%);
    right: 2%;
}

.control-button {
    width: 100%;
    height: 100%;
    background-color: #ffffffa4;
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center center;
}

.control-button:hover {
    background-size: auto 110%;
    background-color: #ffffffd2;
}

.control-button:active {
    filter: invert(1);
}

#rotate-left-button {
    background-image: url(./img/rotate-left.png);
}

#rotate-right-button {
    background-image: url(./img/rotate-right.png);
}

#horizontal-invert-button {
    background-image: url(./img/horizontal-invert.png);
}

#vertical-invert-button {
    background-image: url(./img/vertical-invert.png);
}

/* Входящее видео */

#incoming-video-container {
    position: absolute;
    width: 50%;
    height: 50%;
    margin: 0px;
    padding: 0px;
    display: flex;
    justify-content: center;
    border-radius: 50%;
    align-items: center;
    overflow: hidden;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#incoming-video {
    height: 100%;
    width: auto;
}

/* Видео с фронтальной камеры */
#self-video-container {
    width: 50%;
    background: black;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#self-video {
    height: 100%;
    width: auto;
}

#call-button {
    position: absolute;
    bottom: 13%;
    left: 46%;
    width: 12%;
    height: 17%;
    background-image: url('./img/accept.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    display: none;
    cursor: pointer;
}

#call-button__incoming-video {
    position: absolute;
    bottom: 10%;
    left: 40%;
    width: 23%;
    height: 30%;
    background: url('./img/bigdecline.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    display: none;
    cursor: pointer;
}

#call-type-select {
    position: absolute;

    left: 50%;
    bottom: 30%;

    font-size: 2rem;
    transform: translateX(-50%);
}

#call-type-select input {
    height: 20px;
    width: 20px;
}

#call-button.show {
    display: block;
}

#call-button.call {
    position: absolute;
    bottom: 10%;
    left: 40%;
    width: 23%;
    height: 30%;
    background-image: url('./img/bigdecline.png');
}

#hide-video {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #aabbcc;
    display: none;
}

#hide-video.show {
    display: block;
}

/* Сообщения */

#message-container {
    margin: 0px;
    position: absolute;
    bottom: 2%;
    left: 22%;
    width: 40%;
    height: auto;
    max-height: 10%;
    transform: translateX(-50%);
    background-color: #00000052;
    padding: 2%;
    display: none;
    overflow-y: scroll;
    overflow-x: hidden;
}

#message-container.show {
    display: block;
}

#message {
    color: white;
    font-family: monospace;
    font-size: large;
    opacity: 0.7;
}

#message.warn {
    color: orange;
}

#message.error {
    color: firebrick;
    opacity: 1;
}

.move-center-image#self-video-container {
    width: 17%;
    left: 25%;
    top: 55%;
}

.move-center-image {
    transition: all 0.6s ease;
}
