* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    background-color: #d9dcd6;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

main {
    display: flex;
    flex-wrap: wrap;
    margin: auto;
}

header {
    padding: 20px;
    background-color: #2a607c;
    color: #ffffff;
    position: sticky;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 1000;
}

header nav {
    margin-left: 10px;
    align-self: center;
}

header nav a {
    margin-left: 20px;
    align-items: center;
}

header h1 {
    font-size: 35px;
    margin-right: 20px;
}

header h1 .seo {
    color: #d9dcd6;
}

a {
    color: #ffffff;
    text-decoration: none;
}

p {
    font-size: 16px;
}

.hero {
    width: 100%;
    margin-bottom: 25px;
    background-color: whitesmoke;
    text-align: center;
    padding: 20px;

}

.hero-image {
    border-radius: 5px;
}

.content {
    margin-left: 20px;
    margin-right: 10px;
}

/* Main content blocks */
.section {
    margin-bottom: 20px;
    padding: 50px 20px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: darkslategray;
    display: flex;
    flex-direction: row;
    width: 100%;
}

.section h2 {
    flex: none;
    margin-bottom: 20px;
    font-size: 36px;
    width: 20%;
    text-align: right;
    padding-right: 20px;
    border-right: 2px solid black;
    margin-right: 20px;

}

/* Styles specific to the about me section */
.about-me p {
    font-size: 24px;
}

/* Styles specific to the contact me section */
.contact-me a {
    font-size: 36px;
    color: darkslategray;
    margin-left: 30px;
    text-align: center;
    text-decoration: underline;
}

/* Styles specific to the work section */
.work-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2%;

}

/* Individual work item image */
.work-item {
    height: 300px;
    overflow: hidden;
    border: 2px solid gray;
    border-radius: 10px;
}

.work-item p {
    z-index: 10;
    position: relative;
    top: -60px;
    background-color: #2a607c;
    padding: 8px;
    display: inline;
    font-size: 24px;
}

.work-item:first-child {
    width: 98%;
}

.work-item:not(:first-child) {
    width: 31.333%;
}

.work-item img {
    height: 100%;
    width: 100%;
    padding: 0px;

}

/* Sticky footer at the bottom */
footer {
    height: 80px;
    background-color: #2a607c;
    position: sticky;
    bottom: 0;
    width: 100%;
    text-align: center;
    color: whitesmoke;
    padding-top: 20px;
}