@import url('https://fonts.googleapis.com/css2?family=Lekton:wght@400;700&display=swap');

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: 'Lekton', system-ui, monospace;
  background-color: #fafafa;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

body.home .main {
  margin-left: 0;
  padding: 0;
}

body.home .image-window {
  width: 100%;
  margin: 0;
  height: 500px;
  object-position: top;
}

.home h3 {
  color: #7FFFD4;
}

nav {
  overflow: hidden;
  background-color: #fafafa;
  position: fixed;
  top: 0;
  width: 100%;
  border-bottom: 2px solid #000000;
  z-index: 10;
}

nav ul {
  display: flex;
  align-items: center;
  list-style-type: none;
  margin: 0;
  padding: 0 20px;
  gap: 40px;
}

nav a {
  display: block;
  color: black;
  text-align: center;
  padding: 20px 16px;
  text-decoration: none;
  text-transform: capitalize;
}

nav a:hover {
  background: #ddd;
  color: #2BBFA5;
}

.logo-link:hover {
  background: none;
}

nav ul .right {
  margin-left: auto;
}

.logo {
  height: 42px;
  width: auto;
  display: block;    /* removes small bottom spacing */
}

.logo-link {
  padding: 0 0 0 25px;
  display: flex;
  align-items: center;
}

#searchInput {
  padding: 8px 12px; /* inner spacing */
  border: 2px solid #888; /* matches navbar bottom border */
  font-family: 'Lekton', monospace;
  font-size: 14px;
  background-color: #fafafa; /* matches navbar background */
  color: #000;
  outline: none; /* remove default focus border */
  width: 250px; /* reasonable default width */
  transition: background-color 0.2s, border-color 0.2s;
}

/* Focus effect */
#searchInput:focus {
  border-color: #323232;
  background-color: #fff;
}

/* Optional: placeholder style */
#searchInput::placeholder {
  color: #888;
  font-style: italic;
}

.main {
  flex: 1;
  margin-top: 0;
  margin-left: 345px;
  padding: 30px;
}

.image-window {
  width: calc(100% + 180px);
  margin-left: -90px;
  margin-right: -90px;
  height: 350px;
  overflow: hidden;
}

.image-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.top-box {
  background-color: #323232;
  color: white;
  text-align: center;
  padding: 40px 20px;
  margin: 0;
  border-top: 2px solid #fafafa;
  border-bottom: 2px solid #fafafa;
}

.bottom-boxes {
  display: flex;
  gap: 2px;
  margin: 0;
}

.bottom-boxes .box {
  flex: 1; /* all boxes equal width */
  background-color: #323232;
  color: white;
  text-align: center;
  padding: 40px 20px;
  border: none; /* blank border between them */
  box-sizing: border-box; /* ensure borders don’t break layout */
}

.bottom-boxes .box a {
  display: block; /* makes link cover the whole box */
  text-decoration: none; /* remove underline */
  color: white; /* text color */
  height: 100%; /* ensures it fills the box */
}

.bottom-boxes .box:hover {
  background-color: #444; /* hover effect for the entire clickable area */
}

.sidenav {
  height: 100%;
  width: 305px;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #323232;
  overflow-x: hidden; /* Disable horizontal scroll */
  border-right: 2px solid #000000;
  padding-top: 90px;
}

.sidenav a {
  padding: 16px 20px 16px 40px;
  text-transform: uppercase;
  text-decoration: none;
  color: white;
  display: block;
}

.sidenav a:hover {
  background: #ddd;
  color: #2BBFA5;
}

#articles h2 {
  color: #2BBFA5;
}

#articles h3 {
  color: #2BBFA5;
}

#articles p {
  margin-bottom: 3em;
}

.footer {
  padding: 20px;
  background-color: white;
  border-top: 2px solid #000000;
}

.footer a {
  text-decoration: none;
  color: #000000;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-1 {
  justify-self: start;
}

.footer-2 {
  justify-self: center;
}

.footer-3 {
  justify-self: end;
}