  /*
Theme Name: cshl-sma
Author: Communications Department, ºÚÁÏ³Ô¹Ï×ÊÔ´
Author URI: https://www.cshl.edu
Description: Custom styles for CSHL SMA theme
Version: 1.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: cshl-coresite
*/
html {
  position: relative;
  height:100%;
  min-height: 100%;
}
a { color:#c5a750; }
a:hover { color:#ef4e22; }

body {
  	background-color:#0f0f0f; 
}

/*@media(min-width:769px) {*/
@media(min-width:992px) {
	body {background-color:#fefefe;}
	.full-height {    
		min-height: 100vh;
    	height: 100vh;
    	padding: 0;
	}
}
* { -webkit-font-smoothing: antialiased; }

/* ---------------------------------------------- /*
 * Fullpage.js overrides
/* ---------------------------------------------- */
#fp-nav ul li a span, .fp-slidesNav ul li a span { background:#fff; }
#fp-nav ul li .fp-tooltip { max-width:250px; }

/* ---------------------------------------------- /*
 * Menu styles navigation
/* ----------------------------------------------*/
header#masthead { margin-bottom:73px; }
/*@media (min-width:769px){*/
@media (min-width:992px){
	header#masthead { margin-top:0; margin-bottom:0; }
}
a.navbar-brand {
		width: 100px;
    	height: 50px;
    	background-image: url('/experienceCSH/killer-disease-miracle-drug/logos/logo-alternate-knockout.svg')!important;
    	background-size: contain;
    	background-position: center;
    	background-repeat: no-repeat;
    	margin: 3px 20px 4px 0px;
}
.navbar-header { padding-top:5px; }
#navbarCollapse {padding-top:15px;}
a.dropdown-item { color:#fff; }

li ul.subnav li.active a { color:#c5a750; }

/*@media (min-width: 769px) {*/
@media (min-width: 992px) {
ul.navbar-nav { font-size:18px; }
ul.navbar-nav li ul.subnav { position:relative; height:7px; bottom:3px; width:auto; line-height:0 ;cursor:pointer; margin:7px 0 0 0; padding-left:0; }

li ul.subnav li,
li ul.subnav li:nth-child(2) { list-style-type: none; display:inline-block; height:6px; width:6px; float:none; border-radius:7px; margin:0 2px 5px 2px; padding:0; overflow:hidden; }
li ul.subnav li a { background-color:#fff; height:7px; width:7px; display:block; }
li ul.subnav li:last-child a { width:7px; padding:0; }
li ul.subnav li a:hover { background:#ef4e22; }
li ul.subnav li.active a { background:#ef4e22; }
li ul.subnav li.active a:hover { background:#c5a750; }
li ul.subnav { -webkit-padding-start:0; }
}

/*@media (min-width: 769px) {*/
@media (min-width: 992px) {
	.navbar-nav li ul.subnav { position:absolute; }
	a:focus.scrollLink,
	a:focus.scrollLinkPage { outline:0px; }
}

.mask-custom {
  	background-color: rgba(0, 73, 130, 1);
}
/*@media (min-width:769px){*/
@media (min-width:992px){
	.mask-custom {
		backdrop-filter: blur(15px);
  		background-color: rgba(0, 0, 0, .5);
	}
}

/* ===== Start bootstrap styles and overrides ===== */
.img-responsive { width:100%; }
p.caption { margin-bottom:30px; font-size:95%; line-height:1.25em; font-family:'Source Sans Pro', sans-serif;  color:#fff;}

p { margin-bottom:1.25em; }

.navbar-nav>li>a { color:#fff; text-decoration:none; }
.navbar-nav>li>a:hover { color:#ef4e22; text-decoration:underline; }

.navbar a.title { font-size:1.25em; text-decoration:none; color:#fff; }
.navbar-nav>.active>a, 
.navbar-nav>.active>a:focus, 
.navbar-nav>.active>a:hover { color:#c5a750; }
.navbar-toggle { margin-top:15px; }

#diary div.carousel-inner { height:auto; }
.carousel-inner img { width:100%; }
#diary .carousel-indicators {bottom:-25px; }
.show-mobile-only { display:block!important; } 

@media (max-width: 932px) {
	.show-mobile-only { display:block!important; }
}
@media (min-width: 933px) {
	.show-mobile-only { display:none!important; }
}

/*@media (min-width: 768px) {*/
@media (min-width: 992px) {
	section.fp-noscroll { background-color:#565d5d!important; }
	.caret { border-top:4px solid; }
	#nav .navbar { bottom:0; margin-bottom:0; }
	#nav .navbar-fixed-top { right:8px; }
	#nav .navbar-nav>.active>a, 
	#nav .navbar-nav>.active>a:focus, 
	#nav .navbar-nav>.active>a:hover { background:none; }
	
	.navbar-nav>.active>a, 
	.navbar-nav>.active>a:focus, 
	.navbar-nav>.active>a:hover { color:#ef4e22; background:none; }

	/*.show-mobile-only { display:none!important; }*/
	.navbar a.title { padding-top:25px; margin-right:20px; }
}
@media (min-width: 1050px) {
	span.break { display:block; }
}
/* ===== End bootstrap styles and overrides ===== */

/* ===== Start video styles ===== */
.video1to1 { width:100%; /*margin-bottom:30px;*/ }
.video1to1.caption {margin-bottom:0; }
.controls button[data-state="subtitles"] {
  height: 85%;
  text-indent: 0;
  font-size: 16px;
  font-size: 1rem;
  font-weight: bold;
  color: #666;
  background: #000;
  border-radius: 2px;
}
video::cue {
  background-image: linear-gradient(to bottom, dimgray, lightgray);
  color:#fff;
  z-index:150;
  font-size:20px;
}

@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1049px) 
and (orientation : portrait) {
	.video1to1 { width:100%; margin-bottom:25px; }
}

.videoBackground { position: static; margin-top:0; width:100%; }
@media screen and (max-device-width: 640px) and (orientation: landscape){/* #### Mobile Phones Landscape #### */
    .videoBackground { margin-top:0; }
}
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1049px) 
and (orientation : landscape) {/* #### Tablets Portrait or Landscape #### */
    .videoBackground { margin-top:0; }
}

/* ===== Start content styles ===== */
.white-text {color:#fff!important; }

/*@media (min-width: 1050px) {
@media (min-width: 769px) {*/
@media (min-width: 992px) {
	.videoBackground{
        margin-top:0;
		position: absolute;
		right: 0;
		bottom: 0;
		top:0;
		right:0;
		width: 100%;
		height: 100%;
		background-size: 100% 100%;
 		background-color: black; /* in case the video doesn't fit the whole page*/
  		/*background-image:  our video */;
  		background-position: center center;
  		background-size: contain;
   		object-fit: cover; /*cover video background */
   		z-index:3;
	}
	/* Layer with position absolute in order to have it over the video
	* --------------------------------------- */
	.layer{
		position: relative;
		z-index: 100;
		width: 100%;
		left: 0;

		/* 
		* Preventing flicker on some browsers 
		* See http://stackoverflow.com/a/36671466/1081396  or issue #183
		*/
		-webkit-transform: translate3d(0,0,0);
		-ms-transform: translate3d(0,0,0);
		transform: translate3d(0,0,0);
	}
        .expose { z-index:100; }}
	
@media (min-width: 769px) {
	.video1to1 { width:100%; }
}

.transparentOverlay:before { 
	background:rgba(0,0,0,0.35);
	content:'';
	position:absolute;
	top:0;
	right:0;
	bottom:0;
	left:0;
}

a span.fa-volume-up { color:#fff; cursor:pointer; }
a span.fa-volume-up:hover { color:#a2d1f9; }

/* soundcite style overrides */
.soundcite-loaded { background: rgba(255,255,255,1)!important; color:#004982; }
.soundcite-loaded:before { font-family:'FontAwesome'; content: '\f0a1'; border:none; border-left:none; font-size:1.25em; height:1em; border-left: 0.75em solid #fff!important; }
.soundcite-play:before { font-family:'FontAwesome'; content: '\f0a1'; border:none; border-left:none; font-size:1.25em; height:1em; border-left: 0.75em solid #fff!important; }
.soundcite-pause:before { font-size:1.25em; padding-left:3px;  font-family:'FontAwesome'; content: '\f04c'; border-right:none; border-left:none; border-left: 0.75em solid #fff!important; }

/* section styles */
.introText { margin-top:10%; }
section { color:#fff; }
section img { margin-bottom:15px; }

section div.container-fluid.withVideo { margin-top:0; }
section.credits a, 
section.credits a:hover { color:#b2d883; }
section.credits a {text-decoration:none;}
section.credits a:hover{text-decoration:underline;}
@media (min-width: 769px) {
    section { margin-top:0; }
	.introText { margin-top:27%; }
}

.tab { margin-left:50px; }

@media (max-width: 375px) {
	section h1 { margin:25px 0 0 0; }
	h1.intro { margin-top:20%; }
/*	.videoBackground {
        -webkit-transform: translate3d(0,0,0);
		-ms-transform: translate3d(0,0,0);
		transform: translate3d(0,0,0);
        padding-top:25px;  
    }*/
}

.textBackground { background:rgba(0,0,0,0.5); padding:20px; }
.textBackgroundOverVideo { background:rgba(0,0,0,0.5); padding:20px; /*margin-bottom:25px;*/ }
.textBackgroundOverVideo h2 { margin-top:10px; }

section.section {
	margin-bottom:50px;
	height:100vh!important;
	width:100%;
	color:#fff;
	background-position: center top;
	background-repeat:no-repeat;
	background-attachment:scroll;
	-webkit-background-size:cover;
	-moz-background-size:cover;
	background-size:cover;
	-o-background-size:cover;
}
@media (min-width: 769px) {
	section.section { display:table; margin-bottom:0;} 
}
/*section h2 { margin-top:20px; }
@media only screen and (max-width:1049px) { *//* mobile styles */
/*	section h2 { margin-top:25px; margin-bottom:15px; }
}
@media only screen and (min-width:1050px) { *//* mobile styles */
/*	section h2 { margin-bottom:20px; }
}*/

/*@media only screen and (min-width:1050px) { /* non-mobile styles */
@media only screen and (min-width:992px) { /* non-mobile styles */
    section.section { margin-top:0; }
    section div.container-fluid { margin-top:0; }
}

/* ===== End content styles ===== */

/* ===== Begin PullToScroll buttons ===== */
.pullingBottom .pullToScroll {
    opacity: 1;
}

.pullToScroll {
    position: fixed;
    width: 270px;
    height: 60px;
    left: 7em;
    cursor: pointer;
    opacity: 0.8;
    font-family: 'Source Sans Pro', sans-serif;
    z-index: 100;
    max-height: 200px;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-transition: opacity 0.4s;
    -khtml-transition: opacity 0.4s;
    -moz-transition: opacity 0.4s;
    -ms-transition: opacity 0.4s;
    -o-transition: opacity 0.4s;
    transition: opacity 0.4s;
    background-color: rgba(0,73,130,1.0);
}

.pullToScroll:hover {
    opacity: 1;
    -webkit-animation: none;
    -khtml-animation: none;
    -moz-animation: none;
    -ms-animation: none;
    -o-animation: none;
    animation: none;
}

.pullToScroll .scrollText {
    font-size: 20px;
    -webkit-font-smoothing: antialiased;
    color:#fff;
}

.pullToScroll.atBottom {
    padding-bottom: 25px;
    bottom: 0px;
    border-top: 1px solid rgba(255,255,255,0.5)
}

.pullToScroll .scrollText {
    padding: 0;
    position: static;
    display: block;
    font-family: 'Source Sans Pro', sans-serif;
   text-align:center;
    margin-top: 18px
}

.pullToScroll button#prev:before { font-family:'FontAwesome'; content: '\f102'; color:#fff; }
.pullToScroll button#next:before { font-family:'FontAwesome'; content: '\f103'; color:#fff; }
.pullToScroll button#prev,
.pullToScroll button#next { background:transparent; border:none;}

/* ===== End PullToScroll buttons ===== */

/* ===== Begin Scroll to top button ===== */
.scrolltotop  {
	position: fixed;
	display: none;
    margin-bottom: 35px;
	bottom: 0;
	right: 15px;
	width: 45px;
	height: 45px;
	line-height: 45px;
	text-align: center;
	text-decoration: none;
	z-index: 9999;
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	transform: rotate(45deg);
	display: inline-block;
	margin-top:7px;
	background-color:rgba(255,255,255,.25);
	color: #ddd;
	border: 2px solid #ddd;
  	-webkit-border-radius: 50%;
  	border-radius: 50%;
}
a:hover.scrolltotop, a:focus.scrolltotop { color: #fff; background-color:#c5a750; border-color:transparent; }
.scrolltotop .fa {
	padding-left: 3px;
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	-o-transform: rotate(-45deg);
	transform: rotate(-45deg);
} 
/* ===== End Scroll to top button ===== */
 
/* ---------------------------------------------- /*
 * Preloader
/* ---------------------------------------------- */

#preloader {
	background: #fff; 
	bottom: 0;
	left: 0;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 9999;
}

#status {
	background-image: url('/experienceCSH/killer-disease-miracle-drug/images/preloader.gif');
	background-position: center center;
	background-repeat: no-repeat;
	height: 400px;
	left: 50%;
	margin: -100px 0 0 -100px;
	position: absolute;
	top: 40%;
	width: 225px; 
}
#status p { margin-top:-30px; }