{{* This top section defines the colours, based on the selected Colour placeholder *}}
{{assign var=header_colour value="#ffffff"}}
{{assign var=header_shadow value="on"}}
{{if $P.colours == "Red"}}
  {{assign var=c1 value="#950000"}}
  {{assign var=c2 value="#af0a0a"}}
  {{assign var=link_colour value="#ffffcc"}}
  {{assign var=line value="#670000"}}
  {{assign var=fieldset_bg value="#780404"}}
  {{assign var=fieldset_lines value="#660909"}}
  {{assign var=fieldset_colour value="#FFFF99"}}
  {{assign var=fieldset_shadow value="on"}}
  {{assign var=font_colour value="#ffffff"}}
  {{assign var=page_heading value="#000000"}}
  {{assign var=nav_next_page value="#999999"}}
  {{assign var=nav_prev_page_text value="#999999"}}
  {{assign var=nav_prev_page_bg_over value="#D78B00"}}
  {{assign var=nav_prev_page_border value="#999999"}}
  {{assign var=submit_btn_over value="#ff3c00"}}
  {{assign var=edit_link_colour value="#ffffff"}}
{{elseif $P.colours == "Orange"}}
  {{assign var=c1 value="#ffa500"}}
  {{assign var=c2 value="#ffb12b"}}
  {{assign var=link_colour value="#990000"}}
  {{assign var=line value="#ffc558"}}
  {{assign var=fieldset_bg value="#ef9c00"}}
  {{assign var=fieldset_lines value="#d28900"}}
  {{assign var=fieldset_colour value="#FFFF99"}}
  {{assign var=fieldset_shadow value="on"}}
  {{assign var=font_colour value="#333333"}}
  {{assign var=page_heading value="#ffffff"}}
  {{assign var=nav_next_page value="#555555"}}
  {{assign var=nav_prev_page_text value="#AF8D4F"}}
  {{assign var=nav_prev_page_bg_over value="#D78B00"}}
  {{assign var=nav_prev_page_border value="#E69500"}}
  {{assign var=submit_btn_over value="#ff3c00"}}
  {{assign var=edit_link value="#990000"}}
{{elseif $P.colours == "Green"}}
  {{assign var=c1 value="#299a0b"}}
  {{assign var=c2 value="#31a612"}}
  {{assign var=link_colour value="#FFFF99"}}
  {{assign var=line value="#1c7e00"}}
  {{assign var=fieldset_bg value="#228a00"}}
  {{assign var=fieldset_lines value="#1e7d00"}}
  {{assign var=fieldset_colour value="#FFFF99"}}
  {{assign var=fieldset_shadow value="on"}}
  {{assign var=font_colour value="#eeeeee"}}
  {{assign var=page_heading value="#333333"}}
  {{assign var=nav_next_page value="#0f4f00"}}
  {{assign var=nav_prev_page_text value="#136600"}}
  {{assign var=nav_prev_page_bg_over value="#135205"}}
  {{assign var=nav_prev_page_border value="#1e710b"}}
  {{assign var=submit_btn_over value="#0093E8"}}
  {{assign var=edit_link value="#990000"}}
{{elseif $P.colours == "Blue"}}
  {{assign var=c1 value="#0083cf"}}
  {{assign var=c2 value="#0690e0"}}
  {{assign var=link_colour value="#FFFF99"}}
  {{assign var=line value="#0c5e8d"}}
  {{assign var=fieldset_bg value="#0878b8"}}
  {{assign var=fieldset_lines value="#0669a2"}}
  {{assign var=fieldset_colour value="#FFFF99"}}
  {{assign var=fieldset_shadow value="on"}}
  {{assign var=font_colour value="#eeeeee"}}
  {{assign var=page_heading value="#222222"}}
  {{assign var=nav_next_page value="#333333"}}
  {{assign var=nav_prev_page_text value="#efefef"}}
  {{assign var=nav_prev_page_bg_over value="#3396e2"}}
  {{assign var=nav_prev_page_border value="#cccccc"}}
  {{assign var=submit_btn_over value="#621111"}}
  {{assign var=edit_link value="#621111"}}
{{elseif $P.colours == "Black"}}
  {{assign var=c1 value="#222222"}}
  {{assign var=c2 value="#333333"}}
  {{assign var=link_colour value="#c8ebff"}}
  {{assign var=line value="#444444"}}
  {{assign var=fieldset_bg value="#353535"}}
  {{assign var=fieldset_lines value="#444444"}}
  {{assign var=fieldset_colour value="#c8ebff"}}
  {{assign var=fieldset_shadow value="on"}}
  {{assign var=font_colour value="#efefef"}}
  {{assign var=page_heading value="#eeeeee"}}
  {{assign var=nav_next_page value="#999999"}}
  {{assign var=nav_prev_page_text value="#3a8ab8"}}
  {{assign var=nav_prev_page_bg_over value="#3a8ab8"}}
  {{assign var=nav_prev_page_border value="#4a99c7"}}
  {{assign var=submit_btn_over value="#3a8ab8"}}
  {{assign var=edit_link value="#c8ebff"}}
{{elseif $P.colours == "Grey"}}
  {{assign var=c1 value="#dddddd"}}
  {{assign var=c2 value="#ffffff"}}
  {{assign var=link_colour value="#0033cc"}}
  {{assign var=line value="#cccccc"}}
  {{assign var=fieldset_bg value="#f2f2f2"}}
  {{assign var=fieldset_lines value="#aaaaaa"}}
  {{assign var=fieldset_colour value="#888888"}}
  {{assign var=fieldset_shadow value="off"}}
  {{assign var=font_colour value="#333333"}}
  {{assign var=page_heading value="#555555"}}
  {{assign var=nav_next_page value="#999999"}}
  {{assign var=nav_prev_page_text value="#888888"}}
  {{assign var=nav_prev_page_bg_over value="#888888"}}
  {{assign var=nav_prev_page_border value="#888888"}}
  {{assign var=submit_btn_over value="#3a8ab8"}}
  {{assign var=edit_link value="#c8ebff"}}
{{elseif $P.colours == "White"}}
  {{assign var=c1 value="#ffffff"}}
  {{assign var=c2 value="#ffffff"}}
  {{assign var=header_colour value="#222222"}}
  {{assign var=header_shadow value="off"}}
  {{assign var=link_colour value="#0093e8"}}
  {{assign var=line value="#000000"}}
  {{assign var=fieldset_bg value="#ffffff"}}
  {{assign var=fieldset_lines value="#000000"}}
  {{assign var=fieldset_colour value="#000000"}}
  {{assign var=fieldset_shadow value="off"}}
  {{assign var=font_colour value="#333333"}}
  {{assign var=page_heading value="#555555"}}
  {{assign var=nav_next_page value="#999999"}}
  {{assign var=nav_prev_page_text value="#888888"}}
  {{assign var=nav_prev_page_bg_over value="#888888"}}
  {{assign var=nav_prev_page_border value="#888888"}}
  {{assign var=submit_btn_over value="#0093e8"}}
  {{assign var=edit_link value="#0093e8"}}
{{/if}}
html {
  height: 100%;
  margin: 0px;
}
body {
  height: 100%;
  text-align: center;
  padding: 0px;
  margin: 0px;
  background: {{$c2}}; /* Old browsers */
  background: -moz-linear-gradient(top, {{$c1}} 0%, {{$c2}} 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,{{$c1}}), color-stop(100%,{{$c2}})); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top, {{$c1}} 0%,{{$c2}} 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top, {{$c1}} 0%,{{$c2}} 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top, {{$c1}} 0%,{{$c2}} 100%); /* IE10+ */
  background: linear-gradient(top, {{$c1}} 0%,{{$c2}} 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='{{$c1}}', endColorstr='{{$c2}}',GradientType=0 ); /* IE6-9 */
  background-repeat: no-repeat;
  background-attachment: fixed;
}
td, th, p, ul,li,div, span {
  font-family: Trykker, "Lucida Grande", Georgia, serif;
  font-size: 12px;
  color: {{$font_colour}};
}
input, textarea, select {
  font-family: Trykker, "Lucida Grande", Georgia, serif;
  font-size: 12px;
}
td, th, p, textarea, ul,li, div, a {
  line-height: 25px;
}
table {
  empty-cells: show;
}
.clear {
  clear: both;
}
a:link, a:visited {
  color: {{$link_colour}};
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
div.ui-dialog div, div.ui-dialog li, div.ui-dialog span {
  color: #333333;
}

/* page sections */
.ts_page {
  margin: 40px auto;
  position: relative;
  text-align: left;
}
.ts_head_bg {
  height: 105px;
  border-bottom: 1px solid {{$line}};
  position: absolute;
  top: 0px;
  width: 100%;
}
.ts_header {
  height: 70px;
}
.ts_header h1 {
  margin: 20px 20px;
  font-family: Trykker, "Lucida Grande", Georgia, serif;
  font-weight: bold;
  padding: 0px;
  font-size: 30px;
  color: {{$header_colour}};
  {{if $header_shadow == "on"}}text-shadow: 2px 2px 5px #555555;{{/if}}
}
h2 {
  font-size: 21px;
  font-family: Trykker, "Lucida Grande", Georgia, serif;
  color: {{$page_heading}};
}

/* navigation */
#ts_css_nav {
  width: 180px;
  float: left;
  list-style: none;
  padding: 20px;
  margin: 0px;
}
#ts_css_nav li {
  list-style: none;
  margin: 0px 0px 2px;
  color: #666666;
  font-size: 12px;
  line-height: 20px;
  text-align: left;
}
#ts_css_nav div {
  color: {{$nav_next_page}};
}
#ts_css_nav li div, #ts_css_nav li a {
  padding: 5px 0px 5px 12px;
  display: block;
}
ul#ts_css_nav li.completed_page {
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  border: 1px solid {{$nav_prev_page_border}};
}
ul#ts_css_nav li.completed_page div {
  color: {{$nav_prev_page_text}};
}
ul#ts_css_nav li.css_nav_current_page {
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  border: 1px solid #ffffff;
}
ul#ts_css_nav li.css_nav_current_page div {
  background-color: #222222;
  color: white;
  margin: 1px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
}
ul#ts_css_nav li a {
  margin: 1px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
}
ul#ts_css_nav li a:link, ul#ts_css_nav li a:visited {
  text-decoration: none;
  color: {{$nav_prev_page_text}};
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  border-radius: 2px;
}
ul#ts_css_nav li a:hover {
  color: white;
  background-color: {{$nav_prev_page_bg_over}};
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
}

