\documentclass{article}
\usepackage{helvet}
\renewcommand{\familydefault}{\sfdefault}
\usepackage{enumitem,amssymb}
\usepackage{lipsum} % for filler text
\usepackage{geometry}
\geometry{
	paperwidth=5.5in,
	paperheight=8.5in,
	top=0.25in,
	bottom=0.5in,
	left=0.25in,
	right=0.2in,
	footskip=20pt  % Reserve space for footer
}
\usepackage{qrcode}
\newlist{todolist}{itemize}{2}
\setlist[todolist]{label=$\square$}
\usepackage{easylist}
\usepackage{fancyhdr}

\fancyfoot{} % clear all footer fields

\fancyfoot[C]{How To Build A Common vVERSIONNUMBER} % other info in "inner" position of footer line
\usepackage{hyperref}
\usepackage{tikz}
\usepackage{rotating}
\usepackage{dashbox}
\usepackage{graphicx}
\usepackage{eso-pic} % allows background placement
\pagestyle{fancy}
\usepackage{sectsty}
\sectionfont{\centering}

% Set the value
\newlength{\mylen}
\setlength{\mylen}{0.25in}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric, arrows.meta, positioning}
\input{src/how-to-consensus-zine/flow-chart-only.tex}%

% --- Add corner image depending on odd/even page ---
\newcommand{\AddCornerImage}{%
	\AddToShipoutPictureBG{%
		\ifnum\value{page}>1 % Only add corners if page number > 1
		% === Bottom Corner ===
		\AtPageLowerLeft{%
			\ifodd\value{page}
			% Odd pages: bottom-right corner (normal), moved up and in 1mm
			\put(\LenToUnit{\paperwidth-1.5cm-\mylen},\LenToUnit{\mylen}){%
				\includegraphics[width=1.5cm]{CornerDetail.png}%
			}%
			\else
			% Even pages: bottom-left corner (mirrored), moved up and in 1mm
			\put(\LenToUnit{\mylen},\LenToUnit{\mylen}){%
				\reflectbox{\includegraphics[width=1.5cm]{CornerDetail.png}}%
			}%
			\fi
		}%
		% === Top Corner ===
		\AtPageUpperLeft{%
			\ifodd\value{page}
			% Odd pages: top-right corner (mirrored and flipped), moved down and in 1mm
			\put(\LenToUnit{\paperwidth-1.5cm-\mylen},-\LenToUnit{\mylen}){%
				\scalebox{1}[-1]{\includegraphics[width=1.5cm]{CornerDetail.png}}%
			}%
			\else
			% Even pages: top-left corner (flipped), moved down and in 1mm
			\put(\LenToUnit{\mylen},-\LenToUnit{\mylen}){%
				\reflectbox{\scalebox{1}[-1]{\includegraphics[width=1.5cm]{CornerDetail.png}}}%
			}%
			\fi
		}%
		\fi % End of page number check
	}%
}

\newcommand{\linedpage}{%
	\noindent
	\foreach \n in {1,...,10}{%
		\rule{\textwidth}{0.4pt}\\[\baselineskip]
	}
}

\input{MakerCheck.tex}%

\usepackage{multicol}


\usepackage{atbegshi}
\AtBeginShipout{\AddCornerImage}
\begin{document}
	
	\fontsize{8}{9}\selectfont

% Add background image
\AddToShipoutPictureBG*{%
	\AtPageLowerLeft{%
		\raisebox{7mm}{\includegraphics[width=\paperwidth,height=\dimexpr\paperheight-10mm\relax]{src/how-to-consensus-zine/mucha.png}}%
	}%
}

\vspace*{\fill}
{\centering 
	\huge \textbf{Building Durable}
	
	\huge \textbf{Communities}
	
	\vspace{1em} % Space between title and subtitle
	\Large Security and Stability Comes
	
	From Working Together\par % Add your subtitle
}
\vspace*{\fill}
	
	
	\pagebreak
	
	\input{read}
	
	\pagebreak
	
 	\input{durable.tex}
  
	\pagebreak
	
 	\input{common.tex}	
	
	\pagebreak
	
	\input{why.tex}	
	
	\pagebreak
	
	\input{consensus}

	\pagebreak
	
	
	\begin{center}
		\consensusflowchart{0.9}{\large}
	\end{center}
	
	\linedpagetwo
	
	\vspace{1cm}
	\pagebreak

	\input{property}

	\pagebreak

	\input{own}	
	
	\pagebreak
	
	\linedpagetwo
	
	\linedpagetwo
	
	\pagebreak
	
	\input{how}
	
	
	\pagebreak
	
	\input{call}
	
\end{document}
