:root {
  --table-header-height: 60px;
}

main {
  max-width: 1024px;
}

.page-title {
  padding: 1rem 0 2rem 0;
  font-size: clamp(20px, 4vw, 32px);
  color: var(--color-quiver-white-light);
}

.dropdown-outer {
  display: inline-block;
  border-radius: 4px;
  background-color: #232125;
}

.dropdown-outer select {
  border: 1px solid #454749;
  border-radius: 4px;
  padding: .1rem .8rem .1rem .25rem;
  cursor: pointer;
  color: var(--color-quiver-white);
  outline: none;
  background: url("data:image/svg+xml;utf8,<svg viewBox='0 0 140 140' width='12' height='12' xmlns='http://www.w3.org/2000/svg'><g><path d='m121.3,34.6c-1.6-1.6-4.2-1.6-5.8,0l-51,51.1-51.1-51.1c-1.6-1.6-4.2-1.6-5.8,0-1.6,1.6-1.6,4.2 0,5.8l53.9,53.9c0.8,0.8 1.8,1.2 2.9,1.2 1,0 2.1-0.4 2.9-1.2l53.9-53.9c1.7-1.6 1.7-4.2 0.1-5.8z' fill='white'/></g></svg>") 98% no-repeat;
  -webkit-appearance: none !important;
  -moz-appearance: auto;
  appearance: auto;
}

.dropdown-outer select:hover {
  border-color: var(--color-quiver-white);
}

.dropdown-outer select option {
  background-color: #202020;
}

.dropdown-outer select option:checked {
  color: var(--color-quiver-green);
}

.dropdown-outer select {
  width: 180px;
  padding: .25rem .75rem;
  height: 40px;
  font-size: 15px;
  box-shadow: 2px 2px 5px rgb(0 0 0 / 33%);
}

.table-outer {
  margin-bottom: 8rem;

  .table-inner {
    min-height: 75vh;
    height: 75vh;
  }
}

table.paginated-table tr.sticky-table-headers > th {
  border: 1px solid #2f2f2f;
  min-width: 150px;
  height: var(--table-header-height);
  background-color: #161617;
  color: var(--color-quiver-white);
  font-size: 13px;
  font-weight: 450;

  span:nth-child(2) {
    display: block;
    padding-top: 1px;
    color: var(--color-quiver-gray);
    font-weight: 300;
  }
}

.table-outer a.roboto-cell {
  justify-content: flex-end;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.5px;
}

.table-outer td {
  border-bottom-color: var(--color-border-gray);
  white-space: nowrap;

  a.rep-color {
    img, .user-icon-outer, .congress-icon-outer {
      border-color: #e74c3c;
      
      i {
        color: #e74c3c;
      }
    }
  }

  a.dem-color {
    img, .user-icon-outer, .congress-icon-outer {
      border-color: #3498db;
    }

    i {
      color: #3498db;
    }
  }

  .positive-cell {
    color: var(--color-quiver-green);
  }

  .negative-cell {
    color: var(--color-error-red);
  }
}

.table-outer td span {
  font-size: clamp(12px, 1.5vw, 13px);
  color: var(--color-quiver-gray);
}

.table-outer td:last-child a {
  justify-content: center;
  min-width: 200px;

  strong {
    padding: .5rem 1rem;
    background: #232125;
    border-radius: 4px;
  }
}

.table-outer tr:hover td:last-child strong {
  background-color: #2d2a2f;
  color: var(--color-quiver-white-light);
}

.congress-icon-outer.pfp {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-right: .75rem;
  border: 2px solid #999cd0;
  border-radius: 50%;
  min-width: 40px;
  width: 40px;
  height: 40px;

  img {
    margin-right: 0;
    min-width: auto;
    width: 100%;
    min-height: 100%;
    object-fit: cover;
  }

  i.profile-icon {
    align-self: flex-end;
    margin-right: 0;
    font-size: 20px;
  }
}

.dropdown-disabled,
.table-disabled {
  opacity: .5;
  pointer-events: none;
}

p.error-message {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem 6rem;
}

.content-placeholder-outer {
  position: absolute;
  top: calc(var(--table-header-height) + 0px);
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: .75rem;
  background-color: #161616;
  opacity: 1;
  transition: .25s;
  overflow: hidden;
}

.content-placeholder-item {
  margin-bottom: .5rem;
  border-radius: 4px;
  width: 100%;
  min-height: 50px;
  background-color: #1e1e1e;
  animation: placeholderShimmer 1.5s infinite;
}

.sub-gate {
  position: absolute;
  top: calc(var(--table-header-height) + 0px);
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 0rem 2rem 1rem;
  background-color: rgba(12, 12, 12, 0.25);
  backdrop-filter: blur(8px);
}

.sub-gate-inner {
  align-items: flex-start;
  gap: 1rem;
}

.sub-gate img {
  width: 80px;
}

.sub-gate strong {
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 500;
  color: var(--color-quiver-white);
  line-height: 1.6;
}

.sub-gate a.alt-link {
  font-size: clamp(12px, 1.25vw, 16px);
  color: #b9d1e7;
  line-height: 1.5;
}

.sub-gate span {
  display:none;
  color: #849aae;
  font-size: 12px;
}

.sub-gate a:not(.alt-link) {
  margin-top: .25rem;
  padding: .6rem 1rem;
  background-color: var(--color-quiver-green);
  border-radius: 1px;
  color: black;
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 500;
}

@keyframes placeholderShimmer {
  0% {
    background-color: #1d1d1d;
  }
  50% {
    background-color: #1a1a1a;
  }
  100% {
    background-color: #1d1d1d;
  }
}

.content-placeholder-outer.hide-content-loader-table {
  opacity: 0;
  pointer-events: none;
  transition: .25s;
}

@media screen and (max-width: 600px) {
  .sub-gate {
    flex-direction: column;
    gap: 1.25rem;
  }
  .sub-gate img {
    width: 60px;
  }
  .sub-gate-inner {
    align-items: center;
    max-width: 315px;
  }
  .sub-gate strong,
  .sub-gate span,
  .sub-gate a {
    text-align: center;
  }
  table.paginated-table tr.sticky-table-headers > th {
    min-width: 0;
    &:first-child {
      min-width: 200px;
    }
  } 
  .table-outer td {
    white-space: normal;
  }
}