@font-face {
    font-family: 'Omnes';
    src: url('../fonts/Omnes-Regular.woff2') format('woff2'),
        url('../fonts/Omnes-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Omnes';
    src: url('../fonts/Omnes-Medium.woff2') format('woff2'),
        url('../fonts/Omnes-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Omnes';
    src: url('../fonts/Omnes-Light.woff2') format('woff2'),
        url('../fonts/Omnes-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Omnes';
    src: url('../fonts/Omnes-Bold.woff2') format('woff2'),
        url('../fonts/Omnes-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Courier';
    src: url('../fonts/Courier.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}


* {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    /* make transparent link selection, adjust last value opacity 0 to 1.0 */
}

body {
    -webkit-touch-callout: none;
    /* prevent callout to copy image, etc when tap to hold */
    -webkit-text-size-adjust: none;
    /* prevent webkit from resizing text to fit */
    -webkit-user-select: none;
    /* prevent copy paste, to allow, change 'none' to 'text' */
    user-select: none;
    /* background-color: #282828; */
    font-family: 'Omnes';
    font-size: 18px;
    height: 100%;
    margin: 0px;
    padding: 0px;
    width: 100%;
    color: #FFF;
    font-weight: normal;
    font-style: normal;
    /* transform-origin: 0px 0px; 
    transform: scale(0.5); */
}

#app{
    width: auto;
    height: auto;
}

/* Portrait layout (default) */
.app {
    background: url(../img/logo.png) no-repeat center top;
    /* 170px x 200px */
    position: absolute;
    /* position in the center of the screen */
    left: 50%;
    top: 50%;
    height: 50px;
    /* text area height */
    width: 225px;
    /* text area width */
    text-align: center;
    padding: 180px 0px 0px 0px;
    /* image height is 200px (bottom 20px are overlapped with text) */
    margin: -115px 0px 0px -112px;
    /* offset vertical: half of image height and text area height */
    /* offset horizontal: half of text area width */
}

/* Landscape layout (with min-width) */
@media screen and (min-aspect-ratio: 1/1) and (min-width:400px) {
    .app {
        background-position: left center;
        padding: 75px 0px 75px 170px;
        /* padding-top + padding-bottom + text area = image height */
        margin: -90px 0px 0px -198px;
        /* offset vertical: half of image height */
        /* offset horizontal: half of image width and text area width */
    }
}

h1 {
    font-size: 24px;
    font-weight: normal;
    margin: 0px;
    overflow: visible;
    padding: 0px;
    text-align: center;
}

.event {
    border-radius: 4px;
    -webkit-border-radius: 4px;
    color: #FFFFFF;
    font-size: 12px;
    margin: 0px 30px;
    padding: 2px 0px;
}

.event.listening {
    background-color: #333333;
    display: block;
    font-size: 24px;
}

.event.received {
    background-color: #4B946A;
    display: none;
    font-size: 24px;
}

@keyframes fade {
    from {
        opacity: 1.0;
    }

    50% {
        opacity: 0.4;
    }

    to {
        opacity: 1.0;
    }
}

@-webkit-keyframes fade {
    from {
        opacity: 1.0;
    }

    50% {
        opacity: 0.4;
    }

    to {
        opacity: 1.0;
    }
}

.blink {
    animation: fade 3000ms infinite;
    -webkit-animation: fade 3000ms infinite;
}

#info {
    font-size: 24px;
}

@media (orientation: landscape) {
    #app_fondo {
        background-image: url("../img/fondo_madmanager_horizontal.jpg");
        background-size: cover;
        width: 100%;
        height: 100%;
        position: absolute;
    }
}

@media (orientation: portrait) {
    #app_fondo {
        background-image: url("../img/fondo_madmanager_vertical_.jpg");
        background-size: cover;
        width: 100%;
        height: 100%;
        position: absolute;
    }
}

#contenedor {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#logo {
    margin: auto;
    width: 450px;
    height: auto;
    margin-bottom: 30px;
}

#info {
    width: 90%;
    text-align: center;
    margin: auto;
}

#codigo {
    width: 400px;
    background-color: rgba(0, 0, 0, 0.8);
    /* padding: 10px; */
    margin: 20px auto;
    text-align: center;
    font-size: 78px;
    font-family: Courier;
    font-weight: 300;
}

#descarga {
    text-align: center;
    background: rgba(0,0,0,0.7);
    margin-top: 10px;
    padding: 20px;
}

.descargas_nombres{
    font-size: 14px;
    color: white;
}

#message{
    font-size: 18px;
    color: lightgreen;
    margin: 20px;
    background: rgba(0,0,0,0.5);
    padding: 20px;
    font-weight: 500;
    width: fit-content;
    position: absolute;
    bottom: 0px;
}

.offline{
    width: 15px;
    height: 15px;
    background-color: red;
    border-radius: 50%;
    border: 2px solid white;
    position: absolute;
    top: 10px;
    left: 10px;
    display: none;
    z-index: 9999;
}

.system_info{
    font-size: 18px;
    color: lightgreen;
    margin: 20px;
    background: rgba(0,0,0,0.7);
    padding: 20px;
    font-weight: 500;
    width: fit-content;
    position: absolute;
    top: 20px;
    display: none;
    z-index: 9999;
}
.wifi_strength{
    width: 0px;
    height: 10px;
    background-color: lightgreen;
}

.wifi_bar_container{
    width: 100px;
    height: 10px;
    border: 1px solid lightslategray;
    margin-top:5px;
}