% vim: ft=tex

\definecolor{cznicblue}{RGB}{0,56,145}
\definecolor{cznicred}{RGB}{204,18,38}

\setbeamertemplate{frametitle}{
	\begin{textblock}{100}[0,0](0.0,1.1)
		\insertframetitle
	\end{textblock}
}

\defbeamertemplate*{footline}{CZ.NIC}{
	\begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex,
		leftskip=.3cm,rightskip=.3cm plus1fil]{bottom}


	\parbox{15.4cm}{\vspace*{-1.2cm}\hfill\insertpagenumber/\inserttotalframenumber}
	\end{beamercolorbox}
}

\setbeamertemplate{background}{
	\includegraphics[width=\paperwidth,height=\paperheight]{theme/turris_bg_16_9.png}
}

\defbeamertemplate*{title page}{CZ.NIC}[1][]{
	\usebeamerfont{title}\usebeamercolor[fg]{title}\inserttitle\par
	\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par
	\bigskip
	\usebeamerfont{author}\usebeamercolor[fg]{author}\insertauthor\par
	\usebeamerfont{institute}\usebeamercolor[fg]{institute}\insertinstitute\par
	% Commenting out following lines hides date from first slide
	\usebeamerfont{date}\usebeamercolor[fg]{date}\insertdate\par
	\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic
}

\setbeamercolor{structure}{fg=cznicred}
\setbeamercolor{title}{fg=cznicblue}
\setbeamercolor{subtitle}{fg=cznicred}
\setbeamercolor{frametitle}{fg=cznicblue}
\setbeamercolor{author}{fg=cznicblue}
\setbeamercolor{date}{fg=cznicblue}

\beamertemplatenavigationsymbolsempty
