/* Use this file to overwrite the basic 'cern' theme
	Stuff included here is for illustrative purposes - 
	feel free to delete it.
*/

body {
    background-color: #fff;
}

.sidebars .block {
    margin-top: 1.5em;
}

/* Nice Menu customization */

.block-nice-menus:after {
  content: "";
  display: table;
  clear: both;
}

ul.nice-menu li {
    margin-left: 2px;
    margin-right: 2px;
    line-height: 1.6;
    font-weight: 700;
}

ul.nice-menu a {
    background: #222;
    color: #fff;
    padding: 0.5em 10px;
}

ul.nice-menu a:hover {
    background: #fff;
    color: #222;
}

ul.nice-menu ul {
    top: 2.8em;
}

/* End of Nice Menu customization */


#header {
	/* For the background image to show you must have a file
	named ‘bg_moss.jpg’ in themes/cern_overwrite/img */
	
	background-color: #fff;
	border-top: none;
	border-bottom: none;
}


.front #header {
	border-bottom-color: #000;
}
/*
#header .header-inner {
	position: relative;
	background-image: url('../img/2014_TEDx.png');
	background-repeat: no-repeat;
	background-position: 100% 5%;
	padding-top: 70px;
}
*/
/* Set a custom size on the logo */
#header h1#logo a img {
	width: 80px;
} 

/* Set size and bottom margin of the site title */
#header h2 a {
	display: block;
	margin: 0;
	padding: 0;
	width: 100%;
	/* height: 171px; */
	height: 150px;
	background-image: url('../img/2016_banner.png');
	background-repeat: no-repeat;
	background-size: contain;
}
#header h2 span {
	display: none;
}

/* Set the color for links in the header, including site title 
#header a, #header #site-slogan {
	color: #fff;
} */


/* Front page ad stuff 
.front #wrapper {
	background-image: url('../img/tedx_2014_ad_bg_b.jpg');
	background-position: center top;
	background-repeat: no-repeat;
	background-size: contain;
	background-color: #0e151d;
}

.front article {
	border-bottom: none;
}

.front #content h1#page-title {
	display: none;
	font-size: 1.4em;
	color: #fff;
}

.front #content {
	height: 600px;
}


.front #content p {
	color: #fff;
	font-family: "PT Sans", arial, sans-serif;
	font-size: 1.3em;
	font-weight: 600;
}

*/

.front h1 {
	font-size: 2.2em;
	line-height: 1.2;
}

.front article.node-page {
	border-bottom: none;
	padding: 0;
	margin: 0;
}

.front .block.front-page-ad {
	background-image: url('../img/visuel_accueil.png');
	background-position: center top;
	background-repeat: no-repeat;
	background-size: contain;
	background-color: #0e151d;
	color: #fff;
	padding-top: 320px;
	padding-bottom: 20px;
	position: relative;
}

.front .block.front-page-ad .tag {
	font-weight: 600;
	text-align: center;
	margin: 2em 0;
}

.front .block.front-page-ad h2 {
	display: none;
}

.front .block.front-page-ad .ad-emphasis {
	position: absolute; 
	top: 20px;
	right: 20px;
}

.front .block.front-page-ad .note {
	font-style: italic;
}

.front .block.front-page-ad h2,
.front .block.front-page-ad h3,
.front .block.front-page-ad p {
	color: #fff;
	padding-left: 20px;
	padding-right: 20px;
}


.views-exposed-form input[type=submit] {
	line-height: inherit;
}

.views_slideshow_cycle_main {
  width: 100%;
  float: left;
}
.views_slideshow_cycle_main .views-slideshow-cycle-main-frame {
  width: 100% !important;
  height: auto ;
}
.views_slideshow_cycle_main .views-slideshow-cycle-main-frame-row {
  width: 100% !important;
  height: auto ;
}
.views_slideshow_cycle_main .field-content {
  max-width: 100%;
  width: 100%;
}
.views_slideshow_cycle_main .field-content img {
  max-width: 100%;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

#social_links, #social_links li {
	list-style-type: none;
	margin-left: 0;
	padding-left: 0;
}

#social_links li {
	display: inline-block;
	margin-right: 10px;
}

#social_links a {
	display: block;
	width: 48px;
	height: 48px;
	background-position: top left;
	background-repeat: no-repeat;
	font-size: 1px;
	color: #fff;
}

#social_links #facebook a {
	background-image: url('../img/social/facebook.png');
}

#social_links #google a {
	background-image: url('../img/social/google.png');
}

#social_links #twitter a {
	background-image: url('../img/social/twitter.png');
}

#social_links #youtube a {
	background-image: url('../img/social/youtube.png');
}


#footer a {
	color: #fff;
}

#footer .block {
	padding: 0 0 0 0;
}

#footer #social_links {
	padding-top: 0;
}

#footer #social_links a {
	background-position: -8px -8px;
	color: #000;
}

#footer #social_links #facebook a {
	background-image: url('../img/social/reverse/facebook.png');
}

#footer #social_links #google a {
	background-image: url('../img/social/reverse/google.png');
}

#footer #social_links #twitter a {
	background-image: url('../img/social/reverse/twitter.png');
}


#social_links span.ext {
	display: none;
}

.ad-emphasis {
	font-weight: bold;
}

.note {
	font-size: smaller;
}


div.views-row h2 {
	font-size: 1.4em;
}

div.views-row h3 {
	font-weight: 600;
}


#wrapper #content .view-content.ui-accordion .ui-accordion-content li {
	list-style-type: circle;
}

#content div.views-row .meta {
}

/* Note that you're overriding the color module settings here - might be a way to choose separate nav colors at different size breakpoints? */ 
#main-navigation a {
	background-color: #222;
	border-color: #222;
	
}





#main-navigation a.active-trail {
	border-color: #060502;
}	

/* Let's have a dark footer */
html, #footer {
	background: #000;
	color: #999;
	}


/* Let's swap out the CERN logo to look good on a dark background */
#footer .cern-logo a {
	display: block;
	width: 200px;
	height: 200px;
	margin-top: 1em;
	/* background-image: url('../img/cern_logo/outline_80_white.png'); */
	background-position: top-left;
	background-repeat: no-repeat;
}

/*Let's make Accordion view be friends with bulleted lists*/
#accordion_list {
	list-style: disc;
}


/* Field styling */


.field-name-field-event {
	margin-top: 1em;
	font-size: smaller;
}



/* Responsive styles below - these apply only at certain screen sizes */


/*
// -----------------------------------------------------------------
// Large screens
// ----------------------------------------------------------------- 
*/
@media screen and (min-width: 1300px) {  



}




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


}



/*
// -----------------------------------------------------------------
// Desktop and Tablet Landscape
// ----------------------------------------------------------------- 
*/

@media only screen and (min-width: 1024px) {


}



/*
// -----------------------------------------------------------------
// Mobile
// ----------------------------------------------------------------- 
*/

@media only screen and (max-width: 768px) {

	#header h2 a {
		height: 90px;
	}
	
	/*
	.front #content {
		padding-top: 200px;
		height: 400px;
	}
	*/

}

.node-speaker, .view-viewing-parties {
	font-size: 14px;
}

.videoWrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	padding-top: 25px;
	height: 0;
}
.videoWrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

