body {
    font-family: Arial, serif;
    color: #333;
    font-size: 0.95em;
}

.form-head {
    color: #191919;
    font-weight: normal;
    margin: 0;
    text-align: center;
    font-size: 1.8em;
}

.error-message {
    padding: 7px 10px;
    background: #fff1f2;
    border: #ffd5da 1px solid;
    color: #d6001c;
    border-radius: 4px;
    margin: 30px 10px 10px 10px;
}

.demo-table {
    background: #ffffff;
    border-spacing: initial;
    margin: 15px auto;
    word-break: break-word;
    table-layout: auto;
    line-height: 1.8em;
    color: #333;
    border-radius: 4px;
    padding: 30px;
    width: 380px;
    border: 1px solid;
    border-color: #e5e6e9 #dfe0e4 #d0d1d5;
}

.demo-table .field-column {
    padding: 15px 10px;
}

.demo-input-box {
    padding: 13px;
    border: #CCC 1px solid;
    border-radius: 4px;
    width: 90%;
}

.btnLogin {
    padding: 13px;
    background-color: #5d9cec;
    color: #f5f7fa;
    cursor: pointer;
    border-radius: 4px;
    width: 100%;
    border: #5791da 1px solid;
    font-size: 1.1em;
}

.response-text {
    max-width: 380px;
    font-size: 1.5em;
    text-align: center;
    background: #fff3de;
    padding: 42px;
    border-radius: 3px;
    border: #f5e9d4 1px solid;
    font-family: arial, serif;
    line-height: 34px;
    margin: 15px auto;
}

.error-info {
    color: #FF0000;
    margin-left: 10px;
}

a.logout-button {
    color: #ff0051;
}

h1 {
    text-align: center;
}

h2 {
    text-align: center;
    font-size: 24px;
}

.box_room {
    background-color: blue;
    color: white;
    border: 2px solid white;
    margin: 5px;
    padding: 5px;
    text-align: center;
    align-content: center;
    box-sizing: content-box;
    display: inline-flex;
    flex-direction: column;
    border-radius: 20px;
    max-inline-size: min-content;
    max-width: min-content;
    max-height: min-content;
}

.box_room_video {
    background-color: blue;
    color: white;
    border: 2px solid white;
    margin: 5px;
    padding: 5px;
    text-align: center;
    align-content: center;
    display: table;
    border-radius: 20px;
    max-height: min-content;
}

.box_sensor {
    background-color: lightgray;
    color: black;
    border: 2px solid black;
    margin: 5px;
    font-size: medium;
    text-align: center;
    align-content: center;
    box-sizing: content-box;
    display: inline-flex;
    flex-wrap: wrap;
    border-radius: 40px;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    justify-items: start;
    max-width: min-content;
    max-height: min-content;
}

.box_sensor_camera {
    background-color: lightblue;
    color: black;
    width: 400px;
    border: 2px solid black;
    margin: 5px;
    font-size: medium;
    text-align: center;
    align-content: center;
    justify-content: center;
    box-sizing: content-box;
    display: inline-flex;
    flex-wrap: wrap;
    border-radius: 40px;
    align-items: center;
}

.box_sensor_switch {
    background-color: navajowhite;
    color: black;
    border: 2px solid white;
    margin: 5px;
    padding: 5px;
    font-size: medium;
    text-align: center;
    align-content: center;
    box-sizing: content-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    max-width: fit-content;
    max-height: min-content;
}

