body { font-size: 1.5rem; margin: 0; background: rgb(255, 244, 235); } .contents { margin: 32px; } h1 { color: #ecab72; margin: 32px; text-align: center; } .tag { background: none; font-size: 20px; display: inline-block; border: 1px solid currentColor; padding: 0 0.5em; border-radius: 1em; margin: 4px; text-transform: capitalize; user-select: none; cursor: pointer; transform: translateY(0); transition: transform 0.4s ease-in; } .tag.active { background-color: white; } .tag.active.all { background: none; } .tag:focus { transform: translateY(-4px); transition: transform 0.2s ease-out; } ul { padding: 0; } tr { display: none; } tr.active { display: table-row; } tr .tag { cursor: default; }