* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "segoe ui", roboto, oxygen, ubuntu, cantarell, "fira sans", "droid sans", "helvetica neue", Arial, sans-serif;
    font-size: 16px;
}

/* media query */

@media screen and (max-width: 767px) { 
    .boxListCont {
        flex-direction: column !important;
    }

    .listCont {
        align-items: center !important;
        width: 100% !important;
        padding: 0px !important;
        padding-top: 4px !important;
        height: auto !important;
    }

    .contBtnAdmin {
        justify-content: center !important;
    }

    #titleMachines {
        text-align: center;
        margin-left: -25px !important;
    }

    #headerDashboardMachine {
        width: 90% !important;
    }

    #contDashboardMachine {
        width: 100% !important;
    }

    #containerData {
        display: flex !important;
        flex-direction: column !important;
    }

    .itemData {
        width: 90% !important;
    }

    .containerForm {
        width: 90% !important;
    }

    #input {
        width: 100% !important;
    }

    #buttonFormSendData {
        margin-top: 15px;
    }

    #contLoginPage {
        height: 100vh;
        display: flex;
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
    }

    #contLogoLogin {
        width: 300px !important;
    }

    #contImage {
        width: 100%;
        height: 100%;
        flex: 4 !important;
    }

    #contLoginForm {
        flex: 2 !important;
        padding-bottom: 90px !important;
    }

    .login {
        width: 350px !important;
    }

    .login form input[type="password"], .login form input[type="text"] {
        width: 260px !important;
    }

    #contImage {
        background-image: none !important;
        margin-top: 100px !important;
    }

    #ElettrodataFirm {
        font-size: 19px !important;
    }

    .background-image-login {
        background-image: url("images/background-login.jpg");
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .graphContainer {
        width: auto !important;
    }

    #foo {
        width: 275px !important;
        height: 150px !important;
    }

    .btnAdmin {
        width: 43px !important;
        font-size: 0.7rem !important;
        padding: 5px !important;
    }

    .btnLogOut {
        padding: 5px !important;
        margin: 20px;
    }

    .logOutCont {
        justify-content: center !important;
        border-top: 1px solid white;
        margin-top: 20px;
    }

    .contBtnHeader {
        margin: 0px !important;
    }

    .chartDivHeight {
        height: 250px !important;
    }

    .gaugeCanvasElement {
        width: 350px;
        height: 220px;
    }

    #gaugeLabel {
        display: flex;
        justify-content: center;
    }
    
    #gaugeMiddleLabel {
        width: 45% !important;
    }

    #barMenu {
        display: block !important;
        position: fixed;
        right: 0;
        top: 20px;
        margin-right: 15px;
        font-size: 24px;
        z-index: 1100;
    }

    #contSelChart {
        justify-content: center !important;
        align-items: center !important;
    }

    #mainCont {
        width: 100%;
        margin-top: 80px;
        display: flex;
        flex-direction: column !important;
    }

    .home {    
        height: 80px !important;
    }

    .textOfflineMessage {
        font-size: 18px !important;
    }

    #contDateTimePicker {
        flex-direction: column !important;
    }
}

@media screen and (min-width: 768px) { 
    .listCont {
        position: fixed !important;
        overflow-y: auto;
    }

    #contDashboardMachine {
        position: relative;
    }
}

@media screen and (min-width: 768px) and (max-width: 1180px) {  
    #contImage {
        flex: 2 !important;
    }

    .itemData {
        width: 200px !important;
        height: 200px !important;
    }

    .listCont {
        width: 35% !important;
    }

    #contDashboardMachine {
        width: 65% !important;
        left: 35% !important;;
    }

    #headerDashboardMachine {
        width: 92% !important;
    }

    .ring-container {
        width: 50px !important;
    }

    .itemText {
        width: 125px !important;
        font-size: 20px !important;
    }

    .chartContainer {
        width: auto !important;
    }

    .alarmContainer {
        width: auto !important;
        flex-direction: column !important;
    }

    .alarmCont {
        flex-direction: column !important;
    }

    .chartDivHeight {
        height: 400px !important;
    }

    .gaugeContainer {
        width: auto !important;
    }

    .gaugeCanvasElement {
        width: 350px;
        height: 80px !important;
    }

    .itemDataValue {
        font-size: 28px !important;
    }

    .containerForm {
        width: 200px !important;
        height: 200px !important;
    }

    .btnCmdCont {
        flex-direction: column !important;
    }

    .form-control {
        width: 100% !important;
        margin: 5px !important;
    }

    #barMenu {
        display: none;
    }

    .textLeftButtons {
        width: 90% !important;
    }

    .fontTextMenu {
        font-size: 20px !important;
    }
}

