/******************************************************
*	Neurocritical Care Education
*	University of Michigan
*	Copyright (c) 2024-2025. All rights reserved.
*
*	Created by Andrew M. Nguyen, M.D.
*
*******************************************************/

/**************** GENERAL *******************/

* {
	box-sizing: border-box;
}

	
br.clear-all {
	clear: both;
}

body {
	font-family: Optima, sans-serif;
	background: #fff;
	margin: 0;
}
	
#wrapper {
	margin: auto;
	width: 60%;
}

/* For mobile devices */
@media screen and (max-width: 1000px) {
	#wrapper {
		margin: auto;
		padding-left: 1em;
		padding-right: 1em;
		width: 100%;
	}
}


/**************** HEADER *******************/

#header {
	font-family: Open Sans, Optima, sans-serif;
	background: #3d5a80;
	text-align: center;
	padding-bottom: 1em;
	border-bottom: 2px solid #293241;
}

#nav-buttons {
	padding-top: 0.25em;
	float: left;
}

#header h1.site-title {
	margin-top: 0;
	margin-bottom: 0.1em;
	padding-top: 0.25em;
	color: #e0fbfc;
	font-size: 2.5em;
	font-weight: 500;
}

#header h2.sub-title {
	font-family: Helvetica Neue, sans-serif;
	margin: 0;
	color: #98c1d9;
	font-size: 2em;
	font-weight: 400;
}

/* For mobile devices */
@media screen and (max-width: 1000px) {
	#header h1.site-title {
		margin-top: 0;
		margin-bottom: 10px;
		padding: 10px;
		color: #e0fbfc;
		font-size: 2em;
		font-weight: 500;
	}
	
	#header h2.sub-title {
		font-family: Helvetica Neue, sans-serif;
		margin: 0;
		color: #98c1d9;
		font-size: 1.5em;
		font-weight: 400;
	}
}

#header .slogan {
	float: right;
	color: #eee7ee;
	font-size: 1em;
}

/**************** NAV MENU *******************/

#nav-menu {
	display: inline-block;
	border-bottom: 2px solid #293241;
	width: 100%;
	background: #e0fbfc;
}

#nav-menu ul {
	background: #7e7e7e;
	border-top: 1px solid #172c39;
	border-bottom: 1px solid #172c39;
	width: 100%;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

#nav-menu li {
	display: block;
	float: left;
	padding: 1rem;
	position: relative;
	font-weight: 600;
}

#nav-menu li a {
	text-decoration: none;
	height: 100%;
	color: #293241;
}

#nav-menu li a.visited {
	color: #172c39 !important;
}

#nav-menu li:hover {
	background: #ebebeb;
	border-top: 2px solid #ee6c4d;
	padding-bottom: 0.9rem;
}

#nav-menu ul li ul {
	visibility: hidden;
	opacity: 0;
	min-width: 5rem;
	position: absolute;
	margin-top: 1rem;
	left: 0;
	display: none;
}

#nav-menu ul li:hover > ul,
ul li ul:hover {
	visibility: visible;
	opacity: 1;
	display: block;
	background: #fafafa;
	z-index: 10;
}

#nav-menu ul li ul ul {
	clear: both;
	width: 100%;
}

#nav-menu ul li ul.dropdown {
	width: 180%;
}

#nav-menu ul li ul.dropdown li:hover {
	width: 100%;
}


/**************** BODY *******************/

#body {
	margin-top: 1em;
	margin-bottom: 1em;
	padding-left: 0.25em;
	padding-right: 0.25em;
}

#body a {
	color: #3d5a80;
	text-decoration: none;
}

#body a:visited {
	color: #ee6c4d;
	text-decoration: none;
}

#body h1 {
	font-size: 2em;
}

#body .breadcrumbs {
	font-family: Open Sans, Lato, sans-serif;
	font-size: 1.5em;
	text-decoration: underline;
}

#body p {
	font-family: Lato, Calibri, sans-serif;
	font-size: 1em;
	line-height: 1.5;
}


#body li {
	font-family: Lato, Calibri, sans-serif;
	font-size: 1em;
}

#body img {
	width: 100%;
}

#body img.thumbnail {
	display: block;
	margin: auto;
	width: 10vw;
}

#body img.thumbnail-center {
	display: block;
	margin-left: auto;
	margin-right: auto;
	width: 10vw;
}

#body .image-group p {
	text-align: center;
	margin-top: 0;
	font-size: 0.75em !important;
}

#body img.fullsize {
	display: block;
	max-width: max-content;
	padding: 2em;
	margin: auto;

}


/* For mobile devices */

@media screen and (max-width: 1000px) {
	#body img.thumbnail {
		width: 50vw;
	}
}

@media screen and (max-width: 1000px) {
	#body img.thumbnail-center {
		width: 50vw;
		display: block;
		margin-left: auto;
		margin-right: auto;
	}
}

