:root {
  --welbopurple: #754bf9;
  --puplespotlight: #a58cf5;
  --lightbg: #f9f9f9;
  --lightgray: #c1c1c1;
  --lightergray: #d9d9d9;
  --darkgray: #323232;
  --highlight: #9747ff;
  --darkbg: #1b1b1b;
  --green: #00b300;
}

html {
  scroll-behavior: smooth;
}

@media screen and (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
  margin: 0;
  font-family: Sora, sans-serif;
  font-weight: lighter;
  background-color: var(--lightbg);
  color: var(--darkgray);
}

h1, h2, h3, h4, h5, h6 {
  font-family: Syne, Sora, sans-serif;
  text-transform: uppercase;
  font-weight: 400;
}

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

a:hover {
  color: var(--highlight);
}

a.dark {
  color: var(--highlight);
}

a.dark:hover {
  color: var(--welbopurple);
}

b {
  font-weight: normal;
}

span {
  color: var(--highlight);
  font-weight: bold;
}

header {
  position: relative;
  width: 100%;
  /* for old browsers */
  height: 100vh;
  /* on Webkit, the 100vh is the height including the collapsable address bar 
     so we need to use 100svh (smallest viewport height) instead
  */
  height: 100svh;
}

header.homepage {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  
  box-sizing: border-box;
}

div.headerlpbgtop {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 70%;
  width: 100%;
}

div.headerlpusps {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  padding-left: 2rem;
  align-items: center;
  height: 10%;
  font-size: 1.5rem;
  background-color: var(--welbopurple);
  color: var(--lightbg);
}

div.headerlpusps > div {
  display: flex;
  align-items: center;
  column-gap: 0.5rem;

  width: max-content;
}

div.headerlpusps > div > span {
  font-size: 1.8rem;
  color: var(--green);
}

div.headerlpbgbottom {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 20%;
  width: 100%;
  background-color: var(--welbopurple);
  color: var(--lightbg);
  padding: 0 7vw;
  box-sizing: border-box;
}

div.headerlpbgbottom h1 {
  text-align: center;
  font-size: 4.5vw;
  font-weight: 300; 
  text-shadow: 4px 4px 30px rgba(0, 0, 0, 0.6);

  transform: translateY(+75%);

  animation-name: slidein;
  animation-duration: 1s;
  animation-fill-mode: forwards;
}

div.headerlpbgbottom h1 b {
  font-weight: 600;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  overflow: hidden;
  /* darken the video just a little bit, to make the text
  above more readible */
  filter: brightness(90%);
}

picture.header {
  width: 100%;
  height: 100%;
  object-fit: cover;
  overflow: hidden;
}

picture.header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  overflow: hidden;
}

@keyframes slidein {
  to {
    transform: translateY(0);
  }
}

div.headerontopofvideo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;

  display: flex;
  flex-direction: column;
}

div.headerwhitetopbar {
  height: 4rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.82);

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 7vw;
  box-sizing: border-box;

  font-size: 1.2rem;
}

div.headerwhitetopbar > div {
  transform: translateY(-75%);
  animation-name: slidein;
  animation-duration: 1s;
  animation-fill-mode: forwards;

  display: flex;
}

div.headerwhitetopbar > div div.icon {
  background-color: transparent;
}

div.headerwhitetopbar > div div.icon svg {
  fill: var(--highlight);
}

div.headerwhitetopbar > div div.icon:hover svg {
  fill: var(--welbopurple);
}

img.homebuttonlogo {
  height: 1.2rem;
  width: auto;
}

div.headerlogoandbutton {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  row-gap: 1rem;
  justify-content: center;
  align-items: center;
}

div.titlelogo {
  position: relative;
  height: 11vh;
  width: 22vh;
}

div.headertoprow {
  display: flex;
  justify-content: space-between;
  padding: 4vh 7vw 0 7vw;

  /* to render on top of purpleheader */
  z-index: 1;
}

div.titlelogo img {
  position: absolute;
  top: 0;
  left: 0;
  height: auto;
  width: 22vh;
}

div.headercenterrow {
  display: flex;
  flex-direction: column;
  color: var(--lightbg);
  align-items: center;

  /* to render on top of purpleheader */
  z-index: 1;
}

div.headercenterrow > h1 {
  font-size: 8vw;
  font-weight: 800;
  margin: 2vw;
}

