/* stuck in the scroll, 2024 */

@font-face {
    font-family: 'Metropolis';
    src: url('Metropolis-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('Metropolis-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('Metropolis-RegularItalic.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

body,
html {
  height: 100%;
  margin: 0;
  font-family: "Metropolis";
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  background-color: #555;
  background: linear-gradient(to bottom, #555 0%, #aaa 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: always;
}

.header,
.footer {
  padding: 20px;
}

.footer {
    padding-bottom:28px;
}

.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.main-content-inset {
  padding: 20px;
}

.centered-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

h1 {
  font-size: 2.0em;
  color: #222;
  margin-top: 10px;
  display: inline-block;
  max-width:80%; /* desktop */
  max-width:85%;
}

body.notscrolling h1 {
  color: #cacaca;
  color: #ccc;
  color: #bbb;
}

/*
body.loading .main-content,
body.loading .header {
*/
body.loading .main-content {
    visibility: hidden;
}

body.loading .footer {
    visibility: visible; 
}

body.loading .header {
    visibility: visible; 
}

body.loading .links a {
    color: #fafafa;
}

body.visible .main-content,
body.visible .header {
    visibility: visible; 
}

.no-wrap {
  white-space: nowrap;
}

h2 {
  font-size: 1.8em;
  line-height: 1.1em;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 20px;
  max-width: 55%;

  margin-left: auto;
  margin-right: auto;
}

body.notscrolling h2 {
  color: #eaeaea;
  color: #dcdcdc;
}

.fade-scroll {
  position: absolute;
  right: 0;
  top: 100%;
  text-align: right;
  font-size: 1em;
  line-height: 1.1;
}

.fade-scroll span {
  display: block;
  position: absolute;
  right: 0;
}

.fade-scroll span:nth-child(1) {
  opacity: 0.35;
  top: -0.6em;
}

.fade-scroll span:nth-child(2) {
  opacity: 0.15;
  top: -0.25em;
}

.fade-scroll span:nth-child(3) {
  opacity: 0.045;
  top: 0em;
}

.fade-scroll span:nth-child(4) {
  opacity: 0.025;
  top: 0.15em;
  opacity: 0;
}

.status {
  font-size:5.8em;
  font-weight: bold;
  margin: 0.0em 0;
  padding: 0;
  line-height: 1em;
}

.yes {
  color: #fff;
  padding: 0;
  margin-top: 29px;
  margin-bottom: 17px;
}

.no {
  font-size: 6.2em;
  color: #dae5f2;
  margin-bottom: -17px;
  margin-top: -8px;
}

body.notscrolling .no {
  color: #333;
  color: #383838;
}

#lastScrollWrapper {
  color: #dae5f2;
  margin-top: 0;
  padding-top: 0;
  line-height: 1.3em;
  font-size: 1.05em;
  margin-bottom: 22px;
}

body.notscrolling #lastScrollWrapper {
  color: #222;
}

.total-time {
  font-size: 1.2em;
  margin: 0em 0 0em;
  color: #444;
  line-height: 1.2em;
  margin-left: auto;
  margin-right: auto;
  max-width:50%;
  max-width:60%;
}

body.notscrolling .total-time {
  color: #eee;
}

#metrics {
  font-size: 1.1em;
  font-weight: bold;
  color: #444;
  line-height: 1.2em;
}

body.notscrolling #metrics {
  color: #eaeaea;
}

.links a {
  font-size: 1em;
  padding: 16px 10px;
  color: #323a42;
  text-decoration: none;
  text-underline-offset: 5px;
}

body.notscrolling .links a {
  color: #eaeaea;
  color: #fafafa;
}

.links a:hover {
  text-decoration: underline;
  text-decoration-color: currentColor;
  cursor: pointer;
}


.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-header {
  text-align: left;
  margin-bottom: 15px;
  padding-right: 40px;
}

