

#page {
  display: grid;
  width: 100%;
  height: 100px;
  grid-template-areas:
    "head head"
    "nav  main"
    ".  foot";
  grid-template-rows: 50px 1fr 30px;
  grid-template-columns: 150px 1fr;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Creates 3 equal-width columns */
  gap: 20px; /* Adds 20px space between both rows and columns */
}

#page > header {
  grid-area: head;
  background-color: #ff0000;
}

.content-section {
    padding: 20px;
    /* Optional: Add smooth transition for appearance */
    transition: opacity 0.5s ease; 
}

.hidden {
    display: none; /* Hides the element and removes it from document flow */
    opacity: 0;
}

.navbar a {
    padding: 14px 16px;
    text-decoration: none;
    color: black;
}

.navbar a:hover {
    background-color: #ddd;
}

#page > nav {
  grid-area: nav;
  background-color: #0000ff;
}

#page > main {
  grid-area: main;
  background-color: rgba(255, 255, 255, 0.5);
}

.container {
  display: flex;
  align-items: center; /* Centers items vertically */
}

.container img {
  margin-right: 25px; /* Adds space between the image and text */
}

#page > footer {
  grid-area: foot;
  background-color: #000049;
}
footer {
  text-align: center; /* Centers the text inside the footer */
  padding: 15px 0;    /* Adds some space above and below the text */
  background-color: #333; /* Sets the background color */
  color: white;      /* Sets the text color to white */
  font-size: 14px;   /* Adjusts the font size */
  width: 100%;       /* Ensures the footer spans the full width */
}

/* Optional: style the links inside the footer */
footer a {
  color: #000000; /* Changes link color */
  text-decoration: none; /* Removes the default underline from links */
}
