-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
126 lines (108 loc) · 2.26 KB
/
style.css
File metadata and controls
126 lines (108 loc) · 2.26 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
*{
margin:0;
padding:0;
box-sizing:border-box;
font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
body{
min-height:100vh;
display:flex;
align-items:center;
justify-content:center;
background: radial-gradient(circle at top, #87ceeb, #0d1f33);
transition: background 0.4s;
}
.age-container{
background: linear-gradient(160deg, #1e90ff, #00bfff);
padding:40px 45px;
border-radius:28px;
width:320px;
text-align:center;
box-shadow:0 20px 60px rgba(0,0,0,0.5);
transition: transform 0.3s, box-shadow 0.3s;
}
.age-container:hover{
transform: translateY(-6px);
box-shadow:0 30px 80px rgba(0,0,0,0.6);
}
.mode-btns{
display:flex;
justify-content:center;
gap:12px;
margin-bottom:20px;
}
.mode-btns button{
padding:6px 14px;
border:none;
border-radius:20px;
cursor:pointer;
font-size:13px;
transition:0.3s;
}
.mode-btns button:hover{
background:#1e90ff;
color:#fff;
}
h2{
color:#fff;
margin-bottom:8px;
}
.format{
color:#e0f6ff;
font-size:12px;
margin-bottom:18px;
}
input{
width:100%;
padding:14px;
border:none;
border-radius:25px;
outline:none;
font-size:14px;
text-align:center;
margin-bottom:22px;
background: rgba(255,255,255,0.9);
color:#0d1f33;
transition: 0.3s;
}
input:focus{
box-shadow: 0 0 0 2px rgba(30,144,255,0.4);
}
.dark input{
background: rgba(255,255,255,0.1);
color:#fff;
}
.calc-btn{
width:100%;
padding:14px;
border:none;
border-radius:30px;
background:#00bfff;
color:#fff;
font-weight:600;
letter-spacing:1px;
cursor:pointer;
box-shadow:0 10px 25px rgba(0,0,0,0.4);
transition:0.3s;
}
.calc-btn:hover{
background:#04ff26ea;
transform: translateY(-4px) scale(1.05);
}
#result{
margin-top:18px;
font-weight:600;
color:#00ff7f;
}
.dark{
background: radial-gradient(circle at top, #020617, #000);
}
.dark .age-container{
background: linear-gradient(160deg, #020617, #0b1220);
}
@media(max-width:400px){
.age-container{
width:90%;
padding:35px 30px;
}
}