92 lines
1.6 KiB
CSS
92 lines
1.6 KiB
CSS
:root {
|
|
--clr-one: rgb(255, 20, 147);
|
|
--clr-two: rgb(127, 255, 0);
|
|
--clr-three: rgb(138, 43, 226);
|
|
--clr-bg: #1d1e22;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
}
|
|
|
|
body {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
background: var(--clr-bg);
|
|
font-family: "Balsamiq Sans", cursive;
|
|
padding: 2rem;
|
|
}
|
|
|
|
h1, p {
|
|
color: white;
|
|
text-align: center;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.buttons {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 1rem;
|
|
justify-content: center;
|
|
}
|
|
|
|
.neon-button {
|
|
font-size: 1rem;
|
|
text-decoration: none;
|
|
padding: 0.75em 1.5em;
|
|
border-radius: 0.25em;
|
|
position: relative;
|
|
transition: 0.3s ease;
|
|
background: transparent;
|
|
color: inherit;
|
|
font-weight: bold;
|
|
text-shadow: 0 0 0.5em currentColor;
|
|
border: 2px solid currentColor;
|
|
}
|
|
|
|
/* Farben */
|
|
.neon-button__1 {
|
|
color: var(--clr-one);
|
|
box-shadow: 0 0 0.6em var(--clr-one);
|
|
}
|
|
.neon-button__2 {
|
|
color: var(--clr-two);
|
|
box-shadow: 0 0 0.6em var(--clr-two);
|
|
}
|
|
.neon-button__3 {
|
|
color: var(--clr-three);
|
|
box-shadow: 0 0 0.6em var(--clr-three);
|
|
}
|
|
|
|
.neon-button:hover,
|
|
.neon-button:focus {
|
|
background-color: currentColor;
|
|
color: #000;
|
|
text-shadow: none;
|
|
box-shadow:
|
|
0 0 0.7em currentColor,
|
|
0 0 1.5em currentColor,
|
|
inset 0 0 1em currentColor;
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.neon-button:active {
|
|
animation: bounce 0.4s ease;
|
|
}
|
|
|
|
@keyframes bounce {
|
|
0% { transform: translateY(0); }
|
|
50% { transform: translateY(-8px); }
|
|
100% { transform: translateY(0); }
|
|
}
|