\usepackage[english]{babel}

\title{\textbf{\textsf{Building Web App for Automated Vehicles
Fuel/Energy Estimation}}}
\date{\today}
\author{}

% math
\usepackage{amsmath, amssymb}
% code segments
\usepackage{minted}


% references
\usepackage[style=ieee, backend=biber]{biblatex}
\addbibresource{bibliography.bib}

% fonts
\usepackage{helvet}
\usepackage{sectsty}
\allsectionsfont{\sffamily} % for section titltes use sans-serif
% \renewcommand{\familydefault}{\sfdefault} % comment out for sans-serif font
% \usepackage{sansmath} % comment out for sans-serif math font
% \sansmath % comment out for sans-serif math font

% margins
\usepackage{geometry}
\geometry{
  a4paper,
  total={170mm,257mm},
  left=25mm,
  right=25mm,
  top=30mm,
  bottom=30mm,
}

% no indentation when a new paragraph starts
\setlength{\parindent}{0cm}

% links
\usepackage{hyperref} % better links
\usepackage{color}    % nicer link colors
\definecolor{pigment}{rgb}{0.2, 0.2, 0.6}
\hypersetup{
  colorlinks = true, % Color links instead of ugly boxes
  urlcolor   = pigment, % Color for external hyperlinks
  linkcolor  = black, % Color for internal links
  citecolor  = pigment % Color for citations
}

% headers
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{Building Web App for Automated Vehicles
Fuel/Energy Estimation}
\chead{}
\rhead{}


\usepackage{tcolorbox}
\usepackage{array}
\usepackage{listings}
\usepackage[utf8]{inputenc}
\usepackage{hyperref}


\usepackage{fontspec}
\setmonofont{DejaVu Sans Mono}[Scale=0.75] % Adjust the font size (0.9 = 90% of default size)

% Define a tcolorbox for sections
\newtcolorbox{methodbox}[1]{%
  colback=gray!10,         % Light gray background
  colframe=gray!50,        % Medium gray border
  title={#1},              % Title specified in the box
  sharp corners,           % Sharp corners for a clean look
  boxrule=0.5pt,           % Thin border
  coltitle=black,          % Black title color
  fonttitle=\bfseries\large, % Bold and large title font
  left=10pt,               % Left inner margin
  right=10pt,              % Right inner margin
  top=8pt,                 % Top inner margin
  bottom=8pt,              % Bottom inner margin
  width=\textwidth-2em,    % Box width (adjust for desired margin size)
  before skip=10pt,        % Space before the box
  after skip=10pt          % Space after the box
}


\lstset{
    basicstyle=\ttfamily,        % Monospaced font
    columns=fullflexible,        % Flexible columns for alignment
    keepspaces=true,             % Preserve spaces
    breaklines=true,             % Break long lines
    tabsize=4,                   % Set tab width to 4 spaces
    showspaces=false,            % Do not show invisible spaces              % Add a box around the listing
}




\tcbuselibrary{listings, minted} % Load required libraries for code formatting



\usepackage[english]{babel}
\usepackage{geometry}
\usepackage{csquotes}

\geometry{
  a4paper,
  total={170mm,257mm},
  left=25mm,
  right=15mm,
  top=30mm,
  bottom=30mm,
}
\renewcommand{\arraystretch}{1.2} % Adjust row height for better readability

% conditionals
\usepackage{ifthen}
\newboolean{showinstructions}
\newboolean{showexamples}
\newboolean{showexplanations}


% Define a new environment for explanations
\newcommand{\explanation}[1]{%
  \ifthenelse{\boolean{showexplanations}}%
    {\textit{Explanation:} #1}%
    {\ignorespaces}%
}

% Define a new environment for instructions
\newcommand{\instructions}[1]{%
  \ifthenelse{\boolean{showinstructions}}%
    {#1}%
    {\ignorespaces}%
}

\makeatletter
\newcommand{\maketitlepage}{%
    \begin{titlepage}
        \maketitle
        \thispagestyle{empty}
        \vfill 
        \centering
         \textbf{CS 4624} \\
         Virginia Tech, Blacksburg \\
         \textbf{Students:} Courtney Quinn, Layla Scott, Christina Chao, Eric Tapia, Rohin Batra \\
        \textbf{Client:} Virginia Tech Transportation Institute (VTTI), Dr. Mohamned Farag
        \vfill 
        \begin{figure}[h!]
    \centering
    \includegraphics[width=0.5\textwidth]{gfx/ComputerScience_horizontal_RGB.png}

\end{figure}
    \end{titlepage}
    \newpage
}
\makeatother