:root {
  --main-title-color: rgb(44,44,46);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: #f3f3f3;
  font-family: 'HelvMedium', 'Gill Sans', 'Gill Sans MT', 'Calibri', 'Trebuchet MS', sans-serif;
}

a {
  text-decoration: none;
  color: unset;
}

header {
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 9;
}

header .top-logo {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: auto;
  margin: 0 auto;
  z-index: 10;

  background-color: white;
  padding: 10px 12px 15px 10px;
  border-radius: 0 0 10px 0;
}

header .top-logo img {
  width: 100%;
  height: 100%;
}

.text {
  font-family: 'HelvLight', 'Gill Sans', 'Gill Sans MT', 'Calibri', 'Trebuchet MS', sans-serif;
}

.sticky {
  position: fixed;
  top: 0;
  width: 100%;
}

/* Add some top padding to the page content to prevent sudden quick movement (as the header gets a new position at the top of the page (position:fixed and top:0) */
.sticky + section {
  padding-top: 102px;
}


section {
  display: flex;
  justify-content: center;
  align-items: center;
}

section#top-video .textual .logo {
  width: 63%;
  height: auto;
}

section#top-video .logo-container {
  display: flex;
  justify-content: center;
  padding: 30px 0;
}

.unselectable {
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;
}

section#top-video {
  height: 30vh;
  align-items: unset;
  justify-content: flex-start;
  flex-direction: column;
  padding: 5% 10%;
}

section#top-video .video-container video {
  /* position: absolute; */
  /* top: 40px; */
  /* top: 0;
  left: 0; */
  object-fit: cover;
  width: 100%;
  /* height: 87%; */
  /* height: 50%; */
  pointer-events: none;
}

video {
  transform: scale(.7,.7);
}

/* section#top-video .video-container:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 87%;
  background-color: rgba(0,0,0,.25);
} */

section#top-video .textual {
  position: relative;
  z-index: 1;
  color: black;
  opacity: .8;
}

section#top-video sup {
  font-size: 1rem;
}

section#top-video .subtitle {
  font-size: 2em;
  opacity: .7;
}

.arrows {	
  width: 60px;
	height: 72px;
	position: absolute;
	left: 50%;
	margin-left: -30px;
	bottom: 20px;
}

.arrows path {
	stroke: black;
	fill: transparent;
	stroke-width: 1px;	
	animation: arrow 2s infinite;
	-webkit-animation: arrow 2s infinite; 
}

@keyframes arrow
{
0% {opacity:0}
40% {opacity:1}
80% {opacity:0}
100% {opacity:0}
}

@-webkit-keyframes arrow /*Safari and Chrome*/
{
0% {opacity:0}
40% {opacity:1}
80% {opacity:0}
100% {opacity:0}
}

.arrows path.a1 {
	animation-delay:-1s;
	-webkit-animation-delay:-1s; /* Safari Chrome */
}

.arrows path.a2 {
	animation-delay:-0.5s;
	-webkit-animation-delay:-0.5s; /* Safari Chrome */
}

.arrows path.a3 {	
	animation-delay:0s;
	-webkit-animation-delay:0s; /* Safari Chrome */
}



section#phone {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

section#phone .phone-image, section#phone .textual-block {
  width: 100%;
}

section#phone .textual-block {
  padding: 3% 10% 10% 10%;
}

section#phone .phone-image {
  background-image: url('/assets/iphone.png');
  background-repeat: no-repeat;
  background-clip: border-box;
  background-position: center;
  background-size: contain;
  height: 100%;
  min-height: 300px;
}

.textual-block {
  color: gray;
  font-size: 1.2em;
}

.textual-block .title {
  font-size: 2.1rem;
  font-weight: bold;
  margin-bottom: 20px;
  /* color: rgb(90, 90, 90); */
  color: var(--main-title-color);
}

section#clouds {
  flex-direction: column;
}

section#clouds .chalk-image, section#clouds .textual-block {
  width: 100%;
}

section#clouds .textual-block {
  padding: 0 10% 10% 10%;
  order: 2;
}

section#clouds .main-cloud {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

section#clouds .chalk-image {
  background-image: url('/assets/chalk_bg.png');
  background-repeat: no-repeat;
  background-clip: border-box;
  background-position: center;
  background-size: contain;
  width: 100%;
  height: 100%;
  max-height: 450px;
  min-height: 340px;
  display: flex;
  justify-content: center;
  align-items: center;
  order: 1;
}

section#clouds .main-cloud img {
  width: 30%;
  height: 50%;
  
  -webkit-animation: cloudlikeaboss 2s;
	-moz-animation: cloudlikeaboss 2s;
	-o-animation: cloudlikeaboss 2s;
  animation: cloudlikeaboss 2s;
  
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
  
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
}

section#clouds .clouds-scene .cloud {
  fill: white;
  width: 200px;
  height: 200px;
}

@keyframes cloudlikeaboss {
  0% { margin-top: 0%; }
  15% { margin-top: 1%; }
  35% { margin-top: 2%; }
  55% { margin-top: 2.2%; }
  75% { margin-top: 2%; }
  95% { margin-top: 1%; }
  100% { margin-top: 0%; }

}


