/* General styling for the entire webpage. */
.main-container {
    padding: 20px;
    max-width: 1400px;  /* Set a maximum width of the webpage. This corresponds to five projects on the same line. */
    margin: 0 auto; /* Center the container. Only relevant if the screen size is wider than max-width. */
}

/* Title and intro text. */
.title {
    font-size: 3.0rem; /* rem is relative size, e.g. 1 rem = 16px */
    font-weight: bold;
    text-align: center;
    padding: 20px 0px 0px 0px;
    color: #1e3a8a;

}

.intro-text {
    font-size: 1.2rem;
    text-align: center;
    color: #0f172a;
}


/* Add a gray background for each category, and style the category title. */
.category {
    background-color: #e0e7ff;
    padding: 10px 20px 40px 20px;
    border: 1px solid #ddd;
    border-radius: 20px;
}
.category-title {
    font-size: 1.5rem;
    color: #1e3a8a;
    padding: 0px 10px ;
}


/* Define grid. Each project tile will fill one square of the grid. */
.project-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(220px, 1fr)
    );
    gap: 20px;
}


/* Make each href (each <a> element) visually look like a clickable tile. */
.project-tile {
    display: block;
    padding: 20px;
    min-height: 140px;
    text-align: center;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}
.project-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
    background-color: #bfdbfe;
    color: #0f172a;
}
.project-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1e3a8a;
}
.project-description {
    /* margin: 0; */
    /* font-style: italic; */
    color: #1f2937;
    /* line-height: 1.5; */
}
