#cpg-generator {
    position: relative; /* Ensure relative positioning for the color info */
    text-align: center;
    margin: 20px auto;
    width: 100%;
    min-height: 500px;
}

#color-palette-interface {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

#color-palette-interface > div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

#color-palette-interface > div > p {
    margin-top: 40px;
    margin-bottom: 0;
}

#color-palette-interface > div > select {
    max-width: 220px;
}


#color-picker {
    width: 60px; /* Increased size */
    height: 60px; /* Increased size */
    border: none;
    cursor: pointer;
    outline: none;
}

#harmony-type {
    margin: 10px 0;
}

#generate-palette {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #6e7eff 0%, #8d8dff 100%);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 20px;
    align-self: center; /* Center the button */
}

#generate-palette:hover {
    background: linear-gradient(135deg, #5b69e7 0%, #7a7aff 100%);
}

#palette {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    position: relative; /* For positioning the info display */
}

.palette-color {
    display: inline-block;
    width: 100px;
    height: 100px;
    margin: 5px;
    border: 1px solid #ccc;
    transition: transform 0.2s;
}

.palette-color.base {
    border: 3px solid #000; /* Highlight the base color */
}

.palette-color:hover {
    transform: scale(1.1);
    cursor: pointer;
}

.palette-color.focused {
    outline: 3px solid #ffffff; /* Add a border to indicate focus */
    outline-offset: -3px; /* Offset the outline to match the existing border */
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
}

#color-info-display {
    margin-top: 30px;
    text-align: center;
}

#color-info-block {
    width: 100%;
    background: #f4f4f4;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#color-info-content {
    padding: 20px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
    text-align: left;
}

#color-info-content .color-display {
    width: 100px; /* Adjust as needed */
    height: 100px; /* Adjust as needed */
    margin: 10px;
    border-radius: 5px;
    border: 3px solid #fff;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

.copy-button {
    display: inline-block;
    background: #414141;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 10px;
    text-align: center;
}

.copy-button:hover {
    background: #181818;
}

.copy-button:active {
    background: #181818;
}

.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
