*,
*::after,
*::before {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    outline: none;
    background: none;
    border: none;
}

    .icon::before {
        display: none;
    }

    html {
        font-size: 19.5px;
    }

    body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        color: white;
        background-color: #333333;
    }
    a {
        text-decoration: none;
    }
    li {
        padding: 0;
    }
    span {
        font-size: 0.7rem; 
    }
    .padtop {
        margin-top: 0.3rem;
    }
    .holder {
        justify-content: center;
        width: 20.1rem;
        display: inline-flex;
        padding: 0.5rem;
        background-color: #333333;
    }
    .chart {
        justify-content: left;
        width: 20.1rem;
        display: inline-flex;
        background-color: #333333;
        padding-left: 1rem
    }
    canvas {
        width: 18.8rem       
    }
    .box {
        list-style: none;
        padding: 0.5rem;
        width: 9rem;
    }

    .box2 {
        list-style: none;
        padding: 0.5rem;
        width: 10rem;
    }

    .inline {
        display: inline;
    }
    
    .ul {
        list-style: none;
        display: flex;
    }
    .subUl {
        margin-top: 1rem;
    }
    .ul li {
            position: relative;
            display: inline-block;
        }
    .title {
        width: 10rem;
        opacity: 50%;
        vertical-align: middle;
        padding-left: 0.5rem;
        color: gray;
        font-size: 1.5rem;
        font-family: 3ds;
    }

    .setting::before {
        content: "\f0ad";
    font-family: var(--fa-font-regular); /* must match your @font-face */
    font-weight: 500;                     /* match the font file weight */
    font-style: normal;
    display: inline; 
    }

    .setting {
        display: inline;
        width: 2rem;
        font: var(--fa-font-regular);
        font-size: 1.5rem;
        padding: 0.2rem 0.2rem;
        margin: 0.35rem;
        text-align: right;
        vertical-align: top;
        align-items: center;
        font-weight: 500;
        background-color: transparent;
        color: grey;
        position: relative;
        display: inline-block;
        cursor: default;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
@media (hover: hover) {
    .setting:hover {
        font: var(--fa-font-regular);
        font-size: 1.5rem;
        color: rgb(255, 255, 255);
    }
}
.lock::before {
    content: "\f023";
    font-family: var(--fa-font-regular);
    font-weight: 500;
    font-style: normal;
    display: inline; 
}

.lock {
    display: inline;
    width: 2rem;
    font: var(--fa-font-regular);
    font-size: 1.5rem;
    padding: 0.2rem 0.2rem;
    margin: 0.35rem;
    text-align: center;
    vertical-align: top;
    align-items: center;
    font-weight: 500;
    background-color: transparent;
    color: grey;
    position: relative;
    display: inline-block;
    cursor: default;
}
@media (hover: hover) {
    .lock:hover {
        font-size: 1.5rem;
        color: rgb(255, 255, 255);
    }
}
.lock.on::before {
    content: "\f09c";
    font-family: var(--fa-font-regular);
    font-weight: 500;
    font-style: normal;
    display: inline; 
}

.user::before {
    content: "\f007";
    font-family: var(--fa-font-regular);
    font-weight: 500;
    font-style: normal;
    display: inline; 
}
.user {
    display: inline;
    width: 2rem;
    font: var(--fa-font-regular);
    font-size: 1.5rem;
    padding: 0.2rem 0.5rem;
    margin: 0.35rem;
    text-align: left;
    vertical-align: top;
    align-items: center;
    font-weight: 500;
    background-color: transparent;
    color: grey;
    position: relative;
    display: inline-block;
    cursor: default;
}

@media (hover: hover) {
    .user:hover {
        font-size: 1.5rem;
        color: rgb(255, 255, 255);
    }
}

.user.on::before {
    content: "\f";
    font-family: var(--fa-font-regular);
    font-weight: 500;
    font-style: normal;
    display: inline; 
}

.btn {
        display: inline-flex;
        border: 0.125rem solid rgb(118, 211, 25);
        font-size: 0.8rem;
        line-height: 1.5;
        text-align: center;
        transition: background-color 0.2s ease 0s, color 0.2s ease 0s, border-color 0.2s ease 0s;
        cursor: pointer;
        vertical-align: middle;
        align-items: center;
        font-weight: 500;
        text-decoration: none;
        box-shadow: none;
        border-radius: 0.25rem;
        min-height: 3rem;
    background-color: transparent;
    color: rgb(255, 255, 255);
    }
.btn:disabled {
    border-style: dashed;
}

.btn.on:disabled {
    background-clip: padding-box;
}

.autoir {
    width: 8rem;
    padding: 0.3rem 1.1rem;
    border-color: rgb(118, 211, 25);
}
    @media (hover: hover) {
        .autoir:hover {
            background-color: rgb(118, 211, 25);
            border-color: rgb(118, 211, 25);
        }
    }
    .autoir.on {
        background-color: olivedrab;
    }
    .autoir::after {
        background-color: transparent;
    }


.ghautoir {
    width: 5rem;
    padding: 0.3rem 0.3rem;
    border-color:rgb(118, 211, 25);
}
    @media (hover: hover) {
        .ghautoir:hover {
            background-color: rgb(118, 211, 25);
            border-color: rgb(118, 211, 25);
        }
    }

    .ghautoir.on {
        background-color: olivedrab;
    }

    .pump {
        width: 4rem;
        padding: 0.3rem 0.7rem;
        border-color: rgb(252, 53, 89);
        min-height: 4rem;
    }

    @media (hover: hover) {
        .pump:hover {
            background-color: rgb(252, 53, 89);
            border-color: rgb(252, 53, 89);
        }
    }
    .pump.on {
        background-color: indianred;
    }

    .splash {
        width: 4rem;
        padding: 0.3rem 0.7rem;
        margin-left: 1rem;
        border-color: rgb(196, 197, 202);
        min-height: 4rem;
    }
    @media (hover: hover) {
        .splash:hover {
            background-color: rgb(196, 197, 202);
            border-color: rgb(196, 197, 202);
            color: rgb(3, 3, 21);
        }
    }
    .splash.on {
        background-color: gainsboro;
        color: rgb(3, 3, 21);
    }

    .airtemp::before {
        content: "\f2c8";
        font-family: var(--fa-font-regular);
    font-weight: 500;
    font-style: normal;
    display: inline; 
    }

    .airtemp {
        display: inline;
        font: var(--fa-font-regular);
        font-size: 2rem;
        color: white;
        padding-left: 0.8rem;
    }

    .airhum::before {
        content: "\f043";
            font-family: var(--fa-font-regular);
    font-weight: 500;
    font-style: normal;
    display: inline; 
    }

    .airhum {
        display: inline;
        font: var(--fa-font-regular);
        font-size: 2rem;
        color: white;
        padding-left: 0.7rem;
    }

    .rain::before {
        content: "\e4e4 ";
            font-family: var(--fa-font-regular);
    font-weight: 500;
    font-style: normal;
    display: inline; 
    }

    .rain {
        display: inline;
        font: var(--fa-font-regular);
        font-size: 2rem;
        color: white;
        padding-left: 0.7rem;
    }

    .ghtemp::before {
        content: "\f2c8";
            font-family: var(--fa-font-regular);
    font-weight: 500;
    font-style: normal;
    display: inline; 
    }

    .ghtemp {
        display: inline;
        font: var(--fa-font-regular);
        font-size: 1.3rem;
        color: white;
        padding-left: 0rem;
    }

    .ghhum::before {
        content: "\f043";
            font-family: var(--fa-font-regular);
    font-weight: 500;
    font-style: normal;
    display: inline; 
    }

    .ghhum {
        display: inline;
        font: var(--fa-font-regular);
        font-size: 1.2rem;
        color: white;
        padding-left: 0rem;
    }

    .weather {
        display: inline-block;
        border: 0px;
        min-width: 3.2rem;
        font-size: 1rem;
        color: white;
        min-height: 1rem;
    }

    .gh {
        display: inline-block;
        border: 0px;
        width: 3.1rem;
        text-align: center;
        font-size: 0.7rem;
        color: white;
        min-height: 0rem;
    }

    .valve::before {
        content: "\e006";
            font-family: var(--fa-font-regular);
    font-weight: 500;
    font-style: normal;
    display: inline; 
    }
    .valve {
        font: var(--fa-font-regular);
        width: 3rem;
        padding: 0.5rem 0.5rem;
        border-color: rgb(0, 203, 244);
        font-size: 1.5rem;
        user-select: none;
        vertical-align: top;
    }

    @media (hover: hover) {
        .valve:hover {
            background-color: rgb(0, 203, 244);
            border-color: rgb(0, 203, 244);
        }
    }

    .valve.on::before {
        content: "\e006";
        font-family: var(--fa-font-solid);
    font-weight: 500;
    font-style: normal;
    display: inline; 
        
    }

    .valve.on {
        background-color: darkcyan;
    }

    #mist::before {
        content: "\f2cc";
            font-family: var(--fa-font-regular);
    font-weight: 500;
    font-style: normal;
    display: inline; 
    }

    #mist {
        margin-right: 0.15rem;
    }

    @media (hover: hover) {
        .mist:hover {
            background-color: rgb(0, 203, 244);
            border-color: rgb(0, 203, 244);
            color: rgb(255, 255, 255);
        }
    }

    #mist.on::before {
        content: "\f2cc";
            font-family: var(--fa-font-regular);
    font-weight: 500;
    font-style: normal;
    display: inline; 
    }
    #smp3 {
        width: 2.4rem;
    }
