body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow-y: auto;
}

.main-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 90%;
    max-width: 1200px;
    flex-wrap: wrap;
}

.container {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 100%;
    text-align: center;
    margin: 20px;
}

.calcoli-container {
    max-width: 300px;
    width: 100%;
}

h1,
h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

label {
    font-size: 1.2em;
    margin-top: 10px;
}

input,
select,
button {
    font-size: 1.2em;
    padding: 10px;
    margin-top: 10px;
    width: 80%;
    max-width: 300px;
    text-align: center;
    /* Centratura del testo */
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

button.azzera {
    background-color: #dc3545;
    margin-top: 10px;
}

button.azzera:hover {
    background-color: #c82333;
}

#risultato {
    font-size: 2em;
    margin-top: 20px;
    display: none;
}

.nascosto {
    display: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#calcoliList {
    list-style-type: none;
    padding: 0;
}

#calcoliList li {
    padding: 10px;
    background: #e9ecef;
    margin-top: 10px;
    border-radius: 5px;
}

#goldStatus {
    margin-bottom: 20px;
    padding: 15px;
    background: #e9ecef;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

#currentGoldPrice {
    font-size: 1.8em;
    font-weight: bold;
    color: #28a745;
    display: block;
    margin-top: 5px;
}