* {
    margin: 0;
    padding: 8px;
}

body {
    font-family: "Poppins", sans-serif;


}

.container {
    display: flex;
    gap: 20px;
    background-color: rgb(233, 228, 228);
    padding: 15px;
    /* width: 90%; */
    margin: auto;
    /* padding: 15px; */
    grid-template-columns: repeat(4, 1fr);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 50px;
    margin-top: 20px;



}

@media screen and(max-width:768px) {
    .container {
        width: 95%;
        padding: 0px;
    }

}

.box1 {
    width: 300px;
    height: 40px;
    color: aqua;
    background-color: aquamarine;
    border-radius: 15px;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;

}

.box2 {
    width: 300px;
    height: 40px;
    color: aqua;
    background-color: aquamarine;
    border-radius: 15px;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;

}

.box3 {
    width: 300px;
    height: 40px;
    color: aqua;
    background-color: aquamarine;
    border-radius: 15px;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
}

.box4 {
    width: 300px;
    height: 40px;
    color: aqua;
    background-color: aquamarine;
    border-radius: 15px;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container2 {
    display: flex;
    gap: 20px;
    background-color: rgb(240, 226, 226);
    padding: 20px;
    grid-template-columns: repeat(5, 1fr);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 20px;
}

.grid1 {
    width: 250px;
    height: 40px;
    background-color: violet;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;

}

.grid1:hover {
    transform: scale(1.1) rotate(5deg);
    animation: shake ease-in-out infinite;

}

@keyframes shake {}

    {
    from {
        opacity: 0.6;
        transform: translateY(0);
    }

    to {
        opacity: 1;
        transform: translateY(-10px);
    }
}

.grid2 {
    width: 250px;
    height: 40px;
    background-color: violet;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;

}

.grid2:hover {
    transform: scale(1.1) rotate(5deg);
    animation: shake ease-in-out infinite;

}

@keyframes shake {}

    {
    from {
        opacity: 0.6;
        transform: translateY(0);
    }

    to {
        opacity: 1;
        transform: translateY(-10px);
    }
}

.grid3 {
    width: 250px;
    height: 40px;
    background-color: violet;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;

}

.grid3:hover {
    transform: scale(1.1) rotate(5deg);
    animation: shake ease-in-out infinite;

}

@keyframes shake {}

    {
    from {
        opacity: 0.6;
        transform: translateY(0);
    }

    to {
        opacity: 1;
        transform: translateY(-10px);
    }
}

.grid4 {
    width: 250px;
    height: 40px;
    background-color: violet;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;

}

.grid4:hover {
    transform: scale(1.1) rotate(5deg);
    animation: shake ease-in-out infinite;

}

@keyframes shake {}

    {
    from {
        opacity: 0.6;
        transform: translateY(0);
    }

    to {
        opacity: 1;
        transform: translateY(-10px);
    }
}

.grid5 {
    width: 250px;
    height: 40px;
    background-color: violet;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;

}

.grid5:hover {
    transform: scale(1.1) rotate(5deg);
    animation: shake ease-in-out infinite;

}

@keyframes shake {}

    {
    from {
        opacity: 0.6;
        transform: translateY(0);
    }

    to {
        opacity: 1;
        transform: translateY(-10px);
    }
}