/* Base */
:root {
    --primary-color: #3993FF;
    --secondary-color: #BAE6FD;
}
body {
	font-family: "Noto Sans", Helvetica, sans-serif;
	color: #ffffff;
    background-color: #082F49;
}
h1 {
    font-family: "Noto Serif", Time, serif;
	font-size: 3em;
	color: #ffffff;
    text-align: center;
    margin: 20px 0;
}
h2 {
    font-family: "Noto Sans", Helvetica, sans-serif;
	color: #ffffff;
	font-size: 1.5em;
    text-align: center;
}
h3 {
    font-family: "Noto Sans", Helvetica, sans-serif;
	font-size: 1em;
	font-weight: bold;
	color: #ffffff;
    text-align: left;
	padding: 5px 10px;
	margin: 0;
}
p {
	font-family: "Noto Sans", Helvetica, sans-serif;
	font-size: 1em;
	color: #ffffff;
	text-align: justify;
}
a {
	color: var(--primary-color);
}
a:hover {
	color: var(--secondary-color);
}
section {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
.content {
    display: flex;
    width: 100%;
}
.search-box {
    text-align: center;
    margin-bottom: 20px;
}
.search-box input {
	font-family: "Noto Sans", Helvetica, sans-serif;
	font-size: 1em;
	color: #082F49;
    border-radius: 4px;
    border: 1px solid var(--primary-color);
    background-color: #ffffff;
	width: 100%;
    max-width: 500px;
    padding: 10px;    
}
.info-icon {
    font-size: 1em;
	color: #ffffff;
	cursor: help;
    position: relative;    
	margin-left: 2px;
}
.info-icon:hover, .info-icon:active {
    color: var(--secondary-color);
}
aside {
    border-radius: 5px;
	background: #0a3d5d;
	width: 270px;
	height: auto;
	align-self: flex-start; 
    margin-left: 20px;
	padding: 10px;
    position: sticky;
    top: 20px;
	flex-shrink: 0;
	max-height: calc(100vh - 100px);
    overflow-y: auto;
	box-sizing: border-box;
}
/* Categories */
.category {
    margin-bottom: 20px;
}
.category-content {
    display: none;
}
.category-content.expanded {
	display: block;
}
.category-collapsible {
	font-family: "Noto Sans", Helvetica, sans-serif;
	font-weight: bold;
	font-size: 1.2em;
	color: #ffffff;
	background-color: #0a3d5d;
	text-align: left;
    cursor: pointer;
    width: 100%;
    outline: none;
	border: none;
    border-top: 1px solid var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
	padding: 5px 10px;
    justify-content: space-between;
	box-sizing: border-box;
}
.category-collapsible:hover, .category-active {
  background-color: var(--primary-color);
}
.category-collapsible::after {
  content: '🞁';
  float: right;
  position: relative;
  bottom: -0.1em;
}
.category-active::after {
  content: '🞃';
  float: right;
  position: relative;
  bottom: 0.2em;
}
/* Filters */
.filter {
    border-left: 1px dashed var(--primary-color);
    border-right: 1px dashed var(--primary-color);
    border-bottom: 1px dashed var(--primary-color);
}
.filter-collapsible {
	font-family: "Noto Sans", Helvetica, sans-serif;
	font-weight: bold;
	font-size: 1em;
	color: #ffffff;
	background-color: #0a3d5d;
    text-align: left;
    cursor: pointer;
    padding: 10px;
    width: 100%;
	outline: none;
	border: none;
	box-sizing: border-box;
}
.filter-collapsible::before {
    content: '⊞';
	position: relative;
	bottom: 0.05em;
	margin-right: 2px;
}
.filter-active::before {
    content: '⊟';
	position: relative;
	bottom: 0.05em;
	margin-right: 2px;
}
.filter-content {
	margin-left: 20px;
    display: none;
	max-height: 200px;
    overflow-y: auto;
	padding-bottom: 5px;
}
.filter-content.expanded {
	display: block;
}
.first-filter-option {
    margin: 10px 0 5px 0;
}
.filter-option {
    margin-bottom: 5px;
}
.filter-option label {
    font-size: 1em;
    color: #ffffff;
	cursor: pointer;
}
.filter-dropdown {
	color: #ffffff;
	background-color: #082F49;
    margin: 5px 0;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid var(--primary-color);
    width: 90%;
}
.reset-filters {
	font-family: "Noto Sans", Helvetica, sans-serif;
	font-weight: bold;
	font-size: 1em;
	color: #ffffff;
	background: var(--primary-color);
	cursor: pointer;
    margin-top: 20px;
    padding: 10px;
    border: none;
    border-radius: 4px;
    width: 100%;
}
.reset-filters:hover {
    background: #2c7cb1;
}
/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
th {
    font-weight: bold;
    background-color: #0a3d5d;
}
th:first-child {
    width: 250px;
	border-radius: 5px 0 0 0;
}
th:last-child {
	border-radius: 0 5px 0 0;
}
th, td {
    text-align: left;
	border-bottom: 1px solid var(--primary-color);
    word-wrap: break-word;
	padding: 10px;
}
th:nth-child(4), td:nth-child(4) {
	width: 75px;
    text-align: center;
}​
td:first-child {
    width: 250px;
}
tbody tr {
    cursor: pointer;
}
tbody tr:hover {
    background: var(--primary-color);
}
@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }
    aside {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
        position: static;
        height: auto;
    }
}
/* Word limit slider */
#words-slider-container {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 10px 0;
}
#words-slider {
    width: 150px;
    margin-right: 1px;
    -webkit-appearance: none;
    height: 8px;
    background: #ffffff;
    border-radius: 4px;
    outline: none;
}
#words-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}
#words-slider:active::-webkit-slider-thumb {
    background:  var(--secondary-color); 
}
#words-slider::-moz-range-track {
    background: #ffffff;
    border-radius: 4px;
}
#words-slider::-moz-range-thumb {
    background: var(--primary-color);
    border-radius: 50%;
    border: none;
    width: 16px;
    height: 16px;
}
#words-slider:active::-moz-range-thumb {
    background: var(--secondary-color);
}
#words-value {
    white-space: nowrap;
    font-size: 0.9em;
    color: #ffffff;
    min-width: 60px;
}