.smp {
    display: inline-block;
    border: 0px;
    width: 2.95rem;
    font-size: 0.7rem;
    color: white;
    min-height: 2.7rem;
}

    .air {
        display: inline-block;
        border: 0px;
        width: 9rem;
        font-size: 10px;
        color: white;
        min-height: 3rem;
    }

    .clock1::before {
        content: "\f017";
            font-family: var(--fa-font-regular);
    font-weight: 500;
    font-style: normal;
    display: inline; 
    }

.clock1 {
    display: inline;
    font: var(--fa-font-regular);
    font-size: 1rem;
    padding: 0.2rem;
    margin-left: 0.5rem;
    border: 0.125rem solid rgb(90, 70, 255);
    vertical-align: top;
    min-height: 1.65rem;
}
    @media (hover: hover) {
        .clock1:hover {
            background-color: rgb(90, 70, 255);
        }
    }

    .clock2::before {
        content: "\f017";
            font-family: var(--fa-font-regular);
    font-weight: 500;
    font-style: normal;
    display: inline; 
    }
    .clock2 {
        display: inline;
        font: var(--fa-font-regular);
        font-size: 1rem;
        padding: 0.2rem;
        margin-left: 0.35rem;
        border-color: rgb(252, 132, 12);
        vertical-align: top;
        min-height: 1.65rem;
    }

    @media (hover: hover) {
        .clock2:hover {
            background-color: rgb(252, 132, 12);
        }
    }
