\ProvidesPackage{beamerthemeITCp}  % this style was created by Jarek Milewski

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\mode<presentation>

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamertemplate{navigation symbols}{}
\definecolor{lightblue}{RGB}{245, 245, 255}

\setbeamercolor{title}{fg=red}
\setbeamerfont{title}{size=\huge,series=\bf}

\setbeamercolor{subtitle}{fg=red}
\setbeamerfont{subtitle}{size=\large,series=\bf}

\setbeamercolor{sidebar}{fg=blue,bg=lightblue}

\setbeamercolor{section in sidebar}{fg=blue}
\setbeamerfont{section in sidebar}{size=\tiny}

\setbeamercolor{subsection in sidebar}{fg=blue}
\setbeamerfont{subsection in sidebar}{size=\tiny}

\setbeamercolor{title in sidebar}{fg=blue}
\setbeamerfont{title in sidebar}{series=\bf}

\setbeamercolor{author in sidebar}{fg=blue}

\setbeamercolor{frametitle}{fg=blue}
\setbeamercolor{title}{fg=red}

\setbeamercolor{footline}{fg=red, bg=white}
\setbeamerfont{footline}{series=\bf}


\setbeamercolor{headline}{fg=red,bg=white}
\setbeamercolor{separation line}{bg=red}

\setbeamercolor{title in headline}{fg=red,size=\huge,series=\bf}

\setbeamercolor{enumerate item}{fg=blue}
\setbeamerfont{enumerate item}{series=\bf}

\setbeamercolor{normal text}{fg=black, bg=white}
\setbeamerfont{normal text}{series=\bf}

\setbeamercolor{block title}{fg=blue,bg=lightblue}
\setbeamerfont{block title}{size=\large,series=\bf}
\setbeamercolor{block body}{bg=lightblue,fg=blue}

\setbeamercolor{framesubtitle}{fg=blue, bg=white}
\setbeamercolor{author in head/foot}{fg=blue, bg=white}
\setbeamercolor{title in head/foot}{fg=blue, bg=white}

\setbeamercolor{upper separation line head}{fg=red}

\setbeamertemplate{itemize items}[triangle]

\usefonttheme{structurebold}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\setbeamertemplate{headline}{
\vskip-1ex
\begin{columns}
	\begin{column}{0.1\paperwidth}
		\begin{flushleft}
			\includegraphics[width=0.07\paperwidth]{ITCLogo}		
		\end{flushleft}
	\end{column}

	\begin{column}{0.6\paperwidth}
		\centering
		\textbf{\large{\insertsubsection}}
	\end{column}

	\begin{column}{0.1\paperwidth}
		\begin{flushright}
			\includegraphics[width=0.07\paperwidth]{WUTLogo}	
		\end{flushright}
	\end{column}

\end{columns}

\vspace{2pt}

\begin{beamercolorbox}[wd=\paperwidth]{lower separation line head}
   \rule{0pt}{1.5pt}
\end{beamercolorbox}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamertemplate{footline}{

\leavevmode
\vskip1ex
\begin{beamercolorbox}[wd=\paperwidth]{separation line}
    \rule{0pt}{1.5pt}
\end{beamercolorbox}

\vskip1ex

\begin{beamercolorbox}[wd=\paperwidth]{bg=red}
	\begin{columns}

		\begin{column}[T]{0.01\paperwidth}
		\end{column}

		\begin{column}{0.49\paperwidth}
			\insertauthor~\\
			Institute of Heat Engineering~\\
			Warsaw University of Technology
		\end{column}

		\begin{column}{0.49\paperwidth}
			\begin{flushright}
				\insertsubtitle~\\
				Slide~\insertframenumber~of~\inserttotalframenumber
			\end{flushright}
		\end{column}

		\begin{column}{0.01\paperwidth}
		\end{column}

	\end{columns}
\end{beamercolorbox}
\vskip2ex
}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\useoutertheme[left, height=0pt, width=0.17\paperwidth, hideothersubsections]{sidebar}

%\setbeamersize{sidebar width left=0.25\paperwidth}

\setbeamerfont{itemize/enumerate body}{size=\normalsize}
\setbeamerfont{itemize/enumerate subbody}{size=\normalsize}
%\setbeamerfont{itemize/enumerate subsubbody}{size=\normalsize}

