.palette-small {
display:flex;
flex-direction:column-reverse;
justify-content:center;
}
/1/
.palette-box:nth-of-type(1) .color-3,
.palette-box:nth-of-type(1) .color-4
{
align-self:center;
}
.palette-box:nth-of-type(1) .color-3 {
order: 1;
}
.palette-box:nth-of-type(1) .color-4 {
order: -1;
}
/*3*/
.palette-box:nth-of-type(3) .palette-small {
flex-direction: row;
justify-content: space-between;
}
.palette-box:nth-of-type(3) .part {
display:flex;
flex-direction:column;
justify-content:space-between;
}
/*2*/
.palette-box:nth-of-type(2) .palette-small {
justify-content:space-between;
}
.palette-box:nth-of-type(2) .color-2,
.palette-box:nth-of-type(2) .color-6{
align-self:flex-end;
}
.palette-box:nth-of-type(2) .color-1,
.palette-box:nth-of-type(2) .color-4 {
align-self:flex-start;
}
/*4*/
.palette-box:nth-of-type(4) .palette-small {
flex-direction: row;
justify-content: space-between;
}
.palette-box:nth-of-type(4) .part {
display:flex;
}
.palette-box:nth-of-type(4) .part:nth-of-type(2) {
flex-direction:column-reverse;
justify-content:space-between;
}