* {
    box-sizing: border-box;
}

html {
    font-family: Avenir, Helvetica, "Open-Sans", "Helvetica Neue", Arial, sans-serif;
    font-size: 20px;
    color: white;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

header {
    display: flex;
    justify-content: center;
}
  
a {
    background-color: red;
    border-radius: 20px;
    position: absolute;
    width: 300px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: black;
}

ol {
    display: grid;
    grid-template-columns: repeat(4,40px) 60px repeat(4,40px);
    grid-template-rows: repeat(4,40px) 60px repeat(4,40px);
    list-style: none;
    justify-items: center;
    align-items: center;
    margin: 0;
    padding: 20px;
    border : 20px ridge black ;
    background-color: #ba926c;
}

.case_ronde {
    width: 30px;
    height: 30px;
    border-radius: 100%;
    background-color: red;
}

.case_rect_d {
    width: 60px;
    height: 30px;
    background-color: aqua;
}

.case_rect {
    height: 60px;
    width: 30px;
    background-color: aqua;
}

.case_dep {
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

img {
    width: 80px;
    height: 80px;
}

#r1 {
    grid-row: 4/5;
    grid-column: 1/2;
    background-color: green;
}

#r2 {
    grid-row: 4/5;
    grid-column: 2/3;
    background-color: green;
}

#r3 {
    grid-row: 4/5;
    grid-column: 3/4;
    background-color: green;
}

#r4 {
    grid-row: 4/5;
    grid-column: 4/5;
    background-color: green;
}

#r5 {
    grid-row: 3/4;
    grid-column: 4/5;
    background-color: green;
}

#r6 {
    grid-row: 2/3;
    grid-column: 4/5;
    background-color: green;
}

#r7 {
    grid-row: 1/2;
    grid-column: 4/5;
    background-color: green;
}

#r8 {
    grid-row: 1/2;
    grid-column: 5/6;
    background-color: green;
}

#r9 {
    grid-row: 1/2;
    grid-column: 6/7;
    background-color: red;
}

#r10 {
    grid-row: 2/3;
    grid-column: 6/7;
    background-color: red;
}

#r11 {
    grid-row: 3/4;
    grid-column: 6/7;
    background-color: red;
}

#r12 {
    grid-row: 4/5;
    grid-column: 6/7;
    background-color: red;
}

#r13 {
    grid-row: 4/5;
    grid-column: 7/8;
    background-color: red;
}

#r14 {
    grid-row: 4/5;
    grid-column: 8/9;
    background-color: red;
}

#r15 {
    grid-row: 4/5;
    grid-column: 9/10;
    background-color: red;
}

#r16 {
    grid-row: 5/6;
    grid-column: 9/10;
    background-color: red;
}

#r17 {
    grid-row: 6/7;
    grid-column: 9/10;
    background-color: yellow;
}

#r18 {
    grid-row: 6/7;
    grid-column: 8/9;
    background-color: yellow;
}

#r19 {
    grid-row: 6/7;
    grid-column: 7/8;
    background-color: yellow;
}

#r20 {
    grid-row: 6/7;
    grid-column: 6/7;
    background-color: yellow;
}

#r21 {
    grid-row: 7/8;
    grid-column: 6/7;
    background-color: yellow;
}

#r22 {
    grid-row: 8/9;
    grid-column: 6/7;
    background-color: yellow;
}

#r23 {
    grid-row: 9/10;
    grid-column: 6/7;
    background-color: yellow;
}

#r24 {
    grid-row: 9/10;
    grid-column: 5/6;
    background-color: yellow;
}

#r25 {
    grid-row: 9/10;
    grid-column: 4/5;
    background-color: blue;
}

#r26 {
    grid-row: 8/9;
    grid-column: 4/5;
    background-color: blue;
}

#r27 {
    grid-row: 7/8;
    grid-column: 4/5;
    background-color: blue;
}

#r28 {
    grid-row: 6/7;
    grid-column: 4/5;
    background-color: blue;
}

#r29 {
    grid-row: 6/7;
    grid-column: 3/4;
    background-color: blue;
}

#r30 {
    grid-row: 6/7;
    grid-column: 2/3;
    background-color: blue;
}

#r31 {
    grid-row: 6/7;
    grid-column: 1/2;
    background-color: blue;
}

#r32 {
    grid-row: 5/6;
    grid-column: 1/2;
    background-color: blue;
}

#m1 span, #m2 span, #m3 span{
    display: flex;
    justify-content: center;
    margin-top: 3px;
    transform: rotate(180deg);
}

#m4 span, #m5 span, #m6 span{
    display: flex;
    justify-content: center;
    margin-top: 20px;
    transform: rotate(-90deg);
}

#m7 span, #m8 span, #m9 span{
    display: flex;
    justify-content: center;
    margin-top: 5px;
}

#m10 span, #m11 span, #m12 span{
    display: flex;
    justify-content: center;
    margin-top: 20px;
    transform: rotate(90deg);
}

#m1 {
    grid-row: 2/3;
    grid-column: 5/6;
    background-color: green;
}

#m2 {
    grid-row: 3/4;
    grid-column: 5/6;
    background-color: green;
}

#m3 {
    grid-row: 4/5;
    grid-column: 5/6;
    background-color: green;
}

#m4 {
    grid-row: 5/6;
    grid-column: 6/7;
    background-color: red;
}

#m5 {
    grid-row: 5/6;
    grid-column: 7/8;
    background-color: red;
}

#m6 {
    grid-row: 5/6;
    grid-column: 8/9;
    background-color: red;
}

#m7 {
    grid-row: 6/7;
    grid-column: 5/6;
    background-color: yellow;
}

#m8 {
    grid-row: 7/8;
    grid-column: 5/6;
    background-color: yellow;
}

#m9 {
    grid-row: 8/9;
    grid-column: 5/6;
    background-color: yellow;
}

#m10 {
    grid-row: 5/6;
    grid-column: 4/5;
    background-color: blue;
}

#m11 {
    grid-row: 5/6;
    grid-column: 3/4;
    background-color: blue;
}

#m12 {
    grid-row: 5/6;
    grid-column: 2/3;
    background-color: blue;
}

#d1 {
    grid-row: 1/4;
    grid-column: 1/4;
    background-color: green;
}

#d1 img {
    transform: rotate(90deg);
}

#d2 {
    grid-row: 1/4;
    grid-column: 7/10;
    background-color: red;
}

#d2 img {
    transform: rotate(180deg);
}

#d3 {
    grid-row: 7/10;
    grid-column: 1/4;
    background-color: blue;
}

#d4 {
    grid-row: 7/10;
    grid-column: 7/10;
    background-color: yellow;
}

#d4 img {
    transform: rotate(-90deg);
}