@import url(http://cdn.theatlantic.com/assets/static/common/fonts/proxima-nova.css);
@import url(http://cdn.theatlantic.com/assets/static/common/fonts/lyon.css);
@import url(http://cdn.theatlantic.com/assets/static/common/fonts/rajdhani.css);

@keyframes scroll {
    0%   {opacity: 0; top: 0px}
    50%  {opacity: 1}
    100%  {opacity: 0; top: 30px}

}

/* Overall styles */

html {
	overflow-x: hidden;


}

body {
margin: 0;

}

a {
	text-decoration: none;
	color: inherit;
}

	a:hover {
		text-decoration: underline;
	}

.logo {
	background-image: url("https://s3.amazonaws.com/the-atlantic/assets/logo-gray.svg");
  	background-size: contain;
	float:right;
	margin-top: 25px;
	margin-right: 18px;
	display: none;
}

/* Scroll down button */
.scroll-down-container {
	position: fixed;
	top: 0;
	text-align: center;
	width: 100%;
	left: 0;
	z-index:2;
}

.scroll-down {
	padding: 0px 30px;
	height: 100px;
	border-radius: 0 0 50% 50%;
	background-color: rgba(0,0,0,.9);
	color: white;
	text-align: center;
	font-family: Rajdhani, sans-serif;
	font-size: 12pt;
	letter-spacing: 2px;
	text-transform: uppercase;
	z-index: 2;
	display: inline-block;
}

.scroll-down-text {
	width: 70px;
	display: inline-block;
	text-align: center;
	animation-name: scroll;
	position: relative;
	top: 0px;
	animation-duration: 1s;
	animation-iteration-count: infinite;
}



/* Image pane */
.image {
	width: 45%;
	height: 100%;
	position: fixed;
	top: 10px;
	left: -10%;
	transition: all .25s;
	z-index: 1;
}

	.image.offscreen {
		left: -50%;
	}

.image .circle {
	border-radius: 0 50% 50% 0;
	height: 200%;
	width: 200%;
	position: absolute;
	top: -50%;
	left: -95%;
	background-color: #EE2A24;
	z-index:-1;
	transition: .5s background-color;
}

.image img {
	height: 50%;
	position: absolute;
	right: 5%;
	top: 25%;
}

/* Quote pane */
.quotes {	
	margin-top: 50px;
	transition: all .25s;
	width: 100%;
	box-sizing: border-box;
	padding-left: 45%;
	padding-right: 10%;
	background: #fff;
}

	.quotes.centered {
		padding-right: 27.5%;
		padding-left: 27.5%;
		margin-right: 0;
	}
	
.quotes .whitescreen {
	width: 100%;
    height: 1947px;
    background-color: white;
    opacity: .9;
    z-index: -1;
    position: fixed;
	top: 0;
	left: 0;
}

.quotes.centered .whitescreen{
	z-index: 1;
}

.quoteBox:not(.compressed) .logo {
	display: block;
}

.banner {
	text-align: center;
	margin-bottom: 100px;
}

.banner .title {
	margin: auto;
	font-size: 75pt;
	text-align: left;
	font-family: Lyon Display;
	position: relative;
	margin-bottom: 20px;
	text-align: center;
	text-transform:uppercase;
	line-height:auto;
}

.banner .smaller {
	white-space: nowrap;
	font-size: 20pt;	
	position: relative;
	top: -10px;
	font-family: Lyon Text, serif;
	font-style: italic;
	text-align: center;
	text-transform: lowercase;
}

	.banner .smaller span {
		position:relative;
		display: inline-block;
		padding: 15px 10px 13px;
	}
	
	.banner .smaller span:before, .banner .smaller span:after {
		content: " ";
		width: 100%;
		height: 6px;
		background-color: #EE2A24;
		position:absolute;
		left: 0;
	}
	
	.banner .smaller span:before {
		top: 0;
	}

	.banner .smaller span:after {
		bottom: 0;
	}

.banner .title #obama {
	font-size:100pt;

}

.banner .title #world {
	font-size:100pt;

}

.intro {
	font-family: Lyon Text, serif;
	font-size: 20pt;
}

.intro p {
	
}

.balls {
	text-align: center;
}

.ball {
	width: 50px;
	height: 50px;
	display: inline-block;
	margin-left: 50px;
	border-radius: 50%;
	position: relative;
	font-family: Proxima Nova, sans-serif;
}

	.ball:hover{
		cursor: pointer;
	}

	.ball:after {
		content: attr(data-name);
		width: 100px;
		position: absolute;
		top: 110%;
		text-align: center;
		left: -25px;
		font-size: 12pt;
		
	}
	
		.ball:hover:after {
			text-decoration: underline;
		}
	
	.ball:first-child {
		margin-left: 0px;
	}

/* Regional titling */

.region {
	margin-top: 200px;
}

.regionTitle {
	width: 100%;
	margin: auto;
	font-size: 50pt;
	text-align: left;
	font-family: Lyon Display;
	position: relative;
	margin-bottom: 20px;
	text-align: center;
	z-index:2;
}

	.regionTitle .underline {
		white-space: nowrap;
		display: inline-block;
		position: relative;
	}
	
		.regionTitle .underline:after {
			content: " ";
			display: block;
			width: 100%;
			position: absolute;
			bottom: -2px;
			height: 8px;
			left: 0px;
			background-color: #EE2A24;
			z-index:-1;
		}
		
			.regionTitle.color0 .underline:after {
				background-color: #EE2A24;
			}

			.regionTitle.color1 .underline:after {
				background-color: #00A8CB;
			}
			
			.regionTitle.color2 .underline:after {
				background-color: #F58025;
			}

			.regionTitle.color3 .underline:after {
				background-color: #993399;
			}
			

/* Quote box */

.quoteBox {
	font-family: Lyon Display, serif;
	position: relative;
	max-width: 600px;
	width: 100%;
	margin: 50px auto;
	border: 1px solid rgba(204,204,204,1);
	border-radius: 5px;
	padding: 20px 1% 30px 5%;
	max-height: 1000px;
	position: relative;
	z-index:2;

}

	.quoteBox.compressed {
		left: 0%;
		z-index:0;
	}

.quoteBox, .quoteBox *  {
	//transition: 2s all;
}

.quoteBox .arrow {
	position: absolute;
	background-color: white;
	border: 1px solid #ccc;
	top: 45%;
   width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 15pt;
	color: #bbb;
	cursor: pointer;
	-webkit-user-select: none;  /* Chrome all / Safari all */
	-moz-user-select: none;     /* Firefox all */
	-ms-user-select: none;      /* IE 10+ */
	user-select: none;
	border-radius: 50%;
}

	.quoteBox.compressed .arrow {
		display: none;
	}
 
	.quoteBox .arrow.right {
		right: -15px;
	}

	.quoteBox .arrow.left {
		left: -15px;
	}

.quoteBox .text {

    margin-top: 8%;
	font-size: 20pt;
    width: 80%;
	margin-left: 10%;
    z-index: 1;
	line-height: 1.2em;
	overflow: hidden;
	max-height: 1000px;
	position: relative;
}

	.quoteBox .text p {
		margin: 20px 0px;
	}
	
		.quoteBox .text p:first-child {
			margin-top: 0px;
		}
	
		.quoteBox .text p:last-child {
			margin-bottom: 0px;
		}
	
	
	/* Quote mark */
	.quote-mark {
		opacity: 0;
		height: 0;
	}
	
	.quoteBox:not(.compressed) .quote-mark {
		content: "\201C";
		font-size: 150pt;
		position: absolute;
		color: #007D68;
		opacity: .3;
		left: 6%;
		top: 8%;
		height: 120px;
	}
	

.breadcrumbs {
	list-style: none;
	font-family: Proxima Nova, sans-serif;
	position: absolute;
	top: 20px;
	right: 20px;
	text-align: right;
	font-size: 12pt;
	color: #666;
	opacity: 0;
	cursor: pointer;
}

	.quoteBox:not(.compressed) .breadcrumbs {
		opacity: 1;
	}

.breadcrumbs li {
	padding: 0;
	display:inline-block;
}
	.breadcrumbs li:after {
		content: "/";
		margin: 0px 5px 0px 10px;
		display: inline-block;
	}
	
	.breadcrumbs li:last-child:after {
		display: none;
	}

.portraitContainer {
	width: 100%;
	height: 100px;
	position: absolute;
	top: -38px;
	left: 0px;
	text-align: center;
	max-height: 1000px;
	display: none;
}

.portrait {
	height: 75px;
	width: 75px;
	border-radius: 50%;
	border: 1px solid #ccc;
	background-color: white;
	display: inline-block;
}

.portrait .icon-libya {
	font-size: 26pt;
    color: #EE2A24;
    line-height: 75px;
}

.attribution {
	font-family: Proxima Nova, sans-serif;
	text-align: right;
	margin-top:15px;
	padding-right: 20px;
	font-size: 13pt;
	max-height: 1000px;
	margin-bottom: 30px;
}

	.attribution a {
		text-decoration: none;
	}

	.attribution strong {
		position: relative;
//		font-family: Lyon Display, sans-serif;
		font-size: 14pt;
	}
		
		.attribution strong:after {
			content: " ";
			width: 100%;
			height: 4px;
			background-color: #EE2A24;
			position: absolute;
			bottom: -3px;
			left: 0;
			z-index: -1;
		}
		
			.attribution strong.color0:after {
				background-color: #EE2A24;
			}

			.attribution strong.color1:after {
				background-color: #00A8CB;
			}
			
			.attribution strong.color2:after {
				background-color: #F58025;
			}

			.attribution strong.color3:after {
				background-color: #993399;
			}
		

.social {
	list-style: none;
	text-align: left;
	font-family: "Proxima Nova", sans-serif;
	font-size: 10pt;
	color: #666;
	margin: 30px 0px 0px;
	padding: 0px;
	opacity: 0;
	max-height:1000px;
	overflow: hidden;
	float: left;
}

	.quoteBox:not(.compressed) .social {
		opacity: 1;
	}
	


.social li {
	list-style: none;
	display: inline-block;
}

	.social li:after {
		content: "|";
		margin: 0px 5px 0px 8px;
	}
	
		.social li:last-child:after {
			display: none;
		}

.smallText { 
	max-height: 0;
	opacity: 0;
	width: 350px;
	font-size: 17pt;
	margin: 0px auto;
    left: 10%;
    top: 20px;
    z-index: 1;
	line-height: 1.1em;
	overflow: hidden;
}

	.paraphrased .smallText {
		font-family: Lyon Text, sans-serif;
		font-weight: 400;
	}

.smallHead {
	opacity: 0;
	max-height: 0;
	font-family: Rajdhani, sans-serif;
	font-size: 13pt;
	text-align: center;
	margin-bottom: 15px;
	text-transform: uppercase;
	letter-spacing: -.02em;
	font-weight:600;
}

	.lead .smallHead {
		display: none;
	}

/* Smaller quote box */

.quoteBox.compressed {
	width: 350px;
	border-left: rgba(204,204,204,0);
	border-right: rgba(204,204,204,0);
	padding: 0px 0% 50px;
	border-top: rgba(204,204,204,0);
	margin-bottom: 50px;
	margin-top: 0px;
}

	.quoteBox.compressed.lead {
		margin: 40px auto 30px;
	}

.compressed .portrait {
	width: 0px;
	opacity: 0;
}

.compressed .portraitContainer {
	max-height: 0px;
}

.compressed .attribution {
	max-height: 0;
	opacity: 0;
	margin-top: 0px;
	margin-bottom: 0px;
}

.quoteBox.compressed .text {
	max-height: 0px;
	opacity: 0;
	margin-top:0;
}


.compressed .smallText {

	opacity: 1;
	max-height: 1000px;
}

.medium.compressed .smallText {
	width: 150%;
	margin-left: -25%;
	font-size: 25pt;
	text-align: center;
}

.compressed .smallText:hover {
		text-decoration: underline;
		cursor: pointer;
	}

.compressed .social {
	margin-top: 0px;
	max-height: 0;
}

.compressed .smallHead {
	opacity: 1;
	max-height: 1000px;
}


/* Icons */
@font-face {
    font-family: 'icomoon';
    src:    url('fonts/icomoon.eot?l38l6f');
    src:    url('fonts/icomoon.eot?l38l6f#iefix') format('embedded-opentype'),
        url('fonts/icomoon.ttf?l38l6f') format('truetype'),
        url('fonts/icomoon.woff?l38l6f') format('woff'),
        url('fonts/icomoon.svg?l38l6f#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
}

[class^="icon-"], [class*=" icon-"] {
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: 'icomoon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;

    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-libya:before {
    content: "\e900";
}

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


	
}


@media screen and (max-width: 1060px) {
//	.image img { right: 20% }

	
}

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

	.image { display: none }
	.quotes { 
		margin: 50px auto 0px; 
		position: static; 
		padding: 0px 5%;
	}
	
	.quotes.centered {
		padding: 0px 5%;
	}
	
	.region {
		margin-top:75px;
	}
	
	.banner .title #obama {
		margin: 0;
		font-size: 60pt;
	}
	.banner .title #world {
		margin: 0;
		font-size: 60pt;
	}
	
	.banner .smaller {
		top: -6px;
		font-size: 15pt;
	}

	.intro {
		width: 75%;
		margin: auto;
		font-size: 15pt;
	}

	.quoteBox {
		width: 80%;
		left: 0;
	}
	
	.quoteBox .text {
		font-size: 16pt;
	}

	.regionTitle {
		font-size: 30pt;
	}
	
	.smallText {
		width: 90%;
		font-size: 15pt;
	}
	
	.quoteBox.compressed {
		padding: 0px 0px 25px;
		margin-bottom: 25px;
		min-width: 300px;
		width: 50%;
	}
	
	.medium.compressed .smallText {
		width:100%;
		font-size: 20pt;
		margin-left:0;
	}



}

@media screen and (max-width: 600px) {
	.ball {
		margin-right: 25px;
		margin-left: 0px;
	}
	
	.ball:last-child {
		margin-right: 0px;
	}
	
	.ball:after {
		font-size: 12pt;
		left: -12px;
		width: 75px;
	}
	
	.banner {
		margin-bottom: 150px;
	}
	
	.quote-mark {
		display: none;
	}
	.quoteBox { 
		width: 90%;
		margin: auto;
	}
	
	.quoteBox .text {
		margin-top: 40px;
		width: 90%;
		margin-left: 5%;
	}
	
	.quotes .whitescreen {
		display: none;
	}

	.medium.compressed .smallText {
		font-size: 17pt;
	}
	
	.attribution strong {
		white-space: nowrap;
	}

}	

@media screen and (max-width: 500px) {
	.balls {
		display: none;
	}
	
	.quoteBox {
		margin-bottom: 20px;
	}
	
	.quoteBox .text {
		font-size: 14pt;
	}

	.arrow {
		display: none;
	}

	.social li {
		display: block;
	    margin-bottom: 5px;
	    font-size: 12pt;
	    border-right: 0;
	}
	
	.social li:after {
	 	display: none;
	}
}
