/* General Layout */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Header */
header {
    background-color: #007BFF;
    color: white;
    text-align: center;
    padding: 50px 0;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
}

/* Calculator Styles */
#calculator {
    max-width: 400px;
    margin: auto;
    padding: 20px;
    border: 1px solid #333;
    border-radius: 10px;
    background-color: #f8f9fa;
    text-align: center;
}

#display {
    width: 100%;
    height: 50px;
    margin-bottom: 10px;
    font-size: 18px;
    text-align: right;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

button {
    font-size: 20px;
    padding: 15px;
    border: 1px solid #000;
    background-color: #000;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

button:hover {
    background-color: #444;
    transform: scale(1.05);
}
