body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f0f0f0;
font-family: Arial, sans-serif;
}
.container {
display: flex;
gap: 20px;
}
.btn {
position: relative;
display: inline-block;
padding: 15px 30px;
font-size: 18px;
color: white;
text-transform: uppercase;
text-decoration: none;
letter-spacing: 2px;
overflow: hidden;
transition: 0.5s;
border-radius: 30px;
z-index: 1;
}
.btn.green {
background-color: #4CAF50;
}
.btn.blue {
background-color: #2196F3;
}
.btn::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 300%;
height: 100%;
background: rgba(255, 255, 255, 0.3);
transform: skewX(-45deg);
transition: 0.5s;
z-index: -1;
}
.btn:hover::before {
left: 100%;
}
.btn:hover {
box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}