/* General body settings */
body {
  margin: 0;
  font-family: Palatino Linotype;
  background-color: #f2eddc; /* muted sepia */
  background-image: url("Clouds.jpg");
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header */
header {
  width: 50%;
  display: flex;
  align-items: center;
  margin: 10px 0;
  position: relative;
}

header h1 {
  font-style: bold;
  font-size: 1.5rem;
  margin: 0;
  margin-left: 20px;
}

header .line {
  flex: 1;
  border-bottom: 2px dotted black;
  height: 0;
  margin-left: 10px;
}

/* Main layout */
main {
  width: 50%;
  display: grid;
  grid-template-columns: 0.25fr 0.75fr;
  grid-gap: 20px;
}

.left-rect {
  background: #e8e2cc;
  border: 1px solid black;
  min-height: 300px; /* smaller */
}

.right-col {
  display: grid;
  grid-template-rows: auto auto;
  grid-gap: 15px;
  min-height: 120px;
}

.top-rect {
  background: #e8e2cc;
  border: 1px solid black;
  min-height: 300px;
}

.bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 15px;
}

.card1 {
  background: grey;
  border: 1px solid black;
  border-radius: 8px;
  aspect-ratio: 63 / 88;
}

.card2 {
  background: grey;
  border: 1px solid black;
  border-radius: 8px;
  aspect-ratio: 63 / 88;
}

footer {
  width: 50%;
  margin: 20px 0;
  background: #e8e2cc;
  border: 2px dotted black;
  min-height: 120px;
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
  main {
    width: 90%;
    grid-template-columns: 1fr; /* stack vertically */
  }
  
   header {
    width: 90%; /* expand to fill more space on mobile */
  }


  .right-col {
    grid-template-rows: auto; /* stack top and bottom vertically */
  }

  .bottom-row {
    grid-template-columns: 1fr; /* stack cards vertically */
  }

  footer {
    width: 90%;
  }
}