/* @import url("https://fonts.googleapis.com/css2?family=Lato:wght@300&display=swap"); */

:root {
  --primary-color: #047aed;
  --secondary-color: #1c3fa8;
  --dark-color: #002240;
  --light-color: #f4f4f4;
  --success-color: #5cb85c;
  --warning-color: #c9931e;
  --error-color: #d9534f;
}

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

body {
  font-family: "Lato", sans-serif;
  color: #333;
  line-height: 1.6;
}

ul {
  list-style-type: none;
}

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

h1,
h2 {
  font-weight: 300;
  line-height: 1.2;
  margin: 10px 0;
}

p {
  margin: 10px 0;
}

img {
  width: 100%;
}

code,
pre {
  background: #333;
  color: #fff;
  padding: 10px;
}

.hidden {
  visibility: hidden;
  height: 0;
}

/* Navbar */
.navbar {
  background-color: var(--primary-color);
  color: #fff;
  height: 70px;
}

.navbar ul {
  display: flex;
}

.navbar a {
  color: #fff;
  padding: 10px;
  margin: 0 5px;
}

.navbar a:hover {
  border-bottom: 2px #fff solid;
}

.navbar .flex {
  justify-content: space-between;
}

.logo {
  width: 60px;
}

/* Warning in progress */

.banner-filler {
  background-color: var(--primary-color);
  height: 8px;
}

.banner {
  background-color: var(--error-color);
  color: #fff;
  padding: 8px;
}

.title {
  font-size: 1.4em;
  font-weight: bold;
}

/* svg animation test */

#pathMR {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 400; /*219*/
  stroke-opacity: 1;
  opacity: 1;
  fill-opacity: 1;
  /* stroke: red; */
  stroke-dashoffset: 581; /*Double dasharray - path.length*/
  -webkit-animation: signMR 10s linear 0s infinite forwards;
  -moz-animation: signMR 10s linear 0s infinite forwards;
  -o-animation: signMR 10s linear 0s infinite forwards;
  animation: signMR 10s linear 0s infinite forwards;
}

#pathJ {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 290; /*59*/
  stroke-opacity: 1;
  opacity: 1;
  fill-opacity: 1;
  /* stroke: red; */
  stroke-dashoffset: 460; /*Double dasharray - path.length (tweaked)*/
  -webkit-animation: signJ 10s ease-in 0s infinite forwards;
  -moz-animation: signJ 10s ease-in 0s infinite forwards;
  -o-animation: signJ 10s ease-in 0s infinite forwards;
  animation: signJ 10s ease-in 0s infinite forwards; /*ease-in has awesome effect*/
}

@keyframes signMR {
  0% {
    stroke-dashoffset: 581;
  }
  100% {
    stroke-dashoffset: -219;
  }
}

@-webkit-keyframes signMR {
  0% {
    stroke-dashoffset: 581;
  }
  100% {
    stroke-dashoffset: -219;
  }
}

@keyframes signJ {
  0% {
    stroke-dashoffset: 460;
  }
  100% {
    stroke-dashoffset: -59;
  }
}

@-webkit-keyframes signJ {
  0% {
    stroke-dashoffset: 460;
  }
  100% {
    stroke-dashoffset: -59;
  }
}

/* Showcase */
.showcase {
  height: 400px;
  background-color: var(--primary-color);
  color: #fff;
  position: relative;
}

.showcase h1 {
  font-size: 40px;
}

.showcase p {
  margin: 20px 0;
}

.showcase .grid {
  overflow: visible;
  grid-template-columns: 55% auto;
  gap: 30px;
}

.showcase-text {
  position: relative;
  top: -20px;
  /* animation: slideInFromLeft 1s ease-in; */
}

.showcase-form {
  position: relative;
  top: 60px;
  height: 350px;
  width: 400px;
  padding: 40px;
  z-index: 100;
  justify-self: flex-end;
  /* animation: slideInFromRight 1s ease-in; */
}

.showcase-form .form-control {
  margin: 30px 0;
}

.showcase-form input[type="text"],
.showcase-form input[type="email"] {
  border: 0;
  border-bottom: 1px solid #b4becb;
  width: 100%;
  padding: 3px;
  font-size: 16px;
}

.showcase-form input:focus {
  outline: none;
}

.showcase::before,
.showcase::after {
  content: "";
  position: absolute;
  height: 100px;
  bottom: -70px;
  right: 0;
  left: 0;
  background: #fff;
  transform: skewY(-3deg);
  -webkit-transform: skewY(-3deg);
  -moz-transform: skewY(-3deg);
  -ms-transform: skewY(-3deg);
}

/* Stats */
.stats {
  padding-top: 100px;
  /* animation: slideInFromBottom 1s ease-in; */
}

.stats-heading {
  max-width: 500px;
  margin: auto;
}

.stats .grid h3 {
  font-size: 35px;
}

