% Listings
\lstset{
%  language=C++,
  basicstyle=\footnotesize\ttfamily\color{NavyBlue!90!Black!100},
  backgroundcolor=\color{NavyBlue!10!White!20},
  aboveskip=1em,
  belowskip=1em,
  abovecaptionskip=.25em,
  belowcaptionskip=.00em,
  captionpos=b,
  frame=lines,
  rulecolor=\color{NavyBlue!40!White!40},
  linewidth=1.0\textwidth,
  xleftmargin=.5em,
  framexleftmargin=.5em,
%  xrightmargin=.5em,
%  framexrightmargin=.5em,
}

% Listing captions
\DeclareCaptionFont{captioncolor}{\color{Black!100}}
\captionsetup{singlelinecheck=false,justification=centering,font={captioncolor,small},labelsep=period,labelfont=it}

% Inline code
\newcommand{\code}[1]{{\lstinline[basicstyle=\color{NavyBlue!90!Black!100}\small\ttfamily]|#1|}}
