-
Notifications
You must be signed in to change notification settings - Fork 1
/
styles.css
69 lines (62 loc) · 1.45 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
body {
background-color: black;
color: white;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
font-family: 'Arial', sans-serif;
margin: 0; /* Remove default margin */
}
.countdown-container {
text-align: center;
background-color: red;
padding: 20px;
border-radius: 10px;
width: 90%; /* Full width on mobile */
max-width: 600px; /* Limit max width */
}
h1 {
font-size: 2.5rem;
margin: 0;
}
h2 {
font-size: 1.5rem;
margin: 10px 0;
}
#countdown {
display: flex;
justify-content: center;
font-size: 1.5rem; /* Default font size for larger screens */
flex-wrap: wrap; /* Allow wrapping on smaller screens */
}
.time {
margin: 5px; /* Reduced margin for better spacing */
background-color: black;
padding: 10px 15px; /* Increased padding for better touch targets */
border-radius: 5px;
}
/* Media Queries for Responsiveness */
@media (max-width: 600px) {
h1 {
font-size: 2rem; /* Smaller font size on mobile */
}
h2 {
font-size: 1.2rem; /* Smaller font size on mobile */
}
#countdown {
font-size: 1.2rem; /* Smaller font size for countdown */
}
.time {
padding: 8px 10px; /* Adjust padding for smaller screens */
}
}
.footer {
position: absolute;
bottom: 10px;
right: 20px;
font-size: 0.9rem;
color: rgba(255, 255, 255, 0.2);
opacity: 0.7;
text-align: right;
}