/*Base styles for PlumIT4U index_topic.php Menu*/
* {

  Box-sizing: border-box;
  Margin: 0;
  Padding: 0;
  font-family:Verdana, Geneva, Tahoma, sans-serif;


}


a:link {
  text-decoration: none;
}

a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:active {
  text-decoration: underline;
}


.logo {
    display: flex;
    align-items: center;

}

.logo img{
    height: 80px;
    width: auto;
    margin: 0.5rem 0 0 0;
    
}

/* Grid item logo image need to play around with the size of the image i think */
.grid-item img {
    height: 70px; /* Adjust the height as needed */
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 0.75rem;      
}

/*--- Navigation ---*/

nav ul  {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin-right: 0.5rem;
    /* text-decoration: none; */
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2 ease;
}

nav a:hover {
    color: #a3c4ff;
    /* text-decoration: none; */
}


/*--- Main Content Styles ---*/
main {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  padding: 2rem 2rem 2rem; /* Adjusted for fixed header */
  background-color: #f9f9f9;
  min-height: 100vh;

}

.grid-item {
  background-color: #f2f2f2;
  border: 1px solid #ddd;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem; /* Increased padding for better spacing */
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, background-color 0.2s;
  word-wrap: break-word;

}


.grid-item:hover {
  transform:scale(1.03);
  background-color: #e6f0ff;  
} 

.grid-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #003366;
  text-align: center;

}

.grid-item p {
  text-align: center;
  font-size: 0.9rem;
  color: #333;
}


/*--- Footer Styles ---*/
footer {
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