.stats .grid p {
  font-size: 20px;
  font-weight: bold;
}

/* Cli */
.cli .grid {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.cli .grid > *:first-child {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}

/* Cloud */
.cloud .grid {
  grid-template-columns: 4fr 3fr;
}

/* Languages */

.languages .flex {
  flex-wrap: wrap;
}

.languages .card {
  text-align: center;
  margin: 18px 10px 40px;
  transition: transform 0.2s ease-in;
}

.languages .card img {
  height: 85px;
  width: 85px;
}

.languages .card h4 {
  font-size: 20px;
  margin-bottom: 10px;
}

.languages .card:hover {
  transform: translateY(-15px);
}

/* Features */
.features-head img,
.docs-head img {
  width: 200px;
  justify-self: flex-end;
}

.features-sub-head img {
  width: 300px;
  justify-self: flex-end;
}

.features-sub-head .card {
  align-self: start;
}

.features-main .card > i {
  margin-right: 20px;
}

.features-main .grid {
  padding: 30px;
}

.features-main .grid > *:first-child {
  grid-column: 1 / span 3;
}

.features-main .grid > *:nth-child(2) {
  grid-column: 1 / span 2;
}

.features-tools .flex {
  flex-wrap: wrap;
}

.features-tools .card {
  text-align: center;
  margin: 18px 10px 40px;
}

.features-tools .card img {
  height: 70px;
  width: 70px;
}

.features-tools .other .card {
  flex-direction: row;
  /* justify-items: center; */
  /* align-items: center; */
}

.features-tools .card h4 {
  margin-bottom: 10px;
}

/* Docs */
.docs-main h3 {
  margin: 20px 0;
}

.docs-main .grid {
  grid-template-columns: 1fr 2fr;
  align-items: flex-start;
}

.docs-main nav li {
  font-size: 17px;
  padding-bottom: 5px;
  margin-bottom: 5px;
  border-bottom: 1px #ccc solid;
}

.docs-main a:hover {
  font-weight: bold;
}

/* Apps */
.app {
  width: 100%;
  perspective: 500px;
}

.app .flex {
  flex-wrap: wrap;
}

.app .portrait {
  transform-style: preserve-3d;
  flex: 1;
  min-width: 100px;
  margin: 10px 20px 20px;
}

.app .landscape {
  transform-style: preserve-3d;
  flex: 2;
  min-width: 100px;
  margin: 10px 20px 20px;
}

.app .screenshot {
  background-color: black;
  box-shadow: 0px 0px 0px 0px red;
  border: 6px solid black;
  border-radius: 5px;
  transition: all 0.5s ease-out;
}

.app .screenshot-temp {
  background-color: white;
  border: none;
}

.app .description {
  flex: 2;
  /* background-color: red; */
}

/* Footer */
.footer .social a {
  margin: 0 10px;
}

/* Animations */
@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes slideInFromTop {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes slideInFromBottom {
  0% {
    transform: translateY(100%);
  }

  100% {
    transform: translateX(0);
  }
}

/* Tablets and under */
@media (max-width: 768px) {
  .grid,
  .showcase .grid,
  .stats .grid,
  .cli .grid,
  .cloud .grid,
  .features-main .grid,
  .docs-main .grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .showcase {
    height: auto;
  }

  .showcase-text {
    text-align: center;
    margin-top: 40px;
    /* animation: slideInFromTop 1s ease-in; */
  }

  .showcase-form {
    justify-self: center;
    margin: auto;
    /* animation: slideInFromBottom 1s ease-in; */
  }

  .cli .grid > *:first-child {
    grid-column: 1;
    grid-row: 1;
  }

  .features-head,
  .features-sub-head,
  .docs-head {
    text-align: center;
  }

  .features-head img,
  .features-sub-head img,
  .docs-head img {
    justify-self: center;
  }

  .features-main .grid > *:first-child,
  .features-main .grid > *:nth-child(2) {
    grid-column: 1;
  }
}

/* Mobile */
@media (max-width: 500px) {
  .navbar {
    height: 130px;
  }

  .navbar .flex {
    flex-direction: column;
  }

  .navbar ul {
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.1);
  }

  .showcase-form {
    width: 300px;
  }

  /* Languages */
  .languages .card {
    text-align: center;
    margin: 0.5em 0.5em;
    transition: none;
  }

  .languages .card img {
    height: 60px;
    width: 60px;
  }

  .languages .card h4 {
    font-size: 1rem;
    margin-bottom: 0.5em;
  }

  .languages .card:hover {
    transform: none;
  }

  /* Features */
  .features-tools .flex {
    flex-wrap: wrap;
  }

  .features-tools .card {
    text-align: center;
    margin: 10px 10px 10px;
  }

  .features-tools .card img {
    height: 60px;
    width: 60px;
  }

  .features-tools .card h4 {
    font-size: 1rem;
    margin-bottom: 0.5em;
  }
}
