:root {
    --white: #fff;
    --black: rgb(0,0,0);
    --tan: rgb(254, 135, 67);
    --green: rgb(98, 153, 74);
    --lightgreen: rgb(172, 227, 184);
    --darkgreen: rgb(10, 93, 10);
}
    
body {
    display: flex;
    flex-direction: column;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    line-height: 1.3;
    background-color: rgb(228, 238, 252);
    margin: 0;
}

main {
    width: 96%;
    margin: 2rem auto;
}

.image {
    background-image: url(https://thumbs.dreamstime.com/b/horizontal-banner-forest-background-silhouettes-trees-magical-misty-landscape-fog-green-yellow-illustration-225955264.jpg);
    height: 150px;
    width: 100%;
}

.photo-me {
    display: flex;
    margin-left: auto ;
    margin-right: auto;
    margin-top: 20px;
    border: 3px solid var(--green);
    height: 512px;
    width: 457px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1%;
    padding: 20px;
    width: 100%;
    font-weight: 40px;
    background-color: var(--green) ;
    color: var(--black);
}  

footer {
    font-size: 20px;
    width: 100%;
    padding: 20px;
    text-align: center;
    color: var(--tan);
    background-color: var(--darkgreen);
}

.lastname {
    font-size: 50px;
    font-weight: bold;
    color: var(--tan);
}


.nav ul {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    min-width: 400px;
    list-style-type: none;    

}

.nav a {
    font-weight: bold;
    text-decoration: none;
    color: var(--black);

}
.nav a:hover {
    color: var(--tan);
}

.content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    line-height: 40px;
    font-size: 20px;
    margin: 35px;
    color: var(--black);
}

h2:hover {
    color: var(--tan);
}

.projects {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding: 1.5rem;
}


.card-column {
    padding: 1.5rem;
    transition: flex-basis 500ms linear;
    margin-bottom: 1.5rem;
}

.dimg {
    box-sizing: border-box;
    width: 100%;
    background-image: url("../images/newspaper.webp");
    background-position: center;
    background-size: 363px;
}

.bimg{
    background-image: url("https://www.shakebugs.com/wp-content/uploads/2022/05/Benefits-of-teamwork-and-collaboration-for-software-development-teams.png");
    background-size: 400px;
    background-position: center;
    height: 182px;
}

.cimg {
    background-image: url("../images/sky.jpeg");
    background-position: center;
    height: 182px;
}
.aimg {
    box-sizing: border-box;
    background-image: url("https://as1.ftcdn.net/v2/jpg/01/20/65/62/1000_F_120656213_kecfCsmDjTEPEPIugbdwBHxLr6T70NCa.jpg");
    background-position: center;
    background-size: 363px;
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    color: var(--black);
    outline: 2px dashed var(--tan);
    outline-offset: -2px;
    height: 144px;
    transition: all 0.5s ease-in-out;
}

.card-body:hover {
    box-shadow: inset 0px 0px 20px var(--darkgreen);
}

.card-header {
    position: relative;
    margin: -4rem 0 1.5rem 0;
    padding: 0.5rem 1rem;
    background-color: var(--lightgreen);
    border: 2px solid var(--tan);
    border-radius: 8px;
}

.link {
    text-decoration: none; 
    color: var(--black);
}

.contact ul {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: flex-start;
    list-style-type: none;
    text-decoration-line: none;
}

@media screen and (max-width: 900px) { 
    .contact ul {
        display: flex;
        flex-direction: column;
    }

    .nav ul {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        margin: 255px; 
        height: 215px;   
    }
    
    .image {
        width: 100%;
    }
}

@media screen and (max-width: 500px) {
    .image, footer {
        width: 100%;
    }

    .nav ul {
        margin: 45px;
    }

    main {
        text-align: center;
    }

    .work {
        margin-left: 148px;
    }

}
