-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
108 lines (94 loc) · 2.02 KB
/
Copy pathstyle.css
File metadata and controls
108 lines (94 loc) · 2.02 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
/* --- Global Reset & Base Styles --- */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f4f7f6;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh; /* Ensures it stays centered vertically */
color: #333;
}
/* --- Container (The Calculator Card) --- */
.container {
background-color: #ffffff;
padding: 2rem;
border-radius: 12px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 400px;
text-align: center;
}
h1 {
font-size: 1.8rem;
margin-bottom: 1.5rem;
color: #2c3e50;
}
/* --- Input Group --- */
.input-group {
display: flex;
flex-direction: column;
text-align: left;
margin-bottom: 1.5rem;
}
label {
font-weight: 600;
margin-bottom: 0.5rem;
color: #555;
}
input[type="date"] {
padding: 0.75rem;
border: 1px solid #ccc;
border-radius: 6px;
font-size: 1rem;
outline: none;
transition: border-color 0.3s ease;
}
input[type="date"]:focus {
border-color: #3498db;
box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}
/* --- Button --- */
button#submit {
width: 100%;
padding: 0.85rem;
background-color: #3498db;
color: white;
border: none;
border-radius: 6px;
font-size: 1.1rem;
font-weight: bold;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.1s ease;
margin-bottom: 1.5rem;
}
button#submit:hover {
background-color: #2980b9;
}
button#submit:active {
transform: scale(0.98);
}
/* --- Results Section --- */
#result {
padding-top: 1rem;
border-top: 1px solid #eee;
}
#result p {
font-size: 1.1rem;
margin-bottom: 0.5rem;
font-weight: 500;
}
/* Highlighting the numbers (Optional: Requires JS to wrap numbers in spans) */
#result span {
color: #e74c3c;
font-weight: bold;
font-size: 1.3rem;
}
/* Hide empty result lines initially */
#result p:empty {
display: none;
}