* {
  scrollbar-width: thin;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Roboto';
  font-size: 1.2em;
  background-color: var(--welcome-background-color);
}

header {
  height: calc(110px + env(safe-area-inset-top));
  border-top: max(0px, env(safe-area-inset-top)) solid var(--status-bar-color);
}

.header-background {
  position: absolute;
  width: 100%;
  height: calc(110px + env(safe-area-inset-top));
  top: 0;
  background-color: white;
}

nav .container {
  padding: 0;
}

#welcome {
  cursor: pointer;
  text-align: center;
}

#overview {
  transform-origin: top;
  transition-property: transform;
  transition-duration: 0.15s;
}

/* mobile menu */
#hamburger-menu {
  position: absolute;
  top: 52px;
}

@media(min-width: 992px) {
  nav .container {
    padding: 0;
  }
}

@media(max-width: 992px) {
  #overview {
    position: absolute;
    top: 110px;
    right: 0;
    width: 100%;
    margin-top: 0;
    padding: 15px;
    background-color: #eee;
    filter: opacity(0.9);
  }

  #overview nav {
    margin-top: 5px;
  }

  #overview .nav-link {
    color: var(--font-color);
    display: block;
    margin-right: 0;
    margin-top: 12px;
    margin-bottom: 12px;
    font-size: 1.3em;
  }

  .hidden-narrow {
    transform: scaleY(0);
  }
}

/* no margin/padding right/left for smartphone */
@media(max-width: 576px) {
  .container {
    padding: 0;
  }

  .row {
    margin-right: 0;
    margin-left: 0;
  }

  .row-sm {
    margin-right: -15px;
    margin-left: -15px;
  }

  .col-12, .col-sm-12, .col-md-12, .col-lg-12, .col-xl-12 {
    padding: 0;
  }

  header .container {
    padding-left: 30px;
    padding-right: 30px;
  }

  nav .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

.nav {
  margin-top: 30px;
}

header {
  top: 0px;
  background-color: rgba(245, 245, 245, 0.5);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.sticky-top {
  top: 0px;
}

cite {
  display: block;
  font-family: 'Lora';
  font-size: 1.3em;
  line-height: 1.3em;
  margin-top: 1em;
}

cite:not(:last-child) {
  margin-bottom: 1em;
}

h1,
h2,
h3,
h4,
label,
.disclaimer,
.alert,
nav {
  font-family: 'Roboto Mono', monospace;
  color: var(--title-color);
  text-transform: uppercase;
  margin-bottom: 1em;
}

button {
  font-family: 'Roboto Mono', monospace;
  color: var(--title-color);
  text-transform: uppercase;
}

input,
textarea {
  font-family: 'Roboto Mono', monospace;
  color: var(--title-color);
}

h2 {
  color: var(--primary-color);
  font-size: 1.8em;
  margin-bottom: 0.1em;
}

h3 {
  font-size: 1.1em;
  text-transform: none;
  color: var(--title-color);
}

h3::before {
  content: '// ';
}

h4 {
  font-size: 1.1em;
}

h4, label {
  width: max-content;
  color: var(--background-color);
  background-color: var(--secondary-color);
  padding: 0 2px;
}

.tagline {
  color: var(--secondary-color);
  white-space: nowrap;
}

/* welcome */
#welcome {
  font-family: 'Roboto Mono', monospace;
  font-size: 78px;
  position: fixed;
  top: 0;
  z-index: -2;
  width: 100vw;
  height: 100vh;
  color: var(--welcome-color);
}

#welcome a {
  color: inherit;
  text-decoration: none;
}

#welcome a:hover {
  text-decoration: none;
}

.center {
  position: absolute;
  margin: 0 auto;
  width: 600px;
  top: 50%;
  left: 50%;
  margin-top: -80px;
  margin-left: -300px;
}

.copyright {
  width: 360px;
  margin-top: 10px;
  margin-left: -180px;
}

