100 совпадание, но почему-то было смещение влево всех карточек, поэтому добавил в класс card отступ слева 19px
html,
body {
margin: 0;
padding: 0;
font-family: “Arial”, sans-serif;
}
body {
min-width: 550px;
min-height: 250px;
padding: 10px;
}
.cards {
width: 500px;
margin-left: 19px;
}
.cards li::before {
font-family: “Courier”, monospace;
}
li:nth-of-type(n+5), li:nth-of-type(-n+3) {
margin-left: -15px;
}
li:nth-of-type(n+5), li:nth-of-type(-n+3) {
width: 36px;
height: 54px;
}
li:nth-of-type(4) {
margin-right: 30px;
margin-left: 15px;
}
ul:nth-of-type(1) li:nth-of-type(9),
ul:nth-of-type(2) li:nth-of-type(3),
ul:nth-of-type(2) li:nth-of-type(5),
ul:nth-of-type(3) li:nth-of-type(1),
ul:nth-of-type(3) li:nth-of-type(7)
{
background-color: #0099ff;
}
ul:first-of-type li:nth-of-type(2),
ul:nth-of-type(3) li:nth-of-type(2),
ul:nth-of-type(4) li:nth-of-type(2)
{
background-color: #ff3300;
}
ul:nth-of-type(4) li:nth-of-type(3),
ul:nth-of-type(4) li:nth-of-type(6),
ul:nth-of-type(4) li:nth-of-type(9)
{
background-color: #339933;
}