:root {
	--book-width: 15vw;
	--book-height: calc(var(--book-width) * 2);
	--bookshelf-col-width: calc(var(--book-width) * 3);
}

/* Tablet and larger styles */
@media (min-width: 786px) {
	:root {
		--book-width: 120px;
		--book-height: calc(var(--book-width) * 1.2);
		--bookshelf-col-width: calc(var(--book-width) * 4.5);
	}

}

::-webkit-scrollbar {
	display: none;
	width: 0px;
	height: 0px;
}

ol, ul {
	list-style: none;
}

body {
	background-size: 100%;
	display: block;
	background-repeat: no-repeat;
}

main {
	grid-row: 2/3;
	grid-column: 1/2;
}


.knowledge-island-page {
	background: linear-gradient(150deg, #A4D5C8 50%, #B2D8D6 50% 70%, #A4D5C8 70% 85%, #B2D8D6 85% 100%);
	background-size: cover;
	display: grid;
	grid-template-columns: 100%;
	grid-template-rows: 75vh auto;
	width: 100%;
	padding: 0;
	box-sizing: content-box;
}

/* Tablet and larger styles */
@media (min-width: 786px) {
	.knowledge-island-page {
		grid-template-columns: 5vw 10vw 10vw 10vw 10vw 1fr;
		grid-template-rows: 40% 20% 30% 10%;
		height: 100%;
	}
}

/* destkop and larger styles */
@media (min-width: 980px) {
	.knowledge-island-page {
		grid-template-columns: 5vw 10vw 10vw 10vw 10vw var(--bookshelf-col-width) 1fr;
	}
}


/* graphical elements */
.character {
	display: none;
}

/* Tablet and larger styles */
@media (min-width: 786px) {
	.character {
		z-index: 2;
		display: unset;
		grid-column: 3/6;
		grid-row: 2/-1;
		max-height: 100%;
		object-fit: scale-down;
		align-self: end;
		justify-self: start;
		pointer-events: none;
	}
}

.picture {
	display: none;
}

/* Tablet and larger styles */
@media (min-width: 786px) {
	.picture {
		display: unset;
		grid-column: 1;
		grid-row: 1;
		z-index: 1;
		transform: translateX(20%);
		justify-self: end;
	}
}


.plant {
	max-width: 60%;
	align-self: end;
	justify-self: center;
	transform: translateY(20%);
}

.wall {
	display: none;
}

/* Tablet and larger styles */
@media (min-width: 786px) {
	.wall {
		display: unset;
		grid-column: 1/3;
		grid-row: 1/-1;
		align-self: stretch;
		z-index: 0;
	}
}

.text-box {
	grid-column: 1/2;
	grid-row: 2/3;
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	z-index: 3;
}

/* Tablet and larger styles */
@media (min-width: 786px) {
	.text-box {
		width: max-content;
		grid-column: 3/5;
		grid-row: 1/2;
		align-self: end;
	}
}


.speech-bubble-arrow {
	grid-column: 10;
	justify-self: start;
	align-self: end;
	z-index: 0;
}

.speech-bubble-box {
	align-self: stretch;
}

.speech-bubble-box .dialogue {
	grid-column: 1/3;
	grid-row: 1/2;
	animation: dialogue-fadein 1s cubic-bezier(.47,0,.74,.71)
}

.speech-bubble-box .audio {
	grid-column: 3/4;
	grid-row: 1/2;
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	align-items: flex-start;
}

.hide {
	transform: translateY(100vh);
}

.avatars {
	grid-column: 1;
	grid-row: 1;
	place-self: end;
	max-width: 40vw;
	z-index: 2;
	animation-name: enter;
	animation-duration: 1.75s;
}

@keyframes enter {
	from { transform: translate(70%);}
	to { transform: translate(0%);}
}

/* Tablet and larger styles */
@media (min-width: 786px) {
	.avatars {
		grid-column: 6;
		grid-row: 3;
		place-self: end;
		z-index: 1;
		max-width: 15vw;
		animation-name: enter;
		animation-duration: 2s;
	}

	@keyframes enter {
		from { transform: translate(100%);}
		to { transform: translate(0%);}
	}
}


.book-dialog {
	max-width: 95vw !important;
}

.book-modal {
	background-origin: border-box;
	background-repeat: no-repeat;
	background-image: url("/media/graphics/book.png");
	background-attachment: scroll;
	background-size: 200% 100%;
	background-color: transparent;
	border-color: transparent;
	background-position-x: 100%;
	min-height: 60rem;
}

/* Tablet and larger styles */
@media (min-width: 786px) {
	.book-modal {
		background-size: 100% 100%;
		background-position-x: unset;
	}
}

.close-book {
	width: max-content;
	position: absolute;
	top: 3rem;
	left: 1rem;
	z-index: 2;
}

/* Tablet and larger styles */
@media (min-width: 786px) {
	.close-book {
		left: 4rem;
	}
}


.book-container {
	aspect-ratio: 234/401;
	display: grid;
	grid-template-columns: 1fr 2fr;
	grid-template-rows: 6vh 1fr;
	z-index: 3;
	grid-column: 1/11;
	grid-row: 1/11;
	margin-top: 2rem;
	transition: transform 800ms cubic-bezier(.72,-0.34,.28,1.39)
}


/* Tablet and larger styles */
@media (min-width: 786px) {
	.book-container {
		aspect-ratio: unset;
		grid-template-rows: 6vw 1fr;
	}
}

/* Desktop and larger styles */
@media (min-width: 1025px) {
	.book-container {
		grid-column: 2/10;
	}
}

.close-btn {
	z-index: 1;
	text-decoration: none;
	color: var(--black);
	position: fixed;
	top: 6vw;
	left: .5vw;
}

/* Tablet and larger styles */
@media (min-width: 786px) {
	.close-btn {
		top: 2vw;
		left: 2vw;
	}
}

.book-img {
	grid-column: 1/-1;
	grid-row: 1/3;
	z-index: 0;
	transform: scale(2, 3) translate(-25%, 33%);
}

/* Tablet and larger styles */
@media (min-width: 786px) {
	.book-img {
		transform: none;
	}
}

.book-content {
	grid-column: 1/-1;
	grid-row: 2/3;
	z-index: 1;
	padding: 1rem;
}

/* Tablet and larger styles */
@media (min-width: 786px) {
	.book-content {
		aspect-ratio: 4/2;
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: 1fr;
	}
}

.page {
	padding: 5rem 1rem !important;
	grid-column: 1/2;
	grid-row: 1/2;
	padding: 0 1rem 100% 1rem;
	height: 100%;
	width: 100%;
	display: flex;
	flex-direction: column;
}

.page h2:nth-child(1) {
	color: var(--dark-blue);
}

.page h2:nth-child(n + 2) {
	grid-row: 2/3;
	color: var(--dark-blue);
}

.page h2:nth-child(n + 2) {
	grid-row: 3/4;
}

.graphic {
	grid-column: 2/3;
	grid-row: 3/4;
	max-width: 100%;
	height: auto;
	margin-top: 1rem;
}

/* Tablet and larger styles */
@media (min-width: 786px) {
	.page {
		grid-row: 1/2;
		grid-column: 1/3;
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: min-content;
		grid-auto-rows: max-content;
		padding: 5rem 2rem !important;
		padding: 0;
	}

	/* "Question" header  */
	.page h2:nth-child(1) {
		grid-column: 1/2;
		margin: 0 2rem 1rem 2rem;
		font-size: 2rem;
	}

	/* Question content */
	.page h3 {
		grid-column: 1/2;
		grid-row: 2/3;
		margin: 0 2rem;
		font-size: 2rem;
	}

	/* "Answer" header */
	.page h2:nth-child(n + 2) {
		grid-column: 2/3;
		grid-row: 1/2;
		margin: 0 2rem 1rem 2rem;
		font-size: 2rem;
	}

	/* Answer content */
	.page > p {
		grid-column: 2/3;
		grid-row: 2/3;
		margin: 0 2rem;
	}

	/* Definition list dropdowns, if any */
	.page > dl {
		grid-column: 2/3;
		margin: 0 2rem;
		height: 200%;
	}


	.page .links {
		grid-column: 1/2;
		grid-row: 3/4;
		margin: 2rem;
		align-self: start;
	}
}


.links {
	display: flex;
	flex-direction: row;
	justify-content: space-evenly;
}

.link {
	display: grid;
	column-gap: 0.5rem;
	grid-auto-rows: auto;
	flex: 1;
	padding: 0.25rem;
	text-decoration: none;
	color: var(--black);
}

.prev.link {
	grid-template-columns: 15px 1fr;
	grid-template-areas: "chevron link-direction"
						 "nix	  link-title";
	text-align: left;
	margin-left: -1rem;
}

.next.link {
	grid-template-columns: 1fr 15px;
	grid-template-areas: "link-direction chevron"
						 "link-title	 nix";
	text-align: right;
}

.chevron {
	grid-area: chevron;
	align-self: start;
	margin-top: 7px;
	height: 20px;
	width: 20px;
}

.link-direction {
	grid-area: link-direction;
	align-self: start;
	text-decoration: none;
	font-size: 1rem;
	margin-bottom: 0.5rem;
}

.link-title {
	grid-area: link-title;
	text-decoration: none;
	align-self: start;
}

summary {
	color: var(--dark-blue);
	font-weight: 500;
	margin-bottom: .75rem;
}

dt.list-section-header	{
	font-size: 1rem;
	font-weight: 300;
	margin-top: 1rem;
	margin-bottom: 1rem;
}

.accordion-header {
	font-size: 1.25rem;
}

.bookshelf-nav {
	grid-row: 1/2;
	grid-column: 1/2;
	width: 100%;
	align-self: start;
	justify-self: center;
	display: grid;
	grid-template-columns: repeat(3, minmax(var(--book-width), 1fr));
	grid-template-rows: repeat(4, var(--book-height) 1rem);
	grid-auto-flow: row;
}

/* Tablet and larger styles */
@media (min-width: 786px) {
	.bookshelf-nav {
		grid-column-gap: 10px;
		grid-column: 6/7;
		grid-row: 1/-1;
		width: 100%;
		height: 100%;
		align-self: start;
		justify-self: start;
		grid-template-columns: repeat(auto-fill, minmax(var(--book-width), 1fr));
		grid-template-rows: repeat(4, var(--book-height) 1rem);
		grid-auto-flow: row;
		grid-template-areas: unset;
	}

	.shelf {
		paddingn-top: 20vh;
		object-fit: fill;
		transform: translateY(-50%);
	}

	.plant {
		z-index: 2;
		transform: translateY(0%);

	}
}

.shelf.one {
	grid-row: 2/3;
	grid-column: 1/-1;
}

.shelf.two {
	grid-row: 4/5;

	grid-column: 1/-1;
}

.shelf.three {
	grid-row: 6/7;

	grid-column: 1/-1;
}

.shelf.four {
	grid-row: 8/9;
	grid-column: 1/-1;
}



/* Tablet and larger styles */
@media (min-width: 786px) {

	.shelf.one {
		grid-row: 2;
		grid-column: 1/-1;
	}

	.shelf.two {
		grid-row: 4;

		grid-column: 1/-1;
	}

	.shelf.three {
		grid-row: 6;

		grid-column: 1/-1;
	}

	.shelf.four {
		grid-row: 8;

		grid-column: 1/-1;
	}
}

.book-link {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
	text-decoration: none;
	z-index: 1;
	align-self: end;
	height: 100%;
	transform: translateY(12%);
	aspect-ratio: 2/2.2;
	justify-self: center;
	position: relative;
}


/* Tablet and larger styles */
@media (min-width: 786px) {
	.book-link {
		min-width: auto;
		min-height: 100%;
		transform: none;
		align-items: end;
	}
}


.book-title-container {
	grid-row: 1/2;
	grid-column: 1/2;
	z-index: 1;
	color: var(--white);
}

/* Tablet and larger styles */
@media (min-width: 786px) {
	.book-title-container {
		aspect-ratio: 225/241;
	}

}

.book-title {
	margin: 15% 9% auto 15%;
	padding: 2px;
	background: rgba(0, 0, 0, .2);
	font-size: .7rem;
	text-align: center;
}

.spanish .book-title {
	font-size: .6rem;
}

@media (min-width: 786px) {
	.book-title {
		padding: 6px;
		font-size: .8rem;
	}

	.spanish .book-title {
		font-size: .8rem;
	}
}

.book-cover {
	grid-row: 1/2;
	grid-column: 1/2;
	z-index: 0;
	object-fit: scale-down;
	max-height: 100%;
	max-width: 100%;
}

.read-indicator {
	background-color: var(--bright-green);
	border-radius: 50%;
	width: 2rem;
	height: 2rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: absolute;
	z-index: 1;
	bottom: 10%;
	left: 15%;
}

/* Tablet and larger styles */
@media (min-width: 786px) {
	.read-indicator {
		bottom: 5%;
	}

}