.box_sensor_switch_command {
    background-color: lightblue;
    color: black;
    border: 2px solid white;
    margin: 5px;
    padding: 5px;
    font-size: larger;
    text-align: center;
    align-content: center;
    box-sizing: content-box;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.box_sensor_alarm {
    background-color: tomato;
    color: white;
    border: 2px solid black;
    margin: 5px;
    font-size: medium;
    text-align: center;
    align-content: center;
    box-sizing: content-box;
    display: inline-flex;
    flex-wrap: wrap;
    border-radius: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    justify-items: start;
    max-width: min-content;
    max-height: min-content;
}

.box_sensor_warning {
    background-color: yellow;
    color: black;
    border: 2px solid black;
    margin: 5px;
    font-size: medium;
    text-align: center;
    align-content: center;
    box-sizing: content-box;
    display: inline-flex;
    flex-wrap: wrap;
    border-radius: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    justify-items: start;
    max-width: min-content;
    max-height: min-content;
}

.box_status_alarm {
    background-color: tomato;
    color: white;
    width: 220px;
    border: 2px solid black;
    margin: 5px;
    font-size: medium;
    text-align: center;
    align-content: center;
    justify-content: center;
    box-sizing: content-box;
    display: inline-grid;
    border-radius: 40px;
}

.box_status_warning {
    background-color: yellow;
    color: black;
    width: 300px;
    border: 2px solid black;
    margin: 5px;
    font-size: medium;
    text-align: center;
    align-content: center;
    justify-content: center;
    box-sizing: content-box;
    display: inline-grid;
    border-radius: 40px;
}

.box_internal {
    background-color: black;
    border: 2px solid white;
    box-sizing: content-box;
    display: table-cell;
    border-radius: 40px;
}

.box_color {
    font-size: 20px;
    border: 2px solid white;
    margin: 5px;
    padding: 5px;
    box-sizing: content-box;
    width: 20px;
    height: 20px;
    display: table-cell;
    border-radius: 40px;
}

.box_info {
    background-color: darkseagreen;
    color: black;
    border: 2px solid black;
    margin: 5px;
    font-size: 20px;
    text-align: center;
    align-content: center;
    box-sizing: content-box;
    width: 80%;
    height: max-content;
    border-radius: 10px;
}

.icon_box {
    width: 96px;
    height: 96px;
}

.icon_box_sensors {
    width: 32px;
    height: 32px;
}

.box_status_element {
    border: solid gray 5px;
    border-radius: 15px;
    text-align: center;
    text-align-last: center;
}

.box_status_button {
    margin-top: 10px;
}

.button {
    background-image: url("images/button-desktop.png");
    background-size: cover;
    background-blend-mode: exclusion;
    width: 140px;
    height: 30px;
    color: blanchedalmond;
    border-radius: 40px;
    margin: 10px;
}

.duty_cycle {
    width: 60px;
    height: 20px;
    border-radius: 10px;
    resize: none;
}

.slide_container {
    width: 98%;
    margin-top: 10px;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 25px;
    border-radius: 15px;
    background: #ffffff;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #ffe31c;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #ffe31c;
    cursor: pointer;
}/* Mouse-over effects */

.slider:hover {
    opacity: 1; /* Fully shown on mouse-over */
}

.thumbnail {
    width: 100%;
    height: 70%;
    padding: 20px;
}

/* The sidebar menu */
.sidebar_top {
    width: 100%; /* 100% Full-height */
    height: 100px; /* 0 width - change this with JavaScript */
    position: fixed; /* Stay in place */
    z-index: 2; /* Stay on top */
    top: 0;
    left: 0;
    background-color: #333333;
    overflow-y: hidden; /* Disable vertical scroll */
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidebar */
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    color: #FFFFFF;
    font-size: larger;
}

.sidebar_status {
    width: 250px; /* 0 width - change this with JavaScript */
    height: 90%; /* 100% Full-height */
    position: fixed; /* Stay in place */
    z-index: 1; /* Stay on top */
    top: 0;
    left: 0;
    background-color: #191919;
    overflow-x: hidden; /* Disable horizontal scroll */
    overflow-y: auto;
    padding-top: 100px;
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidebar */
    display: flex;
    align-items: center;
    flex-direction: column;
    flex-wrap: nowrap;
    border: white;
    color: white;
    margin-bottom: 100px;
}

.body_devices {
    background-color: dimgray;
    overflow-y: scroll;
    margin-top: 100px;
    margin-left: 250px;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    align-content: center;
}

/* The sidebar links */
.sidebar a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

/* When you mouse over the navigation links, change their color */
.sidebar a:hover {
    color: #f1f1f1;
}

.overlay {
    position: relative;
    top: 0;
    width: 150px;
    height: 0;
    z-index: 10;
    background-color: rgba(0, 0, 200, 0.9);
    overflow-x: hidden;
    border-radius: 10px;
    transition: 0.5s;
    transition-property: all;
    transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
}

.overlay-content {
    position: relative;
    text-align: center;
    margin-top: 5px;
    display: inline-flex;
    flex-direction: column;
}

.overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 14px;
    color: #818181;
    display: block;
    transition: 0.3s;
    transition-property: all;
    transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
}

