* {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
}

.navbar {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  background-color: #2d4368;
  height: 3rem;
}
.navbar li {
  list-style: none;
}

header {
  margin-top: 3rem;
  height: auto;
}
.navbar li a {
  text-decoration: none;
  color: white;
  margin: auto;
}

select option[disabled] {
  display: none;
}

body {
  width: 100vw;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
}

h5 {
  margin-bottom: 0;
}
.to,
.from {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.container {
  width: 85vw;
  margin: auto;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  overflow-x: hidden;
}

.container > p {
  font-size: 0.8rem;
  text-align: center;
}
.container > p:first-child {
  margin-bottom: 0;
}

#contributors {
  font-size: 0.9rem;
}

.navbar .container {
  margin-top: 0;
  width: 95vw;
  height: 3rem;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}

.tbl-horizontal-scroll {
  width: 100%;
  height: auto;
  overflow-x: auto;
  background: white;
  display: flex;
  justify-content: center;
}

.records-blank-of-blank {
  display: none;
}

#info-and-pagination-top,
#info-and-pagination-bottom {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}
#info-and-pagination-bottom {
  visibility: hidden;
  margin-bottom: 0.5rem;
}

.pagination-info {
  font-size: 0.9rem;
}
.pages a {
  color: black;
  padding: 0 0.5rem;
}

.pages span {
  padding: 0 0.5rem;
}

span.current-page {
  background: #333;
  color: white;
  text-align: center;
}

tr.secondary {
  background: #999;
}

.pages a:hover {
  background: #888;
}

table {
  display: none;
  height: 80vh;
  margin-top: 1rem;
  white-space: normal;
  border-collapse: collapse;
  background: white;
  overflow-y: scroll;
  overflow-x: visible;
}
thead tr,
tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed; /* even columns width , fix width of table too*/
}

thead {
  height: auto;
  width: auto;
  background: white;
}
thead tr {
  height: 3rem;
}
tbody {
  margin-top: 3rem;
  margin-right: auto;
  height: 75vh;
  width: auto;
}
th,
td {
  border: 1px solid black;
  text-align: center;
}

.wrap {
  white-space: normal;
  width: 10rem;
}
.collapse {
  display: none;
  transition: all 1000 linear;
  height: 0;
}

.show-md {
  display: none;
}

.hide-md {
  display: inline;
}

.collapse.show {
  display: block;
  height: auto;
}

.card {
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 5px;
}

.card-header {
  background-color: #8c110d;
  color: white;
  padding: 20px 12px;
}

.card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

a {
  text-decoration: none;
  color: white;
}

.sub-input-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Todo: leave default a tags alone and target specialized tags instead */
table a,
p a,
li a {
  color: blue;
  text-align: center;
  text-decoration: underline;
}

#search-accordion {
  height: auto;
  width: 100%;
}

.query-filter-container select,
.input-group select {
  overflow: hidden;
  width: 85%;
  margin-bottom: 1rem;
}

.move-buttons {
  display: flex;
  width: 5rem;
  margin: auto;
  justify-content: space-around;
}

.query-filter-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.input-group {
  text-align: center;
}
.input-group label,
.input-group input,
.input-group select {
  margin: 0.75rem;
  height: 1.5rem;
  display: inline-block;
  margin-right: 0;
}

.input-group label {
  width: 5rem;
}

.input-group input {
  width: 40%;
}
.org-input-group label {
  width: auto;
  text-align: right;
}

.input-group input {
  margin-top: 0;
}

.subfilter-container label {
  text-align: center;
}

@media (min-width: 500px) {
  .container > p {
    font-size: inherit;
  }
  .show-md {
    display: inline;
  }
  .btn {
    padding: 0.5rem 1.5rem;
  }
  .hide-md {
    display: none;
  }
  #info-and-pagination-top,
  #info-and-pagination-bottom {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  #info-and-pagination-bottom {
    margin-bottom: 1.5rem;
  }
  .container {
    max-width: 1200px;
  }
  .input-group {
    display: inline-block;
    text-align: center;
  }
  .query-filter-container {
    flex-direction: row;
    justify-content: center;
  }
  .subfilter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 4.5rem;
    width: 100%;
  }
  .filter-btn-container {
    display: flex;
  }
  .to,
  .from {
    width: 50%;
  }
  .move-buttons {
    flex-direction: column;
    width: 3rem;
    margin: auto 0;
    height: 5rem;
  }
  .move-buttons .btn span {
    text-align: center;
    display: inline-block;
    transform: rotate(-90deg);
    height: 1.5rem;
  }
  .query-filter-container select {
    width: 85%;
    margin-bottom: 1rem;
  }
  .subfilter-container label {
    font-size: 0.9rem;
    width: auto;
    text-align: right;
    margin-bottom: 0;
  }
  .witnesses-container .;
}

.btn {
  margin: 0.5rem;
  border-radius: 5px;
  cursor: pointer;
}

.search {
  margin-left: 0;
  background: #2d4368;
  color: white;
}

.info-icon {
  font-size: 0.8rem;
  background: #888;
  color: white;
  border-radius: 50%;
  padding: 0 0.4rem;
}
.hidden {
  display: none;
}

.info {
  text-align: center;
}

#org-info {
  font-size: 0.8rem;
  font-style: italic;
  text-align: center;
}

.clear {
  background: #8c110d;
  color: white;
}

.small-btn {
  padding: 1px 6px;
}

.query-filter-container input {
  width: 15rem;
}

.witnesses-container input {
  width: 10rem;
}

.footer {
  display: flex;
  background: #2d4368;
  color: white;
  width: 100vw;
  height: 2rem;
  position: fixed;
  left: 0;
  bottom: 0;
  text-align: center;
}

.footer span {
  margin: auto;
}

.session {
  width: 4rem;
}
.bill {
  width: 4rem;
}
.caption {
  width: 15rem;
}

.author {
  width: 8rem;
}

.subjects {
  width: 5rem;
}
.law {
  width: 4.5rem;
}
.witness {
  width: 6rem;
}
.organization {
  width: 7rem;
}
.position {
  width: 6rem;
}
.cmtenotes {
  width: 1.5rem;
}
.scrollbar {
  width: 14px;
}

.hiddencell {
  width: 0;
}

.witness-card {
  display: none;
}

.navbar li {
  display: inline;
  margin-left: 10px;
}
