body, html {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Stile quando la Mini App è espansa */
.expanded {
    align-items: center;
    padding-top: 0;
    height: 100vh;
}

/* Stile quando la Mini App non è espansa */
.not-expanded {
    align-items: flex-start;
    padding-top: 5px;
    height: 95vh;
}

.container {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 80%;
    max-width: 500px;
}

input[type="color"] {
    border: 2px solid #ddd;
    border-radius: 5px;
    height: 50px;
    width: 50px;
    margin: 10px;
    cursor: pointer;
}

#result {
    margin-top: 20px;
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

.color-display {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
}

.color-box-left {
    width: 100px;
    height: 100px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    background-color: black; /* Imposta il colore di sfondo */
    color: white;
}

.color-box-right {
    width: 100px;
    height: 100px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    background-color: white; /* Imposta il colore di sfondo */
    color: black;
}

.color-box {
    width: 100px;
    height: 100px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.contrast-box {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    color: white; /* Default text color, changed dynamically */
    background-color: black; /* Default background, changed dynamically */
    font-size: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}