/* Main font */
@import url(https://fonts.googleapis.com/css?family=Quicksand:400,700);

/* Resetting & initialising */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0}button{border:none}button:focus{outline:0}

/* Logo font */
@font-face { font-family: "icon"; src:url("fonts/icon.eot"); src:url("fonts/icon.eot?#iefix") format("embedded-opentype"), url("fonts/icon.woff") format("woff"), url("fonts/icon.ttf") format("truetype"), url("fontsicon.svg#untitled-font-1") format("svg"); font-weight: normal; font-style: normal; font-size: 150% !important; }
[data-icon]:before { vertical-align: middle; font-family: "icon" !important; content: attr(data-icon); font-style: normal !important; font-size: 150% !important; font-weight: normal !important; font-variant: normal !important; text-transform: none !important; speak: none; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
[class^="icon-"]:before, [class*=" icon-"]:before { vertical-align: middle; font-family: "icon" !important; font-style: normal !important; font-size: 150% !important; font-weight: normal !important; font-variant: normal !important; text-transform: none !important; speak: none; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.icon-logo3:before { content: "a"; } .icon-playback-play:before { content: "b"; } .icon-playback-pause:before { content: "c"; }

/* Main CSS */
body {
	background-color: #51494E;
	font-family: "Quicksand", sans-serif;
	font-weight: 700;
	
	min-height: 300px;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	overflow: hidden;
}

a {
	color: #F05C4B;
	cursor: pointer;
	text-decoration: none;
	transition: color linear 0.2s;
}
a:hover {
	color: #64D2BC
}

/*Header: title and logo*/
header {
	position: relative;
	margin-top: 20px;
	height: 90px;
	width: 100%;
	font-size: 40px;
	line-height: 70px;
	background-color: #64D2BC;
	color: #E8E1EC;
	text-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
	box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
	padding: 10px;
	vertical-align: middle;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
}

/*For centering info pop-up*/
#info_box_container {
	position: fixed;
	left:50%;
	top: 10px;
}

/*Contextual info pop-up*/
#info_box {
	position: relative;
	left: -50%;
	height: 55px;
	padding: 5px;
	padding-left: 15px;
	padding-right: 15px;
	font-size: 22px;
	line-height: 45px;
	font-weight: 400;
	color: #F05C4B;
	background-color: rgba(232, 225, 236, 0.95);
	border-radius: 8px;
	box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	z-index: 5;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
}
/*Angular animation states for info pop-up*/
#info_box_container.ng-hide-add, #info_box_container.ng-hide-remove {
	transition: top ease-in-out 0.35s, opacity ease-in-out 0.35s;
	-webkit-transition: top ease-in-out 0.35s, opacity ease-in-out 0.5s;
}
#info_box_container.ng-hide-remove {
	top: -60px;
	opacity: 0;
}
#info_box_container.ng-hide-remove.ng-hide-remove-active {
	top: 10px;
	opacity: 1;
}
#info_box_container.ng-leave {
	opacity: 1;
}
#info_box_container.ng-leave.ng-leave-active {
	opacity: 0;
}
#info_box_container.ng-hide {
	opacity: 0;
}

/*Background div to run sidebar to base of page*/
#aside_bg {
	background-color: #5FAD9D;
	position: fixed;
	z-index: -1;
	top: 0px;
	right: 20px;
	bottom: 0px;
	width: 300px;
}

/*Sidebar, containing trends list*/
aside {
	font-size: 26px;
	color: #E8E1EC;
	padding: 15px;
	padding-right: 35px;
	float: right;
	width: 320px;
	display: block;
	text-align: center;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
}

/*Title of trends list*/
#trends_header {
	padding-bottom: 15px;
	text-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
}

/*Current trend selector buttons*/
.trend_button {
	font-family: "Quicksand", sans-serif;
	background-color: #F05C4B;
	color: #E8E1EC;
	border-radius: 15px;
	border: 0;
	font-weight: 700;
	font-size: 15px;
	padding: 5px;
	padding-left: 10px;
	padding-right: 10px;
	margin: 2px;
	cursor: pointer;
	max-width: 230px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
	transition: background-color linear 0.2s;
	-webkit-transition: background-color linear 0.2s;
}
.trend_button:hover {
	background-color: #51494E;
}
/*Angular animation states for showing, hiding and moving trend buttons*/
.trend_button.ng-enter, .trend_button.ng-leave, .trend_button.ng-move {
	transition: 0.4s linear opacity;
	-webkit-transition: 0.4s linear opacity;
	position:relative;
}
.trend_button.ng-enter {
	opacity: 0;
}
.trend_button.ng-enter.ng-enter-active {
	opacity: 1;
}
.trend_button.ng-leave {
	opacity: 1;
}
.trend_button.ng-leave.ng-leave-active {
	opacity: 0;
}
.trend_button.ng-move {
	opacity: 0.25;
}
.trend_button.ng-move.ng-move-active {
	opacity: 1;
}