.copyright #chevron-container {
  visibility: hidden;
}

#chevron-container {
  text-align: center;
  margin-top: 1.5em;
}

.hidden {
  filter: opacity(0);
}

.fade-in {
  transition-duration: 1s;
}

.chevron {
  font-size: 0.5em;
  transition-duration: 0.2s;
}

.center:hover .chevron {
  filter: opacity(1);
  transform: scale(1.3);
}

@media(max-width: 850px) {
  .center {
    margin-top: calc(-180px + env(safe-area-inset-top));
    transform: scale(0.5);
  }
}

@media (hover: hover) {
  .chevron {
    animation-name: down;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-delay: 3s;
  }

  @keyframes down {
    0% {
      transform: translateY(0px) scale(1.3);
    }

    75% {
      transform: translateY(0px) scale(1.3);
    }

    87.5% {
      transform: translateY(20px) scale(1.3);
    }

    100% {
      transform: translateY(0px) scale(1.3);
    }
  }
}

@media (hover: none) {
  .chevron {
    filter: opacity(1);
    font-size: 0.75em;
    animation-name: pulse;
    animation-duration: 3s;
    animation-iteration-count: infinite;
  }

  @keyframes pulse {
    0% {
      filter: opacity(0.2);
      transform: translateY(0px) scale(1);
    }

    75% {
      filter: opacity(0.2);
      transform: translateY(0px) scale(1);
    }

    87.5% {
      filter: opacity(1);
      transform: translateY(60px) scale(1.1);
    }

    100% {
      filter: opacity(0.2);
      transform: translateY(00px) scale(1);
    }
  }
}

.caret {
  border-right: 0.08em solid;
  margin-left: 0.05em;
  animation: blink 0.8s step-start 0s infinite;
}

@keyframes blink {
  50% {
    filter: opacity(0%);
  }
}

#main {
  position: absolute;
  margin-top: 100vh;
  z-index: 500;
  top: 0;
  left: 0;
  right: 0;
}

/* digits */
#digits {
  transform: translateX(-700px);
  font-family: 'Roboto Mono', monospace;
  font-size: 72px;
  color: #ccc;
  width: 2600px;
  cursor: default;
}

#simple-container {
  margin-top: 225px;
}

@media(max-width: 992px) {
  #digits {
    transform: translateX(-640px) translateY(10px);
    font-size: 66px;
  }
}

@media(max-width: 576px) {
  #simple-container {
    margin-top: 135px;
  }

  #digits {
    transform: translateX(-390px) translateY(10px);
    font-size: 43px;
  }
}

.grid-digit {
  display: inline-block;
  user-select: none;
  transform: translateY(-10px);
  margin-left: 0.3em;
  margin-right: 0.444em;
  filter: opacity(0.4);
  height: 1.1em;
  width: 0.6em;
}

.grid-digit div {
  position: absolute;

  transition: transform 2s ease;

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

div.one {
  transform: rotateY(-180deg);
}

.flipped div.zero {
  transform: rotateY(180deg);
}

.flipped div.one {
  transform: rotateY(0deg);
}

.blue {
  color: var(--primary-color);
  filter: opacity(1);
}

/* clock */
#clock-container {
  position: relative;
  top: -80px;
  left: calc(-100px - 5vw);
}

@media(max-width: 1200px) {
  #clock-container {
    top: -20px;
  }
}

@media(max-width: 992px) {
  #clock-container {
    top: 420px;
    left: -35px;
  }
}

@media(max-width: 767px) {
  #clock-container {
    transform: scale(0.75);
    top: 580px;
    left: -90px;
  }
}

@media(max-width: 576px) {
  #clock-container {
    transform: scale(0.67);
    top: 600px;
    left: -250px;
  }
}

@media(max-width: 476px) {
  #clock-container {
    transform: scale(0.67);
    left: -200px;
    top: 720px;
  }
}

