
@font-face {
  font-family: 'PBS Kids Headline';
  src: url('../fonts/PBS-Kids/PBSKIDS_HeadlineCondensed-Reg.woff');
}
@font-face {
  font-family: 'PBS Kids Subhead';
  src: url('../fonts/PBS-Kids/PBSKIDSSubhead-Regular.woff');
}

/*
 * DEFAULT WQED THEME COLORS
 * Blue: #1E549C
 * Dark Blue: #003F6A
 * 
 * REBRAND COLORS
 * Black: #3d3935
 * Gold: #f9a11b
 * Blue: #00aea9
 * Yellow: #fec52e;
 * Blue: #1b448a;
  
 */

* {
  box-sizing: border-box;
}

html {
  background-color: #fff;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  color: #363636;
  font-family: 'Nunito Sans', Arial, Helvetica, sans-serif;
  font-size: 100%;
  font-weight : normal;
  line-height: 1.5em;
  margin: 0;
  min-height: 100%;
  padding: 0;
}

a,
a:active,
a:visited {
  color: #000;
  font-weight: bold;
  text-decoration: none;
}

a:focus,
a:hover {
  color: #00aea9;
  text-decoration: none;
  transition: color .5s;
}


img {
  vertical-align: middle;
}

img,
video {
  height: auto;
  max-width: 100%;
  width: auto;
}

h1 {
  line-height: auto;
  margin: 0;
}

h2 {
  color: #3d3935;
  font-size: 2.5em;
  line-height: 1.4em;
  margin: 1rem 0;
}

h3 {
  color: #3d3935;
  font-size: 1.2em;
  line-height: 1.2em;
}

h4 {
  color: #3d3935;
  font-size: 1.5em;
  line-height: 1em;
}

::selection {
  background-color: #00aea9;
  color: #FFFFFF;
}


#skip-link a {
  color: #00aea9;
}

.overlay {
  background-color: rgba(61, 57, 53, 0.98);
  color: #ffffff;
  display: none;
  flex-flow: column;
  height: 100%;
  justify-content: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  position: fixed;
  width: 100%;
  z-index: 200;
}
.overlay.show {
  display: flex;
}

.wrapper {
  margin: 0 auto;
  max-width: 1200px;
  overflow: auto;
  position: relative;
  width: 100%;
}

#main-content--wrapper {
  background-color: #fff;
  padding: 0 0 2em;
}

#main-content {
  margin: 0 auto;
  max-width: 1200px;
  overflow: visible;
  padding: 1em 1em 2em;
  position: relative;
  width: 100%;
}

#footer-wrapper {
  background-color: #eeeeee;
  color: #FFFFFF;
}

#footer {
  margin-bottom: 0;
  padding: 0 1em;
}

#footer p {
  clear: both;
  text-align: center;
}

#wqed-overlay-content {
  background-color: transparent;
  height: auto;
  margin: auto;
  max-width: 1200px;
  padding: 0;
  position: relative;
  text-align: center;
  width: 100%;
}

#wqed-overlay-content iframe.youtube,
#wqed-overlay-content #ll-player {
  height: 56.25vw;
  margin: auto;
  max-height: 100vh;
  max-width: 100vw;
  width: 177.78vh;
}

#wqed-overlay-content #ll-player video {
  max-height: 100%;
}

#wqed-overlay-content iframe.pbs {
  height: calc(56.25vw + 43px);
  margin: auto;
  max-height: 100vh;
  max-width: 100vw;
  width: calc(177.78vh - 79px);
}

.overlay-player-close {
  position: absolute;
  visibility: hidden;
}

#overlay-image {
  height: 90%;
}
#overlay-image div {
  height: 100%;
}
#overlay-image * {
  max-height: 100%;
}

iframe {
  max-width: 100%;
  
}

#page {
  min-height: 100%;
}

.overlay-player-launch {
  position: relative;
  display: inline-block;
}

.overlay-player-launch::before {
  background: transparent url(../images/play-overlay-hover.png) center center no-repeat;
  background-size: 100%;
  content: '';
  height: 100%;
  left: 0;
  opacity: .7;
  position: absolute;
  top: 0;
  width: 100%;

  transition: opacity 0.2s ease-in-out;
}
.overlay-player-launch:focus::before,
.overlay-player-launch:hover::before {
  opacity: .9;
}

.overlay-player-launch.no-icon::before {
  display: none;
}

.grid-list-2.overlay-player-launch::before {
  width: calc(50% - 5px);
}

@media screen and (min-width: 1200px) {
  #wqed-overlay-content iframe.youtube, 
  #wqed-overlay-content #ll-player {
    height: 675px;
    width: 1200px;
  }

  #wqed-overlay-content iframe.pbs {
    height: 718px;
    width: 1200px;
  }
}

@media screen and (min-width: 1290px) {
  
  #main-content {
    padding: 1em 0 2em;
  }
}

/** GRID OF IMAGES * ROW OF 2 OR 3 **/

.grid-list-2 img,
.pane-content .grid-list-2 img {
  float: left;
  height: auto;
  max-width: 100%;
	padding-bottom: 5px;
}

