* {
    box-sizing: border-box;
}

html {
    font-family: Avenir, Helvetica, "Open-Sans", "Helvetica Neue", Arial, sans-serif;
    font-size: 100%;
}

main{
    display: flex;
    align-items: center;
    justify-content: center;
}

ol {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    list-style: none;
    grid-gap: 2%;
    width: 800px;
}

li {
    border: solid black 5px;
    aspect-ratio: 1/1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
li:nth-child(1){
    grid-column: 1/2;
    grid-row: 1/2;
}
li:nth-child(2){
    grid-column: 2/3;
    grid-row: 1/2;
}
li:nth-child(3){
    grid-column: 3/4;
    grid-row: 1/2;
}
li:nth-child(4){
    grid-column: 4/5;
    grid-row: 1/2;
}
li:nth-child(5){
    grid-column: 5/6;
    grid-row: 1/2;
}
li:nth-child(6){
    grid-column: 5/6;
    grid-row: 2/3;
}
li:nth-child(7){
    grid-column: 5/6;
    grid-row: 3/4;
}
li:nth-child(8){
    grid-column: 5/6;
    grid-row: 4/5;
}
li:nth-child(9){
    grid-column: 5/6;
    grid-row: 5/6;
}
li:nth-child(10){
    grid-column: 4/5;
    grid-row: 5/6;
}
li:nth-child(11){
    grid-column: 3/4;
    grid-row: 5/6;
}
li:nth-child(12){
    grid-column: 2/3;
    grid-row: 5/6;
}
li:nth-child(13){
    grid-column: 1/2;
    grid-row: 5/6;
}
li:nth-child(14){
    grid-column: 1/2;
    grid-row: 4/5;
}
li:nth-child(15){
    grid-column: 1/2;
    grid-row: 3/4;
}
li:nth-child(16){
    grid-column: 1/2;
    grid-row: 2/3;
}
li:nth-child(17){/*CENTRE*/
    grid-column: 2/5;
    grid-row: 2/5;
}


li span {
    font-size: 50px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

li:nth-child(1) span{
    transform: rotate(135deg);
}
li:nth-child(2) span,
li:nth-child(3) span,
li:nth-child(4) span{
    transform: rotate(180deg) translateY(33%);
}
li:nth-child(2)::before,
li:nth-child(3)::before,
li:nth-child(4)::before{
    position: absolute; bottom: 0;
    width: 100%; height: 30%;
    background-color: #1CA564;
    border-top: solid black 5px;
    content: " ";
}
li:nth-child(5) span{
    transform: rotate(225deg);
}
li:nth-child(6) span,
li:nth-child(7) span,
li:nth-child(8) span{
    transform: rotate(270deg) translateY(33%);
}
li:nth-child(6)::before,
li:nth-child(7)::before,
li:nth-child(8)::before{
    position: absolute; left: 0;
    width: 30%; height: 100%;
    background-color: #EB8A49;
    border-right: solid black 5px;
    content: " ";
}
li:nth-child(9) span{
    transform: rotate(315deg);
}
li:nth-child(10) span,
li:nth-child(11) span,
li:nth-child(12) span{
    transform: translateY(33%);
}
li:nth-child(10)::before,
li:nth-child(11)::before,
li:nth-child(12)::before{
    position: absolute; top: 0;
    width: 100%; height: 30%;
    background-color: #C53B80;
    border-bottom: solid black 5px;
    content: " ";
}
li:nth-child(13) span{
    transform: rotate(45deg);
}
li:nth-child(14) span,
li:nth-child(15) span,
li:nth-child(16) span{
    transform: rotate(90deg) translateY(33%);
}
li:nth-child(14)::before,
li:nth-child(15)::before,
li:nth-child(16)::before{
    position: absolute; right: 0;
    width: 30%; height: 100%;
    background-color: #FFEF60;
    border-left: solid black 5px;
    content: " ";
}

li:nth-child(17) span.container{/*CENTRE*/
    transform: rotate(-45deg);
    border: solid black 5px;
    
    width: 450px; height: 80px;
    background-color: #FF001A;

    display: flex;
    align-items: center;
    justify-content: center;
}
li:nth-child(17) span.text{/*CENTRE*/
    filter: drop-shadow(black -4px 4px 0px);
    color: white;
}