body {
    font-family: Arial, sans-serif;
    padding: 20px;
}

div {
    margin: 20px 0;
    padding: 20px;
    width: 180px;
    text-align: center;
}

/* Transition example */
.transition-box {
    background-color: lightblue;
    transition: 1s;
}

.transition-box:hover {
    background-color: lightgreen;
    width: 250px;
    border: 3px solid black;
}

/* Continuous timed animation */
.moving-box {
    background-color: orange;
    position: relative;
    animation: moveBox 3s infinite;
}

@keyframes moveBox {
    0% {
        left: 0px;
    }

    50% {
        left: 200px;
    }

    100% {
        left: 0px;
    }
}

/* Hover animation */
.hover-animation {
    background-color: pink;
}

.hover-animation:hover {
    animation: growBox 2s;
}

@keyframes growBox {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* Gradient background */
.gradient-box {
    background: linear-gradient(to right, lightblue, purple);
    color: white;
}
