* {
    font-family: Roboto;

}

section#main {
    max-width: 66em;
    margin: 0 auto;
}

h1 {
    font-size: 2.5em;
    font-weight: 300;
    margin: 1em 0 0.5em 0;
}

h2 {
    font-size: 1.25em;
    font-weight: 300;
    margin: 0 0 1em 0.5em;
}

#filterList {
    border-radius: 1.1em 1.1em 0 0;
    padding: 1em;
    background: #d1d1d1;
}

#cardList {
    border-radius: 0 0 1.1em 1.1em;
    background: #ebf0f8;
}

#cardList .cardrow {
    padding: 2em 1em 1em 1em;
}

#cardList .cardrow.recent {
    background: #d5e0f8;
}

ul {
    list-style-type: none;
    display: grid;
    grid-template-columns: repeat(5, 12em);
    grid-auto-rows: 11em;
    column-gap: 1em;
    row-gap: 1em;
    padding: 0 0 1em 0;
}

ul.recentcards {
    box-shadow: 0 0 0.5em red;
}

li {
    border-radius: 1.1em;
    background: #f8f8f8;
    padding: 0;
    align-content: end;
    font-weight: normal;
    position: relative;
}

#cardList li img {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 1.1em 1.1em 0 0;
}

#cardList li span {
    display: block;
    position: absolute;
}

#cardList li .breadcrumb {
    top: 8.75em;
    padding: 0 1.25em;
    font-size: 0.75em;
    color: #999999;
}

#cardList li .title {
    top: 7.75em;
    padding: 0 0.9375em;
    font-weight: 500;
}

li:hover {
    background: white;
    box-shadow: 0 0 0.5em #bbb;
    cursor: pointer;
}

button {
    display: inline-block;
    background: black;
    color: white;
    border: none;
    margin: 0 1em 0 0;
    line-height: 2.2em;
    border-radius: 1.1em;
    padding: 0 1.25em;
}

button:hover,
button.selected {
    background: rgb(27, 101, 197);
    cursor: pointer;
}

#modalmask {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    backdrop-filter: blur(0.5em) saturate(25%) brightness(0.5);
}

#modalcontent {
    position: relative;
    width: 48.625em;
    margin: 2em auto;
    background: white;
    border-radius: 1.1em;
    box-shadow: 0 0 1em rgba(0, 0, 0, 1);
    padding: 0;
    min-height: 45em;
}

#modalcontent img {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 1.1em 1.1em 0 0;
}

#modalcontent h3 {
    position: absolute;
    left: 0.5em;
    top: 10.5em;
    font-size: 2.5em;
    font-weight: 300;
    margin: 0;
}

#modalcontent p.breadcrumb {
    position: absolute;
    left: 1.25em;
    top: 24.5em;
    font-size: 1em;
    color: #999999;
    margin: 0;
}

#modalcontent p.exercise {
    position: absolute;
    left: 1.25em;
    top: 31em;
    font-size: 1em;
    margin: 0;
}