kelompok06-2048/Homepage_Button.css
Evelyn Sucitro f208ac7782 Update
2025-12-18 09:36:10 +07:00

188 lines
4.9 KiB
CSS

.btn {
padding: 14px 35px;
border: none;
border-radius: 15px;
font-weight: 700;
font-size: 16px;
cursor: pointer;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
text-decoration: none;
display: inline-block;
text-align: center;
text-transform: uppercase;
letter-spacing: 2.5px;
font-family: 'Orbitron', sans-serif;
position: relative;
overflow: hidden;
}
.btn::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
border-radius: 50%;
background: rgba(255, 255, 255, 0.2);
transform: translate(-50%, -50%);
transition: width 0.6s, height 0.6s;
}
.btn:hover::before {
width: 300px;
height: 300px;
}
.btn-primary {
background: linear-gradient(135deg, #00eaff, #ff00ff);
color: #fff;
font-weight: 900;
box-shadow: 0 6px 30px rgba(0, 217, 255, 0.5);
position: relative;
z-index: 1;
}
.btn-primary:hover {
box-shadow: 0 10px 45px rgba(0, 217, 255, 0.8), 0 0 30px rgba(255, 0, 255, 0.6);
transform: translateY(-4px) scale(1.05);
}
.btn-login {
background: linear-gradient(135deg, #00eaff, #0099ff);
color: #fff;
font-weight: 900;
box-shadow: 0 6px 30px rgba(0, 234, 255, 0.7), 0 0 20px rgba(0, 153, 255, 0.5);
border: 2px solid rgba(0, 234, 255, 0.5);
position: relative;
z-index: 1;
animation: loginPulse 2s ease-in-out infinite;
}
@keyframes loginPulse {
0%, 100% { box-shadow: 0 6px 30px rgba(0, 234, 255, 0.7), 0 0 20px rgba(0, 153, 255, 0.5); }
50% { box-shadow: 0 8px 40px rgba(0, 234, 255, 0.9), 0 0 35px rgba(0, 153, 255, 0.7); }
}
.btn-login:hover {
background: linear-gradient(135deg, #7d0dde, #00aaff);
box-shadow: 0 12px 50px rgb(117, 3, 230), 0 0 50px rgba(0, 153, 255, 0.9);
transform: translateY(-5px) scale(1.1);
border-color: rgba(0, 255, 255, 0.8);
}
.btn-cta {
padding: 18px 45px;
font-size: 19px;
border-radius: 15px;
font-weight: 900;
text-transform: uppercase;
letter-spacing: 3px;
border: none;
font-family: 'Orbitron', sans-serif;
position: relative;
overflow: hidden;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-cta::after {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
transform: rotate(45deg);
animation: buttonShine 3s infinite;
}
@keyframes buttonShine {
0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}
.btn-play {
background: linear-gradient(135deg, #ff00ff, #ff0066);
box-shadow: 0 6px 35px rgba(255, 0, 255, 0.6);
color: #fff;
}
.btn-play:hover {
transform: translateY(-5px) scale(1.08);
box-shadow: 0 12px 50px rgba(255, 0, 255, 0.9), 0 0 40px rgba(255, 0, 102, 0.7);
}
.btn-leaderboard {
background: linear-gradient(135deg, #ffd700, #ffaa00);
color: #0c001a;
box-shadow: 0 6px 35px rgba(255, 215, 0, 0.6);
}
.btn-leaderboard:hover {
transform: translateY(-5px) scale(1.08);
box-shadow: 0 12px 50px rgba(255, 215, 0, 0.9), 0 0 40px rgba(255, 170, 0, 0.7);
}
.btn-logout {
background: linear-gradient(135deg, #ff0066, #cc0033) !important;
color: #fff !important;
font-weight: 900;
box-shadow: 0 6px 30px rgba(255, 0, 102, 0.7), 0 0 20px rgba(204, 0, 51, 0.5);
border: 2px solid rgba(255, 0, 102, 0.5);
position: relative;
z-index: 1;
animation: logoutPulse 2s ease-in-out infinite;
}
@keyframes logoutPulse {
0%, 100% { box-shadow: 0 6px 30px rgba(255, 0, 102, 0.7), 0 0 20px rgba(204, 0, 51, 0.5); }
50% { box-shadow: 0 8px 40px rgba(255, 0, 102, 0.9), 0 0 35px rgba(204, 0, 51, 0.7); }
}
.btn-logout:hover {
background: linear-gradient(135deg, #ff0088, #dd0044) !important;
box-shadow: 0 12px 50px rgba(255, 0, 102, 1), 0 0 50px rgba(204, 0, 51, 0.9);
transform: translateY(-5px) scale(1.1);
border-color: rgba(255, 0, 102, 0.8);
}
.btn-logout-cancel, .btn-logout-confirm {
padding: 14px 32px;
border: none;
border-radius: 12px;
font-weight: 800;
font-size: 15px;
font-family: 'Orbitron', sans-serif;
cursor: pointer;
text-transform: uppercase;
letter-spacing: 2px;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-logout-cancel {
background: rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.9);
border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-logout-cancel:hover {
background: rgba(255, 255, 255, 0.15);
border-color: rgba(255, 255, 255, 0.5);
transform: translateY(-2px);
box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}
.btn-logout-confirm {
background: linear-gradient(135deg, #ff0066, #cc0033);
color: #fff;
border: 2px solid rgba(255, 0, 102, 0.6);
box-shadow: 0 4px 20px rgba(255, 0, 102, 0.5);
}
.btn-logout-confirm:hover {
background: linear-gradient(135deg, #ff0088, #dd0044);
transform: translateY(-2px);
box-shadow: 0 8px 30px rgba(255, 0, 102, 0.7);
border-color: rgba(255, 0, 102, 0.9);
}