-
Notifications
You must be signed in to change notification settings - Fork 1
/
styles.css
88 lines (77 loc) · 1.5 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
body {
display: flex;
flex-direction: column;
align-items: center;
min-height: 100vh;
margin: 0;
background-color: #1a1a1a;
font-family: Arial, sans-serif;
}
.heading {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-size: 28px;
color: #fff;
margin-top: 20px;
}
.calculator {
border: none;
border-radius: 10px;
padding: 20px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
background-color: #2d2d2d;
width: 300px;
height: 400px;
text-align: center;
color: #fff;
}
#display {
width: 100%;
margin-bottom: 20px;
padding: 15px;
font-size: 28px;
text-align: right;
border: none;
border-bottom: 1px solid #444;
outline: none;
background-color: #555;
box-sizing: border-box;
color: #fff;
}
.buttons {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
}
.btn {
padding: 20px;
font-size: 24px;
border: none;
border-radius: 5px;
cursor: pointer;
background-color: #444;
color: #fff;
transition: background-color 0.3s ease;
}
.btn:hover {
background-color: #555;
}
.operator {
background-color: #007bff;
}
#clear {
background-color: #ff4d4d;
}
#equals {
background-color: #33cc33;
}
.calculator-title {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-size: 28px;
color: #fff;
margin-top: 0px;
}
.footer {
margin-top: 20px;
font-size: 14px;
color: #ccc;
}