@import url('https://fonts.googleapis.com/css?family=Open+Sans|Roboto+Slab:700');

/*----Body Structure---*/

body {
  font-family: "Open Sans", sans-serif;
  text-align: center;
}

header {
  align-items: center;
  font-family: "Roboto Slab", serif;
  font-weight: 700;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

main, .lower-section {
  text-align: center;
  width: 100%;
}

.lower-section {
  margin: 0 auto;
}

main {
  background-color: #e5f3f2;
}

article {
  margin-left: auto;
  margin-right: auto;
  width: 90%;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
}

.card-title {
  margin-right: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 90%;
}

.card {
  border-bottom: 1px solid #d1d3d4;
  text-align: left;
}

.card-header {
  display: flex;
}

#card-section {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flex-card-bottom {
  display: flex;
  /*align-items: center;*/
  justify-content: space-between;
}

#idea-styler {
  color: #00a79d;
}

#title-counter, #body-counter, .counters {
  color: #6D6E71;
  font-size: 16px;
}

#search {
  height: 25px;
  margin-bottom: 18px;
  margin-top: 18px;
}

/*-----Text Styling---*/

h1, h3, h4 {
  color: #6D6E71;
  font-size: 28px;
  margin-bottom: 10px;
}

.quality-text, .quality {
  display: inline-block;
  font-size: 16px;
}

.quality {
  color: #6d6e71;
  padding-left: 4px;
  font-size: .95em;
}

.quality-text {
font-family: "Roboto Slab", serif;
}

.card-title, .card-body {
  max-width: 15ch;
  text-align: left;
}

.card-title {
  display: inline-block;
  font-size: 24px;
}

.card-bottom {
  width: 100%;
}

.card-body {
  color: #939598;
  display: block;
  font-size: 16px;
  margin-left: 0;
  width: 90%;
}


/*-----Interactivity Styling----*/

input[type="text"], textarea {
  border-color: #939598;
  border-style: solid;
  border-width: 1px;
  font-size: 18px;
  margin-bottom: 8px;
  padding-left: 3px;
  resize: none;
  width: 90%;
}

input[type="text"] {
  height: 25px;
}

input:focus, textarea:focus {
 background-color: #FFFFE0 ;
}

textarea {
  margin-bottom: 0px;
  margin-top: 7px;
  height: 70px;
}

/*---button styling---*/

#save-button {
  background-color: #00a79d;
  border-radius: 0px;
  display: block;
  height: 35px;
  margin-bottom: 18px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 15px;
  width: 91%;
}

button {
  border-radius: 50px;
  border-style: none;
  border-width: 0px;
  color: #ffffff;
  cursor: pointer;
  outline: none;
}

#save-button:hover {
  background-color: #045e55;
}

#save-button:disabled {
  background-color: #6D6E71;
  cursor: default;
}

.clear, .upvote, .downvote {
  height: 20px;
  width: 20px;
}

.clear {
  background-image: url("images/delete.svg");
}

.clear:hover {
  background-image: url("images/delete-hover.svg");
}

.upvote {
  background-image: url("images/upvote.svg");
}

.upvote:hover {
  background-image: url("images/upvote-hover.svg");
}

.downvote {
  background-image: url("images/downvote.svg");
}

.downvote:hover {
  background-image: url("images/downvote-hover.svg");
}

.grayedOut {
  color: #a0a0a0;
  text-decoration: line-through;
}

.grayCard {
  background-color: #d1cccc;
}

.completed-task {
  background-color: #00a79d;
  border-radius: 0px;
  padding: 1px 4px;
  height: 20px;
  margin-top: 18px;
}

.completed-task:hover {
  background-color: #045e55;
}

.show-buttons {
  margin-left: 5%;
  padding-bottom: 5px;
  width: 90%;
}

.importance-buttons {
  padding-top: 5px;
  border-top: 1px solid #d1d3d4;
  width: 90%;
  margin-left: 5%;
}

.card-buttons {
  background-color: #00a79d;
  border-radius: 0px;
  padding: 7px 4px;
}

#show-completed:hover, #show-more:hover {
  background-color: #045e55;
}

#importance-none:hover {
  background-color: #00c655;
}

#importance-low:hover {
  background-color: #ffec00;
}

#importance-low:active {
  background-color: #ffec00;
}

#importance-normal:hover {
  background-color: #FF8A29;
}

#importance-high:hover {
  background-color: #e80000;
}

#importance-critical:hover {
  background-color: #a900cc;
}

#importance-all:hover {
  background-color: #045e55;
}


/*----Media Queries ----*/

@media screen and (min-width: 480px) {

  .lower-section {
    margin: 0 auto;
    width: 500px;
  }

  form {
    margin: 0 auto;
    width: 500px;
  }

  .card-title, .card-body {
    max-width: 25ch;
  }

  .card-buttons {
    padding: 6px 12px;
  }

  /*.completed-task {
    padding: 6px;
  }*/
}

@media screen and (min-width: 960px) {

  textarea {
    height: 25px;
  }

  .lower-section {
    width: 700px;
  }

  form {
    margin: 0 auto;
    width: 700px;
  }

  hr {
    width: 100%;
  }

  div header, div article {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  #search {
    width: 90%;
  }

  .card-title, .card-body {
    max-width: 35ch;
  }

  .card-title, .card-body, .upvote {
    margin-left: 0;
  }

  .card {
    margin-left: auto;
    margin-right: auto;
    width: 90%;
  }

  .logo {
    font-size: 42px;
    margin-bottom: 28px;
    text-align: center;
  }
}
