* {
    margin: 0;
    padding: 0;
}

header {
    background-color: #2c4357;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

#left-header-items {
    display: flex;
    align-items: center;
    margin-left: 50px;
}

#logo {
    height: 50px;
    padding-right: 12.5px;
    padding-bottom: 5px;
    padding-top: 5px;
}

#title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: whitesmoke;
    font-family: 'Open Sans', sans-serif;
    font-size: 25px;
    margin: 0;
}

#subtitle {
    font-size: 10px;
}

nav {
    float: right;
    margin-right: 50px;
}

ul {
    margin: 0;
}


/* Style the links inside the navigation bar */

.nav-link {
    display: inline-block;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    list-style: none;
    padding-left: 50px;
}

.nav-link a {
    color: whitesmoke;
    text-decoration: none;
}

.nav-link a:hover {
    cursor: pointer;
    color: #1e7b80;
}

.dropdown {
    display: inline;
    padding-bottom: 10px;
    padding-left: 25px;
    height: 100%;
    overflow: hidden;
}

.dropdown .dropdown-button {
    background-color: inherit;
    color: whitesmoke;
    border: none;
    outline: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    list-style: none;
}

.sub-menu {
    background-color: #2c4357;
    display: none;
    padding-top: 10px;
    position: absolute;
    z-index: 1;
}

.sub-menu a {
    color: whitesmoke;
    text-decoration: none;
}

.dropdown-button:hover {
    color: #1e7b80;
}

.dropdown:hover .sub-menu {
    display: block;
}

.dropdown:hover .dropdown-button {
    color: #1e7b80;
}

.sub-nav-link {
    display: flex;
    flex-direction: column;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    list-style: none;
    min-width: 500px;
    padding-bottom: 12.5px;
    padding-left: 25px;
    padding-right: 25px;
    padding-top: 12.5px;
}

.sub-nav-link:hover a {
    color: #1e7b80;
}

#temp-card {
    margin-left: 20px;
}

#humid-card {
    margin-right: 20px;
}

input[type="date"]:before {
    content: attr(placeholder) !important;
    color: #aaa;
    margin-right: 0.5em;
}

input[type="date"]:focus:before,
input[type="date"]:valid:before {
    content: "";
}

input {
    width: 150px;
    margin: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

input[type=text] {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
}

input[type=button] {
    background-color: gray;
    border: none;
    color: black;
    padding: 16px 32px;
    text-decoration: none;
    font-weight: bold;
    margin: 4px 2px;
    cursor: pointer;
}

input[type=text]:focus {
    background-color: lightblue;
}

input[type=button]:hover {
    background-color: #686868;
}

#chartdiv {
    width: 24%;
    height: 220px;
    margin: 5px;
}

#chartdiv2 {
    width: 24%;
    height: 220px;
    margin: 5px;
}

#chartdiv3 {
    width: 24%;
    height: 220px;
    margin: 5px;
}

#chartdiv4 {
    width: 24%;
    height: 220px;
    margin: 5px;
}

#chartdiv5 {
    width: 24%;
    height: 220px;
    margin: 5px;
}

#chartdiv6 {
    width: 24%;
    height: 220px;
    margin: 5px;
}

#chartdiv7 {
    width: 24%;
    height: 220px;
    margin: 5px;
}

#chartdiv8 {
    width: 24%;
    height: 220px;
    margin: 5px;
}

.row {
    display: flex;
    margin: 5px;
    align-items: center;
    justify-content: center;
}

.flex-container>div {
    background-color: black;
    margin: 10px;
    padding: 20px;
    font-size: 30px;
}

.card1 {
    background-color: #337ab7;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    width: 150px;
    margin: 10px;
    position: relative;
}

#control {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
}

.card-label {
    bottom: 0;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding-bottom: 5px;
    width: 100%;
}

.line {
    white-space: nowrap;
    display: inline;
}

.footer {
  padding: 15px;
  position: absolute;
  bottom: 0;
  left: 0;
  color: white;
  text-align: center;
  width: 100%;
}