* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
}


main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    width: 80%;
    max-width: 1200px;
}


.transform {
    width: 30%;
    margin: 20px;
    text-align: center;
}

.transform h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.transform p {
    font-size: 14px;
    margin-bottom: 20px;
}


.box {
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    background-color: #ecf0f1;
    transition: transform 1s ease; 
}


.inner-box {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    color: white;
    text-align: center;
}


.translate .inner-box {
    background-color: #3498db;
}

.rotate .inner-box {
    background-color: #3498db;
}

.scale .inner-box {
    background-color: #3498db;
}

.skew .inner-box {
    background-color: #3498db;
}

.matrix .inner-box {
    background-color: #3498db;
}



.box:hover .inner-box {
    transform: scale(1.1); 
}

.translate:hover .inner-box {
    transform: translate(50px, 100px);
}

.rotate:hover .inner-box {
    transform: rotate(45deg);
}

.scale:hover .inner-box {
    transform: scale(1.5);
}

.skew:hover .inner-box {
    transform: skew(20deg, 10deg);
}

.matrix:hover .inner-box {
    transform: matrix(1, 0.5, 0.5, 1, 100, 100);
}