/*updated 7.11.13 - Responsive CSS for Mobile - AEL*/
/*theme overrides here will be included in base CSS */
div.fnc {
 width:70%; 
}
h3.category {
 font-size:1em;
}
.button_panel input[type="submit"] {
  /* min-width: 30%; */
}
#tabs {
  border-bottom: 2px solid #c6c6c6;
  overflow:visible;
}
#tabs li {
  margin-right:3px;
}
#tabs li:last-of-type {
  margin-right:0;
}

#quick_subscribe_confirmation div.button_panel {
  margin-top: 15px;
}
button.treeExpand {
  margin-left:0px;
}

@media only screen and (min-width: 768px) {
  div.featured_network input {
    transform: scale(1,1);
    -ms-transform: scale(1,1);
    -webkit-transform: scale(1,1);
  } 
}
/*////////////////////////////////////////////////////////////////////////////////////////////////////*/
/*////////////////////////////////////////////////////////////////////////////////////////////////////*/
/*////////////////////////////////////////////////////////////////////////////////////////////////////*/
/*////////////////////////////////////////////////////////////////////////////////////////////////////*/
/*////////////////////////////////////////////////////////////////////////////////////////////////////*/


/* Welsh Government custom styling - deployed on 24-03-2014 */

#page_margins {
  margin:0 auto!important;
}

h1 {
  border-bottom: 1px solid #ccc;
  padding: 0 0 15px 0;
}

body#sub, h1, h2, h3, h4, h5 {
  font-family: Arial, Helvetica, sans-serif!important;
}

#col3 > h1, 
#col3 > h2, 
#col3 > p, 
#col3 > form,
#col3 > #topic_unsubscribe_text,
#col3 > #quick_subscribe_account_salutation,
#col3 > #quick_subscribe_preferences_instructions,
#col3 > #quick_subscribe_panel,
#col3 > .button_panel, 
#col3 > .tab-content,
#col3 > #tabs,
#col3 > p.name,
#col3 > .flash,
#col3 > .errorExplanation,
#col3 > .errorExplanation h2,
#col3 > .errorExplanation ul,
#col3 > #quick_subscribe_confirmation,
#col3 > #subscription_success
 {
  margin-right:40px!important;
}

h2 {
  font-size:1em;
  margin-top:20px;
}

#subscription_success_body, 
#delete_subscriber_text 
{
  line-height:1.4em;
  padding:0 40px 0 0;
  color:#4d4d4d;
}

p.name {
  padding: 0 40px 0 0!important;
  margin:0!important;
}

fieldset legend {
  margin-left: 0!important;
}

#col3 {
  width:660px!important;
  background:#e1e1e1!important;
  padding: 40px 0 19px 40px!important;
  position:relative!important;
}

#col3:after {
  content:"";
  width: 0px;
  height: 0px;
  border-style: solid;
  border-width: 0 45px 40px 0;
  border-color: transparent #e1e1e1 transparent transparent;
  position:absolute;
  bottom:-40px;
  right:0;
}

div.qs_banner {
  padding-bottom: 20px!important;
}

form {
  background: #e1e1e1!important;
  width: auto!important;
}

fieldset ol.form input[type="text"], fieldset ol.form input[type="password"] {
  border:none!important;
  padding:10px!important;
}

fieldset ol.form label {
  padding: 10px 0 10px;
}

.button_panel {
  padding:20px 0 0!important;
}

.button_panel input {
  background: #62255e!important;
  border: none!important;
  -moz-border-radius: 0!important;
  -webkit-border-radius: 0!important;
  border-radius: 0!important;
  color: #fff!important;
  text-shadow: none!important;
  padding: 12px 18px!important;
  font-size: 1.1em!important;
  -webkit-transition: background 0.2s ease-in-out;
  -moz-transition: background 0.2s ease-in-out;
  -ms-transition: background 0.2s ease-in-out;
  -o-transition: background 0.2s ease-in-out;
  transition: background 0.2s ease-in-out;
}

select {
  border: none!important;
  padding:10px;
  width: 400px!important;
}

input[value="Cancel"] {
  width: auto !important;
}

.button_panel input:hover {
  background:#851a7e!important;
}

#footer {
  padding: 40px 0 20px 0!important;
}

#footer hr{
  display:none!important;
}

#footer a{
  text-decoration:none!important;
}

div#quick_subscribe_email_instructions, div#quick_subscribe_password_instructions, div#quick_subscribe_topic_unsubscribe_instructions, div#digest_instructions, #quick_subscribe_new_instructions, #quick_subscribe_account_salutation, #quick_subscribe_preferences_instructions, div.questions_description, #questions_instructions {
  color:#4d4d4d;
  font-size:1em;
}

#tabs {
  border-bottom:none!important;
}

.nav-tabs {
  overflow: hidden!important;
}

.nav-tabs li {
  padding:0!important;
}

.nav-tabs li a {
  color: #fff!important;
  text-shadow: none!important;
  background: #4e4e4e!important;
  padding: 10px!important;
  display: inline-block!important;
  width: auto!important;
  border: none!important;
  -moz-border-radius: 0!important;
  -webkit-border-radius: 0!important;
  border-radius: 0!important;
  -webkit-transition: background 0.2s ease-in-out;
  -moz-transition: background 0.2s ease-in-out;
  -ms-transition: background 0.2s ease-in-out;
  -o-transition: background 0.2s ease-in-out;
  transition: background 0.2s ease-in-out;
}

