@supports (-webkit-touch-callout: none)

html {
  margin: 0 !important;
  padding: 0 !important;
  -webkit-text-size-adjust: none;
  touch-action:none;
}

body {
  margin: 0 !important;
  padding: 0 !important;
  -webkit-text-size-adjust: none;
  touch-action:none;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* include border and padding in element width and height */
* {
  box-sizing: border-box;
}

/* COLORS */

body, .content, .page-content, .text-content, .caption {
  background-color: black;
}

body, .content, .fullscreen,
a, a:hover, a:visited {
  color:  white;
}

#language-switch, .overlay, .caption {
  background-color: rgba(0,0,0,0.7);
}

body.inverted, .inverted .content, .inverted .page-content, .inverted .text-content, .inverted .caption {
  background-color: white;
}

body.inverted, .inverted .content, .inverted .fullscreen,
.inverted a, .inverted a:hover, .inverted a:visited {
  color:  black;
}

.inverted #language-switch, .inverted .overlay, .iverted .caption {
  background-color: rgba(255,255,255,0.7);
}




/* STYLES */

body {
  font-family: "Theinhardt", sans-serif;
  font-weight: 600;
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: 0.02vw;
}

h1, h2, h3 {
  font-size: 8vw;
  text-transform: uppercase;
}

a, a:hover, a:visited {
  font-style: italic;
  text-underline-offset: 0.28em;
  text-decoration-thickness: 0.1em;
}

a.wavy {
  text-decoration-style: wavy;
}

a.clicked {
  /*text-decoration: none;*/
  /*text-decoration-color: grey;*/
}

.hidden {
  display: none;
}

#container {
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 1s; 
  opacity: 1;
  touch-action: none;
}

#container.old, #container.new, .page-content.invisible {
  opacity: 0;
}

.content, .fullscreen {
  height: 100%;
  width: 100%;
  display: block;
  overflow: auto;
  scroll-behavior: smooth;
}

.story {
  font-size: 35px;
}

.page {
  width: 100%;
  height: 100%;
  touch-action: none;
}

.page-content {
  opacity: 1;
  transition: opacity 1s; 
}
.fit-width img {
  width: 100%;
}
.fit-height img {
  height: 100%;
}

.caption, .overlay {
  font-size: 23px;
}

.caption, .overlay,
.text, .story,
#language-switch {
  padding: 20px;

}

#language-switch {
  position: absolute;
  right: 0;
  bottom: 0;
  display: block;
}

.caption, .overlay {
  position: absolute;
  left: 0;
  width: 100vw;
  display: block;
}

.caption {
  bottom: 0;
}

.overlay {
  transition: top .5s; 
  /*
  padding-left: 80px;
  padding-right: 80px;
  */
  /*display: none;*/
}

.show-hide-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  bottom: -60px;
  margin-left:  -22px;
  left:  50vw;
}

.show-hide-button .flickity-button-icon {
  position: absolute;
  left: 20%;
  top: 20%;
  width: 60%;
  height: 60%;
}

.show-hide-button .flickity-button-icon {
  transition: transform .5s; 
}

.down .flickity-button-icon {
  transform: rotate(90deg);
}

.up .flickity-button-icon {
  transform: rotate(-90deg);
}

#language-switch a {
}

.flickity-page-dots {
  display: none;
}

.center {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  height: calc(100vh - 40px);
}

.passage {
  transition: opacity .5s; 
  opacity: 0;
}

.passage.visible {
  display: inline;
  opacity: 1;
}


body:lang(de) #language-switch a.de,
body:lang(en) #language-switch a.en {
  text-decoration: none;
}

body:lang(de) span:lang(en),
body:lang(en) span:lang(de) {
  display: none;
}