@media(max-width: 376px) {
  #clock-container {
    transform: scale(0.6);
    left: -190px;
    top: 780px;
  }
}

/* tech/windows */
.qr-code {
  position: absolute;
  right: 25px;
  bottom: 25px;
}

#screen {
  position: relative;
}

.window {
  position: absolute;
  box-shadow: 3px 3px 10px var(--shadow-color);
}

.titlebar {
  background-color: #eee;
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
  border: 1px solid #ccc;
  border-bottom: none;
  height: 32px;
  width: 100%;
}

.closebox {
  position: absolute;
  top: 9px;
  left: 12px;
  width: 16px;
  height: 16px;
  background-color: var(--primary-color);
  border-radius: 8px;
}

.content {
  border: 1px solid #ccc;
  border-bottom-left-radius: 7px;
  border-bottom-right-radius: 7px;
  background-color: var(--background-color);
  height: 100%;
  overflow: hidden;
}

.tabbar {
  background-color: #f5f5f5;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
  border-top: 1px solid #ddd;
  padding-top: 1px;
  padding-left: 12px;
  height: 27px;
}

.tab {
  font-family: 'Roboto Mono';
  font-size: 13px;
  display: inline-block;
  border: 1px solid #ddd;
  border-bottom: none;
  padding: 0px 10px;
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
  margin-left: 4px;
  cursor: pointer;
  user-select: none;
}

.active {
  background-color: var(--primary-color);
  color: white;
}

#auto.active {
  background-color: var(--secondary-color);
  color: white;
}

.tab:hover {
  filter: brightness(0.8);
}

#window1 {
  top: 20px;
  left: 0px;
  z-index: 400;
}

#window1 .closebox {
  background-color: #ccc;
}

#technologies {
  font-family: 'Roboto Mono';
  font-size: 17px;
  color: #ccc;
  padding-top: 8px;
  padding-left: 9px;
  padding-bottom: 10px;
  width: 600px;
  height: 326px;
}

#window2 {
  top: 115px;
  left: 408px;
  z-index: 500;
  width: 800px;
  height: 375px;
}

#bezier {
  cursor: move;
}

#mobile-container {
  position: absolute;
  top: 585px;
  left: 530px;
  width: 480px;
}

#smartphone {
  position: absolute;
  top: 342px;
  left: 105px;
  z-index: 3000;
}

#device {
  position: absolute;
  width: 380px;
  height: 700px;
  border: 6px solid #ccc;
  border-radius: 50px;
  overflow: hidden;
  transform: translateY(0px);
  background-color: #eee;

  transition-duration: 1s;

  box-shadow: 0px 0px 15px var(--shadow-color);
}

#device.landscape {
  transform: rotate(-90deg) translateX(50px) translateY(-160px);
}

#browser {
  position: absolute;
  border: none;

  width: calc(100% + 1px); /* Safari fix */

  top: 0px;
  height: 100%;

  filter: opacity(100%);
  transition: filter;
  transition-duration: 0.5s;
}

.landscape #browser {
  transform: rotate(90deg) translateX(161px) translateY(162px); /* old: translateX(147px) translateY(140px); */
  width: 693px; /* 656px; /* old: 648px; */
  height: 369px;

  /* fix for chrome (ignores border-radius from parent) */
  border-bottom-right-radius: 30px;
  border-top-right-radius: 30px;

  transition: all;
  transition-delay: 0.3s;
}

#rotate {
  position: absolute;
  left: 30px;
  bottom: 30px;

  background-color: #ddd;
  border: 1px solid gray;
  border-radius: 9px;
  width: 40px;
  height: 70px;

  font-size: 24px;
  text-align: center;

  padding: 5px;
  padding-top: 13px;

  filter: opacity(0.5);
  cursor: pointer;

  transition-duration: 0.3s;
}

#rotate:hover {
  filter: opacity(0.7);
}

