.resultType, .alert {
    padding:1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}
.resultType {
    background-color: var(--koivu);
}
.resultType p, .alert p {
    margin:0;
}
.resultType span, .alert span {
    font-weight: 500;
    font-style: italic;
}
.filter-container {
    margin:1rem 0;
    /* width:clamp(20rem, 80%, 80rem); */
}
.authors {
    /* display:flex; */
    flex-wrap: nowrap;
    gap: 1.5rem;
}
.author-container {
    display:flex;
    flex-wrap: nowrap;
    cursor: pointer;
}
.author-container h5 {
    font-size: 1rem;
}
.titles {
    margin:0 0 0.6rem;
}
.title-list {
    display:flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    padding-left: 1.5rem;
    display:none;
}
.title-list.show {
    display:flex;
}
.rotate {
    rotate:180deg;
}
.activeFilters {
    font-size:0.9rem;
    text-align: right;
}
.activeFilters .badge {
    color: #000;
    font-weight: 400;
    border: 1px solid;
    margin: 0 0 0.2rem 0.5rem;
}
.titles label {
    font-size: 0.9rem;
    font-weight: 400;
    color: #333;
    cursor: pointer;
}
.resultContainer {
    display: flex;
    overflow: hidden;
    border: 1px solid #eee;
    border-radius: 0.8rem;
    padding: 1rem 0;
    margin-top: 1rem;
}
.list-group {
    width:40%;
    font-size: 85%;
    overflow-y: scroll;
    height: 100%;
}
#right-side {
    width:60%;
}
.resultContainer .list-group-item {
    border-width: 0 1px 1px 0;
    border-radius: 0;
    padding: 1rem;
}
#right-side {
    margin-left:1%;
    padding: 1rem 2rem;
}
.snippetContent {
    height:100%;
    /* overflow-y:scroll; */
}

.authorSelects {
    display: flex;
    gap-horizontal: 2rem;
}
.filterControls {
    font-size:0.9rem;
}
.showDescription {
    font-size: 0.9rem;
}
.list-group-item h4 {
    margin-bottom: 0.8rem;
    font-size: 1.1em;
}
.list-group-item ul li:hover{
    cursor: pointer;
    background: var(--highlightcolor);
}
.list-group-item ul li{
    position: relative;
    list-style-type: none;
    padding: 0.5rem 0.8rem;
}
.paragnr {
    position: absolute;
    right: 100%;
    padding-right: 0.2rem;
    white-space: nowrap;
    font-size: 0.8rem;
}
.description {
    display:none;
    font-size: 0.9rem;
    color: var(--pakkasyo);
    margin-bottom: 1rem;
}
#resultFilter .ss-main .ss-values .ss-value {
    background-color: var(--havu);
    font-family: 'Work Sans', sans-serif;
    padding: 0.2em 0.3em;
    font-size: 0.85em;
    margin-right: 1.2em;
}
.snippetHeader {
    margin-bottom:2rem;
    display: grid;
    grid-template-columns: auto auto;
    justify-items: end;
    align-items: center;
}
.snippetHeader h3 {
    font-size: 1rem;
    margin:0 0.5rem;
    text-align: right;
}
#backToResults {
    display:none;
}
.snippetHeader a.btn-outline- {
    background-color: #fff;
    border-color:var(--pakkasyo);
    color:var(--pakkasyo);
}
.snippetHeader a.btn-outline-:hover {
    background-color: var(--pakkasyo);
    color: #fff;
}
@media (max-width: 900px) {
    .list-group, #right-side {
        width:100%;
        transition:all 0.3s ease-out;
    }
    #right-side {
        margin-right:-100%;
    }
    .snippetHeader {
        grid-template-columns: auto auto auto;
    }
    #backToResults {
        display:block;
    }
    .resultType p {
        padding-left:0.4rem;
    }
    #changeAuthoritative {
        display: block;
        margin-top: 0.5rem;
        margin-left:-0.4rem;
    }
}
@media (max-width: 650px) {
    .filter-container {
        grid-row:2;
    }
    .activeFilters {
        grid-row: 1;
        text-align:left;
    }
    .activeFilters .badge {
        margin: 0 0.5rem 0.2rem 0;
    }
}