header {
background-color: #4CAF50;
color: white;
text-align: center;
padding: 1rem 0;
}
.container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1rem;
padding: 2rem;
}
.project {
background-color: #f9f9f9;
border: 1px solid #ddd;
border-radius: 8px;
padding: 1rem;
text-align: center;
transition: transform 0.3s ease;
}
.project:hover {
transform: scale(1.05);
}
.project img {
max-width: 100%;
height: auto;
border-radius: 8px;
}
footer {
background-color: #333;
color: white;
text-align: left;
padding: 1rem;
position: fixed;
bottom: 0;
left: 0;
width: 100%;
}
footer span {
font-size: 0.8rem;
}
#interactive-module {
margin: 2rem auto;
text-align: center;
}
button {
background-color: #4CAF50;
color: white;
padding: 0.5rem 1rem;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #45a049;
}
.dynamic-message {
margin-top: 1rem;
font-size: 1.2rem;
color: #333;
}
</style>
<script>
function showMessage() {
const messageDiv = document.getElementById('dynamic-message');
messageDiv.textContent = 'You clicked the button! This is a dynamic interaction.';
}
</script>
