-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathAgeCalc.css
99 lines (87 loc) · 1.79 KB
/
AgeCalc.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
* {
margin: 0;
padding: 0;
font-family: 'Poppins', sans-serif;
box-sizing: border-box;
}
.wrapper {
width: 100%;
height: 100vh;
background: linear-gradient(135deg, #6a11cb, #2575fc);
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
}
/*new */
.age-box {
width: 100%;
max-width: 500px;
background: rgba(255, 255, 255, 0.1);
padding: 50px;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
text-align: center;
}
.age-box h1 {
font-size: 48px;
color: #fff;
margin-bottom: 20px;
}
.age-box h1 span {
color: #ffcc33;
}
.input-container {
display: flex;
gap: 15px;
margin-top: 30px;
background: rgba(255, 255, 255, 0.2);
padding: 20px;
border-radius: 10px;
align-items: center;
}
.input-container input {
flex: 1;
padding: 12px;
font-size: 18px;
border: 2px solid transparent;
border-radius: 8px;
background: rgba(255, 255, 255, 0.8);
transition: border-color 0.3s;
}
.input-container input:focus {
border-color: #ffcc33;
outline: none;
}
.input-container button {
background: #ffcc33;
padding: 12px 20px;
border: none;
border-radius: 8px;
font-weight: bold;
color: #333;
cursor: pointer;
transition: background-color 0.3s, transform 0.1s;
}
.input-container button:hover {
background-color: #ffb700;
transform: scale(1.05);
}
.input-container input::-webkit-calendar-picker-indicator {
position: absolute;
right: 10px;
width: 20px;
height: 20px;
background-size: 20px;
background-position: center;
cursor: pointer;
opacity: 0.5;
}
#outputResult {
font-size: 22px;
margin-top: 25px;
color: #fff;
}
#outputResult strong {
color: #ffcc33;
}