%-----------------------------------------------------------------------------------------------------------------------------------------------%
%	The MIT License (MIT)
%
%	Copyright (c) 2017 <NAME>
%
%	Permission is hereby granted, free of charge, to any person obtaining a copy
%	of this software and associated documentation files (the "Software"), to deal
%	in the Software without restriction, including without limitation the rights
%	to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
%	copies of the Software, and to permit persons to whom the Software is
%	furnished to do so, subject to the following conditions:
%	
%	THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
%	IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
%	FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
%	AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
%	LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
%	OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
%	THE SOFTWARE.
%	
%
%-----------------------------------------------------------------------------------------------------------------------------------------------%



%-----------------------------------------------------------------------------------------------------------------------------------------------%
% OUTER THEME
%-----------------------------------------------------------------------------------------------------------------------------------------------%

%\useoutertheme{infolines}
%\useoutertheme[subsection=false]{miniframes}
%\useoutertheme{shadow}
%\useoutertheme{sidebar}
%\useoutertheme{smoothbars}
%\useoutertheme{smoothtree}
%\useoutertheme{split}
%\useoutertheme{tree}


%-----------------------------------------------------------------------------------------------------------------------------------------------%
% INNER THEME
%-----------------------------------------------------------------------------------------------------------------------------------------------%

\useinnertheme{rectangles}
%\useinnertheme{circles}
%\useinnertheme{inmargin}
%\useinnertheme{rounded}

%-----------------------------------------------------------------------------------------------------------------------------------------------%
%	COLOR CONFIGURATION
%-----------------------------------------------------------------------------------------------------------------------------------------------%

\setbeamercolor{alerted text}{fg=orange}
\setbeamercolor{background canvas}{bg=white}

\setbeamercolor{block title}{bg=gray, fg=white}
\setbeamercolor{block body}{bg=lightgray}

\setbeamercolor{block title alerted}{,fg=white ,bg=orange}
\setbeamercolor{block body alerted}{bg=lightgray}

\setbeamercolor{block title example}{fg=white,bg=coolblack}
\setbeamercolor{block body example}{bg=lightgray}

\setbeamercolor{fine separation line}{fg=lightgray}

\setbeamercolor{item projected}{bg=orange, fg=white}

\setbeamercolor{normal text}{bg=black,fg=black}

%\setbeamercolor{palette sidebar primary}{fg=purple}
%\setbeamercolor{palette sidebar quaternary}{fg=purple}
%\setbeamercolor{palette sidebar secondary}{fg=purple}
%\setbeamercolor{palette sidebar tertiary}{fg=purple}

%\setbeamercolor{section in sidebar}{fg=green}
%\setbeamercolor{section in sidebar shaded}{fg=gray}

\setbeamercolor{separation line}{bg=gray, fg=gray}

%\setbeamercolor{sidebar}{bg=white}
%\setbeamercolor{sidebar}{parent=palette primary}

\setbeamercolor{structure}{bg=coolblack, fg=orange}

%\setbeamercolor{subsection in sidebar}{fg=orange}
%\setbeamercolor{subsection in sidebar shaded}{fg=white}

\setbeamercolor{title}{bg=coolblack, fg=white}
\setbeamercolor{titlelike}{bg=coolblack, fg=white}

\setbeamercolor{author}{bg=white, fg=black}
\setbeamercolor{authorlike}{bg=white, fg=black}

\setbeamercolor{frametitle}{bg=coolblack,fg=white}

%-----------------------------------------------------------------------------------------------------------------------------------------------%
%	FONT / TPOGRAPHY CONFIGURATION
%-----------------------------------------------------------------------------------------------------------------------------------------------%

% put font def here

%-----------------------------------------------------------------------------------------------------------------------------------------------%
%	MISC PACKAGES
%-----------------------------------------------------------------------------------------------------------------------------------------------%

\usepackage{listings}

%-----------------------------------------------------------------------------------------------------------------------------------------------%
%	MISC SETTIGNS
%-----------------------------------------------------------------------------------------------------------------------------------------------%

% removes the bottom right buttons
\beamertemplatenavigationsymbolsempty

\setbeamertemplate{mini frames}[box]

\setbeamertemplate{headline}{
\leavevmode%
\hbox{%
	\begin{beamercolorbox}[wd=\paperwidth,ht=2.3ex,dp=1.125ex]{palette quaternary}%
		 \insertnavigation{\paperwidth}{}{\hskip0pt plus1filll}%
	\end{beamercolorbox}%
	}
    \vspace*{2ex}%
}



% show on every new section / subsection the TOC

\AtBeginSection[]
{
  \begin{frame}
    \frametitle{Table of Contents}
    \tableofcontents[currentsection]
  \end{frame}
}

%\AtBeginSubsection[]
%{
%	\begin{frame}
%	\frametitle{Table of Contents}
%	\tableofcontents[currentsection,currentsubsection]
%	\end{frame}
%}

