For what value of $x$ does the following determinant have the value $2013$?
\[\left|\begin{array}{ccc}5+x & 8 & 2+x \\ 1 & 1+x & 3 \\ 2 & 1 & 2\end{array}\right|\]

Let's think step by step and output the final answer within \boxed{}.
user