body {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100vh;
    background-color: #222;
    color: #fff;
    flex-wrap: wrap;
}

button {
    padding: 20px 40px;
    font-size: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.5s;
    position: relative;
    overflow: hidden;
    color: #fff;
    margin: 10px;
}

/* Existing button styles... */
body {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100vh;
    background-color: #222;
    color: #fff;
}

button {
    padding: 20px 40px;
    font-size: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.5s;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.button1 {
    background: #9c27b0;
}

.button1:before {
    content: '';
    position: absolute;
    background: #673ab7;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    left: -50px;
    top: -50px;
    transform: translate(-50%, -50%);
    transition: all 0.5s;
}

.button1:hover:before {
    width: 500px;
    height: 500px;
    left: 50%;
    top: 50%;
}

.button2 {
    background: #f44336;
    perspective: 800px;
}

.button2:after {
    content: 'Clicked!';
    position: absolute;
    background: #e91e63;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    line-height: 70px;
    color: #fff;
    text-align: center;
    transform: rotateX(-90deg);
    transition: all 0.5s;
}

.button2:hover:after {
    transform: rotateX(0deg);
}

.button3 {
    background: #3f51b5;
    box-shadow: 0 0 20px #3f51b5, 0 0 50px #3f51b5, 0 0 80px #3f51b5, 0 0 100px #3f51b5;
}

.button3:hover {
    background: #673ab7;
    box-shadow: 0 0 20px #673ab7, 0 0 50px #673ab7, 0 0 80px #673ab7, 0 0 100px #673ab7;
}


.button4 {
    background: linear-gradient(60deg, #ff3cac, #784ba0, #2b86c5);
    background-size: 200% 200%;
    animation: gradient 5s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.button5 {
    background: #f9d423;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-30px); }
    60% { transform: translateY(-15px); }
}

.button6 {
    background: #ff5722;
}

.button6:after {
    content: "";
    background: rgba(255, 255, 255, .5);
    display: block;
    position: absolute;
    padding-top: 300%;
    padding-left: 350%;
    margin-left: -20px !important;
    margin-top: -120%;
    opacity: 0;
    transition: all 0.8s
}

.button6:active:after {
    padding: 0;
    margin: 0;
    opacity: 1;
    transition: 0s
}

.button7 {
    background: #e91e63;
    transition: transform 0.5s;
}

.button7:hover {
    transform: rotate(360deg);
}

.button8 {
    background: #009688;
    overflow: hidden;
}

.button8 span {
    position: absolute;
    padding: 20px 40px;
    transition: all 0.5s;
    left: 100%;
    top: 0;
}

.button8:hover span {
    left: 0;
}

.button9 {
    background: transparent;
    border: 2px solid #4caf50;
    color: #4caf50;
}

.button9:hover {
    background: #4caf50;
    color: #fff;
}

.button10 {
    background: #673ab7;
    box-shadow: 0px 0px 5px rgba(0,0,0,0.3);
    transition: box-shadow 0.5s;
}

.button10:hover {
    box-shadow: 0px 0px 15px rgba(0,0,0,0.6);
}

.button11 {
    background: #ff5722;
    transition: transform 0.5s;
}

.button11:hover {
    transform: scaleX(-1);
}

.button12 {
    background: #9c27b0;
    transition: transform 0.1s;
}

.button12:hover {
    transform: rotate(5deg) scale(1.1);
}

.button13 {
    background: #e91e63;
    transition: background 0.5s;
}

.button13:hover {
    background: #2196f3;
}

.button14 {
    background: #607d8b;
    transition: filter 0.5s;
}

.button14:hover {
    filter: blur(2px);
}

.button15 {
    background: #795548;
    transition: transform 0.5s;
}

.button15:hover {
    transform: scale(1.2);
}

.button16 {
    background: #9e9e9e;
    transition: transform 0.5s;
}

.button16:hover {
    transform: rotate(360deg);
}

.button17 {
    background: #ffeb3b;
    transition: opacity 0.5s;
}

.button17:hover {
    opacity: 0.5;
}

.button18 {
    background: #3f51b5;
    overflow: hidden;
}

.button18:hover {
    padding-top: 60px;
    padding-bottom: 0;
}
