% additional packages needed
\usepackage{xcolor}
\usepackage{fontspec}
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{fancyhdr}
\usepackage{amsmath}
\usepackage{subfig}
\usepackage{tabularx}

\IfFontExistsTF{Open Sans}{\setsansfont{Open Sans}}{\setsansfont{Arial}}
\IfFontExistsTF{JetBrains Mono}{\setmonofont{JetBrains Mono}}{\setmonofont{Consolas}}
\IfFontExistsTF{Jost}{\newfontfamily\ucdisplay{Jost}}{\newfontfamily\ucdisplay{Arial}}

\makeatletter
\def\tagform@#1{\maketag@@@{[#1]\@@italiccorr}}
\makeatother

% define colors
\definecolor{UCRed}{HTML}{E00122}
\definecolor{UCDarkRed}{HTML}{B8011C}
\definecolor{UCBearcatsBlack}{HTML}{333333}
\definecolor{UCGrey}{HTML}{F3F3F3}

\setbeamercolor{title}{fg=UCRed}
\setbeamercolor{frametitle}{fg=UCRed, bg=UCGrey}
\setbeamercolor{normal text}{fg=UCBearcatsBlack, bg=white}
\setbeamercolor{structure}{fg=UCRed}
\setbeamercolor{progress bar}{fg=UCRed, bg=UCGrey}
\setbeamercolor{author in head/foot}{fg=white, bg=UCDarkRed}
\setbeamercolor{title in head/foot}{fg=white, bg=UCRed}
\setbeamerfont{title}{family=\ucdisplay, series=\bfseries}
\setbeamerfont{frametitle}{family=\ucdisplay, series=\bfseries}

\defbeamertemplate*{footline}{shadow theme}
{%
  \leavevmode%
  \hbox{\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.6ex,dp=1.125ex,leftskip=.3cm plus1fil,rightskip=.3cm]{author in head/foot}%
    \usebeamerfont{author in head/foot}\insertframenumber\,/\,\inserttotalframenumber\hfill\insertshortauthor
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.6ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
    \usebeamerfont{title in head/foot}\insertshorttitle%
  \end{beamercolorbox}}%
  \vskip0pt%
}
