
:root {
  --active-blue: #0569EB;
  --active-blue-hover: rgba(4, 109, 243, 0.05);
  --dark-blue: #152437;
  --dark-grey: #333;
  --light-grey: #f5f5f5;
  --border-grey: rgba(21, 36, 55, 0.1);
  --white: rgba(255, 255, 255, 1);
}


html {

	font-family: sans-serif;
	background-color: var(--light-grey);
	color: var(--dark-grey);
}


body {
	padding: 1rem;
	-webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

}


a {
	text-decoration: none;
}


h3 {
	margin: 0.5rem 0 0.5rem 0;
}

.header-container {
	display: flex;
	justify-content: center;
	align-items: center;
}

.header-menu {
	display: flex;
	justify-content: flex-end;
	margin-top: 0;
}

.header-menu ul {
	display: flex;
	list-style: none;
	gap: 1rem;
	margin: 0 0 2rem 0;
}

.header-menu a {

	padding: 0.4rem 0.4rem 0.4rem 0.4rem;
	border-radius: 0rem;
	color: #046DF3;
	white-space: nowrap;


	&:hover {
		background-color: var(--active-blue-hover);
	}

	&:visited {
		color: #046DF3;
	}
}

.button-container {
	display: flex;
	flex-direction: row;
	gap: 8px;
	margin: 0.5rem 0;
}


.location-button{
	display: inline-block;
  padding: 0.4rem 0.4rem 0.4rem 0.4rem;
  cursor: pointer;
  color: var(--active-blue);
  border-radius: 2px;
  border: solid 1px var(--border-grey);
  background-color: var(--white);
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.06);

    &:hover {
    	background-color: var(--active-blue-hover);
    }
}

#navigation-drawer {
		display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    overflow: hidden;
  	transition: max-height 0.12s ease-in-out, opacity 0.12s ease-in-out;
}

.visible {
	max-height: 3000px;
  opacity: 1;

}

.hidden {
	max-height: 0px;
	opacity: 0;
}


.forecast-text {
	font-weight: 500;
	opacity: 0.85;
	margin: 1rem 0;
}


.menu-item {

	font-size: 18px;
	padding: 0.5rem;
	color: var(--dark-blue);
	border: none;
	background-color: var(--white);
	text-align: left;
	margin: 0.2rem;

	&:hover {
		opacity: 0.8;
		cursor: pointer;
		border-radius: 0rem;
		background-color: var(--active-blue-hover);
	}

	&:before {
	content: "📍";

	}
}

.item-selected {
	font-weight: 700;
}



.logo {
	max-width: 300px;
}

.logotext {
	font-size: 40px;
	font-weight: 800;
}

.logo-first {
	color: var(--dark-blue);
}

.logo-second {
	color: var(--active-blue);
}

.forecast-container {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding:0;
	width: 100%;
}

