/**
 *	Data visualisations for MAG eye tracking project
 *	July 2015
 *	@author rob.dunne@manchester.ac.uk
 */

/* Styles here apply to all devices */

* {
	margin: 0;
	padding: 0;
}

html {
	background: #5F7480;
	color: #fff;
}

.clear {
	clear: both;
}

.container {
	width: 100%;
}

header {
	
}

#branding {
	padding: 10px;
}

#branding::after { 
	color: #fff;
	content: "DEMAA";
    font-family: lora;
    font-size: 2em;
}

#branding img {
	display: none;
}

#mobile-menu-icon {
	font-size: 2em;
	position: absolute;
	top: 15px;
	right: 10px;
	cursor: pointer;
}

#main-nav nav span {
	display: block;
	padding: 10px;
	background: #A4ADB2;
	cursor: pointer;
	border-bottom: 1px solid #5F7480;
}

#main-nav nav span:last-child {
	border-bottom: none;
}

#main-nav {
	display: block;
}

#desktop-nav {
	display: none;
	text-align: right;
}

#desktop-nav span {
	background: #7E93A0;
    border-radius: 5px;
    color: #f9f9f9;
    display: inline-block;
    margin: 10px 10px 0 0;
    padding: 5px 15px;
}

#desktop-nav span:hover {
	background: #A1B1BA;
    cursor: pointer;
}

#nav-controls {
	background: #FC5EA0;
}

#nav-controls .data-view-move {
	display: inline-block;
    padding: 2vw;
    width: 42vw;
    cursor: pointer;
}

#nav-controls .data-view-move:last-child {
	text-align: right;
	border-left: 1px solid #FB237D;
}

#nav-controls .data-view-move i {
	font-size: 1.5em;
}

#controls {
	background: #fff;
    color: #333;
}

#controls span {
	padding: 10px;
	cursor: pointer;
	display: inline-block;
	padding: 2vw;
}

#controls .data-view-select {
    text-align: center;
    width: 43vw;
}

#mag-home {
	background: url('../img/alph.png') no-repeat center 0;
	background-size: cover;
    padding: 20vh 0 0;
    height: 80vh;
}

#mag-home h1, 
#mag-home h4 {
	width: 60%;
	text-align: center;
	margin: 0 auto;
	color: #fff;
	opacity: 0;
}

#mag-home h1 {
	font-family: 'Lora', serif;
	margin: 0 auto 0.7em;
	position: relative;
	top: -40px;
}

#mag-home hr {
	width: 90%;
	margin: 0 auto 2em;
}

#mag-home h4 {
	font-family: 'Lato', sans-serif;
	font-weight: 300;
	position: relative;
	top: 80px;
}

#start-arrow {
	font-size: 5em;
	color: #fff;
	text-align: center;
	cursor: pointer;
	position: relative;
	top: 50px;
	opacity: 0;
}

#video-text,
#image-text {
	background: #fff;
	color: #333;
    padding: 10px 20px;
    margin: -10px 0 0;
}

#animation-wrapper,
#video-wrapper,
#image-wrapper {
	display: block;
}

#animation-wrapper-desktop,
#video-wrapper-desktop,
#image-wrapper-desktop {
	display: none;
}

#animation-wrapper-desktop img,
#animation-wrapper img,
#video-wrapper-desktop video,
#video-wrapper video,
#image-wrapper-desktop img,
#image-wrapper img {
	width: 100%;
}

#image-list-static {
	/* Prevent vertical gaps */
	line-height: 0;

	-webkit-column-count: 5;
	-webkit-column-gap:   0px;
	-moz-column-count:    5;
	-moz-column-gap:      0px;
	column-count:         5;
	column-gap:           0px;  
}

.grid-item img { 
	width: 100%;
	cursor: pointer; 
	opacity: 0.4;
}

.grid-item img:hover { 
	opacity: 1;
}

#animation-list-static .grid-item,
#video-list-static .grid-item {
	display: block;
	background: #eee;
	cursor: pointer;
	padding: 10px;
	border-bottom: 1px dotted #bbb;
}

#animation-list-static .grid-item:hover,
#video-list-static .grid-item:hover {
	background: #f9f9f9;
}

#animation-list-static .grid-item:last-child,
#video-list-static .grid-item:last-child {
	border: none;
}

#animation-list-static .grid-item img,
#video-list-static .grid-item img {
    cursor: pointer;
    opacity: 1;
    width: 10%;
}

#animation-list-static .grid-item p,
#video-list-static .grid-item p {
    color: #333;
    display: inline-block;
    padding: 0 0 0 5%;
    vertical-align: top;
    width: 80%;
}

#animation-list-static .grid-item p i,
#video-list-static .grid-item p i {
	padding: 0 0 0 10px;
}

#animation-list-static .grid-item p span,
#video-list-static .grid-item p span {
	font-size: 0.8em;
}