#rotate svg {
  transition-delay: 0.3s;
  transition-duration: 0.3s;
}

#rotate.landscape {
  transform: translateX(13px) translateY(17px) rotate(-90deg);
}

#rotate.landscape svg {
  transform: rotate(90deg) scaleX(-1);
}

#browser.hide {
  filter: opacity(0%) !important;
}

.browserlink a {
  text-decoration: none;
}

.browserlink svg.in-browser {
  transition-duration: 0.5s;
  transform: translateY(-1px);
}

.browserlink a:hover svg.in-browser {
  transform: translateY(-1px) rotateY(180deg);
}

section.tech {
  min-height: 1220px;
}

.btn-outline-silversky {
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  background-color: var(--background-color);
  font-weight: bold;
}

.btn-outline-silversky:hover {
  color: var(--background-color);
  background-color: var(--primary-color);
}

@media(max-width: 1200px) {
  #window2 {
    top: 115px;
    left: 230px;
  }

  #mobile-container {
    width: 340px;
  }

  .hide-md {
    display: none !important;
  }

  section.tech {
    min-height: 1320px;
  }
}

@media(max-width: 992px) {
  #window2 {
    top: 140px;
    left: 130px;
    width: 460px;
    height: 260px;
  }

  #mobile-container {
    display: none;
  }

  #smartphone {
    display: none;
  }

  section.tech {
    min-height: 800px;
  }
}

@media(max-width: 767px) {
  #window1 {
    top: 20px;
    width: 440px;
    height: 300px;
  }

  #window2 {
    top: 140px;
    left: 80px;
    width: 380px;
  }

  #window2 .content {
    height: 220px;
    overflow: hidden;
  }

  section.tech {
    min-height: 800px;
  }
}

@media(max-width: 576px) {
  #screen {
    position: absolute;
    left: 30px;
    right: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    height: 420px;
  }

  #window2 {
    left: 7px;
    width: 440px;
  }

  section.tech {
    min-height: 880px;
  }
}

@media(max-width: 370px) {
  section.tech {
    min-height: 920px;
  }
}

/* solutions */

.model svg {
  width: 20px;
  height: 20px;

  margin-right: 7px;
  transform: translateY(-3px);
}

.pricing svg {
  width: 22px;
  height: 22px;

  margin-right: 5px;
}

.model h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5em;
  color: var(--primary-color);
  text-transform: uppercase;
  width: fit-content;
}

.model h3::before {
  content: '';
  margin: 0;
}

.model h3::after {
  content: '';
  margin: 0;
}

.pricing {
  margin-bottom: 0.5em;
}

.duration {
  margin-bottom: 0.5em;
}

.m-minus-15 {
  margin-left: -15px;
  margin-right: -15px;
}

/* team */
.team {
  display: inline-block;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  margin-bottom: 20px;
  padding: 5px;

  filter: grayscale();
  background-color: var(--secondary-color);
}

.team-sm {
  width: 200px;
  height: 200px;
}

.team-left {
  border-right: 1px solid #eee;
}

.ai-suite {
  width: 60px;
  height: 60px;
  padding: 3px;
}

@media(max-width: 992px) {
  .team-left {
    border-right: none;
  }
}

.team-profile {
  display: block;
  text-align: center;
}

.name-and-title {
  display: inline-block;
}

.description {
  text-align: center;

  margin-left: 15px;
  margin-right: 10px;
}

@media(max-width: 576px) {
  .description {
    margin-left: 0;
    margin-right: 0;
  }
}

h4.name {
  background-color: var(--primary-color);
  margin-bottom: 0;
}

/* general */
.page {
  background-color: var(--background-color);
  border: 1px solid var(--background-color);
  /* fix for render issue */
  z-index: 10;
}

.credits {
  border: none;
  background-color: unset;
}

.full {
  min-height: max(100vh, 800px);
}

.background {
  position: absolute;
  overflow: hidden;
  left: 0;
  right: 0;
  border: 1px solid var(--background-color);
}

section {
  position: relative;
  z-index: 1000;
  padding: 1.5em;
  margin-bottom: 5em;
  border: 1px solid var(--border-color);
  background-color: var(--box-background-color);
  filter: opacity(0.975);
}

@media(max-width: 576px) {
  section {
    margin-bottom: 4em;
  }
}

section.flex {
  display: flex;
  padding: 0;
  flex-direction: row;
  filter: opacity(0.99);
}

.simple-text {
  flex-grow: 1;
  flex-basis: calc(50% + 15px);
  padding: 1.5em;
}

#paper-birds {
  flex-grow: 0.94;
  flex-basis: calc(50% - 15px);
  min-height: 300px;
  background-position: center center;
  background-image: url('../img/paper_birds.png');
  background-size: cover;
}

@media(max-width: 992px) {
  section.flex {
    flex-direction: column;
  }
}

.nav {
  display: block;
}

.nav-link {
  border: none;
  padding: 0;
  margin-right: 1em;
  color: #999;
}

.nav-link:focus {
  color: inherit;
}

.nav-link:hover {
  background-color: #ccc;
}

.nav-pills .nav-link.active {
  border: none;
  color: var(--font-color);
  background-color: unset;
}

.nav-pills .nav-link {
  border-radius: 0;
}

.nav-pills .nav-link:first-child {
  border-radius: 0;
}

.nav-pills .nav-link:last-child {
  border-radius: 0;
}

.nav-link {
  display: inline-block;
}

nav {
  float: left;
  margin-top: 25px;
}

.logo {
  float: right;
  height: 110px;
  transform: translateX(20px);
}

.preamble {
  font-size: 1.3rem;
  margin-bottom: 30px;
}

h2 {
  pointer-events: none;
}

@media(max-width: 576px) {
  h3 {
    font-size: 0.95em;
  }
}

.nav-link:hover {
  color: var(--font-color);
}

.nav-link::after {
  content: "";
  display: block;
  height: 2px;
  width: 0px;
  background-color: var(--primary-color);
  transition: width 0s ease-in;
}