.center-container {
	width: 100%;
	max-width: 1200px;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

.grid-container{
	display: grid;
  justify-content: center;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	margin:0 auto;
	margin-top: 0.5rem;
  gap: 0.5rem;
  padding: 0rem;
	max-width: 1200px;

	@media (max-width: 1080px) {
		grid-template-columns: repeat(2, 1fr);

	}

   @media (max-width: 600px) {
		grid-template-columns: 1fr;
  }
}


.chart-card {
	border-radius: 0rem;
	margin-top: 0rem;
	padding: 1rem;
	justify-content: center;
	display: flex;
	flex-direction: column;
	background-color: var(--white);
	border: solid 1px var(--border-grey);
	& a {
		color: var(--dark-blue);
	}
}


.weather-card {
	width: 100%;
	justify-content: center;
	background-color: var(--white);
	border: solid 1px var(--border-grey);
	border-radius: 0rem;
	margin: 1rem 0 0 0;
	padding: 1rem;

}

.weather-item {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.weather-icon {
	font-size: 40px;
}

.weather-text {
	color: var(--dark-blue);
	font-weight: 700;
	opacity: 0.8;
}

.chart-title {
	font-size: 24px;
	font-weight: 600;
	margin: 0.5rem 0 0rem 0;
	border-radius: 0.5rem;
	padding: 0.5rem 0.5rem 0.5rem 0.1rem;

}

.supporting-text {
	font-size: 12px;
	color: var(--dark-blue);
	font-weight: 600;
	opacity: 0.8;
	padding: 0.2rem;
	margin-bottom: 0.5rem;
}


.barchart {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	height: 16px;
	gap: 8px;
	margin: 0.5rem;
	width: 100%;

	@media (max-width: 460px) {
		flex-direction: column;
		align-items: flex-start;
		height: auto;
	}
}


.chart-table {
	border-spacing: 0 16px;
  border-collapse: separate;
}

.barchart-label {;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	color: var(--dark-grey);
	padding: 0;
	margin: 0;
}


.chart-cell {
	min-width: 24px;
	max-height: 4px;
	margin: 0;
	padding: 0;
	border-left: 2px solid white;

}


.barchart-bars {
	display: flex;
	width: 100%;
	flex-direction: row;
	justify-content: space-between;
	align-self: stretch;
	gap: 2px;
}



.bar-item {
	flex-grow: 1;
	height:8px;
	min-width: 24px;
	display: flex;
	align-self: center;
}


.history-container {
	display: flex;
  justify-content: center;
	margin:0 auto;
	margin-top: 0.5rem;
  gap: 0.5rem;
  padding: 0rem;
	max-width: 1200px;
	width: 100%;

}

.history-card {
	border-radius: 0rem;
	padding: 1rem;
	width: 100%;
	background-color: var(--white);
	border: solid 1px var(--border-grey);
	& a {
		color: var(--dark-blue);
	}

	& span {
		font-size: 12px;
		color: var(--dark-blue);
		font-weight: 600;
		opacity: 0.8;
		padding: 0.2rem;
		margin-bottom: 0.5rem;

	}

	overflow-x: auto; 
	-webkit-overflow-scrolling: touch;
}

@media (min-width: 1000px) {
  .hide-on-large {
    display: none;
  }
}


.history-table-header {
		font-size: 0.8rem;
		font-weight: 600;
		text-align: left !important;
}

.history-chart-cell {
	min-width: 24px;
	margin: 0;
	padding: 0;
	font-size: 0.8rem;
/*	border: solid 1px var(--border-grey);*/
	padding: 0.2rem;
	text-align: center;
}

.history-cell-label {
	font-weight: 700;
	font-size: 0.5rem;
}

.history-cell-value {
	font-weight: 600;
	font-size: 0.8rem;
}


.history-vlow {
	color: rgba(0, 0, 0, 0.4);

}

.history-low {
	color: rgba(0, 0, 0, 0.6);
	background-color: rgba(212, 70, 31, 0.05);
}

.history-mid {
	color: rgba(0, 0, 0, 0.8);
	background-color: rgba(212, 70, 31, 0.2);
}

.history-high {
	color: rgba(0, 0, 0, 1);
	background-color: rgba(212, 70, 31, 0.5);
}

.history-vhigh {
	color: rgba(255, 255, 255, 1);
	background-color: rgba(212, 70, 31, 1);
}

.visually-hidden {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


.outline {
	background-color: #3B4654;
	opacity: 0.1;
}

.green {
	background-color: #52D41F;

}

.yellow {
	background-color: #D4A11F;
}

.red {
	background-color: #D4461F;
}


.footer {
	display: flex;
	justify-content: center;

}

.content-container {
	display: flex;
	align-items: center;
	flex-direction: column;
	margin: 2rem 0 0 0;
}

.article-back-button {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	max-width: 640px;

	color: var(--active-blue);

	& a:visited {
		color: var(--active-blue);
	}
}


.article-content {
	display: flex;
	flex-direction: column;
	max-width: 640px;
	border: solid 1px var(--border-grey);
	padding: 1rem 2rem;
	background-color: var(--white);

}


.article-list-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2rem 0 2rem 0;
	gap: 0.5rem;

	& a {
		color: var(--dark-blue);
	}

	& a:visited {
		color: var(--dark-blue);
	}
}

.article-list-item {
	background-color: var(--white);
	border: solid 1px var(--border-grey);
	padding: 1rem;
	max-width: 480px;

	&:hover {
		background-color: var(--active-blue-hover);
	}

}



.footer a  {
	color: #333;
	font-weight: 700;
	&:visited {
		color: #333;
	}
}

.cookie {

	z-index: 100;
	position: fixed;
	bottom: 1rem;
	border-radius: 0rem;
	margin-top: 0.5rem;
	margin-left: 0.7rem;

	transition: opacity 0.2s ease-in-out;

	display: flex;
	gap: 0.5rem;
	flex-direction: row;
	align-items: center;

	background-color: var(--white);
	border: solid 1px var(--border-grey);
	padding: 0.5rem 1rem;

  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.06);


	& button {
		padding: 0.2rem 1rem;
		font-weight: 700;
		height: 32px;
		border-radius: 0.5rem;
		border: none;
		color: var(--active-blue);
		background-color: var(--white);

		&:hover {
			cursor: pointer;
			opacity: 0.9;
			text-decoration: underline;
		}

	}

}

.cookie-hidden {
	opacity: 0;
}


