@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&family=Instrument+Serif:ital@0;1&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

:root{ 
	/*font families*/
	--primary-font-family: 'Helvetica Neue',sans-serif;
	--secondary-font-family: 'Libre Baskerville';

	/* color style */
	--accent-color: #4040E2;
	--text-color: black;
	--bg-color: #EEF3FF;

	/* h1 font style */
	--h1-font-family: "Almarai";

	font-size: 16px;
}

/* header */
header {
	padding: 3rem 4% 0;
	height: 100%;
	background: var(--bg-color);
}

header a {
	color: var(--accent-color);
	text-decoration: underline;
	font-size: 1rem;
	font-family: var(--primary-font-family);
}

a:hover{
	color: black;
}

/* title */
h1{
	font-family: var(--h1-font-family);
	font-weight: bold;
	font-size: 3.4rem;
	color: var(--accent-color);
	line-height: 3.75rem;
	padding-top: 1.9rem;
}

.h1-font{
	font-family: var(--secondary-font-family);
	font-style: italic;
	font-weight: normal;
	color: var(--text-color);
}

h1 div {
	display: block;
}

/* subtitle */
#h2-container {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
	margin: auto;
}

h2 {
	font-size: 1.2rem;
	color: var(--text-color);
	font-weight: bold;
	padding-top: 1rem;
	padding-bottom: 1.8rem;
}

/* author and published date */
header section {
	display: flex;
	gap: 1rem;
	color: var(--text-color);
	padding-bottom: 1.5rem;
	font-size: 1rem;
  }
  
 header section p {
	text-align: left;
  }
  
  .title {
	font-family: var(--primary-font-family);
	color: var(--accent-color); 
	font-weight: bold;
	display: block;
  }
  
  .text {
	font-family: var(--primary-font-family);
	display: block;
  }

  h3{
	font-family: var(--secondary-font-family);
	font-size: 1rem;

	color: white;
	background-color: var(--accent-color);
	margin-left: 1rem;
	padding: 0 0.6rem 0 0.5rem;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	position: sticky;
	top: 1.25rem;
  }

  #h3-first-container {
	background-color: white;
	width: 100%;
	position: sticky;
	top: 0.01px;
  }

  .h3-container {
	background-color: white;
	width: 100%;
	position: sticky;
	top: 0.1px;
  }

 .first-h3{
	margin-top: 3rem;
 }

 .stars {
	font-size: 1.9rem;
	display: inline-block;
	animation: rotate 6s linear infinite;
 }

 @keyframes rotate {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
 }

.body-p{
	font-family: var(--primary-font-family);
	font-size: 1rem;
	line-height: 1.5rem;
	margin-left: 8%; 
	border-left: 2px solid black;
	padding: 1.9rem 0 0 1.25rem;
	max-width: 83%;
  }

.bottom-p {
	padding-bottom: 3.75rem;
}

section a {
	color: var(--accent-color);
	text-decoration: underline;
	text-decoration-color: var(--accent-color);
}

section a:hover {
	color: white;
	background-color: var(--accent-color);
}

 blockquote{
	font-family: var(--secondary-font-family);
	font-size: 1.1rem;
	font-weight: bold;
	line-height: 1.6rem;
	color: var(--accent-color);
	border-left: 2px solid black;
	padding: 1.9rem 1.25rem 0.3rem 3.7rem;
	margin-left: 8%; 
 }

 footer{
	font-family: var(--secondary-font-family);
	font-size: 1rem;
	line-height: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	background-color: var(--bg-color);
	padding: 2.5rem 1.25rem;
 }

@media print {
	:root {
		--accent-color: #000;
	}

	/* hide original website link */
	header a {
		display: none;
	}
	
	/* decrease space between heading and body paragraph */
	#h2-container {
		padding-bottom: 0px;
	}

	header section {
		padding-bottom: 0px;
	}

	h2{
		max-width: 65%;
	}

	/* change section heading text color */
	h3 {
		/* color: black; */
		color: var(--accent-color);
		font-weight: bold;

		font-size: 1rem;
		margin-left: 1.2rem;
		padding:0 0.6rem 0 0.5rem;
	}

	/* remove underline for citations */
	section a {
		color: var(--text-color);
		text-decoration-color: var(--text-color);

		font-size: 1rem;
	}

	.body-p{
		margin-left: 5%;
		padding: 2rem 0 0 4rem;
		max-width: 80%;
	}

	.bottom-p {
		padding-bottom: 4rem;
	}

	blockquote{
		margin-left: 5%;
		padding: 2rem 2rem 0 18rem;
	}
}

@media (min-width: 1280px){
	/* header */
	header {
		padding: 3.75rem 6% 0.625rem;
	}

	header a {
		font-size: 1.4rem;
	}

	/* title */
	h1{
		font-size: 5.8rem;
		line-height: 6.8rem;
		padding-top: 3.75rem;
		padding-bottom: 2.5rem;
	}

	/* subtitle */
	#h2-container {
		display: flex;
		flex-direction: row;
		justify-content: flex-start;
		margin-top: 2.5rem;
		gap: 2.5rem;
	}

	h2 {
		font-size: 1.75rem;
		max-width: 40%;
		line-height: 2rem;
	}

	/* author and published date */
	header section {
		gap: 2.5rem;
		font-size: 1.4rem;
		line-height: 2rem;
	}

	h3{
		font-size: 1.4rem;
		margin-left: 6%; 
		padding: 0.6rem 1.25rem 0.6rem 1.1rem;
	}

	.first-h3{
		margin-top: 5rem;
	}

	.stars{
		font-size: 2.5rem;
	}

	.body-p{
		font-size: 1.25rem;
		line-height: 2rem;
		margin-left: 8%;
		padding: 3rem 0 0 8%;
		max-width: 60%;
	}

	.bottom-p{
		padding-bottom: 5rem;
	}

	blockquote{
		font-size: 1.4rem;
		line-height: 1.75rem;
		max-width: 75%;
		margin-left: 8%;
		padding: 3rem 0 0 30%;
	}

	footer{
		font-size: 1.25rem;
		line-height: 2rem;
		flex-direction: row;
		gap: 5rem;
		padding: 3.75rem 6.8rem;
	}
}

