body {
    font-family: 'Afacad', sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f4f0; 
    color: #3e3e3e; 
}

header, footer {
    text-align: center;
    padding: 1rem;
    background-color: #d3c1ae; 
    color: white;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

header p{
    font-size: 1.3em;
}

main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 2rem;
}

.project {
    margin: 1rem;
    width: calc(33.333% - 2rem);
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden; 
}

.preview {
    width: 100%;
    display: block;
    height: 200px; 
    object-fit: cover; 
}

.description {
    padding: 0.5rem;
    font-size: 0.9em;
    color: rgb(78, 78, 78);
    margin: 0;
    text-align: left; 
    height: 60px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

footer p {
    margin: 0;
    font-size: 1em;
}

footer {
    color: #d3c1ae;
    background-color: #f5f4f0;
}

@media (max-width: 768px) {
    .project {
        width: calc(50% - 2rem);
    }
}

@media (max-width: 480px) {
    .project {
        width: 100%;
    }
}
