/* Geist Serif / Geist Mono: SIL OFL 1.1, vercel/geist-font v1.9.2. See fonts/OFL.txt */
@font-face {
  font-family: "Geist Serif";
  src: url("/asset?u=https%3A%2F%2Ftourofrust.com%2Ffonts%2FGeistSerif-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/asset?u=https%3A%2F%2Ftourofrust.com%2Ffonts%2FGeistMono-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font-serif: "Geist Serif", "Noto Serif", "Noto Naskh Arabic", "Noto Sans Arabic",
    "Noto Serif Thai", "Thonburi", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho",
    "Noto Serif SC", "Songti SC", "Noto Serif TC", "LiSong Pro", "Noto Serif KR",
    "Apple Myungjo", "Noto Serif Devanagari", "Iowan Old Style", Palatino,
    "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", "SF Mono", Menlo,
    Consolas, "Liberation Mono", monospace;
}

a {
  color: #555;
  outline: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: #cf3801;
}

.title a {
  text-decoration: none;
  color: #120b12;
  font-size: 32px;
  line-height: 40px;
  font-weight: 400;
}

[dir="ltr"] .title a {
  letter-spacing: -0.02em;
}

.emoji {
  font-family: apple color emoji, segoe ui emoji, noto color emoji,
    android emoji, emojisymbols, emojione mozilla, twemoji mozilla,
    segoe ui symbol;
}

h1,
p,
pre {
  margin-left: 40px;
  margin-right: 40px;
}

.page p,
.page pre,
.page li {
  font-size: 18px;
  line-height: 1.6;
  max-width: 70ch;
}

.header {
  height: 40px;
  padding: 4px;
  line-height: 40px;
  font-size: 18px;
  font-weight: 400;
  color: white;
  background-color: #ff6801;
  box-shadow: 0 2px 3px #cf3801;
  grid-column: span 2;
}

[dir="ltr"] .header  {
  padding-left: 30px;
}

[dir="rtl"] .header  {
  padding-right: 30px;
}

.header a {
  color: white !important;
}

.header a:hover {
  color: white !important;
  text-decoration: underline;
}

html,
body {
  padding: 0px;
  margin: 0px;
  font-family: var(--font-serif);
  color: #333;
  font-size: 18px;
  line-height: 1.6;
  font-kerning: normal;
}

.tour {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.next a,
.back a {
  color: #120b12;
}

[dir="ltr"] .nav {
  float: right;
  padding-right: 10px;
}

[dir="rtl"] .nav {
  float: left;
  padding-left: 10px;
}

iframe {
  border-radius: 10px;
}

.page {
  font-family: var(--font-serif);
  overflow-y: auto;
  -webkit-animation: fadein 0.5s; /* Safari, Chrome and Opera > 12.1 */
  -moz-animation: fadein 0.5s; /* Firefox < 16 */
  -ms-animation: fadein 0.5s; /* Internet Explorer */
  -o-animation: fadein 0.5s; /* Opera < 12.1 */
  animation: fadein 0.5s;
  min-height: 50vh;
}

code {
  display: inline;
  font-family: var(--font-mono);
  font-size: 0.86em;
  font-weight: 500;
  background: #444;
  color: white;
  padding: 0.1em 0.35em 0.14em;
  margin-right: 0.18em;
  margin-left: 0.18em;
  vertical-align: 0.08em;
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

[dir="ltr"] .page pre code  {
  display:block !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir="rtl"] .page pre code  {
  display:block !important;
  text-align: left !important;
  direction: ltr !important;
}

li {
  padding-top: 0.2em;
  padding-bottom: 0.2em;
}

.nav span {
  padding-left: 10px;
}

.toc a {
  color: #120b12;
}

ul,
ol,
h3 {
  margin-left: 40px;
  margin-right: 40px;
}

.bottomnav {
  padding-top: 1.4em;
  text-align: center;
  font-size: 18px;
}

.bottomnav a {
  text-decoration: none;
  color: #555;
  font-weight: 400;
  font-size: 18px;
}

/* ************************* HERE ************************* */
[dir="ltr"] .bottomnav .back {
  float: left;
  padding-left: 40px;
}

[dir="ltr"] .bottomnav .next {
  float: right;
  padding-right: 40px;
}

[dir="rtl"] .bottomnav .back {
  float: right;
  padding-right: 40px;
}

[dir="rtl"] .bottomnav .next {
  float: left;
  padding-left: 40px;
}

/* ************************* TO HERE ************************* */

body.welcome-cover {
  background: url(/asset?u=https%3A%2F%2Ftourofrust.com%2Fcover.jpg) no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  text-align: center;
}

.welcome {
  font-size: 40;
  top: 50%;
  width: 100%;
  position: absolute;
  text-shadow: 2px 2px black;
  font-weight: bold;
  color: white;

  -webkit-animation: fadein 2s; /* Safari, Chrome and Opera > 12.1 */
  -moz-animation: fadein 2s; /* Firefox < 16 */
  -ms-animation: fadein 2s; /* Internet Explorer */
  -o-animation: fadein 2s; /* Opera < 12.1 */
  animation: fadein 2s;
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Firefox < 16 */
@-moz-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Internet Explorer */
@-ms-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Opera < 12.1 */
@-o-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.welcome a {
  font-size: 40px;
  color: white;
  text-shadow: 4px 2px black;
  line-height: 80px;
  font-weight: bold;
  text-decoration: none;
}

.welcome a {
  font-size: 120;
}

.welcome-instruction {
  text-shadow: 2px 1px black;
  padding-top: 10px;
  font-size: 30px;
  text-decoration: underline;
}

ul,
ol {
  font-size: 18px;
  line-height: 1.6;
}

.page p {
  margin-top: 0;
  margin-bottom: 1em;
}

.mobile-ferris {
  display: none;
}

.page h1,
h1 {
  font-size: 1.55em;
  line-height: 1.25;
  font-weight: 700;
  font-synthesis: none;
  margin-top: 0.65em;
  margin-bottom: 0.5em;
}

[dir="ltr"] .page h1,
[dir="ltr"] h1 {
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.15em;
  line-height: 1.3;
  font-weight: 700;
  font-synthesis: none;
}

b,
strong {
  font-weight: 700;
  font-synthesis: none;
  color: #120b12;
}

/* Geist Serif has no bold cut; this still gives stand-alone strong lines a subhead size. */
p:has(> strong:only-child) {
  font-size: 1.08em;
  line-height: 1.4;
  margin-bottom: 0.7em;
}

[dir="ltr"] .code {
  padding-top: 60px;
  padding-right: 20px;
}

[dir="rtl"] .code  {
  padding-top: 60px;
  padding-left: 20px;
}

iframe {
  position: sticky;
  top: 20px;
  height: max(80vh, 500px);
}

.page {
  padding-bottom: 60px;
}   

@media screen and (max-width: 600px) {
  .tour {
    display: block;
  }

  .code {
    font-size: 14px;
    padding-right: 0;
  }

  .header {
    font-size: 15px;
    padding-left: 7px;
    padding-right: 7px;
    line-height: 40px;
    grid-column: unset;
  }

  iframe {
    position: unset;
    top: unset;
    height: 80vh;
    border-radius: 0;
  }

  .title a {
    font-size: 22px;
    line-height: 40px;
  }

  .page p,
  h1,
  pre {
    margin-left: 20px;
    margin-right: 20px;
  }

  .page h1,
  h1 {
    font-size: 1.4em;
  }

  .page p,
  .page pre,
  .page li {
    font-size: 17px;
    line-height: 1.6;
  }


  .page {
    padding-bottom: 0px;
  }   
  

  ul,
  ol,
  h3 {
    margin-left: 0px;
    margin-right: 20px;
  }

  .nav span {
    padding-left: 5px;
  }

  [dir="ltr"] .nav {
    padding-right: 0px;
  }
  
  [dir="rtl"] .nav {
    padding-left: 0px;
  }

  .bottomnav a {
    font-size: 17px;
  }

  .bottomnav .back {
    padding-left: 20px;
  }

  .bottomnav .next {
    padding-right: 20px;
  }

  .welcome {
    font-size: 24px;
  }

  .welcome a {
    font-size: 40px;
    line-height: 40px;
  }

  .welcome a {
    font-size: 50;
    text-shadow: 2px 2px black;
  }

  .welcome-instruction {
    padding-top: 10px;
    font-size: 30px;
  }

  .mobile-ferris {
    display: block;
    top: 20%;
    left: 50%;
    margin-left: -75px;
    position: absolute;
    width: 150px;
    -webkit-animation: fadein 2s; /* Safari, Chrome and Opera > 12.1 */
    -moz-animation: fadein 2s; /* Firefox < 16 */
    -ms-animation: fadein 2s; /* Internet Explorer */
    -o-animation: fadein 2s; /* Opera < 12.1 */
    animation: fadein 2s;
  }
}

b,
strong,
h1 {
  color: #120b12;
}

.header:fullscreen,
.header:-webkit-full-screen,
.header:moz-full-screen {
  display: none;
}
