html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* end reset */

html {
  min-height: 100%;
}

body {
  color: #384e67;
  font-family: Arial, Helvetica, sans-serif;
  height: 100%;

  background: #fcff81;
  /* Old browsers */
  background: -moz-linear-gradient(-45deg, #fcff81 0%, #ff5a8d 100%);
  /* FF3.6-15 */
  background: -webkit-linear-gradient(-45deg, #fcff81 0%, #ff5a8d 100%);
  /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(135deg, #fcff81 0%, #ff5a8d 100%);
  /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  background-attachment: fixed;

  font-size: 16px;
  line-height: 22px;
  padding: 20px 0px;
  box-sizing: border-box;
}

* {
  word-break: break-word;
}

.avatar {
  border-radius: 200px;
}

.header {
  background: #fff;
  height: 70px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 20;
}

.header .avatar {
  height: 42px;
  background: #cddff2;
  display: block;

}

.header .account {
  padding: 14px;
  height: 42px;
  vertical-align: middle;
  line-height: 70px;
}

.logo {
  background: #62df84;
  height: 70px;
  width: 70px;
  text-align: center;
  line-height: 70px;
  margin-right: 10px;
  padding: 0px !important;
}

.logo img {
  vertical-align: middle;
  width: 32px;
}

.header a {
  color: #88a9cb;
  font-weight: bold;
  padding: 10px;
}

.spacer {
  flex-grow: 1;
}

.container {
  max-width: 1024px;
  margin: auto;
}

.cover {
  width: 100%;
  display: block;
}

.content {
  background: #f2f2f2;
  padding: 20px;
}

a {
  text-decoration: none;
  color: #17c446;
  cursor: pointer;
}

h1 {
  font-size: 30px;
  line-height: 30px;
  font-weight: bold;
  padding: 10px 0px;
}

h2 {
  font-size: 25px;
  line-height: 25px;
  padding: 5px 0px;
  padding-top: 20px;
}

.cover {
  position: relative;
  /*box-shadow: 0px 0px 20px rgba(0,0,0, 0.5);*/
}

.cover .title {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 20px;
  color: #fff;
  text-shadow: 0px 0px 5px #000, 0px 0px 1px #000;
}


.info {
  background: #54a369;
  /* Old browsers */
  background: -moz-linear-gradient(top, #54a369 0%, #50c46f 100%);
  /* FF3.6-15 */
  background: -webkit-linear-gradient(top, #54a369 0%, #50c46f 100%);
  /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to bottom, #54a369 0%, #50c46f 100%);
  /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#54a369', endColorstr='#50c46f', GradientType=0);
  /* IE6-9 */
  height: 40px;
  color: #fff;
  line-height: 36px;
  padding-left: 10px;
}

.info .bit {
  display: inline-block;
  vertical-align: middle;
  padding-left: 8px;
}

.info img {
  vertical-align: middle;
  padding-right: 5px;
  height: 24px;
}

td {
  padding: 4px;
}

.portions {
  display: flex;
  align-items: center;
}

.portions a {
  background: #62df84;
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  text-align: center;
  font-size: 25px;
  color: #fff;
  font-weight: bold;
  margin: 3px;
  line-height: 40px;
}

.amount {
  text-align: right;
  font-weight: bold;
  padding-right: 10px;
  width: 100px;
}

.ingredients tr {
  border-top: 1px solid #c4dbff;
}

.ingredients tr.first {
  border: none;
}


p {
  margin-top: 8px;
}


.recipes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  line-height: 0px;
}

.card {
  position: relative;
  flex-basis: 0;
  flex-grow: 1;
  margin: 3px;
  display: block;
}

@media(max-width: 800px) {
  .recipes {
    display: block;
  }

  .card {
    flex-grow: 0;
    width: 100%;
  }
}

.card img {
  width: 100%;
  background: #000;

}

.card .name {
  position: absolute;
  bottom: 0px;
  left: 0px;
  color: #fff;
  font-size: 17px;
  text-shadow: 0px 0px 5px #000, 0px 0px 1px #000;
  line-height: 1;
  font-weight: bold;
  box-sizing: border-box;
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  padding: 5px;
}

.instructions,
.notes {
  white-space: pre-line;
}

#search {
  width: 100%;
  max-width: 400px;

  margin: 3px;
  margin-bottom: 12px;
  box-sizing: border-box;
}

input,
button,
select,
option {
  font-size: 16px;
  padding: 5px;
  border-radius: 3px;
  border: 1px solid #ccc;
  display: block;
  width: 400px;
}

button {
  width: auto;
  height: 34px;
  cursor: pointer;
}

textarea {
  font-size: 16px;
  padding: 5px;
  border-radius: 3px;
  border: 1px solid #ccc;
  display: block;
  width: 400px;
  height: 200px;
}

th {
  text-align: left;
  font-size: 12px;
  line-height: 1;
}

@media(max-width: 800px) {
  #search {
    max-width: 100%;
  }

  input,
  button,
  select,
  option {
    width: 100%;
  }

  textarea {
    width: 100%;
  }

  /* https://stackoverflow.com/a/9807320 */
  .edit-table table,
  .edit-table thead,
  .edit-table th,
  .edit-table td,
  .edit-table tr {
    display: block;
  }

  .edit-table tr+tr {
    margin-top: 1em;
  }
}

p.error {
  background: #ff306f;
  padding: 8px 20px;
  border-radius: 20px;
  color: #fff;
  font-weight: bold;
  margin-bottom: 20px;
}

p.success {
  background: #62df84;
  padding: 8px 20px;
  border-radius: 20px;
  color: #fff;
  font-weight: bold;
  margin-bottom: 20px;
}

.ingredient-row {
  display: grid;
  grid-template-columns: 1fr 2fr 3fr 2fr;
  grid-column-gap: 14px;
  width: 100%;
}

.ingredient-row input {
  width: inherit;
}

b {
  font-weight: bold;
}


.hidden {
  display: none;
}