@media screen and (min-width: 1023px) and (max-width: 1180px) { 
    .listCont {
        width: 25% !important;
    }

    #contDashboardMachine {
        width: 75% !important;
        left: 25% !important;
    }
}

@media screen and (min-width: 1181px) and (max-width: 1400px) { 
    .listCont {
        width: 25% !important;
    }

    #contDashboardMachine {
        width: 75% !important;
        left: 25% !important;
    }
}

body {
    width: 100%;
    height: 100%;
    background-color: #d3d3d3;
}

/* login */

.login {
    width: 400px;
    background-color: #ffffff;
    box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);
    margin: 100px auto;
    border-radius: 15px;
}
.login h1 {
    text-align: center;
    color: #5b6574;
    font-size: 24px;
    padding: 20px 0 20px 0;
    border-bottom: 1px solid #dee0e4;
}
.login form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 20px;
}
.login form label {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #3274d6;
    color: #ffffff;
    border-radius: 50%;
    margin-right: 15px;
}
.login form input[type="password"], .login form input[type="text"] {
    width: 310px;
    height: 50px;
    border: 1px solid #dee0e4;
    margin-bottom: 20px;
    padding: 0 15px;
    border-radius: 15px;
}
.login form input[type="submit"] {
    width: 100%;
    padding: 15px;
   margin-top: 20px;
    background-color: #3274d6;
    border: 0;
    cursor: pointer;
    font-weight: bold;
    color: #ffffff;
    transition: background-color 0.2s;
}
.login form input[type="submit"]:hover {
  background-color: #2868c7;
    transition: background-color 0.2s;
}

#inputLoginBtn {
    margin: 20px;
    width: 40%;
    border-radius: 15px;
}

#contLoginPage {
    height: 100vh;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#contImage {
    height: 100%;
    flex: 4;
    background-image: url("images/background-login.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#contLoginForm {
    flex: 2;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#ElettrodataFirm {
    font-weight: bold;
    font-size: 24px;
    color: white;
}

#contLogoLogin {
    width: 400px;
    height: 90px;
    background-image: url("images/logo/Elettrodata.png");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

/* Home */

.hidden {
    display: none;
}

.home {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: #4b7ac0;
    padding: 15px 0px;
    position: fixed;
    z-index: 1000;
}

.userHome {
    width: 100%;
    margin-left: 15px;
    color: white;
    display: flex;
    flex-direction: row;
}

#contUserImage {
    width: 180px;
    height: 50px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: fixed;
    left: 50%;
    margin-left: -90px;
    margin-top: 15px;
    z-index: 1050;
}

.logOutCont {
    width: 240px;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}

#mainCont {
    width: 100%;
    margin-top: 77px;
    display: flex;
    flex-direction: row;
}

.boxListCont {
    width: 100%;
    /* height: 100vh; */
    display: flex;
    flex-direction: row;
}

.listCont {
    width: 20%;
    height: 91.4%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    border-right: 2px solid lightskyblue;
    box-shadow: 7px 7px 7px rgb(128 128 128 / 51%);
    padding: 20px;
    background: #1E1E1E;
    color: white;
}

#containerBtnAdmins {
    /* width: 100%; */
    margin-top: 20px;
    /* margin-left: 0px; */
}

.itemBox {
    width: 240px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.itemText {
    width: 180px;
    font-size: 20px;
}

.marginClass {
    margin: 20px 0px;
}

.headerCustomerText {
    font-size: 22px;
    font-weight: bold;
}

.contBtnHeader {
    margin-right: 15px; 
    display: flex;
}

.contBtnHeader form {
    margin: 0 10px;
}

#barMenu {
    display: none;
}

