.resource-download {
    position: relative;
    border-radius: 0.1rem;
    padding: 0.5em;
    max-width: 80%;
    display: flex;
    flex-direction: row;
}

.resource-download img {
    width: 100px;
    height: 100px;
    margin-right: 1em;
}

.resource-download div {
    display: flex;
    flex-direction: column;
}

.resource-download div h3 {
    margin: 0;
}

.resource-download div h4 {
    margin: 0;
    font-style: normal;
    font-weight: 300;
    color: gray;
}

.resource-download > a {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    border-radius: 0.1rem;
}

.resource-download > a:hover {
    box-shadow: #00000033 0 0 8px 0px;
}

.expansion {
    position: relative;
    border-radius: 0.1rem;
    padding: 0.5em;
    max-width: 80%;
    display: flex;
    flex-direction: row;
}

.expansion.rules-module {
    
}

.expansion img {
    display: inline-block;
    width: 100px;
    margin-right: 2em;
    margin-left: 0.5rem;
}

.expansion a.main-panel-link {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    border-radius: 0.1rem;
    z-index: 10;
}

.expansion a.main-panel-link:hover {
    box-shadow: #00000033 0 0 8px 0px;
}

.expansion a {
    position: relative;
    z-index: 100;
}

.md-typeset .expansion div.card {
    display: flex;
    flex-direction: column;
}

.md-typeset .expansion div.card p:first-child {
    display: none;
}

.md-typeset .expansion :is(h2,h3,h4) {
    margin: 0;
    font-size: 1rem;
    font-style: normal;
    border-bottom: 1px solid black;
}

.expansion dl {
    position: relative;
    display: flex;
    font-family: var(--mono-font-family);
    flex-direction: row;
    flex-wrap: wrap;
    font-size: 0.8em;
}

.expansion dt {
    flex-basis: 20%;
    white-space: nowrap;
    padding: 0.125rem 0;
    color: var(--md-primary-fg-color);
}

.expansion dd {
    flex-basis: 70%;
    flex-grow: 1;
    margin: 0;
    white-space: nowrap;
    padding: 0.125rem 0;
}

.expansion p.descr {
    font-size: 0.9em;
    margin-top: 0.5em;
    margin-bottom: 0;
}