/* Food Blog - plain CSS version of the W3.CSS template */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Karma", sans-serif; color: #000; background: #fff; line-height: 1.5; }
h1, h2, h3, h4, h5, h6 { font-family: "Karma", sans-serif; font-weight: 400; margin: 10px 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Top menu */
.topbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1; background: #fff; }
.topbar-inner { max-width: 1200px; margin: auto; display: flex; align-items: center; font-size: 24px; }
.topbar button { background: none; border: 0; font-size: 24px; padding: 16px; cursor: pointer; }
.topbar button:hover { background: #ccc; }
.topbar .title { flex: 1; text-align: center; padding: 16px; }
.topbar .mail { padding: 16px; }

/* Sidebar */
.sidebar { display: none; position: fixed; top: 0; left: 0; height: 100%; width: 40%; min-width: 300px;
  background: #fff; z-index: 2; font-size: 24px; box-shadow: 0 2px 5px rgba(0,0,0,.16), 0 2px 10px rgba(0,0,0,.12); }
.sidebar a { display: block; padding: 20px; }
.sidebar a:hover { background: #ccc; }

/* Page content */
main { max-width: 1200px; margin: 100px auto 0; padding: 16px; }

/* Food grid */
.food-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
  text-align: center; padding: 16px 0; }
.food-grid img { width: 100%; }

/* Pagination */
.pagination { text-align: center; padding: 32px 0; }
.pagination a { display: inline-block; padding: 8px 16px; }
.pagination a:hover { background: #000; color: #fff; }
.pagination a.active { background: #000; color: #fff; }

hr { border: 0; border-top: 1px solid #eee; margin: 20px 0; }

/* About */
.about { text-align: center; padding: 32px 16px; }
.about img { margin: auto; width: 100%; max-width: 800px; }
.about .text { padding: 32px 0; }

/* Footer */
footer { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; padding: 32px 0; }
footer ul { list-style: none; }
footer li { display: flex; align-items: center; gap: 16px; padding: 16px; border-bottom: 1px solid #ddd; }
footer li:hover { background: #f1f1f1; }
footer li img { width: 50px; }
footer li .name { font-size: 18px; display: block; }
.tag { display: inline-block; background: #616161; color: #fff; font-size: 12px; padding: 2px 8px; margin-bottom: 8px; }
.tag.main { background: #000; font-size: 16px; }
.serif { font-family: serif; }