.logoEnterButton {
    background-image: url("images/icons/enter.png");
    background-size: contain;
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
}

.contBtnAdmin {
    width: 240px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20px;
}

#contBtnAdmins {
    width: 100%;
    border-top: 1px solid white;
}

.textLeftButtons {
    width: 100%;
}

#contBtnLogOut {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.fontTextMenu {
    font-size: 20px;
}

/* Dashboard data */

#contDashboardMachine {
    width: 80%;
    display: flex;
    flex-direction: column;
    left: 20%;
}

#containerData {
    width: 100%;
}

.divItemData {
    width: 250px;
    height: 200px;
    float: left;
}

.itemData {
    width: 290px;
    height: 230px;
    margin: 20px;
    padding: 20px;
    border: 2px solid lightskyblue;
    border-radius: 15px;
    background-color: #fff;
    box-shadow: 7px 7px 7px rgb(128 128 128 / 51%);
    text-align: center;
    float: left;
}

.containerForm {
    width: 290px;
    height: 230px;
    margin: 20px;
    padding: 20px;
    border: 2px solid lightskyblue;
    border-radius: 15px;
    background-color: #fff;
    box-shadow: 7px 7px 7px rgb(128 128 128 / 51%);
    text-align: center;
    float: left;
}

.headerBoxData {
    width: 100%;
    text-align: center;
    font-weight: bold;
}

#headerDashboardMachine {
    width: 97%;
    margin: 20px;
    padding: 20px;
    border-bottom: 2px solid grey;
    display: none;
}

#nameMachine {
    font-size: 24px;
    font-weight: bold;
}

#contNameActiveMachine {
    width: 100%;
    text-align: center;
    padding: 15px;
    font-weight: bold;
    font-size: 24px;
    color: #fa4591;
    background-color: #1E1E1E;
}

.iconDesktop {
    position: relative;
    color: #6C757D;
    top: 5px;
}

.itemDataTitle {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    border-bottom: 1px solid grey;
    padding-bottom: 5px;
}

.itemDataText {
    width: 100%;
    font-size: 18px;
    font-weight: bold;
    padding-left: 10px;
}

.itemFormText {
    font-size: 18px;
    font-weight: bold;
}

.itemDataValue {
    font-size: 36px;
    color: grey;
    height: 52%;
    display: flex;
    flex-flow: row;
    justify-content: center;
    align-items: center;
}

.itemDataUm {
    margin-top: 15px;
    margin-left: 5px;
    font-size: 18px;
}

.formAdmin {
    display: inline-block;
}

.chartContainer {
    margin: 20px;
    padding: 20px;
    border: 2px solid lightskyblue;
    border-radius: 15px;
    background-color: #fff;
    box-shadow: 7px 7px 7px rgb(128 128 128 / 51%);
}

.alarmContainer {
    display: flex;
    flex-direction: column;
    margin: 20px;
    padding: 20px;
    border: 2px solid lightskyblue;
    border-radius: 15px;
    background-color: #fff;
    box-shadow: 7px 7px 7px rgb(128 128 128 / 51%);
}

.alarmCont {
    display: flex;
    flex-direction: row;
}

.alarmitem {
    padding: 5px;
}

.chartDivHeight {
    height: 400px;
}

.liveDataChart {
    font-weight: normal !important;
}

.gaugeCanvasElement {
    width: 200px;
    height: 120px;
}

#gaugeLabel {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: -10px;
}

.boxGaugeOffline {
    align-items: center;
    height: 120px;
}

#gaugeMiddleLabel {
    width: 55%;
}

.iconTitleBox {
    width: 48px;
    height: 48px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border-right: 1px solid lightgrey;
}

.btnCmdCont {
    width: 100%;
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#contSelChart {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
}

.contThermoLastUpdate {
    display: flex;
    flex-direction: row;
}

.lastUpdateThermo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    margin-top: 40px;
    margin-left: 160px;
}

