/*
    micro-MVC

    File name: main.css
    Description: This file contains the main CSS.

    Coded by George Delaportas (G0D)
    Copyright (C) 2015 - 2025
    Open Software License (OSL 3.0)
*/

body
{
    font: 15px Verdana;
    color: white;
    background: #141318;
    cursor: default;
    margin: 10px;
    padding: 0px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

a
{
    color: #878787;
    font-weight: normal;
}

input[type="button"]
{
    cursor: pointer;
    width: 100px;
    height: 25px;
    margin-top: 10px;
}

input[type="text"]
{
    background-color: #ceffff;
    min-width: 180px;
    height: 26px;
    border: solid 1px #ffffff;
    border-radius: 4px;
}

optgroup
{
    text-transform: uppercase;
}

option
{
    text-transform: none;
}

#main
{
    text-align: justify;
    height: 100%;
    min-width: 340px;
    max-width: 960px;
    margin: auto;
    padding: 4px;
}

#footer
{
    font-size: 12px;
    text-align: right;
    color: #878787;
    margin-top: 10px;
    margin-bottom: 15px;
    padding-top: 10px;
}

#languages
{
    float: right;
    clear: both;
    color: #424242;
}

#languages a
{
    color: #878787;
    text-decoration: none;
}

#err_404, #err_ext
{
    min-height: 509px;
}

#all_elements
{
    float: none;
    clear: both;
    height: 210px;
}

#live_data
{
    background-color: #0e0d10;
    width: 100%;
    height: 780px;
    overflow: hidden;
    overflow-y: auto;
}

.dynamic_record
{
    background-color: #0c2c46;
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
}

.snapshot
{
    float: left;
    clear: left; 
    height: 100%;
}

.snapshot img
{
    height: inherit;
}

.details
{
    float: left;
    clear: right;
    padding: 20px;
}

.date_time
{
    color: chartreuse;
    width: 100%;
    height: 25px;
}

.alert
{
    font-weight: bold;
    font-size: 22px;
    margin-top: 10px;
}

#camera, #canvas, #ai_stream
{
    width: 80%;
    height: auto;
    border-radius: 4px;
    border: solid 1px #99a5a9;
    margin: auto;
}

#camera, #ai_stream
{
    min-height: 341px;
}

.cam_hidden
{
    visibility: hidden;
    width: 0px !important;
    height: 0px !important;
    min-height: 0px !important;
}

#canvas
{
    display: none;
    width: 640px;
    height: 480px;
}

#ai_stream
{
    display: none;
}

.logo
{
    width: 30%;
    margin-bottom: 10px;
}

.logo img
{
    height: auto;
    margin-top: 30px;
}

.motto
{
    font-weight: bold;
    text-align: center;
    font-size: 22px;
    color: #A7A7A7;
    width: 30%;
    margin-left: -55px;
}

.active_language
{
    color: #c7ff22 !important;
}

.page
{
    clear: both;
    color: #ffffff;
    background-color: #16191c;
    text-align: center;
    min-height: 70vh;
    border-radius: 4px;
    margin-top: 50px;
    padding: 10px;
}

.button
{
    
    -moz-transition: background .25s ease-in-out;
    -webkit-transition: background .25s ease-in-out;
    transition: background .25s ease-in-out;
}

.button:hover
{
    color: #a3a3a3;
    background-color: #292f31;
    -moz-transition: background .25s ease-in-out;
    -webkit-transition: background .25s ease-in-out;
    transition: background .25s ease-in-out;
}

.control_item
{
    clear: both;
    margin-bottom: 10px;
}

.button
{
    font-size: 14px;
    color: #848484;
    background-color: #2e3132;
    text-decoration: none;
    border: solid 1px #4c5458;
    border-radius: 4px;
    cursor: pointer;
    width: 130px;
    height: 38px;
    padding: 6px;
}

.button_alt
{
    min-width: 177px;
}

.text
{
    font-size: 14px;
    color: #424242;
    background-color: #F7F7F7;
    border: solid 1px #22ff9b;
    border-radius: 4px;
    width: 186px;
    padding: 6px;
}

.inactive
{
    background-color: #C8C8C8;
    cursor: not-allowed;
}

.error
{
    background-color: #FFD1D1;
    color: #B94D6F;
    font-weight: bold;
    text-align: center;
    height: auto;
    min-height: auto;
    padding: 100px;
}

.note
{
    color: #000000;
    background-color: #ffc600;
    width: 76.8%;
    height: 20px;
    border: 1px #bdbdbd solid;
    border-radius: 4px;
    margin: 12px auto auto auto;
    padding: 10px;
}

.footer_copyright
{
    float: none;
    text-align: center;
}

@media only screen and (max-device-width: 572px) and (orientation: portrait)
{
    body
    {
        font-size: 10px;
    }

    #main
    {
        max-width: 100%;
        min-width: auto;
    }

    #left_elements
    {
        clear: both;
        width: 100%;
    }

    #right_elements
    {
        float: left;
        clear: both;
        width: 100%;
    }

    #file_input
    {
        width: 245px;
        min-width: 0px;
    }

    #footer
    {
        margin-top: 0px;
    }

    .logo img
    {
        margin-top: 0px;
    }

    .motto
    {
        font-size: 9px;
        margin-left: -29px;
    }

    .page
    {
        min-height: 0px;
    }

    .controls
    {
        margin-top: 0px;
    }

    .control_item
    {
        margin-bottom: 10px !important;
    }

    .button
    {
        font-size: 10px;
        width: 264px;
        padding: 8px;
    }

    .button_alt
    {
        width: 264px;
        padding: 8px;
    }

    .text
    {
        font-size: 10px;
        width: 250px;
        padding: 2px;
    }

    .note
    {
        height: 12px;
        width: 75%;
    }
}
