/* 1. Enable smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* 2. Make nav sticky */
main > nav {
  position: sticky;
  top: 80px;
  align-self: start;
}

/* 3. ScrollSpy active styles (see JS tab for activation) */
.section-nav li.active > a {
  color: #333;
  font-weight: 700;
}

/* Sidebar Navigation */
.section-nav {
  padding-left: 0;
  border-left: 1px solid #efefef;
}

.mobile-nav {
  display: none;
}

.section-nav a {
  text-decoration: none;
  display: block;
  padding: .125em 0;
  color: #666;
  transition: all 50ms ease-in-out; /* This yields the smooth transitions */
}

.mobile-nav a {
  text-decoration: none;
  display: block;
  padding: .125em 0;
  color: #333;
  transition: all 50ms ease-in-out; /* This yields the smooth transitions */
}

.section-nav a:hover,
.section-nav a:focus,
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #666;
}

.main-article {
  margin-left: auto;
  margin-right: auto;
  max-width: 1225px;
}

.main-article p, .main-article h2, .main-article h3, .main-article h4,
.main-article h5, .main-article h6 {
  margin-left: 0.5rem;
}

.main-article ol, .main-article ul {
  margin-left: 1.5em;
}

.influence-table {
  font-size: 62.5%;
  margin-left: auto;
  margin-right: auto;
}
.influence-table th {
  padding-left: 0.2em;
  padding-right: 0.2em;
}
.influence-table td {
  padding-left: 0.2em;
  padding-right: 0.2em;
}

/** Poor man's reset **/
* {
  box-sizing: border-box;
}

html, body {
  background: #fff;
}

body {
  font-family: Garamond, Baskerville, Baskerville Old Face, Hoefler Text, Times New Roman, serif; 
  font-size: 135%;
}
a {
  font-family: Garamond, Baskerville, Baskerville Old Face, Hoefler Text, Times New Roman, serif; 
}
table {
  font-size: 90%;
  font-family: Garamond, Baskerville, Baskerville Old Face, Hoefler Text, Times New Roman, serif; 
}

p {
  font-size: 110%;
  line-height: 145%;
  margin-right: 1.5em;
}

ul, ol {
  margin-left: 0;
  margin-right: 0;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  padding: 0;
  line-height: 200%;
  column-count: 2;
}

.section-nav ul, .section-nav ol,
.mobile-nav ul, .mobile-nav ol {
  margin: 0;
  padding: 0;
  line-height: 100%;
  column-count: 1;
  list-style: none;
}

li {
  margin-left: 1em;
}

h1 {
  font-weight: 300;
}

table {
  text-align: center;
  border-collapse: collapse;
  border-spacing: 0;
  border: 1px solid black;
}

th {
  padding: 0.35em;
  border: 1px solid black;
}

td.rankings:hover {
  color: white;
}

td {
  padding: 0.35em;
  border: 1px solid black;
}

.top_10 {
  background-color: #FF2020;
  color: #FF2020;
}

.top_25 {
  background-color: #B02020;
  color: #B02020;
}

.top_50 {
  background-color: #902020;
  color: #902020;
}

.top_100 {
  background-color: #602020;
  color: #602060;
}

.top_250 {
  background-color: #302030;
  color: #302030;
}

.top_500 {
  background-color: #404040;
  color: #404040;
}

.top_1000 {
  background-color: #606060;
  color: #606060;
}

.bottom {
  background-color: grey;
  color: grey;
}

/** page layout **/
main {
  display: grid;
  grid-template-columns: 1fr 15em;
  margin: 0 auto;
}

section {
  padding-bottom: 0.5em;
}

section.anchor:before {
  display: block;
  content: " ";
  margin-top: -55px;
  height: 55px;
  visibility: hidden;
}

.lobbying-and-contracting-hero-banner {
  margin-top: 51px;
  margin-bottom: 1.5em;
  margin-left: 0;
  margin-right: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("/images/LobbyingAndContracting.png");

  height: 50%; 
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.taxes-hero-banner {
  margin-top: 51px;
  margin-bottom: 1.5em;
  margin-left: 0;
  margin-right: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("/images/PeerGraphColored.png");

  height: 50%; 
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-banner-text {
  margin-top: 51px;
  text-align: center;
  position: relative;
  font-size: 175%;
  font-weight: 700;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}

.hero-banner-text a {
  color: white;
}

@media only screen and (max-width:1024px) {
  .lobbying-and-contracting-hero-banner {
    height: 30%;
  }
  main {
    width: 100%;
    grid-template-columns: 1fr;
  }
  .mobile-nav {
    display: block;
  }
  .section-nav {
    display: none;
  }
  .influence-table {
    font-size: 55%;
  }
}

.header {
  margin-top: 0em;
  margin-bottom: 0.5em;
  margin-left: 0;
  margin-right: 0;
  padding-bottom: 0.5em;
  top: 0;
  width: 100%;

  position: fixed;
  background: #FFFFFF;
  height: 50px;

  border-bottom: 1px solid black;
  z-index: 1;
}

.header h2 {
  margin-left: 2em;
  margin-top: 0.5em;
}

.header h2 a {
  text-decoration: none;
  color: black;
}

span.tooltip_term {
  border-bottom: 2px dashed #A0A0A0;
}

span.tooltip_citation {
  margin-left: 0.5em;
  font-weight: 700;
  color: #A0A0DF;
}

.tooltip_templates {
  display: none;
}