.btnCancelChartCont {
    display: flex;
    width: 10%;
    justify-content: flex-end;
    align-items: flex-end;
}

.textAboveChart {
    width: 20%;
}

/* Admin */

#headerPageAdmin {
    width: 100%;
    display: flex;
    flex-direction: row;
    padding: 15px;
}

#contTable {
    padding: 20px;
}

.margin5px {
    margin: 5px;
}

#tableEditDashboard {
    background-color: white;
    width: 94%;
    margin: 35px;
}   

.lastUpdateText {
    font-size: 12px;
    color: rgb(180, 180, 180);
}

.lastUpdateGauge {
    margin-top: -30px;
}

#contOfflineMessage {
    margin: 20px;
    margin-bottom: 0px;
    padding: 20px;
    border: 2px solid lightskyblue;
    border-radius: 15px;
    background-color: #fff;
}

.textOfflineMessage {
    font-size: 22px;
    text-align: center;
    line-height: 25px;
}

.greyBackground {
    opacity: 0.6;
}

#contDateTimePicker {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.contTimePicker {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.contTimePicker p {
    margin-bottom: 0px !important;
}

.inputStyle {
    width: 120px;
    text-align: center;
}

#contInfoIsLive {
    display: flex;
    flex-direction: row;
}

#enableChartLive {
    position: relative;
    margin-top: 10px;
    margin-left: 10px;
}

/* Buttons */

.btnLogOut {
    border: 0;
    line-height: 2.5;
    padding: 0 20px;
    font-size: 1rem;
    text-align: center;
    color: #fff;
    text-shadow: 1px 1px 1px #000;
    border-radius: 5px;
    background-color: rgba(220, 0, 0, 1);
    background-image: linear-gradient(to top left,
                                      rgba(0, 0, 0, .2),
                                      rgba(0, 0, 0, .2) 30%,
                                      rgba(0, 0, 0, 0));
    box-shadow: inset 2px 2px 3px rgba(255, 255, 255, .6),
                inset -2px -2px 3px rgba(0, 0, 0, .6);
}

.btnLogOut:hover {
    cursor: pointer;
    background-color: rgba(255, 0, 0, 1);
}

.btnLogOut:active {
    box-shadow: inset -2px -2px 3px rgba(255, 255, 255, .6),
                inset 2px 2px 3px rgba(0, 0, 0, .6);
}

.btnList {
    border: 0;
    line-height: 2.5;
    padding: 0 20px;
    font-size: 1rem;
    text-align: center;
    color: #fff;
    text-shadow: 1px 1px 1px #000;
    border-radius: 5px;
    background-color: #6C757D;
    background-image: linear-gradient(to top left,
                                      rgba(0, 0, 0, .2),
                                      rgba(0, 0, 0, .2) 30%,
                                      rgba(0, 0, 0, 0));
    box-shadow: inset 2px 2px 3px rgba(255, 255, 255, .6),
                inset -2px -2px 3px rgba(0, 0, 0, .6);
}

.btnList:hover {
    cursor: pointer;
    background-color: #5A6268;
}

.btnList:active {
    box-shadow: inset -2px -2px 3px rgba(255, 255, 255, .6),
                inset 2px 2px 3px rgba(0, 0, 0, .6);
}

.btnView {
    width: 80px;
    border: 0;
    line-height: 2.5;
    padding: 0 20px;
    font-size: 1rem;
    text-align: center;
    color: #fff;
    text-shadow: 1px 1px 1px #000;
    border-radius: 5px;
    background-color: rgba(0, 123, 256, 1);
    background-image: linear-gradient(to top left,
                                      rgba(0, 0, 0, .2),
                                      rgba(0, 0, 0, .2) 30%,
                                      rgba(0, 0, 0, 0));
    box-shadow: inset 2px 2px 3px rgba(255, 255, 255, .6),
                inset -2px -2px 3px rgba(0, 0, 0, .6);
}

.btnView:hover {
    cursor: pointer;
    background-color: rgba(0, 123, 256, 1);
}

