-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
112 lines (97 loc) · 2.05 KB
/
styles.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
104
105
106
107
108
109
110
111
112
body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f0f0f0;
font-family: 'Arial', sans-serif;
margin: 0;
}
.logo {
max-width: 190px;
margin-bottom: -40px;
margin-top: -50px;
}
.calculator {
border-radius: 15px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
background: linear-gradient(135deg, #e0e0e0, #ffffff);
padding: 20px;
text-align: center;
width: 90%;
max-width: 400px;
background-image: url('Harsh Chaudhari-anime.jpg');
background-position: center;
background-size: cover;
background-repeat: no-repeat;
}
#display {
width: 100%;
height: 50px;
font-size: 24px;
text-align: right;
border: none;
border-radius: 10px;
padding: 10px;
margin-bottom: 20px;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
transition: box-shadow 0.3s ease;
}
#display:focus {
outline: none;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}
.button {
width: 20%;
height: 60px;
margin: 5px 2.5%;
font-size: 18px;
border: none;
border-radius: 10px;
cursor: pointer;
transition: background-color 0.3s, transform 0.2s;
}
.button:active {
transform: scale(0.95);
}
.button.number {
background-color: #dcdcdc;
}
.button.operator {
background-color: #ffab00;
color: white;
}
.button.equals {
background-color: #00bfa5;
color: white;
width: 45%;
}
.button.clear {
background-color: #e57373;
color: white;
}
.button:hover {
filter: brightness(90%);
}
.button-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
@media (max-width: 400px) {
.button {
width: 22%;
height: 50px;
margin: 4px 2%;
font-size: 16px;
}
.button.equals {
width: 48%;
}
#display {
height: 45px;
font-size: 22px;
padding: 8px;
}
}