* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #900b18 0%, #764ba2 100%);
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 40px 20px;
}
.header {
text-align: center;
margin-bottom: 50px;
color: white;
}
.header h1 {
font-size: 3rem;
font-weight: 300;
margin-bottom: 10px;
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.header p {
font-size: 1.1rem;
opacity: 0.9;
}
.button-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 30px;
max-width: 1200px;
width: 100%;
padding: 20px;
}
.button-card {
background: white;
padding: 30px;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
}
.button-label {
font-weight: 600;
color: #333;
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 1px;
}
/* Button 1: Gradient Shine */
.btn-gradient {
padding: 15px 40px;
font-size: 1rem;
font-weight: 600;
color: white;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border: none;
border-radius: 50px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
.btn-gradient:hover {
transform: translateY(-3px);
box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}
.btn-gradient:active {
transform: translateY(-1px);
}
/* Button 2: Neon Glow */
.btn-neon {
padding: 15px 40px;
font-size: 1rem;
font-weight: 600;
color: #00f7ff;
background: transparent;
border: 2px solid #00f7ff;
border-radius: 50px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 0 10px #00f7ff;
}
.btn-neon:hover {
color: #000;
background: #00f7ff;
box-shadow: 0 0 30px #00f7ff, 0 0 60px #00f7ff;
}
/* Button 3: 3D Effect */
.btn-3d {
padding: 15px 40px;
font-size: 1rem;
font-weight: 600;
color: white;
background: #ff6b6b;
border: none;
border-radius: 10px;
cursor: pointer;
box-shadow: 0 6px 0 #c92a2a, 0 8px 20px rgba(201, 42, 42, 0.4);
transition: all 0.1s ease;
}
.btn-3d:hover {
transform: translateY(2px);
box-shadow: 0 4px 0 #c92a2a, 0 6px 15px rgba(201, 42, 42, 0.4);
}
.btn-3d:active {
transform: translateY(6px);
box-shadow: 0 0 0 #c92a2a, 0 2px 10px rgba(201, 42, 42, 0.4);
}
/* Button 4: Glass Morphism */
.btn-glass {
padding: 15px 40px;
font-size: 1rem;
font-weight: 600;
color: white;
background: rgba(255, 255, 255, 0.1);
border: 2px solid rgba(255, 255, 255, 0.3);
border-radius: 15px;
cursor: pointer;
backdrop-filter: blur(10px);
transition: all 0.3s ease;
}
.btn-glass:hover {
background: rgba(255, 255, 255, 0.2);
border-color: rgba(255, 255, 255, 0.5);
transform: translateY(-3px);
box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}
/* Button 5: Slide Fill */
.btn-slide {
padding: 15px 40px;
font-size: 1rem;
font-weight: 600;
color: #4ecdc4;
background: transparent;
border: 2px solid #4ecdc4;
border-radius: 50px;
cursor: pointer;
position: relative;
overflow: hidden;
transition: color 0.3s ease;
z-index: 1;
}
.btn-slide::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: #4ecdc4;
transition: left 0.3s ease;
z-index: -1;
}
.btn-slide:hover::before {
left: 0;
}
.btn-slide:hover {
color: white;
}
/* Button 6: Border Animation */
.btn-border {
padding: 15px 40px;
font-size: 1rem;
font-weight: 600;
color: #f06292;
background: transparent;
border: 2px solid #f06292;
border-radius: 10px;
cursor: pointer;
position: relative;
transition: all 0.3s ease;
}
.btn-border::before,
.btn-border::after {
content: '';
position: absolute;
width: 0;
height: 0;
transition: all 0.3s ease;
}
.btn-border::before {
top: -2px;
left: -2px;
border-top: 2px solid #f06292;
border-left: 2px solid #f06292;
}
.btn-border::after {
bottom: -2px;
right: -2px;
border-bottom: 2px solid #f06292;
border-right: 2px solid #f06292;
}
.btn-border:hover::before,
.btn-border:hover::after {
width: calc(100% + 4px);
height: calc(100% + 4px);
}
.btn-border:hover {
background: #f06292;
color: white;
}
/* Button 7: Ripple Effect */
.btn-ripple {
padding: 15px 40px;
font-size: 1rem;
font-weight: 600;
color: white;
background: #9c27b0;
border: none;
border-radius: 50px;
cursor: pointer;
position: relative;
overflow: hidden;
transition: all 0.3s ease;
}
.btn-ripple::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
border-radius: 50%;
background: rgba(255, 255, 255, 0.5);
transform: translate(-50%, -50%);
transition: width 0.6s, height 0.6s;
}
.btn-ripple:hover::before {
width: 300px;
height: 300px;
}
.btn-ripple:hover {
box-shadow: 0 6px 20px rgba(156, 39, 176, 0.5);
}
/* Button 8: Split */
.btn-split {
padding: 15px 40px;
font-size: 1rem;
font-weight: 600;
color: white;
background: #ff9800;
border: none;
border-radius: 10px;
cursor: pointer;
position: relative;
overflow: hidden;
transition: all 0.3s ease;
}
.btn-split::before {
content: '';
position: absolute;
top: 0;
left: 50%;
width: 0;
height: 100%;
background: #e65100;
transition: all 0.3s ease;
transform: translateX(-50%);
}
.btn-split:hover::before {
width: 100%;
}
.btn-split:hover {
color: white;
}
.btn-split span {
position: relative;
z-index: 1;
}
@media (max-width: 768px) {
.header h1 {
font-size: 2rem;
}
.button-grid {
grid-template-columns: 1fr;
gap: 20px;
}
}
No comments yet. Be the first!