body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
    background-color: #f0f0f0;
}

h1 {
    color: #333;
}

#color-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 8px;
    max-width: 800px;
    justify-content: center;
}

.color-square {
    width: 60px;
    height: 60px;
    border: 2px solid #fff;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: rgba(0,0,0,0.5); /* Default text color, might need adjustment */
    text-align: center;
    position: relative; /* Needed for absolute positioning of name */
}

.color-square:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.color-square.selected {
    border-color: royalblue;
    box-shadow: 0 0 10px royalblue;
}

.color-square span {
    position: absolute;
    bottom: -15px; /* Position below the square */
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap; /* Prevent wrapping */
    opacity: 0.8;
}


#controls {
    margin-bottom: 20px;
    text-align: center;
}

#mix-button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#mix-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#mix-button:hover:not(:disabled) {
    background-color: #45a049;
}

#selected-color-names {
    font-weight: bold;
}

#new-color-info {
    margin-top: 20px;
    padding: 15px;
    border: 1px dashed #4CAF50;
    background-color: #e9f5e9;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    text-align: center;
}

#new-color-info h3 {
    margin-top: 0;
    color: #333;
}

