\tcbuselibrary{skins,breakable}
\newtcbox{\section@box}{tile,before=\noindent,after=,
  fontupper=\normalfont\Large\bfseries,capture=minipage,colback=ForestGreen!80,coltext=white,
  boxsep=0mm,top=4mm,bottom=4mm,left=\oddsidemargin+1in,right=\oddsidemargin+1in,
  spread sidewards,fuzzy halo=1mm with ForestGreen!50!black}

\newtcolorbox{alertbox}[1][]{breakable,enhanced,
  before=\hspace{0em},after=\hspace{.5em},
  tile,left=11mm,right=2mm,top=.5em,bottom=.5em,
  colback=white!0,
  sharp corners,
  colback=lightgray!20!white,
  underlay={%
    \path[fill=OrangeRed!80!black,draw=none] (interior.south west) rectangle node[white]{\Huge\bfseries !} ([xshift=10mm]interior.north west);
  },#1}

\newtcolorbox{codebox}[1][]{breakable,enhanced,
  before=\hspace{0em},after=\hspace{.5em},
  tile,left=11mm,right=2mm,top=.5em,bottom=.5em,
  colback=white!0,
  sharp corners,
  colback=lightgray!20!white,
  underlay={%
    \path[fill=black,draw=none] (interior.south west) rectangle node[white]{\huge\bfseries\texttt >\_} ([xshift=10mm]interior.north west);
  },#1}

\usetikzlibrary{calc}
\newtcolorbox{exercicebox}[1][parbox=false]{breakable,enhanced,
  before=\hspace{.7em},after=\hspace{.5em},
  tile,left=2mm,right=12mm,top=.5em,bottom=.5em,
  frame code={\path[draw=Gold!85!gray,sharp corners,line width=2.5pt] (frame.north west) -- (frame.north) -- (frame.north east);}
  sharp corners,
  colback=white,
  underlay={%
    \path[fill=Gold!85!gray,draw=none] (interior.south east) rectangle node[white]{\begin{tikzpicture}
\draw[fill=white,even odd rule]
let
\n{dpt} = {360/7}
in
(0,0) circle (1.2mm) %
({\n{dpt}*(0.5)}:2.5mm) \foreach \x in {1,...,7}{ %
arc ({\n{dpt}*(\x-0.5)}:{\n{dpt}*(\x-0.25)}:2.5mm) %
--++(\x*\n{dpt}:1.5mm) %
arc ({\n{dpt}*(\x-0.25)}:{\n{dpt}*(\x+0.25)}:2.5mm) %
--++(\x*\n{dpt}:-1.5mm) %
arc ({\n{dpt}*(\x+0.25)}:{\n{dpt}*(\x+0.5)}:2.5mm)--%
({\n{dpt}*(\x+0.5)}:2.5mm)
};\end{tikzpicture}} ([xshift=-10mm]interior.north east);
  },#1}

\newtcolorbox{questionbox}[1][]{breakable,enhanced,
  before=\hspace{0em},after=\hspace{.5em},
  tile,left=11mm,right=2mm,top=.5em,bottom=.5em,
  colback=white!0,
  sharp corners,
  colback=lightgray!20!white,
  underlay={%
    \path[fill=MidnightBlue!85!gray,draw=none] (interior.south west) rectangle node[white]{\Huge\bfseries ?} ([xshift=10mm]interior.north west);
  },#1}

\newtcolorbox{morebox}[1][]{breakable,enhanced,
  before=\hspace{0em},after=\hspace{.15em},
  tile,left=7mm,right=7mm,top=.5em,bottom=.5em,
  colback=white!0,
  sharp corners,
  colback=lightgray!20!white,
  underlay={%
    \path[fill=ForestGreen!50!white,draw=none] (interior.south west) rectangle node[white]{\Huge\bfseries (} ([xshift=6mm]interior.north west);
    \path[fill=ForestGreen!50!white,draw=none] (interior.south east) rectangle node[white]{\Huge\bfseries )} ([xshift=-6mm]interior.north east);
  },#1}
