@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,400;0,600;1,200;1,300;1,400;1,600&display=swap');
#container {
    position: relative;
    display: flex;
    flex-direction: column;
}
.textLayer span.highlight {
    position: relative;
}
.questionTitle svg {
    cursor: pointer;
}
.questionTitle .subheader {
    flex-grow: 1;
    margin: 0;
    padding: 0;
}
.questionTitle {
    gap: 16px;
    width: 100%;
    padding: 8px 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.main {
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 100vh;
    align-items: start;
    justify-content: start;
}
.mainBox {
    padding: 0 120px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mainContainer {

    width: 100vw;
}

.gradientContainer {
    z-index: -3;
    position: absolute;
    top: 0;
    pointer-events: none;
    left: 0;
    width: 100%;
    height: max(120vh, 800px);
    background: radial-gradient(76.37% 100% at 94.39% 1.72%, #1A191D 0%, transparent 100%);
}


.gradientContainer.second {
    top: unset;
    bottom: 0;
    display: none;
    background: radial-gradient(130.09% 93.1% at 107.81% -3.3%, #1A191D 0%,  transparent 100%);
    transform: rotate(180deg);
}

.externalButton {
    color: white;
    cursor: pointer;
}

.questionWrapper {
    transition: opacity .3s;
    flex-direction: column;
    display: inline-block; /* important: allows breaking into columns */
    width: 100%;           /* fill the column width */
    margin-bottom: 32px;
}
.pageWrapper {
    position: relative;
}
.maximiseButton {
    display: block;
}
.minimiseButton {
    display: none;
}
.nextPage, .prevPage {
    cursor: pointer;
    height: 32px;
    width: 32px;
}
.greyed {
    opacity: .3;
    cursor: default;
}
.pageNav {
    display: none;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    font-size: 24px;

}
.nextPage {

}
.prevPage {

}
.questionWrapper.fullSize .minimiseButton {
    display: block;
}
.questionWrapper.fullSize .maximiseButton {
    display: none;
}
.questionWrapper.fullSize .questionContainer {
    max-height: unset;
}
.mainBox .headerText {
    font-size: 32px
}
#noResults{
    display: none;
}
.questionContainer {
    background: white;
    max-height: 300px;
    width: 100%;
    overflow: scroll;
    position: relative;
    border-radius: 5px;
}
.page {
    position: relative;
}
.pdf-canvas {
    display: block;
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}
#results {
    position: relative;
    opacity: 0;
    /*display: grid;*/
    /*grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));*/
    top: 0;
    column-width: 500px;   /* minimum column width */
    height: fit-content;
    column-gap: 32px;
    left: 0;
    width: 100%;
    margin-bottom: 100px;
}
body {
    background: #757183;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    margin: 0;
    color: white;
    box-sizing: border-box;

    width: 100vw;
}
.searchInput::placeholder {
    color: rgba(255, 255, 255, 0.45);
}
a > * {
    margin: 0;
    padding: 0;
}
a {
    color: white;
    margin: 0;
}
.searchInput {
    font-size: 24px;
    font-family: "Poppins", sans-serif;
    background: rgba(255, 255, 255, 0.24);
    border: none;
    outline: none;
    color: white;
    /*text-decoration: underline;*/
    padding: 6px 12px;
}
.resultsNumWrapper {
    display: none;
}
canvas { display: block; }

.textLayer {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: auto;
    user-select: text;
}
.textLayer span { white-space: pre; }
.resultsContainer {
    overflow: hidden;
    width: 100%;

}
.searchFilterContainer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
}h6,h5, h4, h3, h2, h1 {
    margin: 0;
    padding: 0;
 }
.filterText {
    margin: 0;
    padding: 0;
    font-size: 16px;
    /*position: relative;*/
}
.dropdownText {
    font-size: 16px;
    padding: 1px 6px;
    text-wrap: nowrap;
}
.dropdownItem.selected .dropdownText {
    background: rgba(5, 5, 5, 0.29);
}
.dropdownItem {

}
.dropdownWrapper.show {
    display: flex;
}
.dropdownWrapper .filterItem:last-child {
    flex: 1 1 ;
}
.dropdownBox {
    z-index: 1000;
    position: relative;
    display: flex;
    flex: 1 1;
    flex-wrap: wrap;
    width: auto;
    flex-direction: row;
    width: fit-content;
    background: rgb(166 163 174);
    gap: 2px;
    column-gap: 12px;
    padding: 6px 8px;
    color: white;
}
.dropdownWrapper .filterItem .innerText {
    opacity: 0;
}
.dropdownWrapper .filterItem {
    max-width: 100%;
    /*opacity: 0;*/
    color: transparent;
    /*padding-top: 0;*/
    background: transparent;
    text-wrap: nowrap;
}
.dropdownWrapper {
    max-width: calc(100% - 6px);
    /*flex-wrap: wrap;*/
    display: none;
    position: absolute;
    top: 30px;

    /*padding: 3px 4px;*/
    /*gap: 6px;*/
    left: 6px;
    /*display: flex;*/
    /*background: rgba(255, 255, 255, 0.38);*/
    /*display: flex;*/
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    /*position: relative;*/
}
.filterItem {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 8px;
    cursor: pointer;
}
.filterItem .innerText svg {
    transform: rotate(180deg);
    height: 16px;
    width: 16px;
}
.filterItem .innerText {
    display: inline-flex;
    gap: 6px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 2px 4px;
    background: rgba(0, 0, 0, 0.2);
    margin-left: 3px;
}
@media (max-width: 768px) {
    .searchInput {
        font-size: 20px;
    }
    .filterText, .dropdownText {
        /*padding: 0;*/
        font-size: 12px;
    }
    .dropdownWrapper {
        top: 20px;
        max-width: calc(100% - 3px);
    }
    .filterItem, .dropdownBox {
        padding: 3px 6px;
    }
    .searchFilterContainer {
        gap: 6px;
    }
    /*#results {*/
    /*    display: flex;*/
    /*    !*flex-direction: row;*!*/
    /*    overflow-x: scroll;*/
    /*    scroll-snap-type: x mandatory;*/
    /*    !*width: 100%;*!*/
    /*    column-gap: 0;*/
    /*}*/
    .mainBox {
        padding: 12px 0;
    }
    /*.questionWrapper {*/
    /*    padding: 0 16px;*/
    /*    box-sizing: border-box;*/
    /*    min-width: 100vw;*/
    /*    scroll-snap-align: start;*/
    /*    display: inline-block;*/
    /*}*/
}