/**** Reset ****/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
}

/**** Style général de la page ****/

body {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #484848;
    font-family: sans-serif;
}
  
.calculator {
    max-width: 400px;
    background-color: #f2f2f2;
    padding: 20px;
    margin: 0 20px;
    border: 1px solid #cccccc;
    border-radius: 5px;
}
  
#result {
    width: 100%;
    padding: 10px;
    font-size: 24px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}
  
.buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 10px;
    margin-top: 20px;
}
  
button {
    padding: 10px;
    font-size: 24px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}
  
button:hover {
    background-color: #dddddd;
}
  
.clear {
    background-color: #ff0d00;
    color: #ffffff;
}
  
.number, .decimal {
    background-color: #ffffff;
    color: #333333;
  
}
  
.operator {
    background-color: #0088ff;
    color: #ffffff;
}
  
.equals {
    background-color: #00ff6e;
    grid-row: span 3;
    color: #ffffff;
}