.btnView:active {
    box-shadow: inset -2px -2px 3px rgba(255, 255, 255, .6),
                inset 2px 2px 3px rgba(0, 0, 0, .6);
}

.btnAdmin {
    width: 42px;
    border: 0;
    line-height: 2.5;
    padding: 0 20px;
    font-size: 1rem;
    text-align: center;
    color: #fff;
    text-shadow: 1px 1px 1px #000;
    border-radius: 5px;
    background-color: #6C757D;
    /* background-image: linear-gradient(to top left,
                                      rgba(0, 0, 0, .2),
                                      rgba(0, 0, 0, .2) 30%,
                                      rgba(0, 0, 0, 0)); */
    box-shadow: inset 2px 2px 3px rgba(255, 255, 255, .6),
                inset -2px -2px 3px rgba(0, 0, 0, .6);
}

.btnAdmin:hover {
    cursor: pointer;
    background-color: #5A6268;
}

.btnAdmin:active {
    box-shadow: inset -2px -2px 3px rgba(255, 255, 255, .6),
                inset 2px 2px 3px rgba(0, 0, 0, .6);
}

.btnAddUser {
    float: right;
    margin: 15px 0px;
    border: 0;
    line-height: 2.5;
    padding: 0 20px;
    font-size: 1rem;
    text-align: center;
    color: #fff;
    text-shadow: 1px 1px 1px #000;
    border-radius: 5px;
    background-color: #28A745;
    margin-left: 15px;
    background-image: linear-gradient(to top left,
                                      rgba(0, 0, 0, .2),
                                      rgba(0, 0, 0, .2) 30%,
                                      rgba(0, 0, 0, 0));
    box-shadow: inset 2px 2px 3px rgba(255, 255, 255, .6),
                inset -2px -2px 3px rgba(0, 0, 0, .6);
}

#contTableUser {
    width: 100%;
    position: absolute;
    margin-top: 80px;
}

.btnAddUser:hover {
    cursor: pointer;
    background-color: #218838;
}

.btnAddUser:active {
    box-shadow: inset -2px -2px 3px rgba(255, 255, 255, .6),
                inset 2px 2px 3px rgba(0, 0, 0, .6);
}

.faArrowDown {
    cursor: pointer;
}

.activeMachine{
    color: #fa4591;
}

.listCont::-webkit-scrollbar {
    display: none;
  }

/* @keyframes rainbow_animation {
    0%  { color: #F32178 }
    25%  { color: #6161e4}
    50%  { color: #00e7ff}
    100%  { color: #F32178}
} */

/* dots */

.ring-container {
    position: relative;
    width: 70px;
    height: 60px;
    margin-left: -20px;
}

.circle {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    position: absolute;
    top: 23px;
    left: 23px;
}

.ringring {
    -webkit-border-radius: 30px;
    height: 25px;
    width: 25px;
    position: absolute;
    left: 18px;
    top: 18px;
    -webkit-animation: pulsate 1s ease-out;
    -webkit-animation-iteration-count: infinite; 
    opacity: 0.0
}
.circle-live-chart {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    position: relative;
    top: -2px;
    left: 23px;
}

.ringring-live-chart {
    -webkit-border-radius: 30px;
    height: 25px;
    width: 25px;
    position: relative;
    left: 18px;
    top: 18px;
    -webkit-animation: pulsate 1s ease-out;
    -webkit-animation-iteration-count: infinite; 
    opacity: 0.0
}
@-webkit-keyframes pulsate {
    0% {-webkit-transform: scale(0.1, 0.1); opacity: 0.0;}
    50% {opacity: 1.0;}
    100% {-webkit-transform: scale(1.2, 1.2); opacity: 0.0;}
}

.ringring-green {
    border: 3px solid #62bd19;
  }

  .ringring-red {
    border: 3px solid #bd1919;
  }

  .circle-green {
    background-color: #62bd19;
  }

  .circle-red {
    background-color: #bd1919;
  }

  .circle-grey {
    background-color: #878787;
  }

/* Slider/Checkbox */

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
  }
  
  .switch input { 
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: #2196F3;
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }


