.contain {
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
}

body {
   	font-family: 'Archivo', sans-serif;
	font-size: 18px;
	background: url(../images/nebkd.jpg) no-repeat top center;
    overflow-x: hidden;
}

h1 {
    font-family: 'Archivo Black', sans-serif;
	font-size: 30px;	
	color: #0192d2;
}

h2{
    font-family: 'Archivo', sans-serif;
	font-weight: bold; 
	font-size: 24px;
	color: #0192d2;
}

h3 {
  	font-family: 'Archivo', sans-serif;
	font-weight: bold; 
	font-size: 20px;
	color: #0192d2;
}
h4{
	font-family: 'Archivo', sans-serif;
	font-size: 14px;
    line-height: 1;
	color: grey;
	padding: 0px 25px 25px 25px;
	text-align: center;
}
h5{
  -webkit-border-radius: 5;
  -moz-border-radius: 5;
  border-radius: 5px;
  font-family: Arial;
  color: #ffffff;
  font-size: 16px;
  background: #FFFFFF;
  display: inline-flex; 
  text-align: center;
}
h5:after{
	content: url("../images/icon_book.png");
	float: right;
	margin-left:-40px; 
	padding-right:10px;
	display: -webkit-inline-flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-webkit-flex-direction: column;
	-webkit-box-pack: center;
	-webkit-flex-pack: center;
	-webkit-justify-content: center;
	-webkit-flex-align: center;
	-webkit-align-items: center;
	vertical-align: top;
}
h5.activity:after {
    content: url("../images/icon_activity.png");
}
h5.lessonplan:after {
    content: url("../images/icon_lessonplan.png");
}
h5 a, h5 a:hover, h5 a:active{
	color: #fff !important;
	text-decoration: none !important;
    display: -webkit-inline-flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-webkit-flex-direction: column;
	-webkit-box-pack: center;
	-webkit-flex-pack: center;
	-webkit-justify-content: center;
	-webkit-flex-align: center;
	-webkit-align-items: center;
	vertical-align: top;
	padding: 10px 50px 10px 20px; 
}

.richtext-image.right {
    float: right;
    margin-left: 15px;
	margin-bottom: 10px;
	max-width: 50%;
	height: auto;
}

.richtext-image.left {
    float: left;
    margin-right: 15px;
	margin-bottom: 10px;
	max-width: 50%;
	height: auto;
}

.richtext-image.full-width {
	display: block;
	max-width: 100%;
	height: auto;    
    margin: 0 auto;
}

/* Header customization */
.navbar-default, .navbar-brand {
    background-color: transparent;
	font-size: 14px;
	font-weight: bold;
	line-height: 14px;
}

.navbar {
    min-height: 40px;
	padding-top: 20px;
	padding-bottom: 40px;
}

.navbar-default .navbar-nav>.active>a, .navbar-default .navbar-nav>.active>a:focus, .navbar-default .navbar-nav>.active>a:hover {
    color: #FFFFFF;
    background-color: #215272;
}

#nebstudieslogolarge {
	padding: 60px 10px 40px 10px;
}

@media only screen and (min-width: 768px) { /* desktop */

	.nav>li { 
		width: 60px;
	}
	
	.navbar-header { 
		width: 95px;
		background-color: #0192d2;
		border-radius: 20px;
		border-top-right-radius: 0px;
		border-bottom-right-radius: 0px;
	}
	
	.navbar-brand { 
		color: #FFFFFF !important;
		height: 40px;
    	padding: 6px 20px;
	}
	
	.navbar-nav>li>a {
		line-height: 14px;
		padding: 6px 0px 6px 10px;
		border-right: 2px solid #0192d2;
	}
	
	.navbar-nav>li:last-child>a {
		border: none;
		width: 65px;
	}	
	
	.navbar-nav>li:last-child>a:after { 
		content: " ";
		position: absolute;	
		width: 20px;
		height: 40px;
		background-color: #0192d2;
		border-radius: 20px;
		border-top-left-radius: 0px;
		border-bottom-left-radius: 0px;
		top: 0;
		right: -27px;
	}	
	
	.navbar-default {
		width: 720px; 
		margin: 0 auto;
	}	
	

	
	#netlogo	{
		position: absolute;
 		top: 20px;
  		z-index: 0;
  		width: 169px;
  		height: 69px;
  		margin: 0 auto;
  		left: 0;
  		right: 0;
		padding-left: 800px;
	}
	
	#nebstudieslogo	{
		position: absolute;
 		top: 25px;
  		z-index: 0;
  		width: 276px;
  		height: 36px;
  		left:50%;
		margin-left:-700px;		
	}	
}

@media only screen and (max-width:1400px){ /* desktop/tablet (includes iPad landscape) */
	
	#netlogo	{
		position: relative;
		width: 169px;
  		margin: 0 auto;
		padding-left: 0px;
		margin-top: 0px; 
		top: 0px;
	}
	
	#nebstudieslogo	{
		position: relative;
		width: 276px;
  		margin: 0 auto;
		left: 0px;
		margin-top: 20px;
		top: 5px;
		margin-bottom: 50px;
	}
	
	.navbar {
		padding-top: 0px;
		padding-bottom: 0px;
	}
}

@media only screen and (max-width: 767px) { /* mobile (excludes iPad portrait) */

	.navbar-header { 
		width: 300px;
		background-color: #0192d2;
		border-radius: 20px;
	}
	
	.navbar-brand { 
		color: #FFFFFF !important;
		height: 40px;
    	padding: 18px 18px;	
		font-size: 24px;
	}
	
	.navbar-default .navbar-toggle .icon-bar { 
		background-color: #FFFFFF;
	}
	
	.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus { 
		background-color: #215272;
	}	
	
	.navbar-default {
		width: 300px; 
		margin: 0 auto;
		font-size: 24px;
	}
	
	.navbar-nav {
		text-align: center;
	}	
	
	#nebstudieslogo	{
		position: relative;
		width: 276px;
  		margin: 0 auto;
		margin-top: 25px;
		top: 5px;
		margin-bottom: 50px;
	}
}

/* Search customization */
.form-control::-webkit-input-placeholder { color: white; }  /* WebKit, Blink, Edge */
.form-control:-moz-placeholder { color: white; }  /* Mozilla Firefox 4 to 18 */
.form-control::-moz-placeholder { color: white; }  /* Mozilla Firefox 19+ */
.form-control:-ms-input-placeholder { color: white; }  /* Internet Explorer 10-11 */
.form-control::-ms-input-placeholder { color: white; }  /* Microsoft Edge */
.form-group {
    margin:0;
    padding:20px ;
    border-color: transparent; 
}

.form-control {
 	padding: 0px 10px 0 20px;
  	margin-bottom: 30px;
  	color: #fff;
  	font-size: 24px;
  	font-weight: 400;
    border: 3px solid #cccccc;
	background-color: #cccccc;
    -webkit-box-shadow: none;
    box-shadow: none;
    min-height:50px;
	min-width:220px;
    height: auto;
    border-radius: 50px 0  0 50px !important;
}
.form-control :focus {
    -webkit-box-shadow: none;
    box-shadow: none;
    border-color: transparent;
    }

#searchbtn { 
  	padding: 0px 20px;
  	margin-bottom: 30px;
  	color: #fff;
  	background:#969696;
  	font-size: 27px;
  	font-weight: 400;
  	border: 3px solid #969696;
 	border-left: none;
  	-webkit-box-shadow: none;
  	box-shadow: none;
  	min-height:50px;
  	height: auto;
  	border-radius: 0 50px 50px 0 !important;
  	outline: none;
}

#searchclearbtn { 
	position:absolute;
	top: 0;
  	right: 0;
  	padding: 0px 20px;
  	margin-bottom: 30px;
  	color: #969696;
	background-color: transparent;
  	font-size: 33px;
  	font-weight: 100;
	border: none;
  	-webkit-box-shadow: none;
	-webkit-text-stroke: 4px #cccccc;
  	box-shadow: none;
  	min-height:50px;
  	height: auto;
  	outline: none;
	margin-right: 80px;
	z-index: 3;
}

#searchbtn:hover { 
  	background:#337ab7;
	border: 3px solid #337ab7;
	border-left: none;
}

#searchclearbtn:hover { 
  	color: #337ab7;
}

@media only screen and (max-width: 600px) { /* mobile */

		.form-control {
		font-size: 18px;
	}
		.lg-outer.lg-pull-caption-up.lg-thumb-open .lg-sub-html { /* fix captions on lightbox in mobile */
		padding-bottom: 40px;
	}
}

@media only screen and (max-width: 500px) { /* small mobile */

		.form-control {
			padding: 0px 5px;
			font-size: 14px;			
	}
		#searchclearbtn { 
		margin-right: 60px;
	}
}


/* Section & Topic Pages */
.textholder {
	width:calc(100% - 315px);
	margin-left: 315px;
	background-color: white;
    padding: 0px 20px 0px 20px;	
}

.text-center {
    margin-left: 315px;
}

.imageholder {
    position: relative;
	width: 310px;
	float: left;  
	padding: 0px 25px 25px 25px;
	text-align: center;
	clear: both;
}

.lightboximage {
	width: 260px;
	margin: 0 auto; 
	cursor: zoom-in; 
}

.caption {
   	font-family: 'Archivo', sans-serif;
	font-size: 12px;
    line-height: 1;
	color: grey;
}

.zoomoverlay {
	height: 26px; 
	width: 26px; 
	background-image: url(../images/zoom.png); 
	background-position: 0 0; background-repeat: no-repeat; 
	position: relative; 
	left: 214px; 
	top: 180px;
}

@media only screen and (max-width:991px){ /* mobile (includes iPad portrait) */
	.imageholder {
		width: 100%;
		text-align: center;
	}	
	.textholder {
		width: 100%;
		margin-left: 0px;
		padding: 0px 5px 0px 5px;
		clear: both;
	}
    .text-center {
        margin-left: 0px;
    }	
}

/* Previous - Next Intrapage Navigation */
.pagemenu {
	position: fixed;
	right: 50px;
	top: 207px;
	font-size: 12px;
	width: 100px;
	z-index: 1;
	color: #215272;
} 

.pagemenutop {
	visibility: hidden;
	font-size: 12px;
	height: 0px;
	color: #215272;
} 

.prevside {
	margin-bottom: 60px;
	width: 100px;	
	text-align: right;
	background: linear-gradient(transparent 15px, #ffffff 50%);
}
.nextside {
	width: 100px;
	background: linear-gradient(transparent 15px, #ffffff 50%);
}

.prevarrow {
	cursor: pointer;
	display: inline-block;  
	height: 30px;
	width: 80px;
	position: relative;
	line-height: 30px;
	margin-left: 20px;
	padding-right: 11px;
	background: #215272;
}	

a.prevarrow {
	text-decoration: none;
	color: white;
}

.prevarrow:after {
  	border-right: 20px solid #215272;
  	content: "";
  	position: absolute;
  	border-bottom: 15px solid transparent;
  	border-top: 15px solid transparent;
  	height: 0px;
  	width: 0px;
  	margin-right: 80px;
  	right: 0; 
}

.prevarrow:hover, .arrow:active {
  	background: #337ab7;
  	color: white;	  
}

.prevarrow:hover:after, .prevarrow:active:after {
	border-right: 20px solid #337ab7;
}

.arrow {
	cursor: pointer;
	display: inline-block;  
	height: 30px;
	width: 93px;
	position: relative;
	line-height: 30px;
	padding-left: 27px;
	background: #215272;
} 
a.arrow {
	text-decoration: none;
	color: white;
}

.arrow:after {
  	border-left: 20px solid #215272;
  	content: "";
  	position: absolute;
  	border-bottom: 15px solid transparent;
  	border-top: 15px solid transparent;
  	height: 0px;
  	width: 0px;
  	margin-right: -20px;
  	right: 0; 
}

.arrow:hover, .arrow:active {
  	background: #337ab7;
  	color: white;	  
}

.arrow:hover:after, .arrow:active:after {
	border-left: 20px solid #337ab7;
}

@media only screen and (max-width:1399px){ /* mobile (custom break for side navigation) */
	.pagemenu {
		position: relative;
		display: block;	
		clear:	both;
		right: 0px;
		top: 0px;
		width: 100%;
		padding: 0px 0px 60px 0px;
	} 
	.prevside {
		float: left;
		padding-bottom: 0px;
		margin-bottom: 0px;
		width: 130px;
		margin-left: 10px;
		background: #FFFFFF;
	}
	.nextside {
		float: right;
		width: 130px;
		background: #FFFFFF;
	}
	.pagemenutop {
		position: relative;
		display: block;	
		clear:	both;
		right: 0px;
		top: 0px;
		width: 100%;
		padding: 0px 0px 0px 30px;
		visibility: visible;
		margin-top: -35px;
} 
}

/* Footer customization */
.footer{
	background-color:#2d94d0;
	position: absolute;
    width: 100%;	
    color:#ffffff;
    padding-top:25px;
	margin-top: 50px;
}

.footer a:link, .footer a:visited {
   	color: white;
}

.footer  a:hover {
   	color: #FFFFCC;
}

.underwriter {
	margin-left: 20px;
}

@media only screen and (max-width:991px){ /* mobile (includes iPad portrait) */
	.mobile-footer-padding{
		padding:0 10px;	
		text-align: center;
	}	
	.mobile-footer-padding table{
    	margin: 0 auto;
	}
	
	.underwriter {
	margin-left: 0px;
	}
}

.btn-group, .btn-group-vertical {
    position: absolute;
    display: flex;
    padding: 0 0 50px 60px;
}
a.btn.btn-sm.btn-default.active{
    color: #fff;
    background: #337ab7;
    border:#337ab7;
}
