.madrix-wrapper {
    background: black;
    color: white;
    font-size: 16px;
    line-height: 1.7;
    --space:30px;
    --green:#b0cb1a;
    --grey:#404040;
    padding: var(--space);
}

.madrix-wrapper img {
  max-width:100%;
  height: auto;
  object-fit: contain;
}

.madrix-top > div {
    text-align:center;
}

.madrix-top > div img {
    width: 870px;
    margin-bottom: 10px;
}

.madrix-top > div + p {
    display: flex;
    justify-content: center;
    align-items: center;
    word-break: auto-phrase;
    text-align: center;
}

.madrix-wrapper section {
  margin: calc(var(--space)*2) 0 0;
}

.madrix-wrapper section h2 {
  font-size: 30px;
  font-weight: bold;
  margin: calc(var(--space)*1.5) 0 calc(var(--space)*.8);
  text-align: center;
  border-top: 1px solid var(--green);
  padding-top: calc(var(--space)*1.5);
  color: var(--green);
}

.madrix-wrapper section h2 + p {
  word-break:auto-phrase;
  margin-bottom:var(--space);
}

section.madrix-license  h2 + p {
  display: flex;
  justify-content: center;
}

.madrix-2d-3d > div {
  display: flex;
  gap:20px;
}

.madrix-2d-3d > div > div {
  flex:1;
}

.madrix-2d-3d > div > div > div {
    aspect-ratio: 1/1;
    justify-content: center;
    align-items: center;
    display: flex;
}

.madrix-2d-3d > div > div > div img {
  height:100%;
  object-fit: cover;
}

.madrix-wrapper h3 {
    font-weight: bold;
    font-size: 20px;
    margin: 1em 0 0.7em;
    text-align:center;
}

.madrix-wrapper section ol {
    display:flex;
    gap:var(--space);
    margin: var(--space) 0;
}

.madrix-wrapper section ol li {
     flex:1;
}

.madrix-wrapper section ol li > div {
  text-align:center;
  aspect-ratio: 100/94;
}

.madrix-wrapper section ol li > div img {
    height: 100%;
    object-fit: cover;
}

.system-requirements > div {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space);
}

.system-requirements > div > div {
  background:#404040;
}

.system-requirements > div ul {
  padding: 0 calc(var(--space)*.5) calc(var(--space)*0.7);
}

.system-requirements > div ul li {
  list-style-type: disc;
  margin-left:1.5em;.
}

.system-requirements > div ul li + li {
  margin-top:.3em;
}

*:is(.madrix-table, .madrix-table2) {
  margin: 0px 0 var(--space);
  background: var(--grey);
  padding: var(--space);
}

.madrix-table2:last-of-type {
  margin-bottom:0;
}

*:is(.madrix-table, .madrix-table2) table {
    width: 100%;
    table-layout: fixed;
}

*:is(.madrix-table, .madrix-table2) table *:is(th,td) {
    padding: 5px 3px;
    text-align:center;
    vertical-align: middle;
}

*:is(.madrix-table, .madrix-table2) table tr:nth-child(3) td {
  padding:0;
}

*:is(.madrix-table, .madrix-table2) table th:first-child {
  text-align:left;
}

*:is(.madrix-table, .madrix-table2) tr:first-child a {
  color: #8aff00;
  text-decoration:underline;
}

*:is(.madrix-table, .madrix-table2) tr:first-child a:hover {
  text-decoration:none;
}

.madrix-table th:first-child {
  width: 330px;
}

.madrix-table2 th:first-child {
  width: 190px;
}

.madrix-table2 tr:first-child th a {
  justify-content: center;
  align-items:center;
  display: flex;
  flex-direction: column;
  height: 160px;
  gap: 10px;
}

.madrix-table2 tr:first-child th a p {
  margin-top:auto;
  font-weight: bold;
}

.madrix-table2 table *:is(th,td) img {
  max-height: 120px;
  max-width:150px;
  margin-top: auto;
}

@media (max-width: 801px){
    .madrix-wrapper {
        --space: 20px;
        font-size: 14px;
    }

    .madrix-top > div + p {
        text-align: left;
        word-break: break-all;
    }

    .madrix-top > div + p br {
        display:none;
    }

    .madrix-wrapper section h2 {
        font-size: 20px;
        word-break: auto-phrase;
    }

    .madrix-wrapper section h2 + p {
        word-break: break-all;
    }

    .madrix-2d-3d > div {
        flex-direction: column;
        gap: 30px;
    }

    .madrix-wrapper h3 {
        font-size: 17px;
        margin: 0.9em 0 0.6em;
        word-break: auto-phrase;
    }

    .madrix-2d-3d > div > div > div {
        aspect-ratio: 2/1;
    }

    .madrix-wrapper section ol {
        flex-direction: column;
        gap: 40px;
    }

    .madrix-wrapper section ol li > div {
        aspect-ratio: 100 / 56;
    }

    .system-requirements > div {
        grid-template-columns: repeat(1, 1fr);
    }

    .system-requirements > div ul {
        padding: 0;
        margin-top: 20px;
    }

    .madrix-table th:first-child {
      width: 178px;
    }

    *:is(.madrix-table, .madrix-table2) table {
        font-size: 12px;
        line-height: 1.5;
    }

    .madrix-table2 th:first-child {
        width: 140px;
    }

    .madrix-table2 table *:is(th,td) img {
        max-height: 70px;
        max-width: 90px;
    }

    .madrix-table2 tr:first-child th a {
        height: 100px;
    }

    .system-requirements > div > div {
    padding: 10px 20px 20px 20px;
    }

}

@media (max-width: 501px){

    *:is(.madrix-table, .madrix-table2) table {
        font-size: 10px;
        line-height: 1.5;
    }
    .madrix-table2 th:first-child {
        width: 70px;
    }

    .madrix-table2 {
        padding: 10px;
    }

    .madrix-table th:first-child {
        width: 80px;
    }

    .madrix-table {
        padding: 10px;
    }

    .madrix-table2 table *:is(th,td) img {
        max-height: 50px;
        max-width: 68px;
    }

}