.content-container .content {
    text-align: center;
}
.content-container .content::before {
    display: none;
}

.results-control {
    display: grid;
    grid-template-columns: auto 200px;
    height: 65px;
}

.order-by label {
    font-weight: bold; 
}
.order-by, .order-by ul, .order-by li {
    margin: 0;
    padding: 0;
    background: var(--bg-color);
    text-align: left;
}
.order-by {
    padding-top: 10px;
    width: 200px;
}
.order-by ul {
    list-style: none;
    width: 198px;
    position: absolute;
    margin-left: -5px;
}
.order-by li {
    float: left;
    display: block;
    position: relative;
    min-width: 51%;
    width: 198px;
    opacity: 0;
    max-height: 0;
    height: 22px;
    margin-top: -22px;
    left: 0;
    transition: all 0.5s ease;
}
.order-by li:nth-child(1), .order-by li:nth-child(2) {
    margin-top: 0;
}
.order-by li:last-child {
    margin-bottom: 5px;
}
.order-by li > * {
    display: none;
    padding: 1px 5px;
    font-weight: normal;
    color: var(--nav-foreground);
    cursor: pointer;
}
.order-by li.label > * {
    color: var(--fg-color);
}
.order-by li.label > *::after {
    content: '\23F5';
    display: inline-block;
    transform: rotate(0deg);
}
#order-by-checkbox:checked ~ ul li.label > *::after {
    transform: rotate(90deg);
    transition: 0.5s ease;
}

#order-by-checkbox:checked ~ ul li > *, .order-by li.active > *, .order-by li.label > * {
    display: block;
}
#order-by-checkbox ~ label {
    display: block;
    margin-left: -3px;
    padding: 1px 4px;
    border: 1px solid transparent;
    width: 186px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
#order-by-checkbox:checked ~ label {
    border-color: var(--fg-color);
    background: var(--bg-gradient);
}
.order-by li.active > * {
    font-style: italic;
    text-decoration: underline;
}

#order-by-checkbox:checked ~ ul li > *:hover, #order-by-checkbox:checked ~ ul li.active > * {
    background: var(--fg-color);
    color: var(--bg-color);
}
.order-by li.label > * {
    display: inline;
}
#order-by-checkbox:checked ~ ul li:nth-child(1) > *:hover {
    background: transparent;
    color: var(--fg-color);
}
#order-by-checkbox {
    display: none;
}
.order-by ul {
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 3px;
}
#order-by-checkbox:checked ~ ul {
    border-color: var(--fg-color);
    box-shadow: 0 0 3px var(--fg-color);
}
.order-by ul:hover {
    border-color: var(--fg-color);
}

#order-by-checkbox:checked ~ ul li, .order-by li.active, .order-by li.label {
    max-height: unset;
    opacity: 1;
    display: block;
    margin-top: 0;
    transition-duration: 0.5s;
}
@media screen and (max-width: 440px) {
    .order-by {
        display: none;
    }
    .results-control {
        display: block;
    }
    h1 {
        margin-right: unset;
    }
    
}