div.headerfillerrow {
  flex-grow: 5;
}

div.headerbottomrow {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 15vh;
  /* to render on top of the curtain */
  z-index: 1;
}

div.headerbottomrow a {
  font-size: 2.5vw;
  font-weight: 300;
  color: var(--lightgray);
  opacity: 0;

  animation-name: fadein;
  animation-delay: 1s;
  animation-duration: 1s;
  animation-fill-mode: forwards;

  cursor: pointer;
} 

a.headerbutton {
  border: 1px solid var(--lightbg);
  border-radius: 5px;
  padding: 1vh 4vh;
  margin-top: 2vh;
  color: var(--lightbg);
  font-size: 1.5vw;
  font-weight: normal;
  text-align: center;
  letter-spacing: 1px;
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
  margin-bottom: 2rem;

  opacity: 0;
  animation-name: fadein;
  animation-delay: 1s;
  animation-duration: 1s;
  animation-fill-mode: forwards;
}

a.headerbutton:hover {
  color: var(--highlight);
  border: 1px solid var(--darkgray);
  background: linear-gradient(180deg, #FFF 0%, #CCC 100%);
}

img.titlelogo {
  opacity: 1;

  animation-name: fadeout;
  animation-delay: 1s;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
}

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

img.whitelogo {
  opacity: 0;

  animation-name: fadein;
  animation-delay: 1s;
  animation-duration: 1s;
  animation-fill-mode: forwards;
}

img.centerwhitelogo {
  height: auto;
  width: 30vh;
}

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

div.purpleheader {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  position: absolute;
  width: 100%;
  height: 100vh;
  height: 100svh;
  background-color: var(--welbopurple);
  overflow: hidden;
}

div.purpleheader div {
  height: 50%;
  width: 100%;
  background-color: var(--puplespotlight);
  filter: blur(7vw);
  border-radius: 50% 50% 0 0;
}

div.curtain {
  height: 100vh;
  height: 100svh;
  width: 100%;

  position: absolute;
  bottom: 0;
  left: 0;

  background-color: var(--lightbg);

  animation-name: curtain;
  animation-delay: 1s;
  animation-duration: 1s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}

@keyframes curtain {
  from {
    height: 100svh;
  }
  to {
    height: 25svh;
  }
}

img.welborobots {
  position: absolute;
  top: 50vh;
  left: 50vw;
  transform: translate(-50%, -50%);

  width: 21vw;
  height: auto;
  max-height: 80vh;
  object-fit: contain;

  animation-name: zoom;
  animation-delay: 1s;
  animation-duration: 1s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;

  /* to render above the text */
  z-index: 2;
}

@keyframes zoom {
  from {
    height: auto;
    width: 21vw;
  }
  to {
    height: auto;
    width: 90vw;
  }
}

section {
  padding: 7vw 7vw;
  font-size: 1.5rem;
  text-align: center;
  line-height: 2em;
}

section.leftalign {
  text-align: left;
}

section.mainnavigation {
  padding: 0;
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  justify-content: start;
  background-image: linear-gradient(var(--welbopurple), var(--highlight));
  color: var(--lightbg);
}

/* Hide scrollbar for Chrome, Safari, and Opera */
section.mainnavigation::-webkit-scrollbar {
  display: none;
}


section.purple {
  background-color: var(--welbopurple);
  color: var(--lightbg);
}

section.purple a {
  color: var(--darkbg);
  text-decoration: underline;
}

section.bowtie {
  background: url('/media/brand/welbo-logo-mark.svg'), var(--welbopurple);
  background-position: 80% 80%;
  background-repeat: no-repeat;
  background-size: 40%, contain;
  color: var(--lightbg);
}

section.form {
  display: flex;
  flex-direction: column;
  background-image: linear-gradient(var(--welbopurple), var(--highlight));
  color: var(--lightbg);
}

section div > ul {
  display: inline-block;
  text-align: left;
}

section a {
  color: var(--welbopurple);
}

section a:hover {
  color: var(--puplespotlight);
}

section.bowtie a {
  color: var(--darkbg);
  text-decoration: underline;
}

section.bowtie a:hover {
  color: var(--puplespotlight);
}

.scroll-container {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.scrollable-area {
  padding: 7vw 7vw;
  display: flex;
  column-gap: 4vw;
  overflow-x: auto;
  -ms-overflow-style: none; /* Ensure content is still scrollable with touch or mouse drag for IE and Edge */
  -webkit-overflow-scrolling: touch;  /* Smooth scrolling on touch devices */
  scrollbar-width: none;
}

.scroll-left, .scroll-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 100%;
  width: 5vw;
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: var(--lightgray);
  font-size: 4vw;
}

.scroll-left {
  left: 0;
  background-image: linear-gradient(to right, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
}

.scroll-right {
  right: 0;
  background-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%);
}

table {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  border-spacing: 1rem 0;
}

td {
  vertical-align: baseline;
}

img.parking {
  border-radius: 1rem;
  max-width: 100%;
  height: auto;
}

.figure {
  flex-shrink: 0;
  position: relative;
  width: 41vw;
  background-color: white;
  border-radius: 2rem;
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
  text-align: center;
  overflow: hidden;
}

.figure img {
  width: 100%;
}

.figure a {
  min-width: 40%;
}

.figure:hover a.button {
  background: linear-gradient(90deg, var(--welbopurple), var(--puplespotlight), var(--welbopurple));
  background-size: 200% 100%;
  animation: pulseAndGradient 1s;
}

@keyframes pulseAndGradient {
  0% {
    transform: scale(1);
    background-position: 100% 0;
  }
  50% {
    transform: scale(1.1);
    background-position: 50% 0;
  }
  100% {
    transform: scale(1);
    background-position: 0 0;
  }
}

a.button {
  display: inline-block;
  border: none;
  border-radius: 5px;
  padding: 0 0.5rem;
  background-color: var(--welbopurple);
  color: var(--lightbg);
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 1px;
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
  margin-bottom: 1rem;
}

/* unset the background to cancel the gradient animation as used by .figure */
/* also add the selector specifically for .figure */
.figure a.button:hover, a.button:hover {
  background: unset;
  background-color: var(--highlight);
}

.figure a.button:active, a.button:active {
  background-color: var(--darkgray); 
}

div.logos {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-around;
  column-gap: 2rem;
  width: 100%;
}

div.logos > img {
  flex-grow: 1;
  width: 20vw;
  max-width: 50%;
  height: auto;
  background-color: var(--lightbg);
  border-radius: 1rem;
  padding: 1rem;
}

p.quote {
  font-size: 0.8rem;
}

p.quote > q {
  font-size: 1.5rem;
  font-style: italic;
}

div.textonimage {
  position: relative;
  text-align: center;
}

img.full-width {
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

div.textonimage div {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  color: var(--darkgray);
  background: rgba(255,255,255,0.7);
  padding: 1rem;
}

footer {
  background-color: var(--darkbg);
  padding: 2.5rem 0;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.footer > div {
  width: 40%;
  margin: 1.5rem;
}

div.footerleft {
  display: flex;
  flex-direction: column;
  align-items: center;
}

div.footerleft img {
  height: auto;
  width: 40%;
  padding: 5% 0;
  margin-bottom: 1rem;
}

div.flexrow {
  display: flex;
  flex-direction: row;
  align-items: center;
}

div.footerleft p {
  color: var(--highlight);
  font-size: 1.5rem;
}

div.icon {
  display: block;
  width: 2em;
  height: 2em;
  margin-left: 10px;
  border-radius: 1em;
  background-color: white;
  text-align: center;
}

div.icon svg {
  margin-top: 0.25em;
  width: 1.5em;
  height: 1.5em;
  fill: var(--darkbg);
}

div.icon:hover {
  background-color: var(--highlight);
}

div.icon:hover svg {
  fill: var(--lightbg);
}

div.footerright {
  display: flex;
  flex-direction: column;
  align-items: center;
}

div.footerright h3 {
  margin: 0;
  color: var(--highlight);
  font-size: 1.7rem;
}

div.footerright p {
  color: var(--lightbg);
}

div.footerbottomrow {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

div.footerbottomrow > div {
  display: flex;
  flex-direction: row;
  width: 80%;
  justify-content: space-between;
}

div.footerbottomrow > div > span {
  display: none;
}

div.letsmeet {
  display: flex;
  width: 100%;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

div.letsmeet > img {
  width: 200px;
  height: 200px;
}

div.quote {
  display: flex;
  flex-direction: column;
  align-items: center;
}

div.quote > q {
  font-size: 2rem;
}

div.quote > span {
  font-size: 1rem;
  font-weight: 300;
  color: var(--lightbg);
}

form {
  display: flex;
  flex-wrap: wrap;
  gap: 3vw;
  align-items: flex-start;
  padding: 3vw;
  background-color: var(--lightbg);
  border-radius: 2.5vw;
}

input:not([type="submit"]), textarea {
  flex-grow: 1;
  width: 40%;
  font-family: inherit;
  font-size: 1.1rem;
  color: black;
  padding: 0.5rem 1.5rem;
  box-sizing: border-box;
  background-color: var(--lightergray);
  border: 0;
  border-radius: 0.5vw;
}

/* hide the honeypot input from the ui. */
/* don't use display:none as bots are likely to pick that up. */
input[name="email"] {
  position: absolute;
  left: -100vw;
}

textarea {
  height: 6rem;
  resize: none;
}

input[type="submit"] {
  background-color: var(--highlight);
  color: var(--lightbg);
  font-family: inherit;
  font-size: 1.1rem;
  border: 0;
  padding: 0.8vw 2.5vw;
  cursor: pointer;
  border-radius: 8vw;
}

input[type="submit"]:hover {
  background-color: var(--welbopurple);
}

div.formbutton {
  display: flex;
  justify-content: space-between;
  column-gap: 3vw;
  width: 100%;
}

div.formbutton > div {
  position: relative;
  display: flex;
  justify-content: center;
  width: 40%;
  flex-grow: 1;
}

div.formbutton > div > img {
  position: absolute;
  bottom: 2vw;
  height: 2rem;
}

div.counter {
  font-size: 3rem;
  font-weight: bold;
}

div.counter-text {
  font-size: 0.8rem;
  font-weight: normal;
  font-style: italic;
}

div.twocolumns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 3vw;
}

div.twocolumns > div {
  position: relative;
  width: 40%;
  flex-grow: 1;
  text-align: left;
}

div.twocolumns > div > img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

div.imagedecoration {
  position: absolute;
  bottom: 0;
  left: -1rem;
  height: 2rem;
  right: 50%;

  display: flex;
  column-gap: 1rem;
}

div.imagedecoration > div:first-child {
  flex-grow: 1;
  border-radius: 1rem;
  background-color: var(--welbopurple);
}

div.imagedecoration > div:nth-child(2) {
  width: 2rem;
  border-radius: 1rem;
  background-color: var(--highlight);
}

div.language > b {
  font-weight: bold;
  cursor: default;
  color: var(--welbopurple);
}

div.language > a {
  color: var(--welbopurple);
}

div.language > a:hover {
  color: var(--highlight);
}

div.languagehome {
  color: var(--lightbg);
}

div.languagehome > b {
  font-weight: bold;
  cursor: default;
}

div.languagehome > a:hover {
  color: var(--lightgray);
}

.animateUp {
  transform: translateY(80px);
  transition: transform 0.5s ease-out;
}

.up {
  transform: translateY(0);
}

/* RESPONSIVENESS */

@media screen and (max-width: 670px) {
  div.headercenterrow h1 {
    margin-top: 2rem;
  }

  img.welborobots {
    top: 65vh;
  }

  div.headerbottomrow a {
    font-size: 4vw;
  }

  div.headerlpusps {
    flex-direction: column;
    justify-content: center;
    /* height: 20%; */
    font-size: 1rem;
  }

  div.headerlpusps > div > span {
    font-size: 1.2rem;
  }

  div.headerlpbgbottom {
    /* height: 20%; */
  }
  
  a.headerbutton {
    font-size: 3vw;
  }

  section {
    font-size: 1.2rem;
  }

  section.purple {
    row-gap: 7vw;
  }

  .figure {
    width: 90%;
  }

  div.twocolumns > div {
    width: 100%;
  }

  div.textonimage {
    font-size: 1rem;
    line-height: 1.3rem;
  }

  div.logos {
    column-gap: 1rem;
  }

  div.logos > img {
    padding: 1rem 0;
  }

  input:not([type="submit"]), textarea {
    width: 100%;
  }

  div.formbutton div:first-child {
    display: none;
  }

  .footer > div {
    width: 100%;
  }

  div.footerbottomrow > div > span {
    display: block;
  }
}