.clouds-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* scroll-behavior: smooth; */
}



section#earth {
  flex-direction: column;
  justify-content: space-around;
  position: relative;
  padding: 10% 0 5% 0;
  transition: background-color 1s ease;
}

section#earth .planet-container, section#earth .textual-block {
  width: 100%;
}

section#earth .textual-block {
  padding: 10% 10% 0 10%;
}

section#earth .planet-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

canvas#sphere {
  width: 201px;
  height: 201px;
  background-image: url(/assets/mars_glow_shadows.png);
  background-position: -22px;
  background-size: 245px;
  background-repeat: no-repeat;
}

#submit-block {
  width: 100%;
  padding: 0 30px 120px 30px;

  display: flex;

  justify-content: center;
  align-items: center;
}

#submit-block form {
  width: 60%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#submit-block input {
  font-size: 16px;
  width: 250px;
  /* width: 400px; */
  /* max-width: 300px; */
  /* width: 70%; */
  padding: 10px 5px;
  background-color: #f3f3f3;
  /* border: 1px dotted black; */
  border: none;
  border-bottom: 1px solid black;
}

#submit-block [type="submit"] {
  font-size: 19px;
  cursor: pointer;
  padding: 7px 36px;
  color: white;
  border: 0;
  font-weight: normal;
  background-color: rgb(10, 132, 255);
  margin-left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  border-radius: 5px;
}

#submit-bttn:hover {
  background-color: rgb(0, 122, 255);
}

/* FOOTER */

.weblink {
  font-family: 'HelvMedium', 'Gill Sans', 'Gill Sans MT', 'Calibri', 'Trebuchet MS', sans-serif;
  color: var(--main-title-color);
}

footer {
  display: flex;
  flex-direction: column;
  padding-top: 5rem;
  font-family: 'HelvLight', 'Gill Sans', 'Gill Sans MT', 'Calibri', 'Trebuchet MS', sans-serif;
  color: gray;
}

.footer-row {
  display: flex;
  padding: 0 1% 1%;
}

.footer-row.upper {
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

.footer-row.upper img {
  width: 50px;
  height: 50px;
}

.footer-row.bottom {
  font-size: 13px;
  text-align: center;
  padding: 20px 0;
  flex-direction: column;
}

.footer-row.bottom div {
  display: flex;
  justify-content: center;
}

.footer-row.bottom div img {
  width: 50px;
  height: 20px;
  margin-right: 5px;
}


.mobile_only {
  display: flex;
}

.desktop_only {
  display: none;
}

/* Responsiveness */

@media screen and (min-width: 390px) {
  #submit-block form {
    flex-direction: unset;
  }

  #submit-block input {
    width: 400px;
  }

  #submit-bttn {
    margin-top: unset;
  }
}



@media screen and (min-width: 600px) {

  section#top-video {
    padding: 2% auto 3%;
  }
  
  section#top-video .textual .logo {
    max-width: 300px;
  }
  
  section#top-video .subtitle {
    text-align: unset;
  }
  
  section#top-video .subtitle {
    font-size: 2rem;
  }

  section#clouds .main-cloud img {
    max-width: 180px;
  }

  canvas#sphere {
    width: 340px;
    height: 340px;
    background-position: -40px;
    background-size: 420px;
  }


  .footer-row {
    display: flex;
    padding: 0 1% 1%;
  }
  
  .footer-row.bottom {
    text-align: unset;
    flex-direction: unset;
    justify-content: space-between;
    padding: 3%;
  }

}

@media screen and (min-width: 900px) {

  section {
    height: 100vh;
  }

  section#top-video .logo-container {
    justify-content: flex-start;
    padding: 0;
  }

  section#phone {
    flex-direction: unset;
  }

  section#phone .phone-image {
    width: 40%;
  }

  section#phone .textual-block {
    width: 60%;
  }

  section#phone .textual-block {
    padding: 0 10% 10% 5%;
  }

  section#clouds .chalk-image, section#clouds .textual-block {
    width: 50%;
  }

  section#clouds .chalk-image {
    width: 40%;
    order: 2;
  }

  section#clouds {
    flex-direction: unset;
  }

  section#clouds .textual-block {
    padding: 5%;
  }


  section#earth {
    flex-direction: unset;
  }
  
  section#earth .planet-container, section#earth .textual-block {
    width: 50%;
  }
  
  section#earth .textual-block {
    padding: 5%;
  }

  .textual-block {
    font-size: 1.6rem;
  }
  
  .textual-block .title {
    font-size: 2.5rem;
  }

  header .top-logo {
    width: 300px;
  }

  section#top-video {
    padding: 2% 10% 10% 2%;
    justify-content: flex-start;
    height: 100vh;

    /* border: 3px solid blue */
  }

  .video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 82vh;
    background-color: black;

    background-image: url("/assets/video_bg.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;
  }

  video {
    transform: scale(.61,.61);
  }

  section#top-video .textual {
    color: white;
  }


  .desktop_only {
    display: block;
  }

  .mobile_only {
    display: none;
  }

  #sphere {
    background-position: -40px;
    background-size: 420px;
  }
}