/*

Copyright 2015-present Palantir Technologies, Inc. All rights reserved.
Licensed under the Apache License, Version 2.0.

*/

@import "@blueprintjs/core/lib/css/blueprint.css";
@import "@blueprintjs/icons/lib/css/blueprint-icons.css";
@import "@blueprintjs/colors/lib/scss/colors";
@import "@blueprintjs/core/src/common/variables";
@import "svgs";

$body-background-color: $black;

$canvas-height: 630px;
$container-width: 760px;

$mobile-breakpoint: 425px;
$tablet-breakpoint: 768px;

html {
  background-color: $body-background-color;
  text-size-adjust: 100%;
}

body {
  background-color: $body-background-color;
  margin: 0;
  padding: 0;
}

.landing-container {
  margin: 0 auto;
  max-width: $container-width;
  padding: 0 $pt-grid-size * 2;
}

header {
  background-color: transparent;
  height: $canvas-height;
  margin: 0;
  overflow: hidden;
  position: relative;
  text-align: center;
  user-select: none;

  .landing-container {
    @include position-all(absolute, 0);
    pointer-events: none;
    z-index: $pt-z-index-base;
  }

  h1 {
    clear: both;
    color: $white;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 auto;
    margin-top: $pt-grid-size * 33;
  }

  h3 {
    color: $white;
    font-weight: 400;
    margin-bottom: $pt-grid-size * 3;
    margin-top: $pt-grid-size * 3;
    opacity: 0.8;
  }

  .#{$ns}-button.landing-button {
    color: rgba($white, 0.7);
    pointer-events: all;
    position: relative;

    &:hover {
      background-color: rgba($white, 0.2);
      color: rgba($white, 0.7);
    }

    &:active {
      background-color: rgba($white, 0.4);
      color: $white;
    }
  }

  .#{$ns}-icon-dot {
    color: rgba($white, 0.5);
    margin: $pt-grid-size * 0.5;
  }

  canvas {
    @include position-all(absolute, 0);
  }
}

footer {
  background-color: transparent;
}

.landing-about {
  .landing-container {
    @include pt-flex-container(column, $pt-grid-size * 3);
    align-items: center;
    padding-bottom: $pt-grid-size * 6;
    padding-top: $pt-grid-size * 6;
    text-align: center;
  }

  img {
    width: $pt-grid-size * 6;
  }

  p:first-of-type {
    font-size: $pt-font-size-large;
  }

  p:last-of-type {
    font-weight: 300;
  }

  .landing-separator {
    background-color: $dark-gray5;
    height: 2px;
    width: $pt-grid-size * 4;
  }
}

.landing-copyright {
  &::before {
    background-image: linear-gradient(
      90deg,
      rgba($white, 0) 0%,
      rgba($white, 0.3) 50%,
      rgba($white, 0) 100%
    );
    content: "";
    display: block;
    height: 1px;
  }

  .landing-container {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: $pt-navbar-height;
    padding: $pt-grid-size * 0.5;
  }
}

@media (max-width: $mobile-breakpoint) {
  header {
    height: $pt-grid-size * 80;

    h1 {
      font-size: $pt-grid-size * 3.6;
    }

    h3 {
      font-size: $pt-grid-size * 1.8;
      margin-bottom: $pt-grid-size * 2.5;
    }

    .#{$ns}-icon-dot {
      display: block;
    }
  }
}

@media (max-width: $tablet-breakpoint) {
  .landing-copyright {
    .landing-container {
      flex-direction: column;
    }

    .landing-button {
      margin: $pt-grid-size * 0.5;
    }
  }
}
