.chapter-list {
display: grid;
grid-template-columns: repeat(auto-fill, 25em);
grid-template-rows: auto;
justify-content: space-between;
justify-items: center;
font-size: .8em;
}
.chapter {
box-shadow: 0 2px 0 rgba(0, 0, 0, .02);
background-color: rgba(255, 255, 255, .3);
color: #222;
max-width: 24em;
margin-bottom: 1em;
}
.chapter-header {
background-color: rgba(255, 255, 255, .5);
padding: 1em;
}
.chapter-header-title {
font-size: 1.5em;
font-weight: bold;
}
.chapter-header-icon {
margin-right: 1em;
}
.chapter-text {
margin-bottom: 1em;
padding: 1em;
}
@media screen and (max-width: 768px) {
.chapter-list {
grid-template-columns: repeat(auto-fill, 20em);
}
}
@media screen and (max-width: 600px) {
.chapter-list {
grid-template-columns: none;
justify-content: center;
}
.chapter {
max-width: none;
width: 80vw;
}
}