/* Global */
body {
    margin: 2rem;
    background: #f9f9f9;
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    padding-bottom: 100px;
    display: block;
	
	background-image: url('background.png'); /* replace with your file path */
    background-size: cover;      /* make it fill the screen */
    background-position: center; /* center the image */
    background-repeat: no-repeat;
    background-attachment: fixed; /* <--- keeps it from moving when scrolling */
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;  /* centres the grid horizontally */
}

/* Project container */
.projectblock {
    display: flex;
    flex-direction: column;   /* stack children vertically */
    justify-content: flex-start;
    align-items: stretch;

    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    max-width: 400px;
}

.projectblock:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

/* Thumbnail at top */
.thumbnail {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

/* Description expands as needed */
.description {
    font-size: 0.95rem;
    color: #555;
    margin: 0 0 0.75rem 0;
    flex-grow: 1;   /* take up remaining space */
}

/* URL always at bottom */
.projecturl {
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05rem;
    color: #0077cc;
    transition: color 0.2s ease;
    margin-top: auto;   /* pushes link to bottom */
}

.projecturl:hover {
    color: #005999;
    text-decoration: underline;
}
