Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
130 lines (116 loc) · 3.01 KB
/
Copy pathstyles.css
File metadata and controls
130 lines (116 loc) · 3.01 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
/* Font family from Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@300;400&display=swap");
html {
font-size: 62.5%;
}
body {
text-align: center;
font-family: "Oswald", sans-serif;
font-weight: 300;
font-size: 2.2rem;
color: #FFFFFF;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
height: 100vh;
margin: 0;
flex-direction: column; /* Ensure content is stacked vertically */
}
#background {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -2;
overflow: hidden;
}
#background img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0;
transition: opacity 1s ease-in-out;
}
#background img.active {
opacity: 1;
}
#overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(69, 69, 69, 0.45); /* Semi-transparent overlay */
z-index: -1;
}
/* Clock styling */
#clock {
max-width: 600px; /* Set the max width for the clock */
background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background for readability */
padding: 20px;
border-radius: 10px;
width: 600px; /* Fixed width to match the clock container */
margin: 0 auto; /* Center the clock */
z-index: 2;
}
/* Announcement box styling */
#announcement-box {
position: relative; /* Keeps it below the clock */
margin-top: 20px; /* Adds space between clock and announcement box */
width: 600px; /* Same width as the clock */
background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
color: #ffffff;
text-align: center;
font-size: 1.8rem;
padding: 20px 30px; /* Increased padding for more space inside the box */
border-radius: 10px;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
z-index: 1;
margin-left: auto;
margin-right: auto; /* Center the announcement box */
position: relative; /* Position relative to allow for adjustments */
}
#announcement-box p {
margin: 0; /* Remove extra margin from the paragraph */
}
#watermark {
position: fixed;
bottom: 10px;
left: 10px;
opacity: 0.45;
z-index: 1;
}
#watermark img {
width: 150px; /* Adjust as needed */
height: auto;
pointer-events: none; /* Ensure watermark doesn't block interactions */
}
/* For smaller screens below 700px */
@media only screen and (max-width: 700px) {
body {
font-size: 1.8rem;
}
#watermark img {
width: 100px;
}
#announcement-box {
position: relative; /* Keeps it under the clock */
margin-top: 20px;
width: 80%; /* Adjust width as needed */
background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black */
color: #ffffff;
text-align: center;
font-size: 1.8rem;
padding: 20px 30px;
border-radius: 10px;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
z-index: 1;
margin-left: auto;
margin-right: auto; /* Ensure it's centered */
}
}