@font-face {
    font-family: 'ScalaSansOT';
    src: url('../fonts/ScalaSansOT.otf') format('otf');
    /* Add other formats if needed */
    font-weight: normal;
    font-style: normal;
}
#content {
    display: flex;
   flex-flow: column;
}
#content nav.pagination {
    order: 5;
}
#content item.results {
   order: 4;
}
  #section-sidebar-modal-toggle {
       display: none;
       
   } 
.sorting button {
    font-family: 'ScalaSansOT':
}
body {
    min-height: 1280px;
}
footer {
    display: none;
}
a {
    color: #000;
}
a:focus, a:hover {
    text-decoration: underline;
    color: #EE2717;
}
header {
   font-family: 'ScalaSansOt', sans-serif;
   background-color: rgba(0, 0, 0, 0.8);
   height: 125px;
}
a {
    color: #000;
}
a:focus, a:hover {
    text-decoration: underline;
    color: #EE2717;
}

.site-title {
    font-family: 'ScalaSansOT', sans-serif;
    font-weight: 700 !important; 
    background-color: rgba(0, 0, 0, 0.8);
    padding-left: 4rem;
    padding-right: 4rem;
    padding-top: 25px !important;
}
.site-title::before {
    background-color: rgba(0, 0, 0, 0.8);
}
.site-title a img {
    height: 39.9844px;
    width: auto;
}
#top-nav {
    background-color: rgba(0, 0, 0, 0.8);
    padding-left: 4rem;
    padding-right: 8rem;
    position: relative;
    height: 49px;
}
#top-nav::before {
     background-color: rgba(0, 0, 0, 0.8);
}
ul.navigation {
    background-color: rgba(0, 0, 0, 0.8);
    height: 49px !important;
}
.navigation li a {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.51008px;
    line-height: 49px;
}
.navigation li a:hover, .navigation li a:active, .navigation li a:visited {
    text-decoration: underline;
    text-decoration-thickness: 8px; 
    text-underline-offset: 20px;
}
.navigation {
    z-index: 9999;
}
.navigation li a {
 font-family: 'ScalaSansOT', sans-serif;
}
#search {
   font-family: 'ScalaSansOT, sans-serif;
   position: absolute;
   top: 5px;
   right: -42%;
   background-color: rgba(0, 0, 0, 0.8) !important;
   horizontal-align: right;
   width: 30%;
}
#search form {
    padding: 0px;
}
#search-submit {
    background-color:  #E22717;
    color: #ffff;
}
#content {
   font-family: 'ScalaSansOT', sans-serif;
   font-size: 18px;
}
.item {
    color: #000;
}
.item a {
     color: #000;
}
.blocks-inner div:nth-child(4) div {
    min-width: 450px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.blocks-inner div:nth-child(4) div p  {
   text-align: center;
   width: 200px;
   padding: 10px 10px 10px 10px;
   background-color:  #E22717;
}
.blocks-inner div:nth-child(4) div p  a {
    color: #fff;
}
.facet-container {
   padding: 5px 5px 5px 5px;
}
#facets {
    max-width:300px;
    width: auto;
}
.facet {
    margin-bottom: 1em;
}
.select-list {
   border: 1px solid #000;
   max-height: 400px;
   height: auto;
   overflow-y: scroll;
   padding-left: 5px !important;
}
.select-list-item {
    margin-bottom: 5px;
    font-size: 16px;
}
.select-list-item label:has(input.selected) {
    border-bottom: 1px dashed #000;
}
.section-content, .browse-controls, .browse-controls a, .browse-controls .sorting select option {
    font-family: 'ScalaSansOT', sans-serif;
}
.uri-value-link {
    color: #000 !important; 
}
.uri-value-link:focus, .uri-value-link:hover {
    text-decoration: underline;
    color: #E22717 !important; 
}
.items.results ul li a, .value a {
    color: #000;
}
.items.results ul li a:focus, .items.results ul li a:hover {
    text-decoration: underline;
    color: #EE2717;
}
.item.results table tbody tr td span {
    display: block;
}

