-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
executable file
·223 lines (198 loc) · 5.11 KB
/
style.css
File metadata and controls
executable file
·223 lines (198 loc) · 5.11 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
/* Body Styling */
body {
margin-top: 40px;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
font-family: 'Arial', sans-serif;
background: linear-gradient(45deg, #0f2027, #203a43, #2c5364);
animation: gradientShift 10s infinite alternate;
overflow: hidden;
}
@keyframes gradientShift {
0% {
background: linear-gradient(45deg, #0f2027, #203a43, #2c5364);
}
50% {
background: linear-gradient(45deg, #141e30, #243b55);
}
100% {
background: linear-gradient(45deg, #2b5876, #4e4376);
}
}
/* Calculator Container */
#calculator {
background: #1f2937;
border-radius: 15px;
padding: 20px;
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.1);
width: 340px;
animation: slideDown 1.5s ease-in-out;
transform: translateY(-100px);
}
@keyframes slideDown {
0% {
opacity: 0;
transform: translateY(-200px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
/* Display Section */
#display {
width: 100%;
padding: 15px;
font-size: 1.6rem;
border: 2px solid #1dd1a1;
border-radius: 8px;
margin-bottom: 20px;
text-align: right;
background: #2c3e50;
color: #ecf0f1;
box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
animation: borderGlow 2s infinite alternate;
}
@keyframes borderGlow {
0% {
border-color: #1dd1a1;
box-shadow: 0 0 15px #1dd1a1;
}
50% {
border-color: #ff9f43;
box-shadow: 0 0 15px #ff9f43;
}
100% {
border-color: #ff6b6b;
box-shadow: 0 0 15px #ff6b6b;
}
}
/* Button Section */
#keys {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
}
/* Individual Button Styling */
#keys button {
padding: 15px;
font-size: 1.2rem;
border: none;
border-radius: 10px;
background: linear-gradient(45deg, #ff6b6b, #ff9f43);
color: white;
cursor: pointer;
transition: transform 0.3s ease, box-shadow 0.3s ease;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
animation: buttonPulse 2s infinite alternate;
}
@keyframes buttonPulse {
0% {
transform: scale(1);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
50% {
transform: scale(1.1);
box-shadow: 0 10px 25px rgba(255, 155, 100, 0.4);
}
100% {
transform: scale(1.05);
box-shadow: 0 10px 25px rgba(255, 255, 255, 0.5);
}
}
#keys button:hover {
transform: scale(1.2) rotate(2deg);
background: linear-gradient(45deg, #48dbfb, #0abde3);
box-shadow: 0 10px 25px rgba(0, 255, 255, 0.5);
}
#keys button:active {
transform: scale(1);
background: #2c3e50;
color: #1dd1a1;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}
/* Special Buttons */
#keys button[value="="] {
background: linear-gradient(45deg, #1dd1a1, #10ac84);
font-weight: bold;
animation: glow 2s infinite alternate;
}
@keyframes glow {
0% {
box-shadow: 0 0 10px #1dd1a1;
}
100% {
box-shadow: 0 0 20px #10ac84;
}
}
#keys button[value="AC"] {
background: linear-gradient(45deg, #ee5253, #ff6b6b);
}
#keys button[value="Del"] {
background: linear-gradient(45deg, #576574, #8395a7);
}
/* Footer Section */
body::after {
content: "© 2024-2026 · Designed & Developed by Hasib Hasan.All rights reserved.";
position: fixed;
bottom: 15px;
width: 100%;
text-align: center;
font-size: 1rem;
color: #ecf0f1;
font-weight: bold;
animation: footerGlow 3s infinite alternate;
}
@keyframes footerGlow {
0% {
color: #1dd1a1;
text-shadow: 0 0 10px #1dd1a1;
}
50% {
color: #ff9f43;
text-shadow: 0 0 15px #ff9f43;
}
100% {
color: #ee5253;
text-shadow: 0 0 20px #ee5253;
}
}
/* Responsive Design */
@media screen and (max-width: 768px) {
body {
margin-top: 20px; /* Reduced margin for smaller screens */
}
#calculator {
width: 90%; /* Make calculator width responsive */
padding: 10px; /* Reduced padding */
}
#display {
font-size: 1.4rem; /* Adjust font size for display */
padding: 10px; /* Adjust padding */
}
#keys button {
padding: 10px; /* Adjust button padding */
font-size: 1rem; /* Adjust button font size */
}
#keys {
grid-template-columns: repeat(3, 1fr); /* Change button layout */
}
}
@media screen and (max-width: 480px) {
#calculator {
width: 95%; /* Further reduce width */
}
#display {
font-size: 1.2rem; /* Further adjust font size */
}
#keys button {
padding: 8px; /* Further adjust button padding */
font-size: 0.9rem; /* Further adjust button font size */
}
#keys {
grid-template-columns: repeat(2, 1fr); /* Adjust button layout for very small screens */
}
}