\definecolor{ntnublue}{RGB}{0,80,158}

\newcommand\titlepagedecoration{%
\begin{tikzpicture}[remember picture,overlay,shorten >= -10pt]

\coordinate (aux1) at ([yshift=-15pt]current page.north east);
\coordinate (aux2) at ([yshift=-410pt]current page.north east);
\coordinate (aux3) at ([xshift=-4.5cm]current page.north east);
\coordinate (aux4) at ([yshift=-150pt]current page.north east);

\begin{scope}[ntnublue!50,line width=12pt,rounded corners=12pt]
\draw
  (aux1) -- coordinate (a)
  ++(225:5) --
  ++(-45:5.1) coordinate (b);
\draw[shorten <= -10pt]
  (aux3) --
  (a) --
  (aux1);
\draw[opacity=0.6,ntnublue!80,shorten <= -10pt]
  (b) --
  ++(225:2.2) --
  ++(-45:2.2);
\end{scope}
\draw[ntnublue!90,line width=8pt,rounded corners=8pt,shorten <= -10pt]
  (aux4) --
  ++(225:0.8) --
  ++(-45:0.8);
\begin{scope}[ntnublue!70,line width=6pt,rounded corners=8pt]
\draw[shorten <= -10pt]
  (aux2) --
  ++(225:3) coordinate[pos=0.45] (c) --
  ++(-45:3.1);
\draw
  (aux2) --
  (c) --
  ++(135:2.5) --
  ++(45:2.5) --
  ++(-45:2.5) coordinate[pos=0.3] (d);
\draw
  (d) -- +(45:1);
\end{scope}
\end{tikzpicture}%
}

\begin{titlepage}
  \newgeometry{margin=0.7in, top=1in, left=1in}
  \pagecolor{ntnublue}
  \color{white}
  \resizebox{0.85\linewidth}{!}{ \Huge Ordering Japanese sentences by difficulty } \\
  \makebox[0pt][l]{\rule{1.3\textwidth}{1pt}}

  \vspace*{4mm}

  \makeatletter
  \textsc{\Huge \@title }
  \makeatother

  \begin{center}

    \vfill{}

    \vspace*{1cm}

    {\huge \textbf{oysteikt}}

    \vspace*{1cm}


    % {\Large \textbf{Antall ord: \wordcount}}
    %
    % \vspace*{2cm}

    % \includegraphics[width=0.5\linewidth]{ntnu_uten_slagord_hvit}
    \includegraphics[width=0.5\linewidth]{graphics/ntnu_uten_slagord_hvit.pdf}

  \end{center}


  % {\hfill{} \includepdf[width=0.5\linewidth]{ntnu_uten_slagord_hvit.pdf} }


  \titlepagedecoration{}
  % \noindent
  % \includegraphics[width=2cm]{wikilogo.png}\\[-1em]
  % \par
  % \noindent
  % \textbf{\textsf{UniversitätsKlinikum}} \textcolor{namecolor}{\textsf{Heidelberg}}
  % \vfill
  % \noindent
  % {\huge \textsf{Handbuch 1.3}}
  % \vskip\baselineskip
  % \noindent
  % \textsf{August 2008}
\end{titlepage}
\restoregeometry
\nopagecolor% Use this to restore the color pages to white
% ----------------------------------------------------------------






%\begin{centering}
%
%  \ntnuTitle
%
%  \vspace{3em}
%
%  \vspace{1em}
%
%\end{centering}
%
%\vspace{5mm}
%
%\vspace{1.8cm}

\thispagestyle{frontpage}
\newpage{}

\tableofcontents

\newpage{}