body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #333;
    margin: 0px;
}


h1 {
	color: white;
}

/* https://dev.to/oncode/display-your-pwa-website-fullscreen-4776 */
.element {
    height: env(safe-area-inset-top);
    width: env(safe-area-inset-left);
    margin: env(safe-area-inset-right);
    // you can also use fallback values
    padding: env(safe-area-inset-bottom, 20px);
}


h2 {
    color: #ddd;
}

h3 {
    color: orange;
}

p {
	color: white;
}

a {
    color: orange;
}

.deviceID {
	font-weight: bold;
}

/* Full-width input fields */
input[type=text], input[type=password] {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  box-sizing: border-box;
  color: #fff;
  background-color: #808080;
}

/* Set a style for all buttons */
button {
  background-color: #e99a00; /*#04AA6D; */
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  cursor: pointer;
  width: 100%;
  font-size: 20px;
  font-weight: bold;
  /*display: inline-block;*/
}

button:hover {
  opacity: 0.8;
}

label {
    color: #fff;
}


/* Extra styles for the cancel button */
.cancelbtn {
  width: auto;
  padding: 10px 18px;
  background-color: #f44336;
}

/* Center the image and position the close button */
.imgcontainer {
  text-align: center;
  margin: 24px 0 12px 0;
  position: relative;
}

img.avatar {
  width: 40%;
  border-radius: 50%;
}

.container {
  padding: 16px;
}

span.psw {
    color: #fff;
  float: right;
  padding-top: 16px;
}

span.psw a {
    color: #eee;
}
/* The Modal (background) */
.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: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  padding-top: 60px;
  border-radius: 10px;
}

/* Modal Content/Box */
.modal-content {
  background-color: #444;
  margin: 5% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */
  border: 1px solid #666;
  width: 80%; /* Could be more or less, depending on screen size */
}

/* The Close Button (x) */
.close {
  position: absolute;
  right: 25px;
  top: 0;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: red;
  cursor: pointer;
}

.formError {
    display:none;
    visibility: collapse;
    background-color: rgba(255,30,30,0.5);
    border: 1px solid red;
    color: #ddd;
    padding: 15px;
    
}

.formMessage {
    display:none;
    visibility: collapse;
    background-color: rgba(140,140,140,0.5);
    border: 1px solid #aaa;
    color: #ddd;
    padding: 15px;
    
}

.passwordMessage {
    display:none;
    visibility: collapse;
    background-color: rgba(140,210,180,0.5);
    border: 1px solid #aaa;
    color: #ddd;
    padding: 15px;
    
}

#passwordFrame {
    display: none;
    visibility: collapse;
}

#deviceList {
    display: flex;
    flex-direction: row;
}

.listItem {
    margin: 5px;
    width: 99%;
    animation: opac 1.0s;
}

.svgSetTemp {
    fill: #808080;
    stroke: #808080;
    font-size: 225%;
}

.svgZoneName {
    fill: #808080;
    stroke: #808080;
    font-size: 120%;
}

.svgLabel {
    fill: #efefef;
    stroke: #efefef;
    font-size: 80%;
}

.svgVersionLabel {
    fill: #555555;
    stroke: #555555;
    font-size: 80%;
}

.svgAmbTemp {
    fill: #f0f0c9;
    stroke: #f0f0c9;
    font-size: 325%;
    
}

#versionNotice {
    visibility: hidden;
    opacity: 0;
    transition: opacity 1s 1s;
    /*
    animation: 1s fadeIn;
    animation-delay: 6s;
    */
   /* animation-fill-mode: forwards; */
}

#deviceMenu {
    background-color: #444;
    display:flex;
    flex-direction: row;
    justify-content: space-around;
    padding: 10px 0px;
    border-bottom: 2px solid #666;
}

.deviceMenuItem {
    
}

.listItemMenu {
    visibility:hidden;
    display:flex;
    flex-direction: row;
    justify-content: space-evenly;
    padding: 10px 0px;
    opacity: 0;
    animation:opac 0.8s;
}

#emailSentMessage {
    background-color: #888;
    color: white;
    visibility:collapse;
}

div#scrollpanel {
	display:none;
	position: fixed;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background-color: rgba(0,0,0,0.5);
	z-index: 1000;
	transition: display: 400ms;
}

.notice {
    background-color: #555;
    border-radius: 15px;
    padding: 10px;
    margin: 20px;
}

.notice p {
    color: white;
}

li {
    color: white;
}


@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    visibility: visible;
    opacity: 1;
  }
}

@keyframes opac{
    from{opacity:0} to{opacity:1}
}

@keyframes opacoff{
    from{opacity:1} to{opacity:0}
}

.listItemMenuItem {
    border: 1px solid #666;
}

/* Add Zoom Animation */
.animate {
  -webkit-animation: animatezoom 0.6s;
  animation: animatezoom 0.6s
}

@-webkit-keyframes animatezoom {
  from {-webkit-transform: scale(0)} 
  to {-webkit-transform: scale(1)}
}
  
@keyframes animatezoom {
  from {transform: scale(0)} 
  to {transform: scale(1)}
}


@media (orientation: portrait) {
    
    #deviceList {
        flex-direction: column;
    }

    .listItem {
        width: auto;
    }
    
    h3 {
        background-color: #484848;
        padding: 10px;
        border-radius: 5px;
    }
    
    /* Change styles for span and cancel button on extra small screens */
    @media screen and (max-width: 300px) {
      span.psw {
         display: block;
         float: none;
      }
      .cancelbtn {
         width: 100%;
      }
    }
   
}

@media (orientation: landscape) {
    
    #deviceList {
        padding-bottom: 120px;
    }
}