  
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 2px solid gray;
    width: 80%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
}

/* Add Animation */
@-webkit-keyframes animatetop {
    from {top:-300px; opacity:0} 
    to {top:0; opacity:1}
}

@keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

/* The Close Button */
.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
[draggable=true] {
    cursor: move;
}
.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    padding: 2px 16px;
    background-color: green;
    color: white;
    height:30px;
}

.modal-body {padding: 2px 16px;}

.modal-footer {
    padding: 2px 16px;
    background-color: #5cb85c;
    color: white;
}

.title-line {
    height: 30px;
    background-color: white;
    margin-left: 20px;
    margin-right: 10px;
    margin-top: 0px; 
    width: 1384px;
}

h1{ 
    text-align:center;
}

h2 {
    text-align:center;
}

h3 {
    font-size: 12px;
    padding-bottom: 0px;
    margin-bottom: 5px;
}

.button-line {
    height: 94px;
    background-color: lightblue;
    border: 1px solid red;
    margin-left: 20px;
    margin-right: 10px;
    margin-top: 10px; 
    padding-left: 10px;
    width: 1370px;
}

.button_mqtt {
    background-color: #cccccc; 
    border: none;
    color: white;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 12px;
}

.messages-line {
    height: 66px;
    background-color: #ffcccc;
    border: 1px solid red;
    margin-left: 20px;
    margin-right: 10px;
    margin-top: 20px; 
    width: 1020px;
}

.row-container {
    margin-left: 0px;
    margin-right: 10px;
    display: flex;
}

.row-container-stacked {
    flex-direction: column;
}
.card-container {
    margin-left: 10px;
    margin-right: 10px;
    display: flex;
}

.card {
    width: 330px;
    height: 200px;
    background-color: grey;
    border: 1px solid red;
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 20px;
}

.row {
    display: flex;
    margin-top: 0px; 
    padding-top: 5px;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding-top: 10px;
    width: 50%;
}

temp-display {
    position: relative;
    height: 13em;
    padding:2em;
    text-align:center;
    clear: both;
}

#current-temp, #sensor_id {
    text-align:center; 
    padding-top: 10px;
    margin-top:0;
    font-size:2em;
    font-weight:bold;
}

#mycanvas {
    background-size: 330px 200px;
    background-color: #cccc00;
    display: flex;
    width:330px;
    height:200px;
}

* {box-sizing: border-box;}

/* Button used to open the contact form - fixed at the bottom of the page */
.open-button {
  background-color: #555;
  color: white;
  padding: 16px 20px;
  border: none;
  cursor: pointer;
  opacity: 0.8;
  position: fixed;
  bottom: 23px;
  right: 28px;
  width: 280px;
}

/* The popup form - hidden by default */
.form-popup {
  display: none;
  position: fixed;
  bottom: 0;
  right: 15px;
  border: 1px solid #000000;
  z-index: 9;
}

/* Add styles to the form container */
.form-container {
  max-width: 300px;
  padding: 10px;
  background-color: white;
}

/* Full-width input fields */
.form-container input[type=text], .form-container input[type=password] {
  width: 100%;
  padding: 15px;
  margin: 5px 0 22px 0;
  border: none;
  background: #f1f1f1;
}

/* When the inputs get focus, do something */
.form-container input[type=text]:focus, .form-container input[type=password]:focus {
  background-color: #ddd;
  outline: none;
}

/* Set a style for the submit/login button */
.form-container .btn {
  background-color: #04AA6D;
  color: white;
  padding: 16px 20px;
  border: none;
  cursor: pointer;
  width: 100%;
  margin-bottom:10px;
  opacity: 0.8;
}

/* Add a red background color to the cancel button */
.form-container .cancel {
  background-color: red;
}

/* Add some hover effects to buttons */
.form-container .btn:hover, .open-button:hover {
  opacity: 1;
}