@media screen and (min-width: 750px) {
  .grid-list-2 img,
  .pane-content .grid-list-2 img {
    max-width: calc(50% - 5px);
    padding-right: 5px;
    width: 530px;
  }
  
  .grid-list-2:nth-child(2n + 1) img {
	clear: both;
  }
}

.grid-list-2 img:hover {
  animation: flash 1.5s;
  -webkit-animation: flash 1.5s;
  opacity: 1;
}

.grid-list-3 img {
  height: auto;
  margin-left: 3px;
  margin-right: 3px;
  max-width: 348px;
  width: 348px;
}

.grid-list-3 img:hover {
  -webkit-animation: flash 1.5s;
  animation: flash 1.5s;
  opacity: 1;
}

/** TV LANDING PAGE **/

.grid-list-tv img {
  height: auto;
  margin-bottom: 15px;
  max-width: 340px;
  width: 340px;
}

.grid-list-tv img:hover {
  -webkit-animation: flash 1.5s;
  animation: flash 1.5s;
  opacity: 1;
}

.watch-tv-featured--title {
	background-color: #000;
	color: #fff;
	margin-top: -6px;
	padding-left: 10px;
	padding-top: 5px;
}

.watch-tv-featured--title a {
	color: #fff;
}

.watch-tv-featured--date {
	background-color: #000;
	color: #fff;
	font-size: .85em;
	margin-bottom: 10px;
	padding-left: 10px;
	padding-bottom: 5px;
}

@-webkit-keyframes flash {
	0% {
		opacity: .7;
	}
	100% {
		opacity: 1;
	}
}

@keyframes flash {
	0% {
		opacity: .7;
	}
	100% {
		opacity: 1;
	}
}

/** FACEBOOK COMMENTS **/
.fb-comments.fb_iframe_widget {
  display: block;
  margin: auto;
  max-width: 100%;
}
@media screen and (min-width: 1100px) {
  .fb-comments.fb_iframe_widget {
    max-width: 1064px;
  }
}

/** CAREERS and INTERNSHIPS **/
.careers--position,
.internship {
  display: none;
}
/** MEDIA PARTNERS **/
#about--media-partners img {
  float: left;
  margin: 0 2em 2em 0;
  width: 250px;
}
/** PASSPORT **/
#passport .passport-google,
#passport .passport-facebook,
#passport .passport-pbs-account {
  border-radius: .5em;
  color: #fff;
  display: inline-block;
  height: 3em;
  line-height: 2em;
  padding: .5em 1em;
  width: 20em;
}
#passport .passport-google { background-color: #dc4e41; }
#passport .passport-facebook { background-color: #3b5998; }
#passport .passport-pbs-account { background-color: #3eafe7; }

#passport .passport-google img,
#passport .passport-facebook img,
#passport .passport-pbs-account img {
  border-right: 1px solid #fff;
  height: 2em;
  margin-right: .5em;
  padding-right: .5em;
}

#passport .passport-google .sign-in,
#passport .passport-facebook .sign-in,
#passport .passport-pbs-account .sign-in {
  display: inline-block;
  position: absolute;
}

/** SCHEDULE GRID **/

/* Program titles */
.tvss-namespace #scheduleV .schedulesContent .schedulesRow .calendarEntry span.gridProgram {
  color: #003F6A;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
}

/* Episode titles */
.tvss-namespace #scheduleV .schedulesContent .schedulesRow .calendarEntry div.description {
  color: #1E549C;
}

/* Channel div */
.tvss-namespace #scheduleV #schedulesList div.scheduleStations {
  background-color: #fff;
}
/* Channel div */
.tvss-namespace #scheduleV #schedulesList div.scheduleStations .station {
  background-color: #1E549C;
  border: none;
}
/* Channel name and number */
.page-node .tvss-namespace #scheduleV #schedulesList .scheduleStations .station span,
.tvss-namespace #scheduleV #schedulesList .scheduleStations .station span.stationTitle {
  color: #FFFFFF;
}

/** FOOTER MENU **/
#footer-wrapper {
  background-color: #3d3935;
}

#footer-wrapper .wqed-explore-on {
  background-color: #fff;
  background-image: url('../images/color-bar.jpg');
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: 100% 1rem;
  color: #224289;
  padding: .5rem 3rem 1.5rem;
  text-align: center;
}

#footer-wrapper .wqed-explore-on img {
  max-height: 4rem;
}

#footer .menu {
  display: flex;
  flex-flow: row wrap;
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
  text-transform: uppercase;
}

#footer .menu li {
  list-style: none;
  width: 100%;
}

#footer .menu .menu {
  display: block;
  padding: 0 1rem 1rem;
  text-transform: none;
}

#footer .menu .menu li {
  width: 100%;
}

#footer .menu a,
#footer .menu a:active,
#footer .menu a:visited {
  color: #fff;
}

#footer .menu a:focus,
#footer .menu a:hover {
  color: #00aea9;
  transition: color 0.2s;
}

@media screen and (min-width: 480px) {
  #footer .menu {
   grid-template-columns: repeat(2, 1fr); 
  }
  #footer .menu li {
    width: 50%;
  }
}
@media screen and (min-width: 800px) {
  #footer .menu li {
    width: 25%;
  }
}