.nav-tabs li.active a, .nav-tabs li a:hover {
  background:#878787!important;
}

.panel {
  margin:0!important;
  background:#e1e1e1!important;
  border:none!important;
  padding: 0!important;
}

.tab-content {
  padding:20px 0!important;
}

.tab-content h2{
  font-size:1.2em!important;
}

.tab-content fieldset ol.form {
  margin:0!important;
}

.tab-content .button_panel div {
  margin:0 0 10px!important;
}

fieldset#quick_subscribe_topic_unsubscribe legend {
  margin:0!important;
}

table#topics {
  width:600px!important;
}

table#topics th, table#topics td{
  padding:10px!important;
}

.flash {
  width:auto!important;
}
.errorExplanation ul {
    padding-left: 70px!important;
}

#message {
  border: none!important;
  background-color: #3EC343!important;
  color: #fff!important;
  -moz-border-radius: 0!important;
  -webkit-border-radius: 0!important;
  -khtml-border-radius: 0!important;
  border-radius: 0!important;
  padding: 20px!important;
  margin: 15px 35px 35px 0!important;
  font-weight: bold!important;
}

#message .close {
  background-position: 0 -2176px!important;
  text-decoration: none!important;
  color: #fff!important;
}

#errorExplanation {
  border: none!important;
  background-color: #EC4242!important;
  color: #fff!important;
  -moz-border-radius: 0!important;
  -webkit-border-radius: 0!important;
  -khtml-border-radius: 0!important;
  border-radius: 0!important;
  padding: 20px!important;
  margin: 15px 35px 35px 0!important;
  font-weight: bold!important;
}

.errorExplanation h2 {
  margin-left: 0!important;
  margin-top: 5px!important;
  background-position: 20px 0px!important;
}

#quick_subscribe_new_instructions, .cancel_button, #questions_instructions, #quick_subscribe_topic_unsubscribe_instructions, .button_panel div, #quick_subscribe_password_prompt_instructions, #quick_subscribe_email_instructions {
  display:none!important;
}

#quick_subscribe_password_prompt .button_panel em.help {
  display: block!important;
  margin: -30px 0 25px!important;
}

/* 
==========================================================================
Media queries
==========================================================================
*/

@media all and (max-width: 960px) {

  /* Width overrides */
  
  #col3, 
  select
  {
    width: auto!important;
  }
    
  fieldset ol.form input[type="text"].long, fieldset ol.form input[type="password"].long, 
  fieldset ol.form input[type="text"], fieldset ol.form input[type="password"] {
    width: 380px!important;
  }

  /* Left and right margins */

#col3 > h1, 
#col3 > h2, 
#col3 > p, 
#col3 > form,
#col3 > #topic_unsubscribe_text,
#col3 > #quick_subscribe_account_salutation,
#col3 > #quick_subscribe_preferences_instructions,
#col3 > #quick_subscribe_panel,
#col3 > .button_panel, 
#col3 > .tab-content,
#col3 > #tabs,
#col3 > p.name,
#col3 > .flash,
#col3 > .errorExplanation,
#col3 > .errorExplanation h2,
#col3 > .errorExplanation ul,
#col3 > #quick_subscribe_confirmation,
#col3 > #subscription_success
  {
    width: auto!important;
    margin-left: 6%!important;
    margin-right: 6%!important;
    padding-left: 0!important;
    padding-right: 0!important;
  }
  #message
     {
    margin-left: 6%!important;
    margin-right: 6%!important;
  }
#col3 > .errorExplanation h2,
#col3 > .errorExplanation ul {
  background: none!important;
}

.flash .flash-icon.icon-message {
  margin-left: 6%;
}
  
  fieldset ol.form {
    margin-top:20px!important;
    margin-bottom:20px!important;
  }

  #col3 {
  padding-left: 0!important;
  padding-right: 0!important;
  }
}

@media only screen and (max-width: 959px) and (min-width: 768px) {}
  fieldset ol.form {
    margin-top:20px!important;
    margin-bottom:20px!important;
    width: auto!important;
}

@media only screen and (max-width: 767px) {

  #page_margins {
    width:95%!important;
  }

  #col3 {
  padding-top: 20px!important;
  padding-bottom: 20px!important;
  }
  #col3 h1 {
    padding-bottom: 10px!important;
    margin-bottom: 20px!important;
  }
  #col3 p {
    margin-top: 0!important;
    margin-bottom: 10px!important;
  }
  div.qs_banner {
    padding-bottom: 1%!important;
  }
  table#topics {
    width: auto!important;
  }  
}

@media only screen and (max-width: 480px) {
  /* Left and right margins */

   #col3 h1 {
    padding-bottom: 10px!important;
    margin-bottom: 10px!important;
    line-height: 1.2em!important;
  }
  h1,
  fieldset#quick_subscribe_topic_unsubscribe legend {
    font-size:1em!important;
  }
  #col3 p {
    font-size:.875em!important;      
    line-height: 1.5em;
  }
  fieldset ol.form input[type="text"].long, fieldset ol.form input[type="password"].long, 
  fieldset ol.form input[type="text"], fieldset ol.form input[type="password"],
  select {
    width: 100%!important;
  }
  .nav-tabs li {
    display: block!important;
  }
  .nav-tabs li a {
    display: block!important;
    margin-bottom: 5px;
    width: 100%!important;
    float:left;
    clear: both;
  }
.flash .flash_text_content .message-copy {
  font-size: .75em!important;
  line-height: 1.2em;
}
}