/*
Theme Name: LP Theme National Assessments Styles
Theme URI: https://literacyplanet.com
Author: Literacy Planet
*/

/* GENERAL
################################################################################### */

article {
	padding-bottom: calc(var(--layout-unit)*2);
}

.intro-section .container {
	padding-top: calc(var(--layout-unit)*2);
	padding-bottom: calc(var(--layout-unit)*3);
}

.year-level .key {
	text-align: center;
}

.year-level .key > span {
	display: inline-block;
	margin: 0 1em;
}

.graphs .x-axis {
	width: 100%;
	height: 4em;
}

.graphs .x-axis .line {
	width: 100%;
	height: 2px;
	background-color: var(--dark-blue);
}

.graphs .x-axis .value {
	position: absolute;
	transform: translateX(-50%);
	top: 0;
	padding-top: 0.5em;
	color: var(--dark-blue);
}

.graphs .x-axis .value:before {
	width: 2px;
	height: 0.5em;
	overflow: hidden;
	background-color: var(--dark-blue);
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	content: " ";
}

.graphs .x-axis .value:first-child:before {
	transform: none;
}

.graphs .x-axis .value:last-child:before {
	transform: translateX(-100%);
}

.graph {
	width: 100%;
	margin-bottom: 1em;
}

.graph .bars {
	flex-grow: 1;
}

.graph .bar {
	padding: 0.1em 0.5em;
	text-align: right;
	color: white;
	margin-bottom: 0.3em;
	border-top-right-radius: 2em;
	border-bottom-right-radius: 2em;
}

.graph .bar-1 {
	background-color: var(--blue);
}

.graph .bar-2 {
	background-color: var(--pink);
}

@media (max-width: 1023px) {

	.intro-section .elder_wordsmith {
		width: 20rem;
		max-width: 90%;
		margin: 2rem 0 0;

	}

	.intro-section .treasure_chest {
		display: none;

	}

	.year-level.panel {
		border: none;
		border-bottom: 2px solid var(--grey);
		box-shadow: none;
		padding: 0 0 3rem 0;
		margin: 0 0 3rem 0;
		background: none;
		border-radius: 0;
	}

	.year-level.panel:before {
		box-shadow: none;
	}

	.graph {
		display: block;
	}

	.graph .label {
		padding-bottom: 0.2em;

	}

	.mushroom {
		display: none;
	}

}

@media (min-width: 1024px) {

	.intro-section .info {
		width: 60%;
		margin: auto;
	}

	.intro-section .info > *:not(img) {
		z-index: 10;
	}

	.intro-section .character.right {
		position: absolute;
		top: -2rem;
		left: 105%;
		width: 40%;
		z-index: 1;
	}

	.intro-section .character.left {
		position: absolute;
		top: -3rem;
		right: 90%;
		width: 60%;
		z-index: 1;
	}

	.year-level.panel {
		width: 60%;
		margin: 0 auto calc(var(--layout-unit)*3);
	}

	.graph-section .blob-left {
		top: 0;
		right: 70%;
		width: 20rem;
		min-width: 30%;
		transform: translate(0%, -30%);
		margin-top: 0;
		max-width: none;
		z-index: -1;
	}

	.graph-section .blob-right {
		top: 0;
		left: 70%;
		width: 20rem;
		min-width: 30%;
		transform: translate(0%, -30%);
		margin-top: 0;
		max-width: none;
		z-index: -1;
	}

	.graphs .x-axis {
		padding-left: 7em;
	}
	
	.graph {
		display: flex;
	}

	.graph .label {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		width: 7em;
		padding-right: 1em;
	}

	.graph .label > * {
		text-align: right;
	}

	.mushroom {
		position: absolute;
		top: 50%;
		transform: translate(-50%, -50%);
	}

	.graph-section:nth-child(even) .mushroom-1 {
		left: 10%;
	}

	.graph-section:nth-child(even) .mushroom-2 {
		left: 84%;
	}

	.graph-section:nth-child(even) .mushroom-3 {
		left: 95%;
	}

	.graph-section:nth-child(odd) .mushroom-1 {
		left: 90%;
	}

	.graph-section:nth-child(odd) .mushroom-2 {
		left: 16%;
	}

	.graph-section:nth-child(odd) .mushroom-3 {
		left: 5%;
	}

}