/* text styles */
#contents h1, #contents h2 {
	color: #276bad; /* secondary color */
	font-family: Adelle;
	font-size: 2rem;
	font-style: italic;
}


/* sections */
body {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: 0.5fr 1fr min-content;
	gap: 10px 10px;
	grid-template-areas:
		"header"
		"main"
		"footer";
	height: 5rem;
	margin: .5rem auto;
	max-width: 720px;
}

#contents header {
	align-items: center;
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-rows: 1fr auto auto;
	gap: 0px 0px;
	grid-area: header;
}

#toc-logo {
	grid-area: 1 / 1 / 2 / 2;
	max-width: 75%;
}

#toc-hr {
	grid-area: 2 / 1 / 3 / 3;
	border: 2px solid #276bad;
	margin: .5rem 0;
	width: 100%;
}

#toc-date {
	grid-area: 3 / 1 / 4 / 2;
	font-style: italic;
	font-weight: bold;
	margin: .2rem 0;
	padding-left: 1rem;
}

#toc-cover {
	grid-area: 1 / 2 / 4 / 3;
	box-shadow: 0 5px 10px gray;
	height: 160px;
	margin-right: 1rem;
	width: auto;
}

main {
	margin-top: 50px;
	width: 100%;
}

article {
	margin: 0 6%;
}


/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  background-color: #fefefe;
  margin: 2rem auto;
  border: 1px solid #888;
	box-shadow: 0 1rem 4rem rgba(0,0,0,0.8);
  max-width: 560px;
  position: relative;
}

.modal-content p {
	margin: 0;
	padding: 1rem 2rem;
}

/* The Close Button */
.close {
	background-color: #fff;
  color: #aaaaaa;
  font-size: 2rem;
  font-weight: bold;
  line-height: 2rem;
  position: absolute;
  text-align: center;
  right: 0;
  top: 0;
  width: 2rem;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}


/* table of contents list cards */
.article-card {
	background-color: white;
	border-radius: 1rem;
	box-shadow: 0px 5px 20px #999;
	display: block;
	color: black;
	margin: 2rem 0;
	text-align: left;
	text-decoration: none;
}

.card-top {
	background-color: #FAF0E6;
	border-bottom: 5px solid #276bad;
	border-radius: 1rem 1rem 0 0;
	min-height: 2.5rem;
	position: relative;
}

.card-img {
	border-radius: 1rem 1rem 0 0;
	margin-bottom: -.7rem;
	z-index: 10;
}

.card-tag {
	background-color: white;
	border-radius: .5rem .5rem 0 0;
	border: 4px solid #276bad;
	border-bottom: 0;
	color: #276bad;
	font-size: 1rem;
	margin: 0;
	margin-top:;
	padding: .5rem 1rem .2rem;
	position: absolute;
	bottom: -5px;
	right: 2.5rem;
	z-index: 20;
}

.department-card {
	background-color: white;
	border-radius: 1rem;
	box-shadow: 0px 5px 20px #999;
	display: block;
	color: black;
	margin: 2rem 0;
	padding: 1rem 2rem;
	position: relative;
	text-align: left;
	text-decoration: none;
}

.card-bottom {
	margin: 0 2rem;
	padding-bottom: 1rem;
}

div.article-card, div.department-card {
	border: 2px solid #276bad;
	border-bottom: 6px solid #276bad;
	box-shadow: none;
}

div .card-img{
	border-radius: .9rem .9rem 0 0;	
}

hr {
	margin: 5rem 0;
}

#contents footer {
	margin: 2rem;
}

.links {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	width: 100%;
}

.links .btn {
	border-radius: .5em;
	color: white;
	font-family: sans-serif;
	font-size: 18px;
	margin: 0 auto;
	padding: 1em;
	text-decoration: none;
}

.links a img {
	height: 1.25em;
	margin: .25em .5em -.25em 0;
}

.website {
	background-color: #ED1C24;
}

.facebook {
	background-color: #3B5999;
}