.heater::before {
    content: "\f7e4";
        font-family: var(--fa-font-regular);
    font-weight: 500;
    font-style: normal;
    display: inline; 
}
.heater {
    display: inline;
    padding: 0rem 0.25rem;
    width: 2.4rem;
    border-color: rgb(252, 132, 12);
    border-left: none;
    border-radius: 0 0.25rem 0.25rem 0;
    font: var(--fa-font-regular);
    font-size: 1.5rem;
}
    @media (hover: hover) {
        .heater:hover {
            background-color: rgb(252, 132, 12);
        }
    }
    .heater.on {
        font: var(--fa-font-solid);
        font-size: 1.5rem;
        background-color: rgb(252, 76, 12);
    }
.heater:disabled {
    border-left: none;
}
.heater.on:disabled {
    border-left: none;
}
.heaterCont {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    font-stretch: expanded;
    writing-mode: vertical-lr;
    width: 1.2rem;
    font-size: 0.55rem;
    border-color: rgb(252, 132, 12);
    border-radius: 0.25rem 0 0 0.25rem;
    background-image: linear-gradient(rgba(252, 53, 89, 0.2), rgba(227, 179, 65, 0.4));
}
    @media (hover: hover) {
        .heaterCont:hover {
            background-image: linear-gradient(rgba(252, 53, 89, 0.8), rgba(227, 179, 65, 0.8));
        }
    }
.heaterCont.on {
    background-image: linear-gradient(rgba(252, 53, 89, 1), rgba(227, 179, 65, 1));
}
    .lamp::before {
        content: "\f0eb ";
            font-family: var(--fa-font-regular);
    font-weight: 500;
    font-style: normal;
    display: inline; 
    }

    .lamp {
        display: inline;
        width: 2.3rem;
        font: var(--fa-font-regular);
        font-size: 1.5rem;
        min-height: 1.5rem;
        border:none;
    }
    @media (hover: hover) {
        .lamp:hover {
            color: rgb(252, 132, 12);
            text-shadow: rgb(255, 255, 255) 0px 14px 28px;
        }
    }
    .lamp.on {
        font: var(--fa-font-solid);
        font-size: 1.5rem;
        color: rgb(252, 132, 12);
        filter: drop-shadow(1px 1px 10px rgb(252, 132, 12));
    }

    /* The actual popup */
.popup {
    display: none;
    width: 18.6rem;
    height: 25rem;
    background-color: #555;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 0.5rem;
    position: absolute;
    z-index: 1;
    bottom: -25rem;
    left: -16rem;
    margin-left: 0.2rem;
    font-size: 0.7rem;
    text-decoration: none;
    opacity:0.95;
}

    /* Toggle this class - hide and show the popup */
.show {
    display: block;
    -webkit-animation: fadeIn 1s;
    animation: fadeIn 1s;
}

/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.95;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.95;
    }
}

.tab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: transparent;
    color: white;
}

    /* Style the buttons inside the tab */
    .tab button {
        background-color: inherit;
        float: left;
        border: none;
        outline: none;
        cursor: pointer;
        padding: 14px 16px;
        transition: 0.3s;
        font-size: 17px;
    }

        /* Change background color of buttons on hover */
        .tab button:hover {
            background-color: #ddd;
        }

        /* Create an active/current tablink class */
        .tab button.active {
            background-color: #ccc;
        }

