html,
body {
    min-height: 100%;
    background-color: rgb(40, 40, 40);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: white;
}


body {
    min-height: 100%;
    padding-top: 0px;
    padding-bottom: 16px;
}

.uk-modal-dialog,
.uk-modal-dialog.uk-modal-body,
.uk-modal-footer {
    border-radius: 5px;
}

.uk-modal-dialog .uk-button {
    border-radius: 5px;
}

.main-title {
    margin-top: 0px;
}

label {
    color: white;
    margin-bottom: 2px;
}

#logout {
    display: none;
    position: absolute;
    top: 4px;
    right: 0px;
    line-height: 12px;
    border-radius: 10px;
    color: white;
    font-size: 12px;
    padding-top: 2px;
    padding-bottom: 2px;
}

input.uk-input {
    border-radius: 10px;
    margin-bottom: 8px;
    background-color: rgb(220, 220, 220);
    color: rgb(30, 30, 30);
}

input.uk-input:focus {
    background-color: rgb(230, 230, 230);
    color: rgb(20, 20, 20);
}

#app {
    width: 100%;
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#current-sensor-container {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.current-sensor {
    border-radius: 10px;
    border: 1px solid rgba(44, 130, 201, 1);
    width: 30%;
    margin-left: 2%;
    margin-bottom: 10px;
    display: flex;
    position: relative;
    flex-direction: column;
    /*    justify-content: center; */
    align-items: center;
    color: white;
    padding-top: 4px;
    padding-bottom: 4px;
    text-align: center;
}

#devices {
    width: 100%;
}

#overview {
    padding: 8px 0px;
    display: none;
}

#overview .title {
    margin: 0px;
    margin-bottom: 8px;
}

#overview .canvas-container {
    height: 300px;
}

#overview .canvas-container.humidity {
    display: none;
}


.device-card,
#overview,
.login {
    position: relative;
    width: 94%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(44, 130, 201, 0.7);
    border-radius: 10px;
    box-shadow: 0px 7px 14px 0px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    background-color: rgb(43, 43, 43);
}

.device-card,
.login {
    min-height: 300px;
}

.login {
    min-height: 0px;
    padding: 10px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.device-card .rename-button {
    position: absolute;
    top: 0px;
    right: 0px;
    border-top-right-radius: 9px;
    border-bottom-left-radius: 9px;
    line-height: 16px;
    font-size: 12px;
    box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.1);
    background-color: rgba(51, 153, 255, 0.4);
}

.device-card .title {
    margin-top: 4px;
    margin-bottom: 4px;
}

.device-card .canvas-wrapper {
    width: 100%;
    overflow-y: hidden;
    overflow-x: scroll;
}

.device-card .canvas-container {
    height: 300px;
}

/* .device-card:nth-of-type(1) {
    border: 1px solid rgba(29, 101, 166, 0.7);
}
.device-card:nth-of-type(2) {
    border: 1px solid rgba(242, 161, 4, 0.7);
}
.device-card:nth-of-type(3) {
    border: 1px solid rgba(0, 116, 63, 0.7);
} */


.temperature-container {
    font-size: 30px;
    color: rgba(44, 130, 201, 1);
}

.doorstate-container {
    font-size: 30px;
}

span.text-top {
    font-size: 16px;
    vertical-align: text-top;
}

.humidity-container {
    display: none;
    font-size: 30px;
    color: rgb(242, 161, 4);
}

.device-card .humidity-container {
    margin-left: 8px;
}

.last-update {
    font-size: 12px;
    color: rgb(200, 200, 200);
}


.value {
    margin-top: 0px;
}