a:link, a:visited, a:active {color: #660066;}

body {
  background-color: #ddeeff;
  background-image: url('fruit.jpg');
  /*background-image: url('cookies.jpg');*/
  background-attachment: fixed;
}

#container {
  width: 90%;
  min-width: 540px;
  max-width: 1000px;
  margin: 0 auto;
  overflow: auto;
  background: #ffffff;
  box-shadow: 2px 2px 4px #000000;
  position: relative;
}

#banner-background {
  width: 15em;
  height: 3em;
  margin: 0 auto;
  background-color: #ffffff;
  opacity: .75;
  z-index: 0;
}

#banner {
  position: relative;
  width: 100%;
  font-family: 'Palatino Linotype', serif;
  text-align: center;
  color: #000000;
  margin-top: -4.25em;
  z-index: 1;
}

#nav {
  /*background: #ffccaa;*/
  background: #55aa99;
  overflow: auto;
  min-height: 50px;
}

.nav_btn {
  float: left;
  border: 1px solid #ccc;
  padding: 10px;
  margin: 5px;
  background: #ddffee;
}

.nav_btn:hover {
  background: #ffeeee;
}

.nav_btn a {
  color: black;
  text-decoration: none;
}

.nav_btn img {
  vertical-align: middle;
}

#views {
  width: 90px;
  height: 40px;
  position: absolute;
  right: 0;
  vertical-align: bottom;
  z-index: 1;
}

#views a {
  display: inline-block;
  width: 30px;
  height: 30px;
  margin: 0 5px;
  background-position: 0 -30px;
}

#views a#list {
  background-image: url('icon_list.png');
}

#views a#tiles {
  background-image: url('icon_tiles.png');
}

#views a.active {
  background-position: 0 0;
}

#content {
  padding: 15px;
  position: relative;
}

.users {
  float: right;
  padding: 5px;
}

h2 {
  font-family: 'Palatino Linotype', serif;
  font-size: 150%;
  text-align: center;
  margin: 0;
  z-index: 0;
}

h4, h3 {
  font-family: 'Palatino Linotype', serif;
  margin-bottom: 5px;
}

/* List View */
#recipe_list {
  line-height: 200%;
}

/* Tile View */

#recipe_tiles {
  text-align: center;
}

.recipe_tile {
  width: 200px;
  padding: 0 0 .5em 0;
  margin: 10px;
  border: 1px solid #ccc;
  display: inline-block;
  vertical-align: middle;
  text-align: center;
  line-height: 150%;
}


/* All Views */

#filter_form {
  text-align: center;
  margin-bottom: 8px;
}

#filter_form input[type="text"] {
  width: 492px;
  padding: 4px;
}

.pseudo_link {
  color: blue;
  text-decoration: underline;
}

.pseudo_link:hover {cursor:pointer;}

#cloud {
  width: 500px;
  background: #eeeeee;
  border: 1px solid #ccc;
  margin: 0 auto;
  text-align: center;
  line-height: 200%;
}

.cloud_label {
  margin: 5px;
  white-space: nowrap;
}

.cloud_label a, .selected_label a {
  color: black;
  text-decoration: none;
}

.cloud_label a:hover {
  color: blue;
}

.selected_label {
  font-style: italic;
}

a#all_recipes {
  display: inline-block;
  margin: .5em 0;
}

#ing_select {
  background: #eeeeee;
  border: 1px solid black;
  overflow: auto;
  padding: 5px;
}

label {
  font-weight: bold;
}

#results_list {
  //width: 80%;
  min-width: 500px;
  margin: 10px auto;
  //border: 1px solid #999;
  padding: 5px;
  margin-bottom: 10px;
}

#edit, #import {
  float: right;
}

#filter {
  width: 80%;
  padding: 10px;
  margin: 0 auto;
}

.order {
  width: 20px;
  text-align: center;
}

.error {
  color: #ff0000;
  font-weight: bold;
}

img {
  max-width: 100%;
}

/* Add/Edit form */

#recipe_title,
#recipe_source {
  width: 40em;
}

#recipe_servings {
  width: 2em;
}

form#add div#ingredients,
form#add div#pic {
  width:50%;
  padding:0;
  margin:0;
  float: right;
}

form#add div#ingredients input:nth-child(1),
form#add div#ingredeients input:nth-child(2) {
  width: 8%;
}

form#add div#ingredients input:nth-child(3) {
  width: 73%;
}

form#add div#instructions input[type="text"] {
  width: 97%;
}

form#add textarea {
  width: 100%;
  height: 5em;
}

#ing_list, #inst_list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#ing_list li, #inst_list li {
  padding: .5em;
  margin: .13em;
  background-color: #ccc;
}

#ing_list li {
  width: 90%;
}

#inst_list li {
  width: 95%;
}

#labels {
  display: inline;
  margin: 0;
  padding: 0;
}

.label_btn {
  border: 1px solid #ccc;
  background: #E1EEF2;
  display: inline;
  padding: 2px;
  font-size: 90%;
  margin: 0 .25em 0 0;
}

.label_btn a {
  color: #000099;
  text-decoration: none;
}
  
.remove {
  color: #ff0000;
  border: 1px solid #ff0000;
  margin-left: 5px;
  cursor: pointer;
}

#new_label {
  margin: 0;
  width: 10em;
}

#suggestions {
  position: absolute;
  font-size: 75%;
  background-color: #E1EEF2;
  padding: .25em;
  display: none;
}

.suggestion {
  cursor: pointer;
}

.label_add {
  display:inline-block;
  white-space:nowrap;
  padding:.5em 0;
}

@media screen and (max-width: 1024px) {
  form#add input[type="text"] {
    max-width: 95% !important;
  }
  
  #ing_list li {
    width: 95%;
  }
  
  form#add div#ingredients input:nth-child(3) {
    width: 78%;
  }

  form#add div#ingredients,
  form#add div#pic {
    width: 100%;
    float: none;
  }
}