/* body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
} */

.grid-container {
    display: grid;
    /*  grid-template-columns: repeat(5, 1fr); Define three columns by default */
    grid-template-columns: repeat(auto-fit, minmax(250px, 250px)); /* Columns are at least 250px, grow to 1fr */
    gap: 20px; /* Space between tiles */
    padding-left: 20px; /* Padding around the grid container */
    padding-right: 20px; /* Padding around the grid container */
    padding-bottom: 20px; /* Padding around the grid container */
    /* margin: 0 auto;  Centers the grid container horizontally */
    /* max-width: 90%;  Sets the grid to take up 90% of the page width */
    justify-content: center;
}

.grid-item {
    background-color: #e6e6e6;
    color: #2c2c2c;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    text-decoration: none; /* Removes underline from links */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Subtle shadow for depth */
    transition: background-color 0.1s ease, border-color 0.1s ease; /* Smooth transitions for hover effects */
    border: 1px solid transparent; /* Invisible border to maintain consistent size */
    text-decoration: none !important;
    width: 250px; /* Explicitly setting the width ensures the item does not stretch */

}

.grid-item img {


    width: auto; /* Allows the image to maintain its aspect ratio */
    max-width: 80px; /* Maximum width to maintain layout consistency */
    height: 80px; /* Fixed height container */
    object-fit: scale-down; /* Ensures smaller images are not stretched */
    margin-bottom: 10px;
}

.grid-item-title {
    margin-top: 5px 0; /* Space around the header */
    font-size: 1.3em;
    font-weight: 800;
}

.grid-item p {
     /* Font size of paragraph */
    /* font-size: 14px; */
    margin: 10px;
}

.grid-item:hover {
    background-color: #fafafa; /* Keeps the background color same on hover */
    border-color: #ccc; /* Changes border color to light grey on hover */
}

/* Responsive adjustments for smaller screens */



@media (max-width: 768px) {
    .grid-container {
        /* grid-template-columns: 1fr; Change to single column layout for mobile */
        max-width: 100%; /* Allows the grid container to expand to full width */
        padding: 20px;  /* Consistent padding to maintain spacing on the sides */
        justify-content: center;
    }
    
}
