body {
    background: url('Background.gif') no-repeat center center fixed;
    background-size: cover;
    color: white;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

#grille-calc-container {
    padding: 0px 0px 10px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
    top: -80px;
    z-index: 2;
}

#grille-calc {
    box-shadow: 0 0 2px 2px rgba(255, 255, 255, 0.5);
    display: grid;
    grid-template-columns: repeat(4, 100px);
    grid-template-rows: minmax(100px, auto) repeat(5, 100px);
    gap: 5px;
    justify-content: center;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    background-color: black; 
    z-index: 3;
}

#affichage {
    grid-column: 1 / span 4;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10px;
    font-size: 50px;
    font-weight: bold;
    position: relative;
    z-index: 4; 
}


button {
    background-color: #555;
    border: none;
    cursor: pointer;
    font-size: 30px;
    color: white;
    font-weight: bold;
    border-radius: 50%;
}

button:hover {
    background-color: #777;
    transition: 0,6s;
}

button:active {
    background-color: #999;
}

.span-0 {
    grid-column: span 2;
    display: flex;
    justify-content: flex-start;
    padding-left: 10px;
}

.button-text {
    display: none;
}

.operator-button {
    background-color: rgb(255, 72, 0);
    border-radius: 50%;
}

.operator-button:hover {
    background-color: rgb(255, 255, 255);
    color: rgb(243, 172, 67);
    border-radius: 50%;
    transition: 0,6s;
}

.operator-button:active {
    background-color: rgb(255, 72, 0);
    border-radius: 50%;
}

#zero {
    grid-column: span 2;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 20px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
}

#zero .button-text {
    margin-left: 5px;
}

.span-four{
    grid-column: span 2;
}

#effacer {
    grid-column: span 2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 20px;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    font-size: 40px;
    background-color: #555;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border: none;
    overflow: hidden;
}

#effacer:hover {
    background-color: #777;
    transition: 0,6s;
}

#effacer:active {
    background-color: #999;
}

#effacer .button-text {
    margin-left: 5px;
}

#effacer,
#pourcentage {
    background-color: #ccc;
    color: black;
}

#effacer:hover,
#pourcentage:hover {
    background-color: #aaa;
    transition: 0,6s;
}

#effacer:active,
#pourcentage:active {
    background-color: #999;
}

h1 {
    justify-content: center;
    font-family: 'Courier New', Courier, monospace;
    font-size: 60px;
    display: flex;
}
