html {
  scroll-padding-top: 100px;
}

body {
  height: 100%;
  margin: 0;
  min-height: 100vh;
}

a,
a:link,
a:visited,
a:hover,
a:active {
  color: #000000;
  font-weight: normal;
  text-decoration: none;
}

#main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 25px;
}

#header {
  align-content: center;
  background-color: white;
  display: flex;
  flex: 1 0 10%;
  min-width: 360px;
  padding: 10px 0;
  position: fixed;
  width: 100%;
  z-index: 100;
}

#logo {
  align-self: center;
  display: inline-block;
  margin-left: 10px;
  width: 64px;
}

#logo-text {
  align-items: center;
  display: flex;
  font-size: 28px;
  padding-left: 20px;
}

.header-link,
.header-link:active,
.header-link:visited,
.header-link:hover {
  color: inherit;
}

.header-link:active,
.header-link:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  #nav-back {
    display: none;
  }
}

.nav-item a:hover {
  color: rgba(34, 110, 147, 1);
  text-decoration: underline;
}

.nav-item {
  align-items: center;
  display: flex;
  font-size: 20px;
  padding-left: 40px;
  padding-top: 4px;
}

#back-to-top {
  background-color: white;
  bottom: 0;
  font-size: 16px;
  font-weight: 700;
  left: 0;
  padding: 5px 20px;
  position: fixed;
  z-index: 99;
}

#whats-new {
  font-size: 36px;
  margin-left: auto;
  margin-right: 10px;
  position: relative;
}

#whats-new-icon {
  border-radius: 50%;
  border: 1px solid rgba(34, 110, 147, 1);
  height: 46px;
  text-align: center;
  width: 46px;
}

#whats-new-tooltip {
  font-size: 20px;
  font-weight: 700;
  position: absolute;
  right: 50%;
  top: 28px;
  visibility: hidden;
  width: 120px;
  z-index: 1;
}

#whats-new:hover {
  cursor: pointer;
}

@media only screen and (min-width: 900px) {
  #whats-new:hover #whats-new-tooltip {
    visibility: visible;
  }
}

#whats-new-popover {
  display: none;
  background-color: white;
  border: 1px solid rgba(34, 110, 147, 1);
  bottom: 150px;
  box-shadow: 3px 3px rgb(34 110 147);
  flex-direction: column;
  height: 45%;
  left: 0;
  margin: auto;
  padding: 0px 30px;
  position: fixed;
  right: 0;
  top: 150px;
  width: 45%;
  z-index: 5;
}

#whats-new-body {
  flex: 1 1 auto;
  overflow-y: auto;
}

#whats-new-footer {
  padding-bottom: 10px;
  text-align: right;
  width: 100%;
}

.button-grey {
  background-color: rgb(126 131 124);
  border-radius: 5px;
  border: 1px solid white;
  box-sizing: border-box;
  color: white;
  cursor: pointer;
  display: inline-block;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.15385;
  margin: 0;
  outline: none;
  padding: 8px .8em;
  position: relative;
  text-align: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: baseline;
  white-space: nowrap;
}

.button-grey:hover,
.button-grey:focus {
  background-color: #be4040;
}

.button-grey:focus {
  box-shadow: 0 0 0 2px rgba(154, 166, 175, 0.15);
}

.button-blue {
  background-color: rgba(34, 110, 147, 1);
  border-radius: 5px;
  border: 1px solid white;
  box-sizing: border-box;
  color: white;
  cursor: pointer;
  display: inline-block;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.15385;
  margin-left: 10px;
  outline: none;
  padding: 8px .8em;
  position: relative;
  text-align: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: baseline;
  white-space: nowrap;
}

.button-blue:hover,
.button-blue:focus {
  background-color: #2982c2;
}

.button-blue:focus {
  box-shadow: 0 0 0 2px rgba(120, 170, 206, 0.15);
}

.section {
  padding: 5px 20px;
}

#article {
  flex: auto;
  line-height: 1.5;
  margin: 0;
  margin-top: 80px;
  max-width: 1540px;
  padding: 0;
  padding-bottom: 30px;
  position: relative;
  width: 100%;
}

#article h1 {
  font-size: calc(1em + 2.5vh);
  font-weight: 700;
}

#article h2 {
  font-size: 24px;
  font-weight: 700;
}

#article h3 {
  font-size: 20px;
  font-weight: 700;
}

#article h3:before {
  content: "";
  display: block;
  height: 50px;
  margin: -50px 0 0;
}

#article a {
  color: rgba(34, 110, 147, 1);
  text-decoration: underline;
}

#article ol {
  list-style: none;
  line-height: 2.1;
  padding-left: 40px;
}

#article ul {
  list-style: square;
  line-height: 1.5;
}

#article ul li {
  padding-bottom: 16px;
}

#article ul li:last-child {
  padding-bottom: 0;
}

#search {
  background-color: white;
  border-bottom: 1px solid gray;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  padding: 10px 5px 16px 5px;
  position: sticky;
  top: 94px;
  z-index: 5;
}

#search input[type="text"] {
  flex: 0 0 20%;
  font-family: "PT Sans", sans-serif;
  font-size: 16px;
  height: 20px;
  padding: 0;
  padding-left: 5px;
  margin: 0;
  margin-right: 5px;
}

#search select {
  flex: 0 0 10%;
  font-family: "PT Sans", sans-serif;
  font-size: 16px;
  height: 24px;
  line-height: 24px;
  padding: 0;
  padding-left: 5px;
  margin: 0;
  margin-right: 5px;
  max-width: 10%;
}

#works-root-placeholder {
  align-items: center;
  display: flex;
  height: 600px;
  justify-content: center;
}

/**
 * Index css
 */
#index-grid {
  column-gap: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 40px;
  row-gap: 100px;
}

.index-grid-cell {
  text-align: center;
}

.index-grid-cell img {
  width: 70%;
}

.index-grid-cell p {
  line-height: 1.7;
  margin: 0 auto;
  text-align: left;
  width: 70%;
}

@media (max-width: 600px) {
  #index-grid {
    grid-template-columns: 1fr;
  }
}

/**
  * Shared util
  */
.sans-serif {
  font-family: "PT Sans", sans-serif;
}

.serif {
  font-family: "Merriweather", serif;
}

.center {
  text-align: center;
}

.blue {
  color: rgba(34, 110, 147, 1);
}

.underline {
  text-decoration: underline;
}

.gray-bg {
  background-color: rgba(242, 242, 242, 1);
}

/* AOTA Redirect interstitial */
.aota-redirect {
  text-align: center;
}