:root {
    --purple: #912FBF;
    --bgc: darkcyan;
    --wgrey: #C0C0C0;
    --zing: powderblue;
    --dim: #808080;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background: var(--bgc);
    font-family: "Times New Roman";
    font-size: large;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.main-box{
    display: flex;
    flex-direction: column;
    max-width: 800px;
    background: var(--wgrey);
    padding: 4px;
    justify-self: center;
    align-self: center;
    margin: auto auto;
    flex: 1;
}
.top-bar{
    background: linear-gradient(to right, black, black, var(--purple)) 100% 0;
    background-size: 190% 100%;
    color: var(--zing);
    width: 100%;
    display: flex;
    align-items: center;
    font-family: "Lucida Console";
    font-size: x-large;
}
.ico{
    width: 1.5em;
    height: 1.5em;
}
.tabs{
    display: flex;
    font-family: Arial;
    padding: 2px;
}
.tab{
    text-decoration: none;
    color: black;
    padding-right: 1ch;
}
.ul{
    text-decoration: underline;
}
.title{
    font-size: xx-large;
    font-weight: bold;
    margin-top: 0;
}
.halves{
    display: flex;
}
.box-content{
    display: flex;
}
.text-content{
    background: white;
    padding: 1em;
    display: flex;
    flex-direction: column;
    gap: 1em;
}
.labeled{
    padding-bottom: 0.5em;
    padding-top: 0.5em;
}
input[type=radio]{
    accent-color: black;
}
.buttons{
    display: flex;
    justify-content: end;
    background: var(--wgrey);
    margin: 8px 0;
}
.bt {
    border-style: outset;
    padding: 0.25em 1.5em;
    margin: 0 0.5em;
    text-decoration: none;
    font-family: Arial;
}
button {
    all: unset;
}
.dim{
    color: var(--dim);
    text-shadow: 1px 1px white;
}
.lit{
    color: black;
    border-color: black;
}
.search-row{
    display: flex;
    width: 100%;
    margin-top: 0.5em;
    margin-bottom: 1em;
}
.search-bar{
    flex: 1;
    font-size: large;
    padding: 1.0ch;
}
.results{
    display: flex;
    flex-direction: column;
    border-style: groove;
}
.exact-match{
    padding: 0.5em;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}
h2{
    font-family: Arial;
    font-style: italic;
    text-shadow: 2px 2px white;
}
.word-type{
    text-decoration: underline;
    font-style: italic;
}
.definition{

}
.category{

}
.category-header{
    display: flex;
    justify-content: space-between;
    font-size: x-large;
    padding: 0.25em;
    border-style: outset;
    text-shadow: 1px 1px white;
}
.result-count{

}
.category-content {
    display: none;
}
.category-content.expanded {
    display: block;
    border-style: ridge;
    border-top: 0;
    background: white;
}
.results-grid{
    display: flex;
    flex-wrap: wrap;
    padding: 0.5ch;
    gap: 0.5ch;
}
.result-item{
    color: black;
    font-size: medium;
    font-family: Arial;
    border-style: groove;
    border-radius: 0.5em;
    padding: 2px;
}
.naspa{
    display: flex;
    justify-content: center;
    align-content: center;
    font-size: small;
    font-family: "Lucida Console";
}

@media(max-width: 800px) {
    .sidebar{
        visibility: hidden;
        width: 0;
    }
    .main-box{
        min-width: 100vw;
    }
}
/*@media (min-width: 800px) {*/
/*}*/