.overlay a:hover, .overlay a:focus {
    color: #f1f1f1;
}

.overlay .closebtn {
    position: relative;
    top: 5px;
    left: 50px;
    padding: 5px;
    font-size: 16px;
    background-color: rgba(0, 0, 0, 0);
    color: white;
    border-radius: 20px;
    border-color: rgba(255, 255, 255, 0.5);
}

.overlay .overlay-content .menu-button {
    background-color: rgba(0, 0, 0, 0);
    color: white;
    padding: 5px;
    margin: 5px;
    font-size: medium;
    border-radius: 20px;
    border-color: rgba(255, 255, 255, 0.5);
}

figure {
    border: 1px #cccccc solid;
    padding: 4px;
    margin: auto;
    display: inline-flex;
    align-items: center;
}

figcaption {
    background-color: black;
    color: white;
    font-style: italic;
    padding: 2px;
    text-align: center;
    font-size: small;
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (orientation: portrait) {
    .form-head {
        font-weight: bold;
    }

    .error-message {
        font-size: large;
    }

    .demo-table {
        background: burlywood;
        width: 100%;
        font-size: 3.1em;
    }

    .demo-input-box {
        background-color: #99aaff;
        width: 100%;
        font-size: 2.1em;
    }

    .btnLogin {
    }

    .response-text {
    }

    .error-info {
    }

    a.logout-button {
        visibility: hidden;
    }

    h1 {
        font-size: larger;
    }

    h2 {
        font-size: larger;
    }

    .box_room {
        width: 90%;
        font-size: xxx-large;
        display: table-row;
        text-align: -webkit-center;
    }

    .box_sensor {
        width: 90%;
        font-size: xx-large;
    }

    .box_sensor_camera {
        width: 90%;
        font-size: xx-large;
    }

    .box_sensor_switch {
        width: 90%;
        font-size: xx-large;
    }

    .box_sensor_switch_command {
    }

    .box_sensor_alarm {
        width: 90%;
        font-size: xx-large;
    }

    .box_sensor_warning {
        width: 90%;
        font-size: xx-large;
    }

    .icon_box_sensors {
        width: 128px;
        height: 128px;
    }

    .box_status_alarm {
        width: 90%;
        font-size: larger;
    }

    .box_status_warning {
        width: 90%;
        font-size: larger;
    }

    .box_internal {
        width: fit-content;
    }

    .box_color {
        width: 90px;
        height: 90px;
    }

    .box_info {
        font-size: larger;
        width: max-content;
        height: 80%;
    }

    .box_status_element {
        margin-top: unset;
        margin-right: 10px;
        flex-direction: row;
        display: flex;
        align-self: center;
    }

    .button {
        background-image: url("images/button-mobile.png");
        width: 100px;
        height: 100px;
        font-size: medium;
        margin-right: 10px;
    }

    .duty_cycle {
        width: 60px;
        height: 40px;
        margin-right: 10px;
        font-size: xx-large;
        align-self: center;
    }

    .thumbnail {
    }

    /* The sidebar menu */
    .sidebar_top {
        font-size: xxx-large;
        z-index: 2;
    }

    .sidebar_status {
        top: 100px;
        width: 100%;
        height: 150px;
        flex-direction: unset;
        font-size: xx-large;
        padding: 10px;
        box-sizing: content-box;
        justify-content: unset;
        overflow-x: auto;
        z-index: 1;
    }

    .body_devices {
        overflow-x: hidden;
        margin-top: 220px;
        margin-left: 0;
        display: inline-block;
    }

    .sidebar a {
        font-size: 18px;
    }

    .sidebar a:hover {
    }

    .overlay {
        width: 350px;
        font-size: xxx-large;
        display: grid;
        position: relative;
        left: 80px;
    }

    .overlay-content {
    }

    .overlay a {
        font-size: large;
    }

    .overlay a:hover, .overlay a:focus {
    }

    .overlay .closebtn {
        top: 5px;
        left: 280px;
        width: fit-content;
        font-size: 80px;
        border-radius: 30px;
    }
    .overlay .overlay-content .menu-button {
        font-size: xxx-large;
        margin: 15px;
        border-radius: 30px;
        border-color: rgba(255, 255, 255, 0.5);
    }

    figure {
        padding: 4px;
        margin: 20px;
        display: inline-flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
    }

    figcaption {
        font-size: larger;
    }

}
