@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', Arial;
}

body {
    margin: 0;
    height: 100%; 
    display: flex;
    justify-content: center; 
    align-items: flex-start; 
    flex-direction: column; 
    overflow-x: hidden; 
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/FIM-2.jpg'); 
    background-size: cover;
    background-position: center;
    opacity: 0.5; 
    z-index: -1; 
}

main {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    width: 100%;
    height: 100vh; 
    padding: 20px; 
    box-sizing: border-box;
    overflow-y: auto; 
}

.content{
    background-color: #ffffff;
    width: 95%;
    border-radius: .5em;
    box-shadow: 0 0 5px #585858;
}

.logo-text{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1em 0;
}

.logo-text img{
    width: 50px;
    padding-left: 1em;
    padding-right: 1em;
}

.logo-text .text{
    font-size: calc(5px + 0.5vw);
    text-align: start;
    width: 80%;
}

.btn-E-S{
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-E-S .link{
    display: flex;
    flex-direction: column;
    height: 60%;
    justify-content: space-between;
}

.link a{
    text-decoration: none;
    color: #ffffff;
    background-color: #0A68B1;
    font-weight: bold;
    padding: 1em 5em;
    border-radius: .3em;
}

.img-scaner img{
    padding-top: 2em;
}

#video {
    height: 500px;
    width: 80%;
    object-fit: cover;
    border: 2px solid #333;
    border-radius: .5em;
}

#toggleCamera, #botonEntrada, #botonSalida {
    background-color: #0A68B1;
    color: #fff;
    border: none;
    margin-top: 1em;
    padding: .5em 2em;
    border-radius: .2em;
}

.content i{
    font-size: 10em;
    padding-top: 2em;
}

.content .green-ico{
    color: #25D366;
}

.content .red-ico{
    color: #FF3E3E;
}

.mensj{
    font-size: 1em;
    font-weight: bold;
    padding: 2em 0;
}

@media screen and (min-width: 800px) {
    .content{
        display: none;
    }    
}

