
.container-palette { 
    position: relative;
    margin: 85px 0 110px 0;
    max-width: 532px;
    padding: 1rem;
    background-color: #fffff0;
    border-block-start: 2px #9e9f8d solid;
    border-inline-end: 4px #9e9f8d solid;  
}

/* figure *//* result of the image composition:  5:4  */
#image-with-colors-palette {
    position: relative;
    border: 8px groove whitesmoke;
}

/* image */
.daisies {
    max-width: 418px;
    padding: 0 0 90px 0;
}

/* figcaption of the image */
.palette-star-wars { /* flex box */
    width: 100%;
    max-width: 418px; /* 7*50 + 8*6 + 4 + 8*2 */
    row-gap: 0.5rem;
    column-gap: 0.5rem;
    border: 2px solid #fff;
    background-color: #fff;
    padding: 0.5rem;
    position: absolute;
    z-index: 1;
    bottom: 0;
}

/* CSS shape */
.trapezoid {
    position: absolute;
    top: -16px;
    right: -2px;
    width: 132px;
    height: 0;
	border-bottom: 15px solid #fff;
	border-left: 15px solid transparent;
}

/* color mockup */
.brushstroke {
    position: relative;
    width: 50px;
    height: calc(50px * 7 / 5);
}

/* triangle */
.triangle {
    position: absolute;
    width: 0;
    height: 0;
}

.top-left {
    border-left: 10px solid #fff;
	border-bottom: 10px solid transparent;
    top: 0;
    left: 0;
}

.top-right {
    border-right: 10px solid #fff;
	border-bottom: 10px solid transparent;
    top: 0;
    right: 0px;
}

.bottom-right {
    border-right: 10px solid #fff;
	border-top: 10px solid transparent;
    bottom: 0;
    right: 0px;
}

.bottom-left {
    border-left: 10px solid #fff;
	border-top: 10px solid transparent;
    left: 0;
    bottom: 0;
}

/* CSS shape */
/* trapezoid */
.trapezoid-small-horizontal-top {
    position: absolute;
	border-top: 5px solid #fff;
	border-left: 3px solid transparent;
	border-right: 3px solid transparent;
	height: 0;
	width: 40px;
}

.position-trapezoid-top {
    top: 0;
    left: 5px;
}

.trapezoid-small-horizontal-bottom {
    position: absolute;
    z-index: 1;
	border-bottom: 5px solid #fff;
	border-left: 3px solid transparent;
	border-right: 3px solid transparent;
	height: 0;
	width: 40px;
}

.position-trapezoid-bottom {
    bottom: 0;
    left: 5px;
}

.trapezoid-small-vertical-right-1 {
    position: absolute;
	border-bottom: 10px solid transparent;
	border-right: 10px solid #fff;
	border-top: 10px solid transparent;
    height: 124px;
	width: 0;
}

.position-trapezoid-right-1 {
    right: 0;
    bottom: 0;
}

.trapezoid-small-vertical-right-2 {
    position: absolute;
	border-bottom: 5px solid transparent;
	border-right: 5px solid #fff;
	border-top: 5px solid transparent;
    height: 40px;
	width: 0;
}

.position-trapezoid-right-2 {
    right: 0;
    bottom: 5px;
}

.trapezoid-small-vertical-left-1 {
    position: absolute;
	border-bottom: 10px solid transparent;
	border-left: 10px solid #fff;
	border-top: 10px solid transparent;
    height: calc(124px - 32px);
	width: 0;
}

.position-trapezoid-left-1 {
    left: 0;
    top: 0;
}

.trapezoid-small-vertical-left-2 {
    position: absolute;
	border-bottom: 10px solid transparent;
	border-left: 10px solid #fff;
	border-top: 10px solid transparent;
    height: calc(124px - 32px);
	width: 0;
}

.position-trapezoid-left-2 {
    left: 0;
    top: 15px;
}

/* circle */
.circle {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    width: 3px;
    height: 3px;
}

.position-circle-top-right {
    top: 5px;
    right: 5px;
}

.position-circle-top-left {
    top: 5px;
    left: 5px;
}

.position-circle-bottom-right {
    bottom: 5px;
    right: 5px;
}

.position-circle-bottom-left {
    bottom: 5px;
    left: 5px;
}

/* rectangle */
.rectangle-v {
    position: absolute;
    background-color: #fff;
    width: 3px;
    height: 30px;
    border-radius: 25%;
}

.position-rectangle-1 {
    top: 15px;
    right: 5px;
}

.position-rectangle-2-right {
    bottom: 15px;
    right: 5px;
}

.position-rectangle-2-left {
    bottom: 15px;
    left: 5px;
}

.rectangle-h {
    position: absolute;
    background-color: #fff;
    height: 3px;
    width: 20px;
    border-radius: 25%;
}

.position-rectangle-3 {
    bottom: 5px;
    right: 20px;
}

.position-rectangle-4 {
    bottom: 5px;
    left: 20px;
}

/* colors */
.color-1 {
    background-color: #396049;
}

.color-2 {
    background-color: #2c4620;
}

.color-3 {
    background-color: #596640;
}

.color-4 {
    background-color: #67824a;
}

.color-5{
    background-color: #d6d440
}

.color-6 {
    background-color: #f3f5ef;
}

.color-7 {
    background-color: #39515b;
}



/* BREAKPOINTS WITH *//* CSS3 MEDIA QUERIES 
********************************************/
@media only screen and (max-width: 560px){
    /* figcaption */
    .palette-star-wars {
        justify-content: space-evenly;
    }

    .color-1,
    .color-5 {
        display: none;
    }
    
}

/* BREAKPOINTS WITH *//* CSS3 MEDIA QUERIES 
********************************************/
@media only screen and (max-width: 405px){
    .container-palette {
        padding: 0;
    }

    .palette-star-wars {
        padding: 1rem 0;
    }

    .container-palette {
        border-block-start: none;
        border-inline-end:none;
    }

    #image-with-colors-palette {
        border: none;
    }
}


@media only screen and (max-width: 317px){
    .daisies {
        padding: 0 0 100px 0;
    }

    .color-7 {
        display: none;
    }
}
