Manipulation / styles.css
Swathi6's picture
Create styles.css
20e39fe verified
/* 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;
}