/* Centers the counter interface on the page */
body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background-color: #f4f4f9;
}

/* Main container that holds the counter elements */
.container {
    text-align: center;
    background: white;
    padding: 10rem;
    border-radius: 10px;
    box-shadow: 9px 9px 9px #005abb;
}

/* Styles the displayed counter value */
.contatoreVisivo {
    font-size: 30px;
    font-family: cursive;
}

/* Base style for all buttons */
button {
    font-size: 1.5rem;
    padding: 10px 20px;
    margin: 0 10px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    width: 50px;
    height: 50px;
    transition: all 0.1s ease-in-out;
    outline: none;

    /* Visual feedback when the mouse hovers over a button */
    &:hover {
        background-color: #005abb;
        box-shadow: 5px 5px 5px rgb(2, 0, 107);
    }
}

/* Creates a pressed effect when a button is clicked */
button:active {
    transform: scale(0.95);
    box-shadow: 0 0 8px 2px rgba(0, 123, 255, 0.8);
}

/* Applied when the counter value becomes negative */
.negativo {
    color: red;
}