.modal-content {
  background-color: #2a2a2a;
  background: linear-gradient(to bottom,
      #2d3033 10%,
      #393c40 90%);
  padding: 30px;
  padding-bottom:28px;
  width: 80%;
  max-width: 600px;
  border-radius: 4px;
  font-family: "Metropolis", sans-serif;
  color: #323a42;
  position: relative;
}

.modal-content h3 {
  text-align: left;
  flex-grow: 1;
  margin-top: 0;
  color: #ccc;
  margin-bottom: 0;
  padding-top: 0;
  font-size: 1.4em;
}

.modal-content p,
.modal-content a {
  text-align: left;
  display: block;
  font-size: 15px;
  line-height: 1.3em;
}

.modal-content p {
  color: #aaa;
}

.modal-content a {
  color: #8bd1cf;
  text-decoration: none;
}

.modal-content a:hover {
  text-decoration: underline;
}

.close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #777;
  font-size: 28px;
  font-weight: normal;
  cursor: pointer;
  line-height: 1;
}

.close:hover,
.close:focus {
  color: #aaa;
  text-decoration: none;
  cursor: pointer;
}

.modal p.info {
  font-style: italic;
  margin-top: -12px;
  padding-top: 0;
}

@media (max-width: 279px) {
  h1 {
    font-size: 1.5em;
  }

  h2 {
    margin-top: 30px;
    margin-bottom: 20px;
    max-width:70%;
  }

  #lastScrollWrapper {
    font-size: 0.9em;
    margin-bottom: 18px;
  }

  .links {
    font-size: 1em;
  }

  .status {
    font-size: 4.8em;
  }

  .yes {
    margin-top: 18px;
    margin-bottom: 14px;
  }

  .no {
    font-size: 5.8em;
    margin-top: -13px;
    margin-bottom: -17px;
  }
}

@media (min-width: 968px) and (min-height: 600px) {
  h1 {
    font-size: 2.5em;
    margin-top:10px;
    max-width:80%;
  }

  h2 {
    font-size:2.2em;
    max-width:45%;
    line-height:1.05em;
  }

  #lastScrollWrapper {
    font-size: 1.2em;
    margin-bottom: 21px;

    margin-bottom: 29px;
  }

  .status {
    font-size: 7.8em;
  }

  .yes {
    margin-top: 30px;
    margin-bottom: 18px;
  }

  .no {
    font-size: 7.4em;
    margin-top: 0px;
    margin-bottom: -19px;
  }

  .modal-content {
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
  }

  .links a {
    font-size:1.1em;
  }

  .footer {
  padding:20px;
    padding-bottom:28px;
    background:transparent;
  }
}

@media (min-width: 1160px) and (min-height: 800px) {
  h1 {
    font-size: 3.5em;
    margin-top:20px;
  }

  h2 {
    font-size:2.8em;
    max-width:45%;
    line-height:1.1em;
  }

  #lastScrollWrapper {
    font-size: 1.5em;
    margin-bottom: 34px;
  }

  .status {
    font-size: 9.8em;
  }

  .yes {
    margin-top: 41px;
    margin-bottom: 23px;
  }

  .no {
    font-size: 9.4em;
    margin-top: 29px;
    margin-bottom: -22px;
  }

  .total-time {
    max-width:50%;
    font-size: 1.6em;
  }

  .links a {
    font-size:1.4em;
  }

  .footer {
    padding-bottom:28px;
  }
}

@media (min-width: 1600px) and (min-height: 1000px) {
  h1 {
    font-size: 4.0em;
    margin-top:30px;
  }

  h2 {
    font-size:3.5em;
    max-width:45%;
    line-height:1.1em;
  }

  #lastScrollWrapper {
    font-size: 1.9em;
    margin-bottom: 40px;
  }

  .status {
    font-size: 11.8em;
  }

  .yes {
    margin-top: 51px;
    margin-bottom: 33px;
  }

  .no {
    font-size: 11.4em;
    margin-top: 30px;
    margin-bottom: -30px;
  }

  .total-time {
    max-width:50%;
    font-size: 2.1em;
  }

  .links a {
    font-size:1.6em;
  }

  .footer {
    padding-bottom:38px;
  }
}

@media (max-height: 400px) {
  h1 {
    opacity: 0;
    margin-top: 0;
  }

  h2 {
   margin-top:-5px;
  }

  .links {
    opacity: 0;
  }
}

@media (max-height: 600px) and (min-width:1600px) {
    h1 { opacity:0; }
    footer { opacity:0; }
    .links a {opacity:0; }
}