@media screen and (max-width: 1000px) {
	#body img.fullsize {
		display: block;
		max-width: 100%;
		padding: 2em;
		margin: auto;
	}
}


/* Grid layout */

.grid-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, 300px);
	gap: 0.25em;
	justify-content: center;
	margin-top: 1em;
	margin-bottom: 1em;
}

.grid-cell {
	border: 1px solid #d0d0d0;
	border-radius: 0.25em;
	background: #f4fcfc;
	padding: 1.5em;
	text-align: center;
}

.grid-cell:hover {
	background: #e0fbfc;
	border: 1px solid #293241;
}

.grid-cell:hover a {
	color: #ee6c4d;
}

.grid-cell p {
	font-family: Calibri, sans-serif;
	font-size: 1.25em !important;
	font-weight: bold;
}

.grid-cell img {
	width: 50%;
}


/* Lightbox */

.lightbox {
	display: none;
	position: fixed;
	z-index: 999;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.8);
}

.lightbox:target {
	display: block;
	margin: auto;	
}


/* Learning objective boxes */

details.lo {
	border: 1px solid #00274c;
	padding: 0;
}

details.lo[open] {
	padding: 0;
}

details.lo[open] .open-details-wrapper {
	padding: 1em;
}

details.lo[open] p {
	margin-left: 1em;
	color: #000432;
	padding-right: 10px;
	font-size: 1em;
}

details.lo[open] .image-group {
	margin-left: 1em;
}

details.lo > summary {
	list-style: none;
}

details.lo > summary::-webkit-details-marker {
	display: none;
}

details.lo[open] summary {
	margin: 0;
}

details.lo[open] h3.category-heading {
	margin: 0;
	font-family: Optima, sans-serif;
	font-size: 1.25em;
	text-decoration: underline;
}

details.lo[open] h4.delivery-method {
	margin: 0;
	font-family: Optima, sans-serif;
	font-size: 1.1em;
}

details.lo[open] ul {
	margin: 0 0 0 1em;
}

details.lo[open] li {
	font-size: 1em;
	font-family: Optima, sans-serif;
}

summary.lo {
	margin: 0;
	padding: 0;
}

details.lo .lo-category {
	display: flex;
	align-items: center;
	background: #293241 url('./../images/info-icon.png') 10px/30px no-repeat;
	color: #e0fbfc;
	padding-left: 50px;
	padding-top: 0.5em;
	padding-bottom: 0.5em;
	font-size: 1.5em;
}


.lo-inset {
	margin-bottom: 1em;
	padding: 0.5em;
	background: #eaf2f4;
	border: 0.1em solid #00274c;
}

.lo-inset .objective-heading {
	font-weight: bold;
	text-decoration: underline;
	color: #ad0200;
}

.lo-inset p {
	color: #000432;
	margin: 0;
}


/* Q/A boxes */

details.qa {
	border: 1px solid #00274c;
	padding: 0;
}

details.qa[open] {
	padding: 0;
}

details.qa[open] .open-details-wrapper {
	padding: 0 1em 0 1em;
}

details.qa[open] img.thumbnail {
	margin-top: 1em !important;
}

details.qa[open] p {
	color: #000432;
}

details.qa > summary {
	list-style: none;
}

details.qa > summary::-webkit-details-marker {
	display: none;
}

details.qa[open] summary {
	margin: 0;
}

summary.qa {
	margin: 0;
	padding: 0;
}

details.qa .question {
	display: flex;
	align-items: center;
	background: #293241 url('./../images/question-icon.png') 10px/30px no-repeat;
	color: #e0fbfc;
	padding-left: 50px;
	padding-top: 0.5em;
	padding-bottom: 0.5em;
	font-size: 1.5em;
}


/* Take-home point boxes */

details.pearl {
	border: 1px solid #00274c;
	padding: 0;
}

details.pearl[open] {
	padding: 0;
}

details.pearl[open] .open-details-wrapper {
	padding: 0 1em 0 1em;
}

details.pearl[open] p {
	color: #000432;
	padding-right: 10px;
}

details.pearl > summary {
	list-style: none;
}

details.pearl > summary::-webkit-details-marker {
	display: none;
}

details.pearl[open] summary {
	margin: 0;
}

summary.pearl {
	margin: 0;
	padding: 0;
}

details.pearl .point {
	display: flex;
	align-items: center;
	background: #293241 url('./../images/pearl-icon.png') 10px/30px no-repeat;
	color: #e0fbfc;
	padding-left: 50px;
	padding-top: 0.5em;
	padding-bottom: 0.5em;
	font-size: 1.5em;
}


.button {
	display: inline-block;
	padding: 1em;
	color: #ffffff;
	background: #00274c;
	border: 0.1em solid #4a4a4a;
	font-size: 1em;
	font-weight: bold;
}

.open-details-wrapper .button {
	width: 100%;
}

