/* generic layout */
body {
    background-color: #fafafa;
}

.container-intro {
    background-image: url('../immagini/background/angel-bridge.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    height: 100%;
}

.container-main {
    width: 90vw;
    background-color: white;
}

.container-footer {
    margin-top: auto; 
    background-color: #dc3545;
}

.card-login {
    background-color: rgba(255, 255, 255, 0.9);
}

hr {
    background-color: #dc3545;
    height: 2px;
}

.lbl-info {
    border: none;
    font-weight: bold;
    background-color: transparent;
    text-shadow: 0px 0px 10px white;
}

.loading-app, .view-form, .view-avvio {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
}

/* shadow controllers */
.form-control:focus, .form-select:focus, .btn-close {
    box-shadow: 1px 1px 1px rgb(220, 53, 69) inset, 1px 1px 4px rgb(220, 53, 69);
}

/* navbar */
a.navbar-brand {
    color: #dc3545;
}

a.navbar-brand:hover {
    color: #dc3545;
}

.text-navbar {
    color: #fafafa;
}

.text-navbar:hover {
    color: #dc3545;
}

.nav-tab, .nav-tab:hover {
    color: #fff;
}

/* button */
.btnHelp, .btnDescrizione {
    padding: 0px 0px 0px 0px;
    border: none;
}

/* list */
.list-group-item {
    width: 90vw;
}

#drop-dispositivi, .dropdown-menu, .dropdown-menu > .list-group > .list-group-item {
    width: 80vw;
}

/* images */
.icon-centered {
    vertical-align: middle;
    text-align: center;
}

.img-thumbnail {
    width: 30%;
}

/* navigation */
.page-link {
    cursor: pointer;
}

/* modal */
.modal-header, .modal-footer {
    background-color: #fafafa;
}

li.automazione{
    transition: all 0.1s ease-in-out;
}

li.automazione:hover{
    transform: scale(1.02);
}

.scenario{
    animation: scenarioAppears 1s linear;
    transition: all 0.1s ease-in-out;
}

.scenario:hover{
    transform: scale(1.02);
}

.scenarioAllarme {
    animation: scenarioAllarme 1s ease-in-out infinite;
}

@keyframes scenarioAllarme {
    0% { box-shadow: 0px 0px 5px 1px transparent; }
    50% { box-shadow: 0px 0px 5px 3px red; }
    0% { box-shadow: 0px 0px 5px 1px transparent; }
}

@keyframes scenarioAppears {
    0% { box-shadow: 0px 0px 5px 1px transparent; transform: scale(1);}
    50% { box-shadow: 0px 0px 5px 3px yellow; transform: scale(1.01); }
    100% { box-shadow: 0px 0px 5px 1px transparent; transform: scale(1); }
}