.tablesaw tbody tr th, .tablesaw tbody tr td {
     min-width: 250px;
     height: 110px;
     width: auto;
    padding-top: 0px;
    padding-bottom: 0px;
}
.tablesaw tbody tr td a {
    text-decoration: underline !important;
   color: #000;
}
.tablesaw tbody tr td a:focus, .tablesaw tbody tr td a:focus {
     color: #E22717;
}
.tablesaw-nav-btn {
     border: 2px solid #E22717;
     width: 40px;
     height: 50px;
}
.section-content {
     position: relative;
}
.tablesaw-bar {
    position: sticky;
   top: 100px;  
}
.btnsInfo {
    position: absolute;
    right: 75px;
    font-weight: 700;
   color: #E22717;
  padding: 5px;
}
.sorting select, .sorting select option, .sorting button, .inputs select option {
    font-size: 18px;
}
.sorting select[name="sort_by"] option:nth-child(1), .sorting select[name="sort_by"] option:nth-child(2), .sorting select[name="sort_by"] option:nth-child(3), .sorting select[name="sort_by"] option:nth-child(9) {
    display: none;
}
#categories-return {
    display: none;
}
.result-author {
    display: block;
}
.item.results {
     font-family: 'ScalaSansOt', sans-serif;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}
.item.results nav.pagination {
    display: none;
}
.item.results table tr td {
    font-size: 16px;
    vertical-align: top;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
    border-top: 1px solid #000;
}
.item.results table tr td:nth-child(1) {
    width: 20%;    
}
.result-title, .result-source, .result-publication {
    display: block;
    margin-bottom: 0.5em;
}
.result-title a {
    text-decoration: underline;
}
.result-title a:focus {
     color: #E22717;
}
a.advanced-search {
    color: #000 !important;
    text-decoration: underline !important;
    font-weight: 500 !important;
}
a.advanced-search:focus {
    color: #E22717 !important;
}
#content nav.pagination {
    display: flex;
    justify-content: right;
    margin: 0 0 20px 0;
    width: 100%;
    float: right;
}
#resource-class, #has_media_field, #id_field {
    display: none;
}
#skipnav {
   display: none;
}
p.citation {
   font-size: 16px;
   width: 70%;
}
@media (max-width: 768px) {
   header {
       height: 200px;
   }
   #section-sidebar-modal-toggle {
      display: block;
      font-size: 0px;
      margin-bottom: 10px;
   }
   #section-sidebar-modal-toggle:after {
       content: 'Avaa suodattimet';
       font-size: 16px;
   }
   #mobile-nav-toggle {
       display: none;
   }
   #top-nav {
       padding: 0 15px 0 15px;
       height: 60%;
   }
     .navigation {
        width: 100%;
        height: 60px !important;
       overflow-y: scroll;
       border: 1px solid #fff;
     }
    .navigation li {
        padding-left: 10px;
    }
   .navigation li a {
       color: #fff !important;
  }
   #section-content {
       margin-left: -15px;
   }
  
   .block-pageTitle h2 {
       font-size: 25px;
   }
   .blocks-inner div:nth-child(2) h3 {
       font-size: 20px;
   }
    .blocks-inner div:nth-child(2) ul {
        padding-left: 10px;
    }

   .blocks-inner div:nth-child(4) div {
       width: 100%;
       display: flex;
       flex-direction: column;
   }
   #search {
      width: 100%;
      top: 20px;
      left: 0;
      height: 30px;
  }  
   #search-form {
      height: 100%;
   }
 #search-submit {
      height: 30px !important;
      width: 30px !important;
}
#search-submit:before {
    font-size: 16px;
    height: 30px !important;
    line-height: 30px !important;
}
  #fulltext-search {
     font-size: 15px;
     height:  100%;
  }
   .sorting button {
       margin-top: 5px;
      font-size: 16px;
    }
   .faceted-results td {
      border-bottom: 1px solid #000 !important;
   }
  .item.results {
     margin-left: -20px;
  }
  .item.results table {
     width: 100%;
  }
}