-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
62 lines (57 loc) · 1.47 KB
/
style.css
File metadata and controls
62 lines (57 loc) · 1.47 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
body {
font-family: Arial, sans-serif;
text-align: center;
background: linear-gradient(to bottom, #87CEFA, #FFB6C1); /* Light blue to light pink */
height: 100vh; /* Occupy full viewport height */
padding: 0;
margin: 0;
overflow: hidden; /* Prevent scrollbars */
}
.breathing-visual {
display: flex;
justify-content: center;
align-items: center;
height: 100%; /* Full viewport height */
}
.breathing-box {
width: 100px;
height: 100px;
background-color: #4682B4; /* Steel blue */
border-radius: 50%; /* Circular shape */
border: 5px solid transparent; /* Transparent base border */
position: relative;
animation: breathing-cycle 19s; /* 19-second cycle */
}
.breathing-text {
position: absolute;
width: 100%;
text-align: center;
top: 50%;
transform: translateY(-50%); /* Center vertically */
font-size: 20px;
color: white; /* White text for contrast */
}
#restart-button {
display: none;
margin: 20px;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
}
@keyframes breathing-cycle {
0% {
transform: scale(1);
border-color: #4682B4; /* Border color for inhale */
}
21.05% {
transform: scale(3); /* Inhale */
}
57.89% {
transform: scale(3); /* Hold */
border-color: #FFD700; /* Yellow during hold */
}
100% {
transform: scale(1); /* Exhale */
border-color: #DC143C; /* Red for exhale */
}
}