.button:hover {
	background: #2e669c;
	border: 0.1em solid #787878;
}

a.button-link {
	text-decoration: none;
}


/* Multiple choice boxes with explanations */

details.mult-choice-right {
	border: 2px solid #00274c;
	padding: 0;
}

details.mult-choice-wrong {
	border: 2px solid #00274c;
	padding: 0;
}

details.mult-choice-right[open] {
	padding: 0;
	background: url('./../images/right-answer-bg.png');
	background-repeat: no-repeat;
	background-position: bottom right;
	border: 2px solid #06df18;
}

details.mult-choice-wrong[open] {
	padding: 0;
	background: url('./../images/wrong-answer-bg.png');
	background-repeat: no-repeat;
	background-position: bottom right;
	border: 2px solid #ec1c24;
}


details.mult-choice-right[open] .choice {
	background: #b9ffc0;
}

details.mult-choice-wrong[open] .choice {
	background: #f7bdbf;
}

details.mult-choice-right[open] .open-details-wrapper {
	padding: 0 1em 0 1em;
}

details.mult-choice-wrong[open] .open-details-wrapper {
	padding: 0 1em 0 1em;
}

details.mult-choice-right[open] img.thumbnail {
	margin-top: 1em;
}

details.mult-choice-wrong[open] img.thumbnail {
	margin-top: 1em;
}

details.mult-choice-right[open] p {
	color: #000432;
}

details.mult-choice-wrong[open] p {
	color: #000432;
}

details.mult-choice-right > summary {
	list-style: none;
}

details.mult-choice-wrong > summary {
	list-style: none;
}

details.mult-choice-right > summary::-webkit-details-marker {
	display: none;
}

details.mult-choice-wrong > summary::-webkit-details-marker {
	display: none;
}

details.mult-choice-right[open] summary {
	margin: 0;
}

details.mult-choice-wrong[open] summary {
	margin: 0;
}

summary.mult-choice {
	margin: 0;
	padding: 0;
}

.choice {
	display: flex;
	align-items: center;
	background: #ffffff;
	color: #000432;
	padding-left: 0.5em;
	padding-top: 0.5em;
	padding-bottom: 0.5em;
	font-size: 1.5em;
	font-weight: bold;
}


/* Test result list boxes */

.test-results {
	display: inline-block;
	margin: 1em;
	border: 0.1em solid #ffcb05;
	background: #e7e7e7;

}

.test-results-header {
	background: #00274c;
	padding-top: 0.25em;
	padding-bottom: 0.25em;
	border-bottom: 0.1em solid #ffcb05;
}

.test-results-header h3 {
	margin-top: 0;
	margin-bottom: 0;
	margin-left: 0.5em;
	font-size: 1em;
	font-style: italic;
	color: #fff;
	width: 100%;
}

.test-results-body {
	padding-right: 1em;
}

.test-results-body ul {
	margin-left: 0;
	margin-top: 0.5em;
	font-size: 0.8em;
	background: #e7e7e7;
}


/* Image gallery (for neuroimaging stacks) */
.gallerybox {
	background: #000;
}

.gallerybox .slides1, .slides2 {
	display: none;
}

.gallerybox img {
	vertical-align: middle;
}

/* Slideshow container */
.gallerybox {
	max-width: 400px;
	position: relative;
	margin: 0px auto;
}

.gallerybox .label {
	color: #fff;
	font-size: 1em;
	padding: 1em 1em;
	position: absolute;
	top: 0;
}

.gallerybox .sliceid {
	color: #fff;
	font-size: 0.75em;
	padding: 1em 1em;
	position: absolute;
	bottom: 0;
	left: 0;
}

/* Next & previous buttons */
.gallerybox .prev, .next {
	background-color: #fff;
	opacity: 0.3;
	cursor: pointer;
	position: absolute;
	top: 50%;
	width: auto;
	padding: 0.75em;
	color: #000;
	font-weight: bold;
	font-size: 1.25em;
	border-radius: 0 3px 3px 0;
	user-select: none;
}

/* Position the navigation buttons to the right */
.gallerybox .next {
	right: 0;
	margin-top: -56px;
	border-radius: 3px 0 0 3px;
}

.gallerybox .prev {
	right: 0;
	margin-top: 0px;
	border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.gallerybox .prev:hover, .next:hover {
	background-color: #fff;
	color: #000;
	opacity: 0.8;
}


/**************** FOOTER *******************/

#footer {
	border-top: 5px solid #293241;
}

#footer .copyright {
	background: #3d5a80;
	padding: 1px 0px;
}

#footer .copyright p {
	color: #e0fbfc;
	margin-left: 2em;
	font-weight: bold;
	font-size: 0.9em;
	line-height: 100%;
}

#footer .copyright a {
	color: #e0fbfc;
}

#footer .copyright a:visited {
	color: #fff;
}