* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

header {
    background: #222;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.palette {
    display: flex;
    flex-wrap: wrap;
    height: 80vh;
}

.color-block {
    flex: 1;
    min-width: 20%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    color: #fff;
    transition: 0.3s ease;
    position: relative;
}

.hex {
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.lock {
    position: absolute;
    bottom: 20px;
    cursor: pointer;
    font-size: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
    user-select: none;
}

.locked {
    opacity: 0.6;
}

.buttons {
    text-align: center;
    padding: 20px;
}

.buttons button {
    padding: 10px 20px;
    font-size: 1rem;
    margin: 5px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background: #007BFF;
    color: #fff;
}

.buttons button:hover {
    background: #0056b3;
}