/* Setting default margin and padding for all elements */
* {
    padding: 0;
    margin: 5px;
    text-align: center;
}

/* Body styling for background and alignment */
body {
    background-color: #f0f8ff;
    display: flex;
    justify-content: flex-start;
    align-items: center; 
    height: 100vh;
    padding-left: 80px;
}

/* Styling the calculator container */
.calculator {
    width: 380px;
    height: 340px;
    background-color: #e0e0e0;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid #555;
    border-radius: 15px;
    padding: 10px;
}

/* Display field for calculations */
#display {
    width: 340px;
    height: 45px;
    text-align: right;
    padding-right: 6px;
    background-color: #222;
    border: 2px solid #888; 
    font-size: 18px;
    color: #00ff00; 
    border-radius: 5px; 
}

/* Styling for top row buttons (e.g., Clear, Backspace) */
.btnTop {
    color: #fff;
    background-color: #555;
    font-size: 14px;
    margin: auto;
    width: 60px;
    height: 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btnTop:hover {
    background-color: #444;
}

/* Styling for number buttons */
.btnNum {
    color: #fff;
    background-color: #333;
    font-size: 14px;
    margin: auto;
    width: 60px;
    height: 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btnNum:hover {
    background-color: #222;
}

/* Styling for math operator buttons (+, -, etc.) */
.btnMath {
    color: #fff;
    background-color: #007bff;
    font-size: 14px;
    margin: auto;
    width: 60px;
    height: 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btnMath:hover {
    background-color: #0056b3;
}

/* Styling for advanced operations buttons (π, ln, etc.) */
.btnOpps {
    color: #fff;
    background-color: #ff8a16;
    font-size: 14px;
    margin: auto;
    width: 60px;
    height: 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btnOpps:hover {
    background-color: #cc7a29;
}
