body {
  background-color: white;
}

h1 {
  color: black;
  text-align: center;
  background-color: rgb(254, 215, 240);
  padding: 20px; /*adding padding to the background color*/
}

h2 {
  color: black;
  text-align: center;
  padding-top: 20px;
}


h3 {
  color: black;
  text-align: center;
}


/*h4 {
  font-family: verdana;
  font-size: 20px;
  color: black;
  text-align: center;
  background-color: rgb(254, 215, 240);
  padding: 20px; /*adding padding to the background color*/
/*}*/


p {
  font-family: verdana;
  font-size: 20px;
  /*padding: 20px;*/
}

a {
  color: rgb(255, 58, 143);
  font-size: 20px;
  text-decoration: underline;
  text-align: center;
  padding: 20px;
}


/*start of CSS for colored background*/
.colored-background {
  background-color: rgb(236, 236, 236);
  padding: 5px;
  border-radius: 5px;
}
/*End of CSS for colored background*/






/*Grid layout for posting links to the different class pages*/

.link-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* Creates a 3-column layout */
  gap: 15px;
}

.link-grid-item {
  /* Makes the <a> tag fill the grid cell area */
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Basic styling for the grid cards */
  padding: 30px;
  background-color: rgb(255, 241, 250);
  text-decoration: none;
  color: rgb(224, 47, 123);
  border-radius: 8px;
}

.link-grid-item:hover {
  background-color: rgb(254, 215, 240);
}


/*End of link grid layout*/




/*Start of text grid for posting written assignment and description*/
.text-grid-container {
  display: grid;
  /*grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));*/
  grid-template-columns: repeat(2, 1fr); /* Creates 2 equal-width columns */
  gap: 24px;
  padding: 16px;
}

/* Individual card rules */
.text-grid-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /*background-color: #00618e;
  border: 1px solid #e0e0e0;*/
  border-radius: 8px;
  overflow: hidden;
}

/* Main body text area inside card */
.text-card-content {
  padding: 16px;
}

.text-card-content img{
  /*padding: 16px;*/
  max-width: 100%;
  height: auto;
}

/* Caption formatting rules */
.text-card-caption {
  padding: 12px 16px;
  align-items: flex-end;

  /*Matching the font to that of h3*/
  font-size: 1.17em;
  font-weight: bold;
  margin-top: 1em;
  margin-bottom: 1em;
  margin-left: 0;
  margin-right: 0;
  /*End of matching the text to that of h3*/
}

/*End of text grid*/




/*Start of code for image grid for posting images and descriptions*/
.image-grid {
  display: grid;
  /*grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));*/
  grid-template-columns: repeat(2, 1fr); /* Creates 2 equal-width columns */
  gap: 60px; /* Adds spacing between the grid items */
  padding: 60px;
}

/* Individual wrapper elements */
.grid-item {
  margin: 0; /* Reset browser default figure margins */
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

/* Ensure the image scales nicely inside the cell */
.grid-item img {
  width: 100%;
  height: auto;
  display: block; /* Removes unwanted baseline whitespace below the image */
}

/* Style the text underneath */
.grid-item figcaption {
  
  /*for font to match that of paragraph*/
  
  /*padding: 12px;
  font-family: verdana;
  font-size: 20px;*/

  /*For font to match that of h3*/

  display: block;
  font-size: 1.17em;
  font-weight: bold;
  padding-top: 10px;

  /*font-size: 1rem;
  color: #333;*/
  text-align: center; /* Centers text under the image */
}

/*End of image grid*/








/* Adding a fooer to easily navigate between pages */

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    /*background-color: rgb(255, 241, 250);*/
}

/*End of footer code*/