/* =========================================
   layout.css
   Purpose: Defines the structural layout of the page
   ========================================= */


/* ---------  Header Styles--------- */
header {background-color: #f7b9b9;
  text-align: center;
  padding: 0.5rem;
  border-top: 0.5px solid #ddd;
}
header {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #44300a;
}


/* --------- Body Styles--------- */
body {
  color: #30190b;
  background-color: rgb(19, 146, 62);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

body {
  font-size: 12pt;
}


/* --------- Horizontal Navigation Styles--------- */

.nav li {
  display: inline-block;
  margin: 20px;
}

.nav {
  display: flex;
  justify-content: center;  
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 25px;
}


nav a {
  text-decoration: none;
  color: #361e0a;
}

nav ul {
  line-height: 2em;

}
/* --------- Main Layout --------- */
main {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 1rem;
}


/* --------- Footer --------- */
footer {
  background-color: #f3f3f3;
  text-align: center;
  padding: 1rem;
  border-top: 1px solid #ddd;
}

/* --------- Image Layout --------- */
img {
  display: grid;
  grid-template-columns: repeat(auto-fit, min-max(150px, 1fr)); 
  gap: 10px;
}

 img {
  width: 75%;
  aspect-ratio: 1 / 1; 
  object-fit: cover;
  border-radius: 8px; 
}



/* --------- Article Layout --------- */
article {
  flex: 3;
  margin-right: 1rem;
}



/* --------- Responsive Layout --------- */
@media (max-width: 768px) {
  main {
    flex-direction: column;
  }


}

