/*
 * base on ciao.css #install h3 a rules ; should re-factor to support sharing
 * between form and a elements
 *
 * The look has moved to a more materials-like version (at least in terms
 * of drop shadows), but a lot of old styles are still left in for now.
 */
input#install 
  , div.select-install a.button
  , button.link
{
  padding: 10px;

  border: none;

  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;

  color: rgba(0, 0, 0, 0.6);

  background-color: #99CC66;

  font-size: 1.2em;

  /* text-decoration: none;  apprently users didn't realise this was a link */
  text-align: center;

  cursor: pointer;

  /* currently not in #install: a shadow */
  -webkit-box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.75);
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.75);
  
  /* to make sure the two use the same font, since forms can be
     set to a different font */
  font-family: Sans;
}

button.link {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

input#install:hover 
  , div.select-install a.button:hover
  , button.link:hover
{

  /* try to subtly darken the color to make it noticeable */
  color: rgba(0, 0, 0, 0.8);

  /* a more materials-like pressed "out" look */
  -webkit-box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.75);
  box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.75);

}

/* style the instruction list; based on
   http://www.456bereastreet.com/archive/201105/styling_ordered_list_numbers/
 */

div.instructions ol {
  counter-reset: li -1;
  margin-left: 0;
  padding-left: 0;
}

div.instructions ol > li {
  position: relative;
  margin: 0 0 8px 2.5em;
  padding: 4px 8px;
  list-style: none;

  background: #f6f6f6;

  border-bottom: 1px solid rgba(0, 128, 0, 0.7); /* rgba(0, 0, 0, 0.7); */
}

div.instructions ol > li:before {
  content: counter(li);
  counter-increment: li;
  position: absolute;
  top: -2px;
  left: -2.5em;

  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;

  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border-radius: 6px;

  width: 2em;

  margin-right: 8px;
  padding: 4px;

  color: #ffffff;
  background: green;

  font-weight: bold;
  font-family: "Helvetica Neue", Arial, sans-serif;
  text-align: center;

}

div.select-install {
  margin-top: 1em; /* to match the text in the following li elements */
}


div.description {
  background: #99CC66;

  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;

  margin: 0.5em 2em 0.5em 2em;
  padding: 0.5em 0.5em;

  font-size: 0.8em;
  font-family: Sans; /* hopefully more-readable with the smaller font */
}

/*
div.description::before {
  content: "\25b2";
  color: #99CC66;
  position: relative;
  top: -1.3em;
  left: 3em;
}
*/

form ul {
  padding: 0.2em 0.4em;

  border-bottom: 1px solid rgba(0, 128, 0, 0.7); /* rgba(0, 0, 0, 0.7); */

  margin-bottom: 0.4em;

}

form ul > li {
  list-style: none;
}
