-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
69 lines (60 loc) · 1.13 KB
/
style.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
/* Set font family and size */
body {
font-family: Arial, sans-serif;
font-size: 16px;
}
/* Center the counter */
.container {
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
align-items: center;
height: 100vh;
}
/* Style the header */
h1 {
font-size: 7rem;
font-weight: bold;
color: #333;
}
/* Style the counter */
#counter {
font-size: 7rem;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
margin: 20px 0;
}
/* Style the buttons */
.button {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
background-color: #4CAF50;
border: none;
color: white;
padding: 15px 32px;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
width: 200px;
}
.button:hover {
background-color: #3e8e41;
}
.button:active {
background-color: #3e8e41;
transform: translateY(4px);
}
#button:focus {
outline: none;
}
/* media query for mobile */
@media screen and (max-width: 480px) {
.counter h1 {
font-size: 6rem;
}
}