/*Status footer (selected trend, playback state)*/
footer {
	position: fixed;
	bottom: 10px;
	left: 10px;
	height: 55px;
	max-width: calc(100% - 405px);
	padding: 5px;
	padding-left: 15px;
	padding-right: 15px;
	font-size: 22px;
	line-height: 45px;
	font-weight: 400;
	color: #E8E1EC;
	background-color: rgba(0, 0, 0, 0.5);
	border-radius: 8px;
	box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
}

/*Play/pause control for incoming tweets*/
#playback_button {
	position: fixed;
	bottom: 10px;
	right: 330px;
	height: 55px;
	padding: 5px;
	font-size: 30px;
	line-height: 45px;
	font-weight: 400;
	color: #E8E1EC;
	background-color: rgba(0, 0, 0, 0.5);
	border-radius: 8px;
	box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	cursor: pointer;
	transition: background-color linear 0.2s, opacity linear 0.4s;
	-webkit-transition: background-color linear 0.2s, opacity linear 0.4s;
}
#playback_button:hover {
	background-color: #F05C4B;
}

/*General ng-show/hide animation settings*/
.ng-hide-add, .ng-hide-remove {
	transition: background-color linear 0.2s, opacity linear 0.4s;
	-webkit-transition: background-color linear 0.2s, opacity linear 0.4s;
}
.ng-hide-remove {
	opacity: 0;
}
.ng-hide-remove.ng-hide-remove-active {
	opacity: 1;
}
.ng-hide-add {
	opacity: 1;
}
.ng-hide-add.ng-hide-add-active {
	opacity: 0;
}
.no_transition.ng-hide-add, .no_transition.ng-hide-remove {
	transition: none;
	-webkit-transition: none;
}

/*Welcome pop-up*/
#welcome {
	background-color: rgba(0, 0, 0, 0.5);
	color: #E8E1EC;
	margin: 15px;
	margin-right: 360px;
	padding: 15px;
	font-weight: 400;
	border-radius: 8px;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}
#welcome_main {
	font-size: 30px;
}
#welcome_extra {
	font-size: 16px;
}

/*Placeholder styling for div holding tweets in main spiral (positioned by JS, hereafter)*/
#spiral_root {
	position: absolute;
	left: 100px;
	top: 100px;
	width: 100px;
}

/*Rotating spiral image*/
.spiral_bg {
	z-index: -1;
	position: absolute;
	left: -458px;
	top: -408px;
	-webkit-animation: rotation 2s infinite linear;
	animation: rotation 2s infinite linear;
}
@-webkit-keyframes rotation {
	from	{-webkit-transform: rotate(0deg);}
	to		{-webkit-transform: rotate(359deg);}
}
@keyframes rotation {
	from	{transform: rotate(0deg);}
	to		{transform: rotate(359deg);}
}
/*Pause state for rotating spiral*/
.animation_paused {
	-webkit-animation-play-state: paused;
	animation-play-state: paused;
}

/*Individual tweet elements (container, profile pic, name, message body and tweet time)*/
.tweet_box {
	background-color: #40A5C4;
	color: #E8E1EC;
	border: 4px solid #E8E1EC;
	padding: 15px;
	border-radius: 8px;
	width: 500px;
	min-height: 158px;
	font-weight: 400;
	
	position: absolute;
	opacity: 0;
	
	box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3);
	
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
}
.profile_img {
	border-radius: 15px;
	border: 3px solid #E8E1EC;
	background-color: rgba(0, 0, 0, 0.2);
	float: left;
	margin-right: 15px;
}
.tweet_text {
	font-size: 15px;
	line-height: 15px;
}
.tweet_title {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.screen_name {
	font-weight: 700;
}
.tweet_body {
	margin-top: 10px;
	margin-left: 143px;
	padding: 8px;
	padding-top: 4px;
	height: 74px;
	border-radius: 10px;
	background-color: rgba(232, 225, 236, 0.7);
	color: #51494E;
	font-weight: 700;
	line-height: 15px;
	overflow: hidden;
	text-overflow: ellipsis;
}
.tweet_time {
	font-size: 14px;
	font-weight: 700;
	position: absolute;
	bottom: 16px;
	right: 16px;
}


/* Small screen adjustments (<850px) */
@media (max-width: 850px) {
	header {
		margin-top: 0px;
		height: 60px;
		width: 100%;
		font-size: 26.5px;
		line-height: 40px;
	}
	#aside_bg {
		display: none;
	}
	aside {
		background-color: #5FAD9D;
		width: 100%;
		padding: 10px;
		font-size: 15px;
		float: none;
	}
	#trends_header {
		padding-bottom: 5px;
	}
	.trend_button {
		font-size: 12px;
		padding: 2px;
		padding-left: 4px;
		padding-right: 4px;
		margin: 1px;
	}
	footer {
		max-width: calc(100% - 85px);
	}
	#playback_button {
		right: 10px;
	}
	#welcome {
		margin: 25px;
		margin-right: 25px;
	}
	
}