/******************************************************************************/
/* GLOBAL */

body {
  margin: 0;
  padding: 0;
  background-color: white;
  font-family: arial, helvetica, sans-serif;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

a img {
  border: none;
}

* html img {
  behavior: url("png.htc");
}

/******************************************************************************/
/* HEADER */

div#header {
  height: 50px;
  border-bottom: solid #6d77d0 1px;
  background: url('images/header_bg.jpg') top repeat-x;
}

div#header img {
  float: left;
  height: 50px;
  width: 125px;
}

div#header h1 {
  line-height: 50px;
  margin-left: 200px;
}

div#header div.options {
  float: right;
  margin-right: 1em;
  height: 50px;
  line-height: 50px;
}

/******************************************************************************/
/* LIST */

div#list {
  float: left;
  background-color: #c2d0f2;
  /*background-color: yellow;*/
  width: 35em;
  border-right: solid #6d77d0 1px;
  overflow: auto;
}

div#list div.emptylist {
  text-align: center;
  font-style: italic;
  font-size: 1.1em;
  line-height: 2em;
}

div#list div.item {
  width: 33.5em;
  height: 1.5em;
  background-color: #c2d0f2;
  line-height: 1.5em;
  overflow: hidden;
  border-bottom: solid #a0b0f0 1px;
}

div#list div.highlight {
  background-color: #e4eef4;
}

div#list div.selected {
  /*background-color: #fff708;*/
  background-color: #fdecb9;
}

div#list div.done {
  background: url('images/line-through.gif') center repeat-x;
}

div#list div.item div {
  float: left;
  overflow: hidden;
}

div#list div.item div.check {
  width: 3em;
  text-align: center;
}

div#list div.item div.check input {
  font-size: 3em;
}

div#list div.item div.date {
  text-align: center;
  width: 6.5em;
  /*background-color: yellow;*/
}

div#list div.item div.title {
  padding-left: .5em;
  width: 18.5em;
  text-overflow: ellipses; 
}

div#list div.item div.priority {
  width: 5em;
  text-align: center;
  font-weight: bold;
  /*background-color: goldenrod;*/
}

div#list div.p_hi {
  color: red;
}

div#list div.header {
  font-weight: bold;
}

/******************************************************************************/
/* FORM */

div#form {
  margin-left: 35em;
}

div#form div#new_item, div#form div#selected_item {
  padding-left: 1em;
  padding-right: 1em;
}

div#form h1 {
  font-size: 1.1em;
  font-weight: normal;
  line-height: 1.5em;
  height: 1.5em;
  margin-bottom: 1em;
}


div#form div.error {
  border: solid #ff4b2d 2px;
  margin-right: .6em;
  padding: .5em 1em;
  margin-bottom: 1em;
  color: #ff4b2d;
  font-weight: bold;
}

div#form div.error div {
  font-size: .8em;
  color: #b61407;
  margin: .5em 1em;
}

div#form div.todo input {
  width: 20em;
}

div#form div.due_date {
  white-space: nowrap;
  float: left;
  border: solid #c2d0f2 1px;
  padding: 1em;
  padding-top: .5em;
  line-height: 1.6em;
  margin-top: 1em;
  margin-right: 1em;
}

* html div#form div.due_date {
  padding-bottom: 1.5em;
}

div#form div.due_date input#due_date {
  width: 8em;
}

div#form div.priority {
  white-space: nowrap;
  float: left;
  border: solid #c2d0f2 1px;
  padding-top: .5em;
  padding-bottom: .5em;
  margin-top: 1em;
  margin-bottom: 1em;
}

div#form div.priority label.priority {
  float: left;
  margin-top: 1em;
  margin-left: 1em;
}

div#form div.priority div.options {
  margin-left: 6em;
  text-align: right;
}

* html div#form div.priority div.options {
  margin-left: 4.5em;
}

div#form div.submit {
  padding-top: 1em;
  padding-right: .6em;
}

div#form div.submit input {
  width: 100%;
  height: 2em;
  font-size: 1.1em;
}

html>body div#form div.submit input {
  background-color: #f9d15b;
  border: outset #cccccc 2px;
  -moz-border-radius: .4em;
  -webkit-border-radius: .4em;
}

* html div#form div.submit input {
  width: 99%;
}

html>body div#form div.submit input:hover {
  background-color: #e39405;
  border: inset #cccccc 2px;
}

div#form div#selected_item {
  margin-top: 1em;
  border-top: solid #6d77d0 1px;
  padding-top: 1em;
}

div#form div#selected_item_edit {
  text-align: right;
  margin-right: .6em;
}

div#form div#selected_item_edit input {
  height: 2em;
}

html>body div#form div#selected_item_edit input {
  background-color: #f9d15b;
  border: outset #cccccc 2px;
  -moz-border-radius: .4em;
  -webkit-border-radius: .4em;
}

html>body div#form div#selected_item_edit input:hover {
  background-color: #e39405;
  border: inset #cccccc 2px;
}

div#form div#selected_item_todo {
  font-size: 1.1em;
}

div#form div#selected_item_due {
  float: left;
  margin-top: 1em;
  margin-right: 4em;
}

div#form div#selected_item_priority {
  float: left;
  margin-top: 1em;
}

div#form div#selected_item_priority span {
  font-weight: bold;
}

div#form div.p_hi span {
  color: red;
}

div#form div#selected_item_delete {
  margin-top: 3em;
  text-align: right;
  font-size: .8em;
}

div#form div#selected_item_delete a {
  padding: 2px 5px;
  color: #8f1e00;
  text-decoration: none;
}

div#form div#selected_item_delete a span {
  text-decoration: underline;
}

div#form div#selected_item_delete a img {
  vertical-align: -3px;
}

div#form div#selected_item_delete a:hover {
  background-color: #e4eef4;
}

div#form input#enter_new_item {
  float: right;
  margin-top: .3em;
}

html>body div#form input#enter_new_item {
  background-color: #f9d15b;
  border: outset #cccccc 2px;
  -moz-border-radius: .4em;
  -webkit-border-radius: .4em;
}

html>body div#form input#enter_new_item:hover {
  background-color: #e39405;
  border: inset #cccccc 2px;
}