/* Style the tab content */
.tabcontent {
    display: none;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
}

hr {
    border-top: 1px solid white;
}


#signin-form {
    text-align: center;
}
    #signin-form label {
        display: inline-block;
        font-size: 0.75rem;
        width: 4rem;
        margin-bottom: 0.9rem
    }
    #signin-form input {
        width: 7.8rem;
        height: 1.5rem;
        border: 0.125rem solid rgb(196, 197, 202);
        background-color: transparent;
        border-radius: 0.25rem;
        font-size: 0.7rem;
        padding: 0.1rem;
        text-align: center;
        text-decoration: none;
        display: inline-block;
    }
    #signin-form button, .ubutton {
        width: 4rem;
        border: 0.125rem solid rgb(196, 197, 202);
        font-size: 0.75rem;
        text-align: center;
        transition: background-color 0.2s ease 0s, color 0.2s ease 0s, border-color 0.2s ease 0s;
        vertical-align: middle;
        font-weight: 500;
        border-radius: 0.25rem;
        height: 1.7rem;
        background-color: cadetblue;
        color: rgb(255, 255, 255);
        margin-left:0.5rem;
        margin-top: 0.1rem;
    }
        #signin-form button:hover {
            background-color: #ccc;
            color: rgb(3, 3, 21);
        }
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(255,255,255,0.4); /* Black w/ opacity */
    -webkit-animation-name: fadeIn; /* Fade in the background */
    -webkit-animation-duration: 0.4s;
    animation-name: fadeIn;
    animation-duration: 0.4s
}
.modal-content {
    position: fixed;
    bottom: 0;
    background-color: rgb(51, 51, 51, 0.95);
    width: 20.3rem;
    padding: 1rem;
    -webkit-animation-name: slideIn;
    -webkit-animation-duration: 0.4s;
    animation-name: slideIn;
    animation-duration: 0.4s;
    border-radius: 0rem;
}
.modal-body {
    padding: 0.5rem;
}
.close {
    color: white;
    float: right;
    font-size: 1rem;
    font-weight: bold;
    padding-right: 0.5rem;
}
    .close:hover, .close:focus {
        color: #000;
        text-decoration: none;
        cursor: pointer;
    }
@-webkit-keyframes slideIn {
    from {
        bottom: -300px;
        opacity: 0
    }
    to {
        bottom: 0;
        opacity: 0.95
    }
}

@keyframes slideIn {
    from {
        bottom: -300px;
        opacity: 0
    }
    to {
        bottom: 0;
        opacity: 0.95
    }
}

@-webkit-keyframes fadeIn {
    from {
        opacity: 0
    }
    to {
        opacity: 0.95
    }
}

@keyframes fadeIn {
    from {
        opacity: 0
    }
    to {
        opacity: 0.95
    }
}

form {
    text-align: left;
    font-size: 0.7rem;
}

    form label {
        width: 5rem;
        height: 0.5rem;
    }
    form input {
        width: 7rem;
        border-bottom: 0.125rem solid rgb(196, 197, 202);
        background-color: transparent;
        border-radius: 0rem;
        padding: 0.2rem;
        margin: 0 0.25rem 0.5rem 0.25rem;
        text-align: left;
        text-decoration: none;
        display: inline-block;
        color: white;
    }

    form button {
        width: 4rem;
        border: 0.125rem solid rgb(196, 197, 202);
        font-size: 0.7rem;
        text-align: center;
        transition: background-color 0.2s ease 0s, color 0.2s ease 0s, border-color 0.2s ease 0s;
        vertical-align: middle;
        font-weight: 500;
        border-radius: 0.25rem;
        height: 1.5rem;
        background-color: cadetblue;
        color: rgb(255, 255, 255);
        margin: 1rem 0.5rem 0.5rem 0rem;
    }

        form button:hover {
            background-color: #ccc;
            color: rgb(196, 197, 202);
        }

.switch {
    position: relative;
    display: inline-block;
    width: 3rem;
    height: 1.2rem;
}
    .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;
    border-radius: 0.6rem;
}
    .slider:before {
        position: absolute;
        content: "";
        height: 0.8rem;
        width: 0.8rem;
        left: 0.2rem;
        bottom: 0.2rem;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
        border-radius: 50%;
    }
input:checked + .slider {
    background-color: cadetblue;
}
input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}
input:checked + .slider:before {
    -webkit-transform: translateX(1.8rem);
    -ms-transform: translateX(1.8rem);
    transform: translateX(1.8rem);
}
.thermo {
    display: inline-block;
    width: 8rem;
    min-height: 1.7rem;
}
