Swathi6 commited on
Commit
20e39fe
·
verified ·
1 Parent(s): 92d30b4

Create styles.css

Browse files
Files changed (1) hide show
  1. styles.css +71 -0
styles.css ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Body Styling */
2
+ body {
3
+ font-family: Arial, sans-serif;
4
+ display: flex;
5
+ justify-content: center;
6
+ align-items: center;
7
+ height: 100vh;
8
+ margin: 0;
9
+ background-color: #f4f4f9;
10
+ }
11
+
12
+ /* Calculator Container */
13
+ .calculator {
14
+ background-color: #fff;
15
+ padding: 20px;
16
+ border-radius: 10px;
17
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
18
+ }
19
+
20
+ /* Display Area */
21
+ .display {
22
+ width: 100%;
23
+ height: 50px;
24
+ margin-bottom: 20px;
25
+ background-color: #222;
26
+ color: white;
27
+ font-size: 2rem;
28
+ text-align: right;
29
+ padding: 10px;
30
+ border-radius: 5px;
31
+ border: none;
32
+ }
33
+
34
+ /* Button Grid Layout */
35
+ .buttons {
36
+ display: grid;
37
+ grid-template-columns: repeat(4, 1fr);
38
+ gap: 10px;
39
+ }
40
+
41
+ /* Individual Buttons */
42
+ .buttons button {
43
+ padding: 20px;
44
+ font-size: 1.5rem;
45
+ border-radius: 5px;
46
+ background-color: #f0f0f0;
47
+ border: 1px solid #ddd;
48
+ cursor: pointer;
49
+ }
50
+
51
+ /* Button Hover Effect */
52
+ .buttons button:hover {
53
+ background-color: #d0d0d0;
54
+ }
55
+
56
+ /* Button Active Effect */
57
+ .buttons button:active {
58
+ background-color: #b0b0b0;
59
+ }
60
+
61
+ /* Equal Button Styling */
62
+ .equal {
63
+ background-color: #4CAF50;
64
+ color: white;
65
+ }
66
+
67
+ /* Clear Button Styling */
68
+ .clear {
69
+ background-color: #f44336;
70
+ color: white;
71
+ }