
/* Minimalist, professional reset and variables */
:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --muted: #6b7280;
  --text: #111827;
  --accent: #1f6feb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

header {
  padding: 5rem 5rem;
  text-align: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: larger;
  color: var(--bg);
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('https://i.redd.it/uwwte8wps4h91.gif');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  image-rendering: optimizeQuality;
  -webkit-optimize-contrast: crisp-edges;
  background-attachment: fixed;
}

/* Style the topnav */
ul.topnav {
  display: flex;
  list-style: none;
  margin: 16px auto;
  padding: 8px;
  background-color: rgba(0,0,0,0.55);
  justify-content: center;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  max-width: 980px;
}

/* Style links in topnav */
ul.topnav li a {
  display: block;
  color: #ffffff;
  padding: 10px 14px;
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: background-color 140ms ease, color 140ms ease;
}

/* Subtle hover and focus for accessibility */
ul.topnav li a:hover,
ul.topnav li a:focus {
  background-color: rgba(255,255,255,0.10);
  color: #ffffff;
  outline: none;
}

a:focus { outline: 3px solid rgba(31,111,235,0.12); outline-offset: 2px; }

div.flex-container {
  display: flex;
  flex-direction: row;
  gap: 16px;
  padding: 16px;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

div.flex-container > div {
  margin: 0; /* spacing handled by gap */
  flex: 1 1 0;
  padding: 1.25rem;
  background: var(--card);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(16,24,40,0.04);
  min-width: 0; /* helps overflowing text inside flex children */
}



/* Style the footer */
footer {
  position: relative;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  border-top: 1px solid #e6e7eb;
  padding: 10px 12px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  z-index: 1000;
}

/* Use media query and stack columns vertically if screen width is less than 600px */
@media screen and (max-width:600px) {
  div.flex-container { flex-direction: column; padding: 12px; gap: 12px; }
  ul.topnav { flex-wrap: wrap; margin: 12px; }
  header { padding: 1rem; min-height: 80px; }
  footer { position: static; }
}

/*enhanced resolution for header image*/
@media only screen and (min-resolution: 2dppx) {
  header {
    background-image: url('https://i.redd.it/uwwte8wps4h91.gif');
  }
}

/* Small utility tweaks */
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* Hobby card styles */
div.flex-container > 
.card {
  /* remove inner padding (parent rule applies) so media can go edge-to-edge */
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(16,24,40,0.06);
  background: var(--card);
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card:hover { 
  transform: translateY(-6px); 
  box-shadow: 0 12px 30px rgba(16,24,40,0.08); 
}

.card-media img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content { padding: 1rem; }
.card-content h3 { margin: 0 0 0.25rem 0; font-size: 1.1rem; }
.card-content h2 { margin: 0 0 0.25rem 0; font-size: 1.1rem; }
.card-content p { margin: 0; color: var(--muted); font-size: 0.95rem; }

@media screen and (max-width: 600px) {
  .card-media img { height: 160px; }
}