.nav-link.active::after {
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.info {
  cursor: help;
  white-space: nowrap;
}

img.client {
  width: 100%;
  height: auto;
  margin-top: 1.8em;
  filter: grayscale(1) opacity(0.7);
  transition-duration: 0.2s;
}

img.client:hover {
  filter: none;
  transform: scale(1.03);
  box-shadow: 0px 0px 10px var(--shadow-color);
}

a svg.social {
  transition-duration: 0.2s;
}

a:hover svg.social {
  transform: scale(1.07);
}

.new-window {
  transform: translateY(-1px);
}

.new-window:hover {
  transform: translateY(-1px);
}

.box {
  min-height: 300px;
  background-color: #ddd;
  margin-bottom: 2em;
}

a {
  color: #777;
  text-decoration: none;
}

a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

em {
  font-style: normal;
  color: var(--primary-color);
}

cite em {
  font-style: italic;
}

pre em {
  font-style: italic;
}

.disclaimer {
  position: fixed;
  bottom: 0px;
  left: 0px;
  background-color: var(--background-color);
  font-size: 0.7em;
  color: var(--secondary-color);
}

.error {
  margin: 30px 40px;
}

.error h1, .error h2, .error h3, .error pre, .error a {
  color: var(--background-color);
}

.error a:hover {
  color: var(--background-color);
  text-decoration: underline;
}

pre {
  white-space: pre-wrap;
}

.prompt {
  position: relative;
  width: 80%;
  float: right;
}

@media (max-width: 768px) {
  .prompt {
    width: 100%;
  }
}

.prompt .label {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: white;
  color: var(--primary-color);
}

.prompt textarea {
  border-radius: 20px;
  padding-left: 40px;
  padding-top: 8px;
  resize: none;
  border-bottom-right-radius: 2px;
  border: 1px solid var(--primary-color);
}

.prompt button {
  position: absolute;
  right: 0;
  bottom: 0;
  border-radius: 15px;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 2px;
  background-color: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.prompt button:hover {
  border: 1px solid var(--primary-color);
  background-color: var(--primary-color);
}

.prompt button:disabled:hover {
  background-color: unset;
}

.chat {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.8em;
  width: fit-content;
  max-width: 80%;
  min-height: 2em;
  border-radius: 20px;
  padding: 7px 16px;
  margin-bottom: 12px;
}

.chat a {
  color: var(--font-color);
}

.request {
  background-color: var(--primary-color);
  color: white;
  float: right;
  border-bottom-right-radius: 2px;
}

.response {
  background-color: #eee;
  border-bottom-left-radius: 2px;
}

.short {
  width: 70px;
}

.chat .loading {
  display: block;
  margin: 6px;
  margin-left: 15px;
}

.dot-elastic {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: #000;
  animation: dot-elastic 1s infinite linear;
}

.dot-elastic::before, .dot-elastic::after {
  content: "";
  display: inline-block;
  position: absolute;
  top: 0;
}

.dot-elastic::before {
  left: -15px;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: #000;
  animation: dot-elastic-before 1s infinite linear;
}

.dot-elastic::after {
  left: 15px;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: #000;
  animation: dot-elastic-after 1s infinite linear;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes dot-elastic-before {
  0% {
    transform: scale(1, 1);
  }
  25% {
    transform: scale(1, 1.5);
  }
  50% {
    transform: scale(1, 0.67);
  }
  75% {
    transform: scale(1, 1);
  }
  100% {
    transform: scale(1, 1);
  }
}

@keyframes dot-elastic {
  0% {
    transform: scale(1, 1);
  }
  25% {
    transform: scale(1, 1);
  }
  50% {
    transform: scale(1, 1.5);
  }
  75% {
    transform: scale(1, 1);
  }
  100% {
    transform: scale(1, 1);
  }
}

@keyframes dot-elastic-after {
  0% {
    transform: scale(1, 1);
  }
  25% {
    transform: scale(1, 1);
  }
  50% {
    transform: scale(1, 0.67);
  }
  75% {
    transform: scale(1, 1.5);
  }
  100% {
    transform: scale(1, 1);
  }
}

@media(max-width: 576px) {
  .prompt textarea {
    height: 7.5em;
  }

  .chat {
    max-width: 88%;
  }
}

@media(max-width: 1200px) {
  .logo {
    height: 100px;
    margin-top: 8px;
  }
}

@media(max-width: 991px) {
  .logo {
    height: 85px;
    margin-top: 15px;
    margin-right: 7px;
  }

  nav .container {
    padding: 0 15px;
  }
}

@media(max-width: 576px) {
  .logo {
    height: 70px;
    margin-top: 27px;
    margin-right: 7px;
  }

  .tagline {
    font-size: 0.9em;
    display: block;
  }
}

@media(max-height: 550px) {
  header {
    height: 60px;
  }

  .header-background {
    height: calc(60px + env(safe-area-inset-top));
  }

  nav {
    margin-top: -18px;
  }

  .logo {
    height: 65px;
    margin-top: -3px;
    margin-right: 10px;
  }

  #hamburger-menu {
    top: 18px;
  }

  #overview {
    top: 60px;
    padding: unset;
    padding-bottom: 15px;
  }

  #overview .nav-link {
    font-size: unset;
    margin-top: 4px;
    margin-bottom: 4px;
  }
}

@media print {
  body {
    background-color: white;
  }

  #main {
    margin-top: 0;
  }

  .full {
    min-height: 0;
  }

  img.client {
    width: 7cm;
    padding-right: 1cm;
  }
}
