* {
	box-sizing: border-box;
}

body, html {
	height: 100%;
	margin: auto;
	font-family: Tahoma, Geneva, sans-serif;
	background-image: url('5c65735788a0ca6bf963badbcbba00ce4f6a3ad6f99a033c37a20a8bcd7b090f.jpg');
	position: absolute;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
	width: 100%;
	color: #f1f1f1;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr 50px;
  grid-template-areas:
    "header"
    "main"
    "footer";
  height: 100vh;
  padding: 0;
  
}

/* Give every child element its grid name */
.header {
  grid-area: header;
  background-color: #648ca6;
  padding: 1%;
	font-weight: bold;
	text-align: center;
	font-size: 2em;
}

.main {
  grid-area: main;
  /*background-color: #8fd4d9;*/
}

.tiles-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	grid-auto-rows: minmax(100px,auto);
	grid-gap: 20px;
	margin: 20px;
	grid-auto-flow: dense;
}

.tile {  
   display: flex;
    flex-wrap: wrap;
	 /*justify-content: space-between;*/
    padding: 2%;
    background-color: rgba(100,140,166,0.9);
}

.double-tile{
	grid-column: span 2;
}

.tile-title {
	flex: 100%;
	font-size: 1em;
}
.sensor {
	text-align: center;
	background-color: rgba(68,68,68,0.9);
}

.sensor img{
	width: 70%;
	height: auto;
}

.tile-value {
	flex: 100%;
	align-self: center;
	font-size: 3em;
	font-weight: bold;
	text-align:center;
}

.tile-double-value{
	flex: 100%;
	display: flex;
	flex-wrap: wrap;
	font-size: 1.5em;
	font-weight: bold;
	align-self: center;
	justify-content: space-evenly;
	
}

.tile > .tile-double-value {
	border-bottom: 1px solid #ccc;
}

.tile > .tile-double-value ~ .tile-double-value {
	border: none;
}

.tile-double-value img {
	width: 40%;
	height: auto;
	margin: 0 auto;
	display: block;
}

.outside-weather {
	display: grid;
	grid: auto / auto auto;
	background-color: rgba(68,68,68,0.9);
	padding: 2%;
	color: #f0a129;
	align-items: center;
}
.outside-sky {
	grid-column: 1 / span 2;
	color: #ffc87c;
	font-size: 1em;
	text-align: center;
}
.outside-temp{
	grid-row: 2 / span 3;
	text-align: center;
	font-size: 2em;
	font-weight: bold;
}

.outside-tile-title{
	grid-column: 1 / span 2;
}

.weather{
	background-color: rgba(68,68,68,0.9);
	color: #f0a129;
	font-size: 1em;
}

.sensor-status{
	width: 40px;
	height: 40px;
	background-color: #acfd32;
	border-radius: 50%;
	margin: 6% auto;
	font-size: 2em;
	font-weight: bold;
}

.main-container {
	background-color: rgba(100,140,166,0.9);
	margin: 20px;
	padding: 10px;
}
.graph {
	position: relative;
	width: 90vw;
	margin: 0 auto;
}
.output-monitor{
	padding: 0.5%;
	background-color: #ccc;
	overflow-y: scroll;
	border: 1px solid #333;
	unicode-bidi: embed;
    font-family: monospace;
    /*white-space: pre;*/
	color: darkslategray;
	margin: 10px;
	min-height: 5vh;
}

.footer {
  grid-area: footer;
  background-color: #648ca6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
