mirror of
https://github.com/Alvin-Zilverstand/ict-algemeen-opdrachten.git
synced 2026-03-06 11:06:59 +01:00
60 lines
1.0 KiB
CSS
60 lines
1.0 KiB
CSS
/* Basisstijl voor de body */
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100vh;
|
|
background-color: #f0f0f0;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Stijl voor de koptekst */
|
|
h1 {
|
|
color: #333;
|
|
}
|
|
|
|
/* Stijl voor de invoer en knop */
|
|
input, button {
|
|
padding: 10px;
|
|
margin: 5px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
/* Stijl voor het resultaatbericht */
|
|
#result {
|
|
margin-top: 20px;
|
|
font-size: 18px;
|
|
color: #555;
|
|
}
|
|
|
|
/* Stijl voor de confetti-container */
|
|
#confetti-container {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Stijl voor de confetti-elementen */
|
|
.confetti {
|
|
position: absolute;
|
|
width: 10px;
|
|
height: 10px;
|
|
animation: fall 3s linear infinite;
|
|
}
|
|
|
|
/* Animatie voor de vallende confetti */
|
|
@keyframes fall {
|
|
0% {
|
|
transform: translateY(-100vh) rotate(0deg);
|
|
}
|
|
100% {
|
|
transform: translateY(100vh) rotate(360deg);
|
|
}
|
|
}
|