File size: 1,261 Bytes
20e39fe
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
/* Body Styling */
body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f4f4f9;
}

/* Calculator Container */
.calculator {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Display Area */
.display {
    width: 100%;
    height: 50px;
    margin-bottom: 20px;
    background-color: #222;
    color: white;
    font-size: 2rem;
    text-align: right;
    padding: 10px;
    border-radius: 5px;
    border: none;
}

/* Button Grid Layout */
.buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

/* Individual Buttons */
.buttons button {
    padding: 20px;
    font-size: 1.5rem;
    border-radius: 5px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    cursor: pointer;
}

/* Button Hover Effect */
.buttons button:hover {
    background-color: #d0d0d0;
}

/* Button Active Effect */
.buttons button:active {
    background-color: #b0b0b0;
}

/* Equal Button Styling */
.equal {
    background-color: #4CAF50;
    color: white;
}

/* Clear Button Styling */
.clear {
    background-color: #f44336;
    color: white;
}