-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
100 lines (86 loc) · 1.84 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
body, html {
margin: 0;
padding: 0;
height: 100%;
font-family: 'Arial', sans-serif;
overflow: hidden;
}
.background-image {
background-image: url('naps.png');
background-size: cover;
background-attachment: fixed;
background-position: center;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
position: relative;
animation: backgroundAnimation 20s infinite alternate;
}
@keyframes backgroundAnimation {
0% { filter: brightness(100%); }
50% { filter: brightness(120%); }
100% { filter: brightness(100%); }
}
.cloud {
background: rgba(255, 255, 255, 0.8);
padding: 20px 40px;
border-radius: 50px;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
position: relative;
text-align: center;
animation: fadeIn 2s ease-in-out;
}
.cloud::before, .cloud::after {
content: '';
position: absolute;
background: rgba(255, 255, 255, 0.8);
border-radius: 50%;
}
.cloud::before {
width: 60px;
height: 60px;
top: -30px;
left: -30px;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.cloud::after {
width: 80px;
height: 80px;
top: -40px;
right: -40px;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
h1 {
margin: 0;
font-size: 24px;
color: #333;
}
.buttons {
margin-top: 20px;
}
.btn {
display: inline-block;
padding: 10px 20px;
margin: 5px;
background: #333;
color: #fff;
text-decoration: none;
border-radius: 5px;
transition: background 0.3s;
cursor: pointer;
}
.btn:hover {
background: #555;
}
.btn.pause {
background: #e74c3c;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(-20px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes moveClouds {
from { background-position: 0 0; }
to { background-position: 100% 0; }
}