.container {
    display: flex;
    flex-flow: row wrap;
}



.box1, .container-box, .box3 {
    min-height: 100svh;
}

.box1, .box3{
    flex: 1 0 25%;
}

.container-box {
    flex: 1 0 50%;
    background-color: grey;
    display: flex;
    flex-direction: column;
}

.container-box div {
    flex: 1 0 50%;
    height: 50%;
}

.cd1 {
    background-color: green;
    /* background-image: url(../images/meracing.jpeg); */
    background-image: linear-gradient(blue, brown);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    
}
    

.cd2 {
    background-color: purple;
    /* background-image: url(../images/meracing2.jpeg); */
    background-image: linear-gradient(brown, #242);
    background-size: cover;
    /* background-position: center; */
    background-repeat: no-repeat;
    position: relative;
}


.cd2 h2 {
    margin-top: 0;
    padding-top: 10px;
    color: hotpink;
    text-align: center;
    position: relative;
    z-index: 1; 
}


.cd2 nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px; 
    position: relative;
    z-index: 0; 
    padding: 20px;
    
}



.box1 {
    background-color: yellow;
    background-image: url(../images/FullSizeRender.jpeg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

}



.box3 {
    background-color: blue;
    background-image: url(../images/IMG_1753.jpeg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f3f3f3;
}  */

h2 {
    text-align: center;
    color: rgb(120, 70, 0);
}

nav {
    display: flex;
    gap: 20px;
    text-align: center;
    position: absolute; top: 0; left: 50%;
    transform: translate(-50%, 0%);
}


nav a {
    position: relative;
    text-decoration: none;
    color: #02cf1d;
    /* background-color: #571a04; */
    font-size: 1.2rem;
    padding: 5px 0;
    transition: color 0.3s ease;
}

/* Add hover effect on the link color */
nav a:hover {
    color: #145919;
}

/* Create the underline effect */
nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #552e17;
    transition: width 0.3s ease;
}

/* Expand the underline on hover */
nav a:hover::after {
    width: 100%;
}

.work nav {
    position: absolute; bottom: 0; left: 0;
}


footer {
    background-color: #222;
    
    text-align: center;
}

footer a {
    position: relative;
    text-decoration: none;
    
    color: white;
    font-size: 1.2rem;
    padding: 5px 0;
    transition: color 0.3s ease;
    
}

.footer-social h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: white;
}

.footer-social ul {
    list-style-type: none;
    padding: 0;
}

.footer-social li {
    margin-bottom: 5px;
    list-style-type: none;
}

.footer-social a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9em;
}

.footer-social a:hover {
    text-decoration: underline;
}

footer p {
    font-size: 0.8em;
    margin-top: 20px;
    color: #bbb;
}