/* DragonEgg - custom styles on top of Materialize
   The hosting lets browsers keep this file for 7 days. After changing it, raise the
   version in every page's link (css/style.css?v=2 -> ?v=3) and upload the pages too. */

/* bigger, more readable text; everything sized in rem scales with this */
html {
  font-size: 17px;
  line-height: 1.6;
}

@media only screen and (min-width: 601px) {
  html {
    font-size: 18px;
  }
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background-color: #fbf7f0;
  font-family: 'Atkinson Hyperlegible', -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: #2b2b2b;
}

h1, h2, h3, h4, h5, h6,
.card .card-title {
  font-weight: 400;
  line-height: 1.25;
}

.chip {
  font-size: 0.85rem;
  height: 36px;
  line-height: 36px;
}

/* smaller headings on phones so long recipe titles don't fill the screen */
@media only screen and (max-width: 600px) {
  h2 { font-size: 2.4rem; }
  h3 { font-size: 1.9rem; }
  h4 { font-size: 1.6rem; }
  h5 { font-size: 1.3rem; }

  .hero {
    padding: 24px 0 8px !important;
  }

  .hero p {
    font-size: 1.05rem !important;
  }
}

main {
  flex: 1 0 auto;
}

nav {
  background-color: #2e4a3f;
}

nav .brand-logo {
  font-weight: 400;
  letter-spacing: 1px;
}

h1, h2, h3, h4, h5 {
  color: #2e4a3f;
}

.page-footer {
  background-color: #2e4a3f;
}

/* hero on the home page */
.hero {
  padding: 48px 0 24px;
}

.hero p {
  font-size: 1.2rem;
  color: #6b5a45;
}

.hero-img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 4px;
}

.hero h2 {
  margin-top: 0.8em;
}

/* recipe cards on the home page */
.recipe-card .card-image img {
  height: 200px;
  object-fit: cover;
}

.recipe-card .card-title {
  font-size: 1.4rem;
}

.recipe-card .card-content p {
  color: #6b5a45;
}

.recipe-card .card-action a {
  color: #c8822b;
}

.chip.tag {
  background-color: #f1e3c8;
  color: #6b4a1e;
}

.chip.small-tag {
  height: 30px;
  line-height: 30px;
  font-size: 0.75rem;
  padding: 0 12px;
}

.recipe-card .small-tag {
  cursor: pointer;
}

/* search and category filter on the home page */
.search-row {
  margin-bottom: 0;
}

.search-row .input-field .prefix.active {
  color: #c8822b;
}

.search-row input[type=text]:focus {
  border-bottom: 1px solid #c8822b !important;
  box-shadow: 0 1px 0 0 #c8822b !important;
}

.search-row input[type=text]:focus + label {
  color: #c8822b !important;
}

.filter-chip {
  cursor: pointer;
}

.filter-chip.active {
  background-color: #c8822b;
  color: #fff;
}

/* one section per category */
.cat-section h4 {
  font-size: 2rem;
  border-bottom: 2px solid #f1e3c8;
  padding-bottom: 8px;
}

.coming-soon {
  color: #8a7a62;
  font-style: italic;
}

/* recipe page: dishes this recipe goes well with */
.goes-with a {
  color: #c8822b;
}

/* recipe page */
.recipe-header img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 4px;
}

.recipe-meta span {
  display: inline-block;
  margin-right: 24px;
  color: #6b5a45;
}

.recipe-meta i {
  vertical-align: middle;
  margin-right: 4px;
}

.ingredients li {
  padding: 4px 0;
  border-bottom: 1px dotted #d8c9ad;
}

.steps li {
  margin-bottom: 12px;
  line-height: 1.6;
}

.note-box {
  background-color: #f1e3c8;
  padding: 16px;
  border-left: 4px solid #c8822b;
}
