-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
110 lines (108 loc) · 2.43 KB
/
style.css
File metadata and controls
110 lines (108 loc) · 2.43 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
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
108
109
110
/*----------------- GOOGLE FONTS -----------------*/
@import url('https://fonts.googleapis.com/css2?family=PT+Serif&display=swap');
/*----------------- VARIABLES -----------------*/
:root {
/* Colors */
--gold_color: rgb(255, 191, 0);
--glass_color: rgba(255, 255, 255, 0.05);
--shadow_color: 0 0 25px rgba(0, 0, 0, 0.5);
}
/*----------------- Base -----------------*/
* {
box-sizing: border-box;
padding: 0;
margin: 0;
font-family: 'PT Serif', serif;
color: var(--gold_color);
}
body {
background: url(background.jpg);
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center center;
background-size: cover;
}
/*----------------- Styling Start -----------------*/
.container {
position: absolute;
transform: translate(-50%, -50%);
top: 50%;
left: 50%;
font-size: 1rem;
}
.headings {
text-align: center;
margin-bottom: 4rem;
display: flex;
flex-direction: column;
}
.headings h1 {
text-shadow: var(--shadow_color);
font-size: 6.2rem;
font-weight: 800;
letter-spacing: 0.15rem;
display: inline-block;
}
.headings h3 {
font-size: 3.5rem;
letter-spacing: 0.05rem;
text-transform: uppercase;
font-weight: 600;
padding: 0.5rem 2rem;
display: inline-block;
}
.headings h4 {
font-size: 4rem;
letter-spacing: 0.05rem;
text-transform: uppercase;
font-weight: 600;
padding: 0.5rem 2rem;
display: inline-block;
}
.countdown {
width: 95vw;
display: flex;
justify-content: space-around;
gap: 0.6rem;
}
.detail {
width: 28vmin;
height: 29vmin;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-evenly;
position: relative;
}
span.number {
background-color: var(--glass_color);
backdrop-filter: blur(7.5rem);
height: 100%;
width: 100%;
display: grid;
place-items: center;
font-size: 4rem;
box-shadow: var(--shadow_color);
border-radius: 0.1rem;
}
span.number:after {
content: "";
position: absolute;
background-color: var(--glass_color);
height: 100%;
width: 50%;
left: 0;
}
span.sub_heading {
font-size: 1.5rem;
background-color: var(--glass_color);
backdrop-filter: blur(7.5rem);
display: block;
width: 100%;
position: relative;
text-align: center;
padding: 0.7rem 0;
font-weight: 600;
border-radius: 0.1rem;
box-shadow: var(--shadow_color);
}