/* notifications */
.notify {
  border: 1px solid #336699;
  background-color: #ffffee;
  color: #336699;
  padding: 8px;
  width: 400px;
}
.notify li { color: #336699; }
.error {
  font-size: 8pt;
  border: 1px solid #cc0000;
  background-color: #ffffee;
  color: #cc0000;
  padding: 8px;
  width: 550px;
}
.error span {
  color: #cc0000;
  font-weight: bold;
  margin-bottom: 4px;
}

/* forms */
table.table_1 > tbody > tr > td {
  border-bottom: 1px solid {{$fieldset_lines}};
}
table.table_1 > tbody > tr > td.rowN {
  border-bottom: none;
}
.req {
  color: #aa0000;
}
.fb_error {
  background-color: #FFFFCC;
  border: 1px solid #CC0000;
  color: #CC0000;
  margin-bottom: 12px;
  padding: 8px;
}

/* for the code / markup editor */
.editor {
  background-color: white;
  border: 1px solid #999999;
  padding: 3px;
}
.ts_page_content {
  width: 720px;
  float: right;
}
fieldset {
  border: 1px solid {{$fieldset_lines}};
  font-size: 11pt;
  font-weight: bold;
  color: {{$fieldset_colour}};
  margin-bottom: 10px;
  background-color: {{$fieldset_bg}};
}
{{if $fieldset_shadow == "on"}}
fieldset legend {
  text-shadow: 2px 2px 3px #333333;
}
{{/if}}
.ts_continue_button input {
  background-color: #222222;
  color: white;
  padding: 2px 10px;
  border-radius: 3px;
  border: 0px;
  cursor: pointer;
}
.ts_continue_button input:hover {
  background-color: {{$submit_btn_over}};
}
#ts_footer {
  border-top: 1px solid {{$line}};
  padding: 20px;
  color: #222222;
}
.edit_link {
  text-shadow: none;
  margin-left: 12px;
}
.edit_link a {
  color: {{$edit_link_colour}};
  text-decoration: none;
}
.edit_link a:hover {
  text-decoration: underline;
}

#form_builder__edit_link {
  position: absolute;
  right: 5px;
  top: 5px;
  padding: 2px 10px;
  background-color: black;
  border: 1px solid white;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}
#form_builder__edit_link:hover {
  color: #06a4ff;
}