Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
108 lines (95 loc) · 1.6 KB
/
Copy pathstyles.css
File metadata and controls
108 lines (95 loc) · 1.6 KB
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
body {
margin: 0;
padding: 0;
background: linear-gradient(to right, #ff9a9e, #fad0c4);
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
font-family: 'Comic Sans MS', cursive, sans-serif;
}
.container {
background: white;
padding: 30px;
border-radius: 20px;
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
text-align: center;
position: relative;
width: 300px;
}
h1 {
font-size: 24px;
color: #d6336c;
margin-bottom: 20px;
}
.buttons {
display: flex;
justify-content: space-between;
margin-top: 20px;
}
button {
padding: 10px 20px;
border: none;
border-radius: 30px;
font-size: 16px;
cursor: pointer;
transition: 0.3s;
}
#yesBtn {
background: #ff6b81;
color: white;
}
#noBtn {
background: #ccc;
color: #333;
position: relative;
}
.heart {
position: absolute;
width: 20px;
height: 20px;
background: red;
transform: rotate(45deg);
animation: float 5s infinite ease-in-out;
}
.heart::before,
.heart::after {
content: '';
position: absolute;
width: 20px;
height: 20px;
background: red;
border-radius: 50%;
}
.heart::before {
top: -10px;
left: 0;
}
.heart::after {
left: -10px;
top: 0;
}
@keyframes float {
0% {
transform: translateY(0) rotate(45deg);
opacity: 1;
}
100% {
transform: translateY(-800px) rotate(45deg);
opacity: 0;
}
}
.confetti {
position: fixed;
width: 10px;
height: 10px;
background: gold;
animation: confetti-fall 2s ease-out forwards;
}
@keyframes confetti-fall {
to {
transform: translateY(100vh) rotate(720deg);
opacity: 0;
}
}