/*************************************************
*                                                *
* CSS for the Title-Footer plugin for Reveal.js  *
*                                                *
* Author: Igor Leturia                           *
*                                                *
* License: GPL v3                                *
* http://www.gnu.org/copyleft/gpl.html           *
*                                                *
*************************************************/

/* Style for the Title-Footer footer */

@media screen and (max-width: 600px) {
	#title-footer
	{
		visibility: hidden;
		opacity: 1;
		transition: opacity 800ms ease-in-out;
		position: fixed;
		height: 5%;
		z-index: 20;
		width: 100%;
		font-size: 1em;
		text-align: center;
		letter-spacing: 0em;
		padding-top: 0.5vh;
		padding-bottom: 0.5vh;
	}
}

@media screen and (min-width: 601px) {
	#title-footer
	{
		opacity: 1;
		transition: opacity 800ms ease-in-out;
		position: fixed;
		height: 5%;
		z-index: 20;
		width: 100%;
		font-size: 1em;
		text-align: center;
		letter-spacing: 0em;
		padding-top: 0.5vh;
		padding-bottom: 0.5vh;
	}
}

/* Bottom position for the Title-Footer footer when both progress bar and TOC-Progress are visible */

div.progress[style="display: block;"] ~ #title-footer
{
	bottom: calc(3px + 10.5vh);
}

/* Bottom position for the Title-Footer footer when TOC-Progress is visible */

#title-footer
{
	bottom: 10.5vh;
}

/* This is to fix the positioning of the title which goes off screen due to a new reveal.js CSS property. */
#title-footer p{
	margin: 0;
}

#title-footer #footer_date{
	position: absolute;
	left: 1%;
}

#title-footer #footer_image{
	width: 3%;
	position: absolute;
	right: 30%;
}

#title-footer #footer_slidenumber{
	position: absolute;
	right: 1%;
}

/* Bottom position for the Title-Footer footer when progress bar is visible */

div.progress[style="display: block;"] ~ footer:last-of-type#title-footer
{
	bottom: 3px;
}

/* Bottom position for the Title-Footer footer when neither progress bar nor TOC-Progress are visible */

footer:last-of-type#title-footer
{
	bottom: 0px;
}

/* Make Title-Footer invisible if explicitly indicated */

.no-title-footer #title-footer
{
	opacity: 0;
	transition: opacity 800ms ease-in-out;
}

.no-toc-progress #title-footer
{
	opacity: 0;
	transition: opacity 800ms ease-in-out;
}

/* Make Title-Footer invisible in overview mode */

.overview #title-footer
{
	opacity: 0;
	transition: opacity 800ms ease-in-out;
}
