@font-face {
  font-family: "GoogleSans";
  src: url("../fonts/google-sans/GoogleSans-Regular.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "GoogleSans";
  src: url("../fonts/google-sans/GoogleSans-Medium.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "GoogleSans";
  src: url("../fonts/google-sans/GoogleSans-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "GoogleSans";
  src: url("../fonts/google-sans/GoogleSans-MediumItalic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
}

body {
  --menu-icon-height: 2px;
  --menu-icon-width: 20px;
  --xd-light-grey: #414549;
  --xd-black: #000000;
  --xd-green: #21ba66;
  --xd-red: #ee3c3a;
  --xd-white: #ffffff;
  --xd-blue: #3395d0;
  font-family: "GoogleSans", Arial, Helvetica, sans-serif;
}

h1,
h2,
h3,
h4,
p {
  padding: 0;
  margin: 0;
}

#hamburger {
  padding: 23px 20px 17px 20px;
}

.menu {
  width: 21px;
}

.remove.icon {
  color: var(--xd-red);
  margin-top: 17px;
  width: 100%;
  height: 100%;
  right: 0;
}

.remove.icon:before {
  content: "";
  position: absolute;
  width: 40px;
  height: 4px;
  background-color: currentColor;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.remove.icon:after {
  content: "";
  position: absolute;
  width: 40px;
  height: 4px;
  background-color: currentColor;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

/* USING BEM */

/* Globals */
body {
  width: 100%;
  height: 100%;
}

.gsxd {
  --background-color: #fff;
  --background-color-2: #f9d235;
  --background-color-3: #553e9a;
  --text-color: #fff;
  --link-color: #f9ed8a;
  --link-hover-color: #fff;
}

section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  pointer-events: none;
  padding-bottom: 60px;
}

.xd__grid {
  position: relative;
  display: grid;
}

.xd__flex {
  display: flex;
}

.xd__row {
  max-width: 1140px;
  margin: 0 auto;
}

/* Modal */
.xd-modal {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 101;
  overflow: scroll;
  background-color: var(--xd-white);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0s 0.3s;
}

.xd-modal.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s;
}

.xd-modal__header {
  background-color: #f4f4f4;
  height: 40vh;
  flex-direction: column;
  justify-content: center;
}

.xd-modal__grid {
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  grid-template-areas: "modal-content close-button";
}

.xd-modal__close {
  display: flex;
  justify-content: flex-end;
}

.xd-modal__content {
  grid-area: modal-content;
}

#xd-modal__button--close {
  grid-area: close-button;
  /* position: absolute; */
  width: 40px;
  height: 40px;
  /* right: 0; */
}

.xd-modal__header--subtitle {
  color: var(--xd-light-grey);
  font-size: 1.3em;
  font-weight: 300;
  margin: 14px 0 25px 0;
}

.xd-modal__header--title {
  align-items: center;
}

.xd-modal__header--title>h1 {
  color: var(--xd-green);
  font-size: 2em;
}

.xd-modal__header--title>img {
  width: auto;
  height: 34px;
  padding-right: 10px;
}

.xd-modal__header--cta {
  text-transform: uppercase;
  display: inline-block;
  background-color: var(--xd-red);
  color: var(--xd-white);
  pointer-events: all;
  font-size: 0.9em;
  padding: 10px 26px;
  border-radius: 30px;
  font-weight: bold;
}

@keyframes animatedBackground {
  from {
    background-size: 550px;
  }

  to {
    background-size: 600px;
  }
}

.xd-modal__footer {
  height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-image: url("../img/modal-yellow-blob.svg");
  background-size: 550px;
  background-repeat: no-repeat;
  background-position: 110% 110%;
  /* animation: animatedBackground 5s linear infinite; */
}

.xd-modal__grid--footer {
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  pointer-events: all;
  grid-template-areas: "modal-use modal-contact";
}

.xd-modal__wrapper--modal-use {
  grid-area: modal-use;
}

.xd-modal__wrapper--modal-contact {
  grid-area: modal-contact;
}

.xd-modal ul {
  list-style: none;
  padding-left: 25px;
  padding-bottom: 25px;
}

.xd-modal__footer--title {
  font-size: 1.3em;
  margin-bottom: 15px;
  color: var(--xd-light-grey);
}

.xd-modal__footer--list {
  font-size: 1em;
  font-weight: 300;
  padding: 6px 0;
}

.xd-modal__footer--list>a {
  transition: all 0.5s;
  color: var(--xd-blue);
}

.xd-modal__footer--list>a:hover {
  opacity: 0.5;
}

/* Header */
.xd-head__header--fixed {
  position: fixed;
  background-color: var(--blue);
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  pointer-events: all;
  display: block;
  transition: transform 0.25s ease-in-out;
}

.header-unpin {
  /* display: none; */
  transform: translateY(-60px);
}

.header-pin {
  /* display: block; */
  transform: translateY(0);
}

/* Intro */
.xd-intro {
  height: 88vh;
}

.xd-intro__grid {
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  grid-template-areas: "content close";
}

.xd-intro__header {
  margin-left: 10%;
  grid-area: content;
  display: flex;
}

.xd-intro__header img {
  width: auto;
  height: 60px;
  margin-top: 12px;
  margin-right: 12px;
}

.xd-intro__header--subtitle {
  color: var(--xd-light-grey);
  font-size: 1.5em;
  font-weight: 300;
  margin: 10px 0 30px 0;
}

.xd-intro__header--title {
  display: flex;
  align-items: center;
}

.xd-intro__header--title>img {
  width: auto;
  height: 50px;
}

.xd-intro__header--title>h1 {
  color: var(--xd-green);
  font-size: 3em;
  line-height: 1.2em;
}

.xd-intro__header--cta a {
  color: var(--xd-white);
  text-transform: uppercase;
  pointer-events: all;
  font-size: 0.9em;
  padding: 10px 26px;
  border-radius: 30px;
  font-weight: bold;
  transition: all 0.5s ease-in;
}

.xd-intro__header--cta a:first-child {
  background-color: var(--xd-red);
}

/* .xd-intro__header--cta a:first-child:hover {
  background-color: #c64443;
} */

.xd-intro__header--cta a:last-child {
  color: var(--xd-green);
}

.xd__header__image img {
  width: 100%;
  grid-area: image;
}

/* Trailer */
.xd-trailer__container {
  width: 100%;
  height: 100%;
  justify-content: center;
  position: relative;
  pointer-events: all;
}

.xd-trailer__row--full {
  width: 100%;
}

.xd-trailer__video {
  width: 100%;
  height: 100%;
  background: var(--xd-white);
  border: 6px solid var(--xd-blue);
}

.xd-trailer__button--play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 7em;
  height: 7em;
}

/* Plugin */
.xd-plugin {
  background-color: var(--xd-blue);
  align-items: center;
  flex-direction: column;
  padding: 5em 0;
}

.xd-plugin__title {
  text-align: center;
  font-size: 3.8em;
  margin-bottom: 20px;
}

.xd-plugin__content {
  text-align: center;
  width: 70%;
  margin: 0 auto;
  font-size: 1.6em;
  opacity: 0.75;
}

/* Installation Steps */
.xd-steps {
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 4em;
  grid-template-areas:
    "row-1-content row-1-image"
    "row-2-image row-2-content"
    "row-3-content row-3-image"
    "row-4-image row-4-content"
    "row-5-content row-5-image";
}

.xd-steps a {
  pointer-events: all;
  color: var(--xd-blue);
  transition: all 0.5s;
}

.xd-steps a:hover {
  color: var(--xd-blue);
}

.xd-steps__title {
  color: var(--xd-blue);
  font-size: 2.6em;
  padding-bottom: 20px;
}

.xd-steps__content {
  color: var(--xd-black);
  font-size: 1.3em;
  font-weight: 300;
}

.xd-steps__gif {
  width: 100%;
  height: auto;
}

.xd-steps div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.xd__steps__content--wrapper-1 {
  grid-area: row-1-content;
}

.xd__steps__content--wrapper-2 {
  grid-area: row-1-image;
}

.xd__steps__content--wrapper-3 {
  grid-area: row-2-content;
}

.xd__steps__content--wrapper-4 {
  grid-area: row-2-image;
}

.xd__steps__content--wrapper-5 {
  grid-area: row-3-content;
}

.xd__steps__content--wrapper-6 {
  grid-area: row-3-image;
}

.xd__steps__content--wrapper-7 {
  grid-area: row-4-content;
}

.xd__steps__content--wrapper-8 {
  grid-area: row-4-image;
}

.xd__steps__content--wrapper-9 {
  grid-area: row-5-content;
}

.xd__steps__content--wrapper-10 {
  grid-area: row-5-image;
}

/* Troubleshoot */
.xd-troubleshoot {
  width: 100%;
  padding: 5em 0;
  background-color: #f4f4f4;
}

.xd-troubleshoot__title {
  color: var(--xd-black);
  opacity: 0.87;
  font-size: 3em;
  padding-bottom: 20px;
  text-align: center;
}

.xd-troubleshoot__content {
  color: var(--xd-light-grey);
  font-size: 1.5em;
  font-weight: 300;
  padding-bottom: 1em;
  line-height: 1.4em;
}

.xd-troubleshoot__mail {
  color: var(--xd-green);
  text-decoration: none;
  pointer-events: all;
}

.xd-troubleshoot__mail:hover {
  color: var(--xd-red);
}

/* Errors */
.xd-errors__title {
  align-self: flex-start;
  color: var(--xd-light-grey);
  font-size: 1.7em;
}

.xd-errors__grid {
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 2em;
  text-align: left;
  align-content: center;
  justify-content: center;
  min-height: auto;
  height: auto;
  color: var(--xd-light-grey);
  margin-top: 32px;
}

.xd-errors__subtitle {
  font-size: 1.5em;
  margin-bottom: 12px;
}

.xd-errors__content {
  font-size: 1.2em;
  font-weight: 300;
  line-height: 1.4em;
}

/* Footer */
footer {
  background-color: var(--xd-blue);
  position: relative;
  padding: 60px 0;
}

.xd-footer {
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 3em;
  pointer-events: all;
  grid-template-areas: "updates made-by documentation";
}

.xd-footer__wrapper--updates {
  grid-area: updates;
}

.xd-footer__wrapper--made-by {
  grid-area: made-by;
}

.xd-footer__wrapper--documentation {
  grid-area: documentation;
}

.xd-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.xd-footer__title::before {
  content: " ";
  display: block;
  height: 6px;
  background-color: var(--xd-white);
  width: 40%;
  margin-bottom: 30px;
}

.xd-footer__title {
  font-size: 1.5em;
  margin-bottom: 20px;
}

.xd__footer__list {
  font-size: 1em;
  font-weight: 300;
  padding: 6px 0;
}

.xd__footer__list>a {
  transition: all 0.5s;
  color: var(--xd-white);
}

.xd__footer__list>a:hover {
  opacity: 0.5;
}

/*---------------------*/
/* BIG TABLET TO 1200PX */
/*---------------------*/

@media only screen and (max-width: 1200px) {
  .xd__row {
    padding: 0 6%;
  }
}

/*---------------------*/
/* SMALL TABLET TO BIG TABLET */
/*---------------------*/

@media only screen and (max-width: 1023px) {
  body {
    font-size: 90%;
  }

  .xd-troubleshoot {
    font-size: 80%;
  }

  .xd-steps {
    font-size: 90%;
  }
}

/*---------------------*/
/* SMALL PHONE TO  SMALL TABLET */
/*---------------------*/

@media only screen and (max-width: 767px) {

  section {
    padding: 30px 0;
  }

  .xd-errors__grid {
    grid-template-columns: 1fr;
  }

  .xd-intro__header img {
    height: 45px;
  }

  .xd-intro {
    margin-top: 45px;
  }

  .xd__row {
    padding: 0 6%;
  }

  .xd-plugin {
    font-size: 80%;
  }

  .xd-plugin__content {
    width: 90%;
  }

  .xd-plugin__title {
    font-size: 220%;
  }

  .xd-modal__header {
    height: auto;
    padding: 2em 0;
  }

  .xd-modal__footer {
    height: auto;
    padding-top: 3em;
  }

  .xd-modal__grid {
    grid-template-columns: none;
    grid-template-rows: 2fr;
    width: 100%;
    grid-template-areas:
      "close-button"
      "modal-content";
  }

  .xd-modal__grid--footer {
    grid-template-columns: 1fr;
    grid-template-areas:
      "modal-use"
      "modal-contact";
  }

  .xd-intro__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "image";
  }

  .xd-intro__header {
    margin-left: 0;
    padding: 4%;
    grid-area: content;
    display: flex;
  }

  .xd-intro__header--title {
    margin: 10px 0 5px 0;
    font-size: 62%;
  }

  .xd-intro__header--cta {
    font-size: 85%;
  }

  .xd-steps {
    grid-template-columns: 1fr;
    grid-template-areas:
      "row-1-content"
      "row-1-image"
      "row-2-content"
      "row-2-image"
      "row-3-content"
      "row-3-image"
      "row-4-content"
      "row-4-image"
      "row-5-content"
      "row-5-image";
  }

  .xd-footer {
    grid-template-areas:
      "updates updates updates"
      "made-by made-by made-by"
      "documentation documentation documentation";
  }
}

/*---------------------*/
/* SMALL PHONES FROM 0 TO 480PX */
/*---------------------*/

@media only screen and (max-width: 480px) {
  .header-unpin {
    transform: translateY(0);
  }

  .xd-intro__header--cta,
  .xd-modal__header--cta {
    display: none;
  }

  .xd-intro {
    margin-top: 0;
  }

  .xd-intro__header--subtitle {
    margin: 0;
  }
}
