* {
  padding: 0;
  margin: 0;
}

@font-face {
  font-family: 'ia_writer_mono_sitalic';
  src: url('../font/iawritermonos-italic-webfont.woff2') format('woff2'),
       url('../font/iawritermonos-italic-webfont.woff') format('woff'),
       url('../font/iAWriterMonoS-Italic.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'ia_writer_mono_sregular';
  src: url('../font/iawritermonos-regular-webfont.woff2') format('woff2'),
       url('../font/iawritermonos-regular-webfont.woff') format('woff'),
       url('../font/iAWriterMonoS-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'ia_a728_text';
  src: url('../font/iA728Text-Regular.woff') format('woff'),
       url('../font/iA728Text-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}





html, body {
  position: relative;
  padding: 0;
  margin: 0;
  font-family: "ia_writer_mono_sregular", sans-serif;
  font-size: 18px;
  line-height: 24px;

  color: rgba(255, 255, 255, 0.6);
  background-color: black;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-overflow-scrolling: touch;
}

:root {
  --ac-red: 255, 0, 0;
  --app-height: 100vh;
}

.fnt-title {
  font-family: "ia_a728_text", sans-serif;
  font-size: 3.5rem;
  color: rgba(255,255,255,1);
  line-height: normal;
}
.fnt-subtitle {
  font-family: "ia_writer_mono_sitalic", sans-serif;
  font-size: 1.33rem;
  color: rgba(255,255,255,0.6);
  line-height: normal;
  margin-bottom: 10px;
}
.fnt-vorspann {
  font-family: "ia_writer_mono_sregular", sans-serif;
  font-size: 1.11rem;
  color: rgba(255,255,255,0.6);
  line-height: normal;
  margin-top: 40px;
}

a {
  font-family: "ia_writer_mono_sitalic", sans-serif;
  font-size: 0.9rem;
  color: rgba(255,255,255,1);
  text-decoration: underline;
}



#main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#overlay {
  position: absolute;
  overflow: auto;
  width: 100vw;
  height: 100vh;
  top:0px;
  left:0px;
  background-color: rgba(0,0,0,0.9);
  transition: opacity 0.5s;
  user-select: none;
  
}
#overlay.hide {
  transition: opacity 0.5s;
  user-select: none;
  pointer-events: none;
  opacity: 0;
}

#overlay-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}

#ovly-text {
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0px 50px;
}

.fnt-vorspann a {
  font-family: inherit;
  font-size:inherit;
  color: inherit;
  text-decoration: underline;
}

#more-info {
  margin-top: 40px;
  max-width: 800px;
  overflow: hidden;
  max-height: 0px;
  transition: max-height 1s;
}
#more-info.show {
  max-height: 600px;
  transition: max-height 2s;
}
#more-info p {
  margin-bottom: 0.8rem;
}

#more-info a {
  font-family: inherit;
  font-size:inherit;
  color: inherit;
  text-decoration: underline;
}

#close-but {
  position: absolute;
  top: 6px;
  right: 6px;
}
#close-but.hide {
  opacity: 0;
}
#close-but img {
  opacity: 0.6;
}
#less-but {
  margin-top: 40px;
  margin-bottom: 40px;
}
#enter-but {
  margin-top: 10px;
  transition: opacity 1s 1s;
}
#enter-but.hide {
  opacity: 0;
}
#enter-but.remove {
  opacity: 0;
}
#enter-but a {
  font-family: "ia_a728_text", sans-serif;
  font-size: 1.3rem;
  color: rgba(255,255,255,1);
  text-decoration: none;
}
#more-but {
  margin-top: 20px;
  transition: opacity 1s 1s;
}
#more-but.hide {
  opacity: 0;
  transition: opacity 1s;
}
#info-but {
  position: absolute;
  top: 6px;
  right: 6px;
}
#info-but img {
  opacity: 0.6;
}
#info-but.hide {
  display: none;
}




#canvas {
  line-height: 0px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, 0);
  left: 50%;
}

#canvas.show {
  transition: opacity 4s;
  opacity: 1;
}
#canvas > img {
  user-select: none;
  pointer-events: none;
}
#canvas > img#back {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}
#canvas > img.wink-image {
  position: absolute;
  top: 0px;
  left: 0px;
  opacity: 0;
  transition: opacity 0.2s;
}
#canvas > img.wink-image.show {
  opacity: 1;
  transition: opacity 0.2s;
}
#coral-can {
  position: absolute;
  top:0px;
  left:0px;
  transform-origin: top left;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}


#canvas img.coral {
  position: absolute;
  top:0px;
  left:0px;
  transform-origin: top left;
}
#canvas img.coral.shadowed {
  filter: drop-shadow(1px 1px 30px rgba(0,0,0,0.2));
}

#social-buts  {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
}
#social-buts img {
  width: 1.4rem;
  margin: 0.2rem;
}





#debug {
  position:fixed;
  right: 3px;
  top: 3px;
  outline: 1px solid yellow;
  color: yellow;
  background-color: rgba(0,0,0,0.5);
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 16px;
  width: calc(100vw - 15px);
  height: 21px;
  padding: 4px;
  display: none;
  gap: 10px;
}

#debug > div {
  outline: 1px solid rgba(255, 255, 0, 0.5);
  height: 20px;
  min-width: 40px;
  padding: 0px 4px;
}

#debug.show {
  display: flex;
}


@media(max-width: 768px) {
  html, body {
    font-size: 12px;
    line-height: 20px;
  }
}