html {
    overscroll-behavior: none;
    overflow-x: hidden;
}


body {
    margin: 0;
    font-family: Lora, serif;
    color: rgb(25, 32, 4);
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}

main {
    width: 50dvw;
    display: flex;
    flex-direction: column;
}

img {
    display: block;
    width: 100%
}

a {
    color:rgb(25, 32, 4);
    font-weight: 500;
}

h1 {
    font-family: Urbanist, sans-serif;
    font-size: 3rem;
}

h2 {
    font-family: Urbanist, sans-serif;
    font-size: 2.5rem;
    margin-bottom: 0;
}

h3 {
    font-family: Urbanist, sans-serif;
}

p {
    font-size: 1.2rem;
    line-height: 1.5;
}

/*Hero*/
.hero {
  position: relative;
  padding-bottom: 2rem;
  padding-top: 15rem;
  width: 100vw;
  margin-left: 50%;
  margin-top: -1rem;
  transform: translateX(-50%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("/static/img/hero.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 25%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 5%, transparent 80%);
}

.text-box {
  max-width: 50dvw;
  margin: 0 auto;
  padding: 0 1rem;
  color: rgb(25, 32, 4);
}

.text-box a {
  color: rgb(25, 32, 4);
}


li {
  font-size: 0.9rem;
  margin: 0 0 1rem 1rem;
  overflow-wrap: break-word;
  line-height: 1.5;
}

:target {
    animation: target-fade 3s;
    background-color: #6e8d2a5b;
    padding: 0.5rem;
}

.cite {
    display: inline-block;
    color:rgb(182, 182, 182);
}

.cite a {
    text-decoration: none;
  }

.cite img {
    display: inline-block;
    width: 1.6rem;
    height: 1.6rem;
  }

.cite .tooltip {
    visibility: hidden;
    position: absolute;
    right: 0.7rem; 
    width: 300px;
    font-size: 1.2rem;
    transform: translate(0,-43%);
    padding-right: 4rem;
}

  .cite:hover .tooltip {
    visibility: visible;
    opacity: 1;
  }


  .caption {
    font-size: 1rem;
    text-align: center;
    margin-top: 1rem;
    color: rgb(111, 111, 111);
  }

/* Median queries */
  @media (max-width: 900px) {
    main {
      width: 100%;
      display: flex;
      flex-direction: column;
  }

    .cite .tooltip {
        display: none;
    }
}
