Spaces:
Running
Running
File size: 1,356 Bytes
13f17c9 8f231d6 a4218a7 8f231d6 a4218a7 13f17c9 8f231d6 a4218a7 8f231d6 a4218a7 8f231d6 a4218a7 8f231d6 a4218a7 8f231d6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
/* Base styles */
body {
font-family: 'Poppins', sans-serif;
}
/* Blinking animation */
@keyframes blink {
0%, 100% { opacity: 1; }
50% { opacity: 0; }
}
.hovered-element {
animation: blink 1.5s infinite;
}
/* Wheel animation */
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(3600deg);
}
}
.wheel {
transform: rotate(0deg);
}
.wheel.spinning {
animation: spin 5s cubic-bezier(0.17, 0.67, 0.21, 0.99) forwards;
}
/* Wheel segments */
.wheel-segment {
position: absolute;
width: 50%;
height: 50%;
transform-origin: bottom right;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: bold;
overflow: hidden;
}
/* Result modal */
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 100;
justify-content: center;
align-items: center;
}
.modal-content {
background-color: white;
padding: 2rem;
border-radius: 1rem;
max-width: 90%;
text-align: center;
animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
} |