
\documentclass[xcolor=table]{beamer}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[brazil]{babel}
\usepackage{wrapfig}
\usepackage{media9}
\usepackage{framed}
\usepackage{wasysym}% provides \ocircle and \Box
\usepackage{forloop}% used for \Qrating and \Qlines
\usepackage{ifthen}% used for \Qitem and \QItem
\usepackage{pdflscape}
\usepackage{caption}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{array}
\usepackage{textcomp}
\usepackage{multirow}
\usepackage{scalefnt}
\usepackage{setspace}
\usepackage{verbatim}
\usepackage{longtable}
\usepackage{setspace} 
\usepackage{pgfplots}
\usepackage{tikz}
\usepackage{multirow}
\usepackage[export]{adjustbox}
\usepackage{transparent}
\usepackage{stackengine,marvosym,xcolor,colortbl,trimclip,scalerel}
\usepackage{listings}

\graphicspath{{./fig/}}

\definecolor{ao(english)}{rgb}{0.0, 0.5, 0.0}
\newcommand{\heading}[1]{\multicolumn{1}{c}{#1}}
\newcommand{\ivprog}{\textit{i}VProg}
\newcommand{\ccommand}[1]{{\tt \bf #1}}

\definecolor{cdefine}{RGB}{21, 84, 12}
\definecolor{mygray}{rgb}{0.5,0.5,0.5}
\lstset
{ %Formatting for code in appendix
    language=C,
    extendedchars=false,
    inputencoding=utf8,
    escapeinside={\%*}{*)},
    basicstyle=\scriptsize,
    keywordstyle=\bfseries\color{green!40!black},
    identifierstyle=\color{blue},
    stringstyle=\color{orange},
    commentstyle=\itshape\color{purple!40!black},
    showstringspaces=false,
    numberstyle=\tiny\color{mygray},
    morekeywords=[2]{printf, scanf},
    keywordstyle=[2]{\color{blue}},
    showspaces=false,
    tabsize=1,
    breaklines=true,
    breakatwhitespace=false,
}

\usetheme{Madrid}

\captionsetup{
  justification = centering
}

\newcommand\Tshirt[2][8.8pt]{\savestack\theTshirt{%
 \stackinset{c}{}{c}{1pt}{%
  \color{#2}\clipbox{0pt 4.6pt 0pt 2.6pt}{\Gentsroom}}{%
 \stackinset{c}{}{c}{}{%
  \color{#2}\clipbox{1.3pt 2.6pt 1.3pt 2.6pt}{\Gentsroom}}{%
 \Gentsroom}}}%
\scaleto{\theTshirt}{#1}}

\newcolumntype{R}[2]{%
    >{\adjustbox{angle=#1,lap=\width-(#2)}\bgroup}%
    l%
    <{\egroup}%
}
\newcommand*\rot{\multicolumn{1}{R{90}{1em}}}
\newcommand{\xmark}{\ding{53}}%

\usebackgroundtemplate
{
    \includegraphics[width=\paperwidth,height=\paperheight]{PixelLabBkgLatex.jpg}
}

\definecolor{PixelLabRed1}{RGB}{235,76,30}
\definecolor{PixelLabRed2}{RGB}{243,99,57}
\definecolor{PixelLabRed3}{RGB}{239,123,89}
\definecolor{PixelLabBlue1}{RGB}{64,157,192}
\definecolor{PixelLabBlue2}{RGB}{57,133,161}
\definecolor{PixelLabBlue3}{RGB}{105,175,202}
\definecolor{PixelLabRed1}{RGB}{235,76,30}
\definecolor{PixelLabRed2}{RGB}{243,99,57}
\definecolor{PixelLabRed3}{RGB}{239,123,89}
\definecolor{PixelLabBlue1}{RGB}{64,157,192}
\definecolor{PixelLabBlue2}{RGB}{57,133,161}
\definecolor{PixelLabBlue3}{RGB}{105,175,202}

\setbeamercolor*{structure}{bg=PixelLabBlue1,fg=PixelLabBlue1}

\setbeamercolor*{palette primary}{use=structure,fg=white,bg=PixelLabBlue1}
\setbeamercolor*{palette secondary}{use=structure,fg=white,bg=PixelLabBlue2}
\setbeamercolor*{palette tertiary}{use=structure,fg=white,bg=PixelLabBlue1}
\setbeamercolor*{palette quaternary}{fg=white,bg=PixelLabBlue3}

\setbeamercolor{alerted text}{use=structure,fg=structure.fg!20!black!80!black}

\setbeamercolor{titlelike}{parent=palette primary,fg=structure.fg!black}
\setbeamercolor{frametitle}{bg=PixelLabRed1!85,fg=white}

\setbeamercolor*{titlelike}{parent=palette primary}

\let\tempone\itemize
\let\temptwo\enditemize
\renewenvironment{itemize}{
    \tempone\addtolength{\itemsep}{
        1em
    }
}{\temptwo}

\let\tempthree\itemize
\let\tempfour\enditemize
\renewenvironment{itemize}{
    \tempthree\addtolength{\parindent}{
        1em
    }
    \vspace{1em}
}{\tempfour}


\setbeamertemplate{section page}
{
    \begin{centering}
        \begin{beamercolorbox}[sep=12pt,center]{frametitle}
            \usebeamerfont{section title}
            \insertsection\par
        \end{beamercolorbox}
    \end{centering}
}

\setbeamertemplate{subsection page}
{
    \begin{centering}
        \begin{beamercolorbox}[sep=10pt,center]{part title}
            \usebeamerfont{subsection title}
            \insertsubsection\par
        \end{beamercolorbox}
    \end{centering}
}

\newcommand{\Ffootline}{%
    \insertsection % The left end of the footline
    \hfill
    \insertframenumber/\inserttotalframenumber % And the right end
} 
    
\setbeamertemplate{footline}{%
    \usebeamerfont{structure}
    \begin{beamercolorbox}[wd=\paperwidth,ht=2.25ex,dp=1ex]{title in head/foot}%
    \Tiny\hspace*{4mm} \Ffootline \hspace{4mm}
\end{beamercolorbox}}

\pgfdeclareimage[height=1.0cm]{university-logo}{./fig/ime.png}
\pgfdeclareimage[height=1.0cm]{line-logo}{./fig/logo_line.png}
%\logo{\pgfuseimage{university-logo}}
\logo{%
  \makebox[.98\paperwidth]{%
    \pgfuseimage{line-logo}%
    \hfill%
    \pgfuseimage{university-logo}%
  }%
}

\title{Introdução à Programação}

\author{Igor Moreira Félix}
\institute[IME]{
    Instituto de Matemática e Estatística\\
    Universidade de São Paulo\\
    São Paulo - SP
}
\date{Verão 2021}

\begin{document}
{
    \setbeamertemplate{headline}{}
    \setbeamertemplate{footline}{}
    
    \addtobeamertemplate{frametitle}{\vspace*{-1.65\baselineskip}}{}

    \begin{frame}[noframenumbering]
        \maketitle
    \end{frame}
}

\begin{frame}{Slide 01}
    \vspace{-2em}
    \begin{itemize}
        \item Tópico 1
        \item Tópico 2
        \item Tópico n
    \end{itemize}
\end{frame}

\begin{frame}[plain]{}
    \begin{center}
        \Huge
        Dúvidas?
    \end{center}
\end{frame}

\end{document}

