body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #fdf0f4;
    color: #333;
}


section {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}


/* part 1 styling */
.rel-box {
    position: relative;
    top: 10px;
    left: 20px;
    background-color: #ffe6ec;
    padding: 10px;
    width: 200px;
    border: 1px solid #d4b4c4;
}


.abs-box {
    position: absolute;
    top: 220px;
    right: 50px;
    background-color: #e6f0ff;
    padding: 10px;
    width: 200px;
    border: 1px solid #b4c8d4;
}


.fix-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #fff3cd;
    padding: 10px;
    width: 180px;
    border: 1px solid #ffeeba;
    z-index: 99;
}


/* part 2 Z-Index and column Styles */
.z-container {
    position: relative;
    height: 120px;
    margin-top: 15px;
    margin-bottom: 30px;
}


.box {
    padding: 15px;
    color: white;
    font-weight: bold;
    border-radius: 4px;
}


.z1 {
    position: absolute;
    background-color: #d9534f;
    top: 0;
    left: 0;
    z-index: 1;
    width: 150px;
}


.z2 {
    position: absolute;
    background-color: #0275d8;
    top: 20px;
    left: 40px;
    z-index: 2;
    width: 150px;
}


.my-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}



.col {
    background: #faf5f7;
    padding: 15px;
    border: 1px solid #ebd4de;
    border-radius: 6px;
}


.col img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}


/* Media queries for responsiveness */
@media (max-width: 900px) {
    .my-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}



@media (max-width: 600px) {
    .my-columns {
        grid-template-columns: 1fr;
    }
}