-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
107 lines (94 loc) · 1.87 KB
/
styles.css
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
body {
margin: 0;
font-family: 'Arial', sans-serif;
background: linear-gradient(to bottom, #ff9a9e, #fad0c4);
color: #fff;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
overflow: hidden;
}
.container {
text-align: center;
animation: fadeIn 3s ease-in-out;
}
h1 {
font-size: 3rem;
margin-top: 20px;
}
.message {
font-size: 1.2rem;
margin: 20px 0;
padding: 0 20px;
}
.heart {
width: 100px;
height: 100px;
background: red;
position: relative;
margin: 0 auto;
transform: rotate(-45deg);
animation: beat 1.5s infinite;
background-image: url('vanya.jpeg');
background-size: cover;
background-position: center;
border: 2px solid white;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}
.heart:before, .heart:after {
content: '';
width: 100px;
height: 100px;
background: red;
border-radius: 50%;
position: absolute;
background-image: inherit;
background-size: inherit;
background-position: inherit;
}
.heart:before {
top: -50px;
left: 0;
}
.heart:after {
left: 50px;
top: 0;
}
.button-container {
margin-top: 30px;
}
button {
background: #fff;
color: #ff6b6b;
border: none;
padding: 15px 30px;
font-size: 1rem;
border-radius: 5px;
margin: 10px;
cursor: pointer;
transition: all 0.3s ease;
}
button:hover {
background: #ff6b6b;
color: #fff;
transform: scale(1.1);
}
@keyframes fadeIn {
from {
opacity: 0;
transform: scale(0.8);
}
to {
opacity: 1;
transform: scale(1);
}
}
@keyframes beat {
0%, 20%, 40%, 60%, 80%, 100% {
transform: scale(1) rotate(-45deg);
}
10%, 30%, 50%, 70%, 90% {
transform: scale(1.1) rotate(-45deg);
}
}