#program-list { max-height: 60vh; overflow: auto; scrollbar-width: thin; scrollbar-color: darkblue #8ad; } #program-list::-webkit-scrollbar { width: 0.25em; height: 0.25em; } #program-list::-webkit-scrollbar-track { background: #8ad; } #program-list::-webkit-scrollbar-thumb { background: darkblue; } details summary .duration { font-family: monospace; } @media (min-width: 40em) { main { display: grid; grid-template-columns: 50% 50%; } main > div { padding: 1em; } .programs { display: grid; grid-auto-rows: 10em; grid-template-columns: repeat(auto-fit, minmax(10em, 1fr)); grid-gap: 0.8em; } .program { background-color: #099; } .program a { display: flex; align-items: center; justify-content: center; height: 100%; width: 100%; text-decoration: none; color: inherit; transition: color 0.5s; } .program:hover a { color: white; } .program .summary { font-weight: bold; text-align: center; transition: 0.5s; } .program:hover .summary { opacity: 1; } .details.active > *:first-child { margin-top: 0; } } @media (max-width: 40em) { main { padding-left: 0.8em; padding-right: 0.8em; } .programs { display: grid; grid-template-columns: repeat(auto-fit, minmax(8em, 1fr)); grid-gap: 0.8em; grid-auto-rows: 4em; } .program { background-color: #099; } .program a { display: flex; width: 100%; height: 100%; justify-content: center; align-items: center; text-decoration: none; } .program .summary { font-weight: bold; } }