:root {
    --hgroup-height: 300px;
}

nav a {
    color: var(--navbar-text-col);
    text-decoration: none;
}

hgroup {
    height: var(--hgroup-height);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

hgroup .jumpto-letter {
    background: var(--bg-col);
    border-radius: 0.5rem 0.5rem 0 0;
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

.jumpto-letter>a {
    display: block;
    color: var(--text-col);
    padding: 0.5rem;
    text-decoration: none;
    position: relative;
}

ul {
    padding: 0;
    list-style: none;
}

#all-words li {
    display: flex;
    flex-direction: row;
    padding: 1rem;
    align-items: center;
}
#all-words li:nth-child(even) {
    background: #0003;
    border-radius: 1rem;
}

#all-words li>h2 {
    width: 1rem;
    text-align: right;
    padding-right: 2rem;
    margin: 0;
    height: fit-content;
}

main {
    width: 90%;
    max-width: 960px;
    margin: auto;
}

main>ul>li {
    padding-bottom: 3rem;
}

main>ul>li>h2 {
    width: 100%;

}

.letter-entries {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    justify-content: center;
}

.letter-entries>a {
    display: flex;
    align-items: center;
    width: 200px;
    color: var(--text-col);
    text-decoration: none;
    padding: 0.4rem;
    margin: 0.2rem;
    position: relative;
}

.letter-entries>a:hover::before,
.letter-entries>a:focus::before,
.jumpto-letter>a:hover::before,
.jumpto-letter>a:focus::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: var(--text-col);
    opacity: 0.05;
    border-radius: 0.4rem;
}

#letter-navbar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: end;
}

.nav-letter {
    padding-right: 10px;
    text-align: center;
    transition: all 100ms linear;
    width:20px;
    max-width: 20px;
  font-size: calc(min(1.4rem, 3vh));
}
.nav-letter:hover {
padding-left: 1rem;
    border-top: solid 1px var(--text-col);
    border-bottom: solid 1px var(--text-col);
}