forked from dhairyagothi/100_days_100_web_project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
103 lines (92 loc) · 1.85 KB
/
index.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
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
html {
background: radial-gradient(circle, #ff7e5f, #feb47b); /* Gradient background */
font-family: Arial, sans-serif;
}
body {
display: flex;
justify-content: space-between; /* Align clock to the left and timer to the right */
padding: 20px;
}
#clockContainer{
position: relative;
margin: 20px;
height: 40vw;
width: 40vw;
background: url(clock.png) no-repeat;
background-size: 100%;
border-radius: 8px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
#hour, #minute, #second{
position: absolute;
background: black;
border-radius: 10px;
transform-origin: bottom;
transition: transform 0.1s ease; /* Smooth transition for rotations */
}
#hour{
width: 1.8%;
height: 25%;
top: 25%;
left: 48.85%;
opacity: 0.8;
}
#minute{
width: 1.6%;
height: 30%;
top: 19%;
left: 48.9%;
opacity: 0.8;
}
#second{
width: 1%;
height: 40%;
top: 9%;
left: 49.25%;
opacity: 0.8;
}
#timerContainer {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 340px;
border-radius: 8px;
padding: 20px;
margin-left: 5px;
margin-right: 10px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); /* Adding shadow to the timer container */
}
#timeInput {
display: flex;
justify-content: space-between;
margin-bottom: 20px;
}
input {
width: 100px;
padding: 5px;
font-size: 16px;
text-align: center;
margin: 2px;
}
button {
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
background-color: #ff7e5f;
border: none;
border-radius: 5px;
color: white;
}
button:hover {
background-color: #feb47b;
}
#countdownDisplay {
font-size: 32px;
font-weight: bold;
}
#timerUpMsg{
font-size: 35px;
text-align: center;
color: rgb(98, 0, 255);
}