/* 1. basic reset */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 2. Body  */

body{
    background: #0f0f0f;
    color: #f0f0f0;
    font-family: sans-serif;
    padding: 48px 24px;
}



/*  */
header {
  text-align: center;
  margin-bottom: 40px;
}

/*  */
select, button{
    background: #1a1a1a;
    color: #f0f0f0;
    border: 1px solid #2a2a2a;
    padding: 10px 20px;
    font-size: 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 16px;
}

button:hover{
    background: #f0f0f0;
    color: #0f0f0f;
}


/* 3. palette = swatches side by side */

#palette{
    display: flex;
    height: 300px;
    margin-top: 24px;
    border-radius: 12px;
    overflow: hidden;
}

/*  align-items: flex-end;
  padding: 12px;
  font-size: 0.75rem;
  font-family: monospace;
  color: white;
  cursor: pointer; */



.swatch{
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    font-size: 0.75rem;
    font-family: monospace;
    color: transparent;
    cursor: pointer;
    position: relative;
    transition: flex 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),color 0.3s;
}

.swatch:hover{
    flex: 1.8;
    color: white;
}

.hex-label{
    position: absolute;
    bottom: 12px;
}

.copied-text{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s;
}