.cards {
  font-family: Comfortaa, cursive;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  /* align-items: flex-start; */
  align-content: stretch;
  width: 100%;
}

.cards .card {
  position: relative;
  background: #fff;
  width: 59.6%;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  margin-bottom: 2%;
  border-radius: 1rem;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--blue-141), 0px 10px 15px rgba(0, 0, 0, 0.75);

}

.cards .card-small {
  position: relative;
  background: #fff;
  width: 19%;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  margin-bottom: 2%;
  border-radius: 1rem;
}

.cards .card:first-of-type {  }

.cards .card, .cards .card * { font-family: inherit; }
.cards .card-small, .cards .card-small * { font-family: inherit; }

.card-header, .card-content, .card-footer {
  padding: 1rem;
}

.card .card-header {
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  height: 100px;
  background: var(--yellow-1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.card-header .card-title {
  flex-grow: 3;
}
.card-header p { margin-bottom: 0; }
.card .card-header .card-icon {
  width: 100px;
  height: 100px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.card .card-header .card-icon img, .card .card-header .card-icon canvas { width: 60px; height: auto; margin: 20px; }
.card #weather-icon.owf { font-size: 60px; margin: 20px; }

.card-small .card-header { display: flex; align-items: center; flex-flow: column; text-align: center; }
.card-small #weather-icon.owf { font-size: 100px; }

.card h2, .card h3 {  padding: 0; margin: 0; }

.card-title h3 { font-weight: 700; margin-bottom: 10px; margin-top: 0; }


.card .card-content {
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-start;
  flex-grow: 1;

  background: linear-gradient(180deg, var(--yellow-1) 46%, var(--blue-141) 100%), #fff;
}
.card-small .card-content {
  display: flex;
  flex-flow: column;
  justify-content: stretch;
  flex-grow: 2;
}

.card .cc-wrap { width: 50%; margin-bottom: 0.5rem; }
.card .cc-wrap > :first-child { margin-bottom: 0.2rem; color: #444; }
.card .cc-wrap > :last-child { margin-bottom: 0; color: var(--color-text); }

.card-small .cc-wrap { margin-bottom: 0.5rem; }
.card-small .cc-wrap > :first-child { margin-bottom: 0.5rem; color: #444; }
.card-small .cc-wrap > :last-child { margin-bottom: 0.5rem; color: var(--color-text); }

.card .cc-wrap-temp, .card-small .cc-wrap-temp {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card .cc-wrap h2, .card-small .cc-wrap h2 { padding: 0; margin: 0; }
.card .cc-wrap-temp h2, .card-small .cc-wrap-temp h2 { padding: 0; margin: 0; }

.card-small .cc-wrap h2 { font-size: 1.5em; }

.cc-wrap-temp :first-child { flex-grow: 1; }
.cc-wrap-temp .temp-range {
  display: flex;
  flex-flow: column;
  justify-content: space-around;
  text-align: left;
  flex-grow: 6;
}

.card .cc-wrap-hourly-data {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-grow: 1;
}

.card .card-footer {
  display: flex;
  background-color: var(--blue-141);
  justify-content: space-between;
  align-items: center;
  border-top: 1px dotted rgba(255,255,255,0.3);
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

.card small, .card-small small {
  font-size: 0.8em;
  text-transform: initial;
}
.card .note {
  font-size: 0.8em;
  text-transform: lowercase;
  color: rgba(0,0,0,0.9);
}

.icon-wind-direction { height: 0.9em; line-height: 1em; vertical-align: top; }

/* Charts stuff */

canvas{
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
}
.chartjs-tooltip {
	opacity: 0;
	position: absolute;
	background: rgba(0, 0, 0, .7);
	color: white;
	border-radius: 3px;
	-webkit-transition: all .1s ease;
	transition: all .1s ease;
	pointer-events: none;
	-webkit-transform: translate(-50%, 0);
	transform: translate(-50%, 0);
	padding: 0.5rem;
  text-align: center;
  line-height: 1.4em;
  z-index: 1000;
}

.chartjs-tooltip-key {
	display: inline-block;
	width: 10px;
	height: 10px;
}

@media screen and (max-width: 800px) {
  .cards .card, .cards .card-small { width: 90vw; margin-bottom: 5vw}
  .cards .card-small .card-header { padding-top: 10vw; }

}
