/* content */
.content {
  margin: 1rem 2rem 1rem 5rem;
}
.main-section {
  margin: 0;
  width: 100%;
  .banner {
    width: 100%;
  }
}

aside {
  min-width: 300px;
  width: 22%;
}
.mobile-aside {
  display: none;
}

iframe {
  border: none;
}

/* individual pages */
/* front/home page/landing page */
#front {
  background: $green;

  h1 {
    color: $beige;
  }

  .header .banner {
    .title-area {
      border-bottom: none;
      .site-title {
        a.cyt-logo {
          background-image: url("/static/images/cyt-logo-gold.svg");
        }
      }
    }
    .tagline {
      color: $gold;
    }
  }

  .header nav a {
    color: $beige;
    &:hover {
      border-bottom: 1px solid $beige;
    }
  }

  aside {
    background: $yellow;
    padding: 2.5rem 3rem;
    border: 1px solid $yellow;
    border-radius: 1rem;
    z-index: 10;
    .button-style {
      margin-bottom: 0rem;
      margin-top: 1.5rem;
    }
    label#acceptable_ads {
      font-size: 14px;
      margin-left: 1rem;
      a {
        border-bottom: none;
      }
    }
    hr {
      border: none;
      border-top: 1px solid $green;
      color: $green;
      margin: 2.5rem 0 0;
      overflow: visible;
      padding: 0;
      text-align: center;
    }
  }
  .content {
    display: flex;
    width: auto;
    .main-section {
      margin: 1rem 0 1rem 1rem;
      position: relative;
      width: 78%;
      button.button-style.stop {
        background: $green-dark;
        color: $beige;
        font-size: 14px;
        padding: 3px;
        position: absolute;
        right: 0;
        width: 100px;
        z-index: 10;
      }
    }
    .static-tracks {
      display: none;
      position: absolute;
      img {
        height: auto;
        width: 100%;
      }
    }
  }
  footer {
    .footer-logo {
      background-image: url("/static/images/eff-logo-lockup.svg");
    }
  }
}

/* learn */

#learn {
  .site-title {
    width: 50%;
  }
  .header nav {
    width: 70%;
    ul {
      align-items: flex-end;
      display: flex;
      justify-content: flex-end;
      li {
        width: 25%;
      }
      li.test-nav {
        width: 50%;
        display: inline;
        a#kcarterlink.button-style {
          background: $yellow;
          border: 2px solid $green-dark;
          margin: 0;
          &:hover {
            background: $green-dark;
            color: white;
          }
        }
      }
    }
  }
  h4 {
    text-transform: none;
  }
  .spectrum img {
    width: 100%;
  }

  .definitions {
    display: flex;
    border-bottom: 1px solid $red;
    justify-content: space-between;
    padding: 2rem 0;
    width: 100%;
  }

  .definitions {
    flex-wrap: wrap;
    .left {
      width: 30%;
      h3 {
        margin-top: 0.5rem;
      }
    }
    .right {
      width: 67%;
    }
    img {
      margin: 0 auto;
      width: 50%;
    }
  }
}

/* testing page */
#testing {
  background: $green;
  color: $beige;
  h2.tagline {
    color: $gold;
    font-size: 1.2rem;
    margin: 6px 0 0;
    text-transform: none;
  }
  h2 {
    color: $gold;
    font-size: 48px;
    text-transform: uppercase;
  }
  .header {
    .site-title {
      a.cyt-logo {
        background-image: url("/static/images/cyt-logo-gold.svg");
      }
    }
    nav a {
      color: $beige;
      &:hover {
        border-bottom: 1px solid $beige;
      }
    }
  }
  .testing {
    margin: 5rem auto;
    max-width: 60%;
  }
  footer {
    .footer-logo {
      background-image: url("/static/images/eff-logo-lockup.svg");
    }
  }
}

/* privacy & misc pages */
#privacy, #about, #self-defense {
  margin: 0 auto;
  max-width: $mobile;
  text-align:left;
  h1 {
    color: $plum;
    font-size: 43px;
  }
}

/* results page */
#results-wrapper {
  display: flex;
  margin: 0 auto;
  .row {
    margin: 16px auto 0;
  }
  aside {
    h4 {
      color: $green;
      font-size: 20px
    }
    h4:first-child {
      margin-top: 1rem;
    }
    p {
      color: $green;
      font-size: 14px;
    }
  }
  .mobile-aside {
    display: none;
  }

  .main-section {
    margin: 0 0 0 5rem;
  }

  h2.indicate {
    color: $plum;
    font-weight: 600;
    margin-top: 1rem;
    text-transform: none;
    span {
      color: $red;
    }
  }

  h4, h5 {
    color: $green;
    font-weight: 800;
    text-transform: uppercase;
  }

  p.tracker_results {
    font-size: 14px;
    font-style: italic;
  }

  .toc {
    display: none; // only show on small, older phones
  }
  table#results.tracker_results{
    margin: 2rem 0;
    border-collapse: collapse;

    td, th {
      background: transparent;
      border: 2px solid $green-light;
      font-weight: 600;
      padding: 0.5rem;
      text-align: left;
    }
    td:nth-child(2) {
      text-align: center;
    }

  }
  .complimentary_text{
    text-align: center;
  }

  #showFingerprintLink2 { // link for detailed view
    background: $green;
    border: 1px solid $green-dark;
    border-radius: 3px;
    color: white;
    display: block;
    margin: 1rem 0;
    padding: 1rem;
    span {
      color: $green;
    }
    a, a:hover {
      color: $red;
      text-decoration: none;
    }
  }
  .results-buttons {
    display: flex;
  }
  #default-button,
  #detailed-button {
    background: $beige;
    box-shadow: none;
    color: $green-dark;
    margin: 1rem 1rem 0 0;
    width: 50%;
  }

  #default-button.button-style.active,
  #detailed-button.button-style.active {
    background: $green;
    color: $beige;
  }
  .detailed {
    font-weight: 600;
  }
  .text.detailed {
    font-weight: 400;
  }

  .detailed-results {
    padding-top: 2rem;
  }

  #buttons {
    a#kcarterlink.button-style {
      background: $yellow;
      &:hover {
        background: $green-dark;
      }
    }
  }

  #ad_status, #tracker_status, #dnt_status{
    vertical-align: middle;
  }

  .test_label{
    text-align: left;
  }
  .tracker_results td{
    padding: 5px;
  }
  #summary_sentence{
    font-size: inherit;
    font-weight: normal;
    margin: 0 0 24px;
  }

  label#acceptable_ads{
    display: block;
    margin-top: 10px;
    sup{
      a {
        background: $green-dark;
        border: 1px solid $green-dark;
        border-radius: 12px;
        color: $beige;
        padding: 1px 6px;
      }
    }
  }

  .ui-tooltip-content{
    text-align: left;
  }
  #acceptable_ads_tr{
    display: none;
  }
}

.back-to {
  display: block;
}

#results-wrapper.nojs {
  #showFingerprintLink2,
  .selectmenu,
  .results-buttons {
    display: none;
  }
}

body#not-found-404 {
  background-color: $green-dark;
  height: 100%;
  h1 {
    color: $gold;
    margin-top: 0;
    text-transform: none;
  }
  p {
    color: $beige;
    text-align: center;
    a {
      color: $beige;
      &:hover {
        border-bottom-color: $beige;
      }
    }
  }
  img {
    width: 50%;
  }
  div {
    display: grid;
    place-items: center;
  }
}
