/* TOOLS
=========================================================*/

/* TOOLS - ACTIONS TOOLBAR
-------------------------------------*/

#toolbar {
	position: fixed;
	z-index: 100;

	display: flex;
	flex-direction: row;
	transform: translateX(-50%);
	
	display: -webkit-flex;
	-webkit-flex-direction: row;
	-webkit-transform: translateX(-50%);

	left: 50%;
	width: 100%;
	max-width: 19cm;
	
	margin: auto;
	padding: 0;
	
	color: #fff;
	font-weight: bold;
	font-family: 'customFont', sans-serif;

	border-radius: 0 0 5px 5px;
	overflow: hidden;
}


#toolbar .button {
	flex-grow: 1;
	-webkit-flex-grow: 1;

	text-align: center;
	background-color: rgba(0,0,0,0.5);
	transition: background-color 200ms linear;
}
#toolbar .button:hover {
	background-color: rgba(0,0,0,0.75);
}


#toolbar .button::before {
	content: '';
	position: relative;
	
	display: inline-block;
	
	background-position: 50% 50%;
	background-size: 100%;
	background-repeat: no-repeat;
}


#toolbar .call::before { background-image: url('../images/tools_call.svg'); }
#toolbar .mail::before { background-image: url('../images/tools_mail.svg'); }
#toolbar .expand::before { background-image: url('../images/tools_expand.svg'); }
#toolbar .print::before { background-image: url('../images/tools_print.svg'); }


/* LOADING VIEW
==============================================================================*/

body.loading #toolbar {
	opacity: 0;
	top: 0px;
}

body.load2desk #toolbar {
	transition: top 1s 1s ease-in-out;
}
body.load2phon #toolbar {
	transition: opacity 1s 1s ease-in-out;
}

body.phon2desk #toolbar {
	transition: top 1s ease-in-out;
}


/* DESKTOP VIEW
==============================================================================*/

body.desktop #toolbar {
	opacity: 1;

	top: 100px;
	width: 100%;
	max-width: 19cm;

	bottom: auto;
	border-radius: 0 0 5px 5px;
}
	
body.desktop #toolbar .button {
	padding: 10px 5px;
}
body.desktop #toolbar .button::before {
		width: 16px;
		height: 16px;
		
		margin: 0 5px -5px 5px;
	}
}

body.desktop #toolbar .button span {
	display: inline-block;
}


/* PHONE VIEW
==============================================================================*/

body.phone #toolbar {
	opacity: 1;

	width: 65%;
	border-radius: 5px;

	top: auto;
	bottom: 20px;
}

body.phone #toolbar .button {
	padding: 5px;
}
body.phone #toolbar .button::before {
	width: 32px;
	height: 32px;
	
	margin: 2px;
}

body.phone #toolbar .button span {
	display: none;
}

