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

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

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

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

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);
}

/* Камера */

#camera-conteiner {
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#camera {
    width: auto;
    height: 100%;
    position: absolute;
}

#camera.vertical {
    transform: rotate(90deg);
}

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

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

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

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

#message.warn {
    color:orange;
}

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

/* Статус загрузки детекторов */

#detectors-loding-status-conteiner {
    position: absolute;
    background-color: #00000052;
    width: 90%;
    height: auto;
    left: 3%;
    padding: 2%;
    opacity: .7;
}

.loading:after {
    overflow: hidden;
    display: inline-block;
    vertical-align: bottom;   
    animation: ellipsis steps(4,end) 900ms infinite;
    content: "\2026"; /* ascii code for the ellipsis character */
    width: 0px;
}

.loaded:before {
    content: "\2714";
    color: white; 
    padding-left: 10px;
}

.face-detect-status {
    border-radius: 50%;
    background-color: red;
    width: 20px;
    height: 20px;
    margin-left: 20px;
}

#recognize-switch-button {
    background-image: url('./img/eye-view.png');
    width: 58px;
    height: 40px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

/* Добавление фото для расчёта дескрипторов */

#add-photo-conteiner {
    position: absolute;
    background-color: #00000052;
    width: 90%;
    height: auto;
    left: 3%;
    padding: 2%;
    opacity: .7;
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
}

#add-photo-button {
    font-family: monospace;
    font-size: large;
    background-color: black;
    font-family: monospace;
    color: white;
}

#user-name {
    margin-right: 1.5em;
    width: 100%;
    padding-left: 1em;
    background-color: black;
    font-family: monospace;
    font-size: x-large;
    color: white;
}


#canvas {
    pointer-events: none;
    z-index: 1;
}

@keyframes ellipsis {
    to {
        width: 20px;    
    }
}