/* * {
  box-sizing: border-box;
} */

html,
body,
h1,
h2,
h3,
p,
ol,
ul,
li,
a {
  padding: 0;
  margin: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
}

body {
  font-family: Helvetica, Arial, "Times New Roman", sans-serif;
}

h1 {
  margin: 10px 0 15px 0;
}

h2 {
  color: #7facaa;
  margin: 10px 0 20px 0;
  text-align: center;
  font-size: 26px;
  font-weight: bold;
}

h3 {
  margin: 15px 0;
  border-bottom: 1px solid #ccc;
  padding-bottom: 3px;
}

ul,
ol {
  padding-left: 50px;
}

nav ul {
  padding-left: 0;
}

nav a {
  color: #0000af;
  text-decoration: none;
}

nav li {
  display: inline;
}

.recipes {
  list-style-type: none;
  padding: 0;
}

.recipes li {
  border: 1px solid #b56663;
  padding-left: 15px;
}

.recipes h3 {
  border-bottom: 0;
}

.recipes a {
  color: #7facaa;
  text-decoration: none;
}

header {
  padding: 10px;
  background-color: #b56663;
}

header a,
header h1 {
  color: #fff;
}

header h1,
header nav {
  text-align: center;
}

main {
  padding: 20px;
  border: 1px solid #ddd;
  margin: 30px auto 0 auto;
  width: 500px;
}

main p {
  line-height: 26px;
}

.photos {
  list-style-type: none;
  padding: 0;
}

.photos img {
  width: 100%;
}

/* Float and percentage-based layout */
/* .photos li {
  float: left;
  width: 33.3%;
}

 .group:after {
  content: "";
  display: table;
  clear: both;
}    */

/* Flex-based layout */
/* .photos {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}    */

/* .photos li:last-child {
  flex-grow: 0;
} */

/* Grid-based layout */
.photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* .featured-image {
  width: 500px;
  height: 300px;
  background: #fff url(images/magic-cake.jpg) top left no-repeat;
} */

.featured-image {
  position: relative;
}

.featured-image h3 {
  margin: 0;
  position: absolute;
  border: 0;
  top: 0;
  right: 0;
  background-color: rgba(25, 25, 25, 0.7);
  color: #fff;
  padding: 10px;
  text-transform: uppercase;
  font-size: 2em;
}

/* Suggest Page Styles */

label,
input {
  display: block;
}

label {
  margin-bottom: 10px;
}

input[type="text"] {
  width: 100%;
  margin-bottom: 25px;
}

input[type=submit] {
  width: 240px;
  font-size: 30px;
}

input[type=text] {
  border: 2px solid #7facaa;
  font-size: 24px;
  padding: 7px;
}

textarea {
  width: 100%;
  height: 400px;
  padding: 7px;
  border: 2px solid #7facaa;
  margin-bottom: 25px;
  font-size: 24px;
}

input[type=checkbox],
label[for=newsletter] {
  display: inline;
}
