@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  user-select: none;
}

html,
body {
  height: 100%;
  background: black;
}

body {
  font-family: Roboto, sans-serif;
  box-sizing: border-box;

  font-family: Roboto, sans-serif;
  color: white;

  display: none;
}

#steps {
  width: 768px;
  height: 100%;
  margin: 0 auto 0 auto;
  position: relative;
}

  #steps > [data-step] {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: black;

    opacity: 0;
    visibility: hidden;

    transition: opacity 1s, visibility 1s;
  }
  #steps > [data-step].active {
    opacity: 1;
    visibility: visible;
  }

    #steps > [data-step] > video,
    #steps > [data-step] > img {
      display: block;
      margin: 40px auto 0 auto;
      width: 768px;
      height: 432px;
    }

    #steps > [data-step="browser-not-supported"] > .overlay {
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    #steps > [data-step="products"] {
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    #steps > [data-step="products"] > h1 {
      margin-bottom: 0.1em;
    }

    #steps > [data-step="products"] > .subtitle {
      font-size: 18px;
      opacity: 0.5;
    }

    #steps > [data-step="products"] > .products {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }

    #steps > [data-step="products"] > .products > .product {
      width: 100%;
      border: 2px solid transparent;
      box-sizing: border-box;
    }

    #steps > [data-step="products"] > .products > .product:hover {
      cursor: pointer;
    }

    #steps > [data-step="products"] > .products > .product > .product-image {
      width: 100%;
      aspect-ratio: 1.2 / 1;
      background-position: center center;
      background-repeat: no-repeat;
      background-size: 120% auto;
      border-radius: 20px;

      transition: background-color 0.1s, background-size 0.1s;

      margin-bottom: 1em;
    }
    #steps > [data-step="products"] > .products > .product:hover > .product-image {
      background-color: #2D2D2D;
      background-size: 125% auto;
    }
    #steps > [data-step="products"] > .products > .product > .product-image,
    #steps > [data-step="products"] > .products > .product:active > .product-image {
      background-color: #191919;
    }

    #steps > [data-step="products"] > .products > .product > .product-name {
      text-align: center;
      font-size: 16px;
      font-weight: 400;
      line-height: 30px;
      color: rgba(255,255,255,0.6);
      transition: color 0.2s;
    }

    #steps > [data-step="products"] > .products > .product:hover > .product-name {
      color: #fff;
    }

    #steps > [data-step^="connect"] > .connect-steps {
      display: flex;
      margin-bottom: 50px;
    }

    #steps > [data-step^="connect"] > .connect-steps > .connect-step {
      position: relative;
      width: 30%;
      margin: 0 1.5%;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    #steps > [data-step^="connect"] > .connect-steps > .connect-step > .connect-step-number {
      flex-shrink: 0;
      flex-grow: 0;
      width: 24px;
      height: 24px;
      line-height: 24px;
      border-radius: 100%;
      background-image: linear-gradient(270deg, rgba(248, 157, 34, 1) 0%, rgba(248, 132, 32, 1) 100%);
      font-size: 16px;
      font-weight: 400;
      text-align: center;
      color: white;
      margin-bottom: 14px;
    }
    #steps > [data-step^="connect"] > .connect-steps > .connect-step:nth-child(1):before,
    #steps > [data-step^="connect"] > .connect-steps > .connect-step:nth-child(2):before {
      content: "";
      display: block;
      position: absolute;
      top: 12px;
      left: calc(50% + 12px + 16px);

      background: #28292E;
      height: 1px;
      width: 80%;
    }
    #steps > [data-step^="connect"] > .connect-steps > .connect-step:nth-child(1):after,
    #steps > [data-step^="connect"] > .connect-steps > .connect-step:nth-child(2):after {
      content: "";
      display: block;
      position: absolute;
      top: 7px;
      left: calc(50% + 12px + 16px + 80%);

      border-left: 9px solid #28292E;
      border-top: 5px solid transparent;
      border-bottom: 5px solid transparent;
    }

    #steps > [data-step^="connect"] > .connect-steps > .connect-step > .connect-step-text {
      font-size: 16px;
      line-height: 24px;
      color: white;
    }

    #steps > [data-step^="connect"] > .connect-steps > .connect-step > .connect-step-number,
    #steps > [data-step^="connect"] > .connect-steps > .connect-step > .connect-step-text {
      opacity: 0.5;
      transition: opacity 0.5s;
    }

    #steps > [data-step^="connect"] > .connect-steps > .connect-step.active > .connect-step-number,
    #steps > [data-step^="connect"] > .connect-steps > .connect-step.active > .connect-step-text {
      opacity: 1.0;
    }

    #steps > [data-step="choices"] > .choices {
      display: flex;
      flex-direction: row;
      align-self: center;
      justify-content: space-around;
      margin-top: 60px;
    }

      #steps > [data-step="choices"] > .choices > .choice {
        display: flex;
        flex-direction: column;
        align-items: center;
      }
      #steps > [data-step="choices"] > .choices > .choice:hover {
        cursor: pointer;
      }
      #steps > [data-step="choices"] > .choices > .choice:active {
        cursor: pointer;
      }

        #steps > [data-step="choices"] > .choices > .choice > .icon {
          display: flex;
          align-items: center;
          justify-content: center;

          background: #242424;
          border-radius: 10px;
          width: 70px;
          height: 70px;
          margin-bottom: 20px;

          transition: transform 0.2s;
        }
        #steps > [data-step="choices"] > .choices > .choice:hover > .icon {
          transform: scale(1.1);
        }
        #steps > [data-step="choices"] > .choices > .choice:active > .icon {
          transform: scale(1.0);
        }
          #steps > [data-step="choices"] > .choices > .choice > .icon > img {
            width: 32px;
          }

        #steps > [data-step="choices"] > .choices > .choice > .text {
          font-size: 18px;
          line-height: 27px;
          color: #FF9713;

          /* transition: color 0.2s; */
        }
        #steps > [data-step="choices"] > .choices > .choice:hover > .text {
          /* color: #ffa734; */
        }
        #steps > [data-step="choices"] > .choices > .choice > .text:after {
          content: "";
          display: inline-block;
          width: 12px;
          height: 12px;
          margin-left: 4px;
          -webkit-mask-image: url(../img/chevron-right.svg);
          -webkit-mask-repeat: no-repeat;
          -webkit-mask-position: center center;
          -webkit-mask-size: cover;
          background: #FF9713;

          /* transition: background-color 0.2s; */
        }
        #steps > [data-step="choices"] > .choices > .choice > .text:after {
          /* background-color: #ffa734; */
        }

.overlay {
  position: absolute;
  z-index: 100;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  
  opacity: 0;
  visibility: hidden;

  transition: opacity 0.5s, visibility 0.5s;
}
.overlay.visible {
  opacity: 1;
  visibility: visible;
}
.overlay.center-content {
  display: flex;
  align-self: center;
  justify-content: center;
}
.overlay#overlay-usb {
  transition: none;
}
  .overlay > .hint-usb {
    position: absolute;
    left: 530px;
    top: 420px;
    width: 240px;
    height: 38px;
    background-image: url(../img/hint-usb-cm4.svg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
  }
  .overlay > .hint-usb.cm5 {
    background-image: url(../img/hint-usb-cm5.svg);
  }
  .overlay > .hint-usb.esp32 {
    background-image: url(../img/hint-usb-esp32.svg);
  }
  body.in-iframe .overlay > .hint-usb {
    top: 320px;    
  }
  .overlay > .hint-windows,
  .overlay > .hint-linux {
    display: none;
    position: absolute;
    left: 550px;
    top: 490px;
    width: 400px;
    height: 38px;
    font-size: 16px;
    line-height: 24px;
    background: no-repeat left 4px;
    background-size: 16px auto;
    padding-left: 28px;
  }
  .overlay > .hint-windows.visible,
  .overlay > .hint-linux.visible {
    display: block;
  }
  .overlay > .hint-windows {
    background-image: url(../img/windows.svg);
  }
  .overlay > .hint-linux {
    background-image: url(../img/linux.png);
  }
  .overlay > .hint > a {
    color: white;
  }

  .overlay .dialog {
    position: relative;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 20px;
    width: 400px;

    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s linear;
    transform: scale(0.8);
    opacity: 0;
  }
  .overlay.visible .dialog {
    transform: scale(1);
    opacity: 1;
  }
    .overlay .dialog .icon {
      display: block;
      width: 88px;
      margin: 1em auto;
    }
    .overlay .dialog .title {
      text-align: center;
      font-weight: 600;
      font-size: 28px;
      line-height: 34px;
      color: #181818;
      margin-bottom: 0.5em;
    }
    .overlay .dialog .subtitle {
      text-align: center;
      font-size: 16px;
      line-height: 24px;
      color: #4e4e4e;
      width: auto;
    }


.button {
  box-sizing: border-box;
  margin: 0 auto;
  display: inline-block;

  padding: 10px 30px;
  height: 44px;
  line-height: 24px;
  border-radius: 10px;
  text-align: center;

  background-image: linear-gradient(30deg, #F8823B, #ffc35b);
  background-size: auto 88px;
  background-position: 0 -44px;
  transition: background-position 0.3s, transform 0.15s;
}
.button:hover {
  cursor: pointer;
  background-position: 0 0;
}
.button:active {
  cursor: pointer;
  background-position: 0 -44px;
  transform: scale(0.95);
}
.button.button-dangerous {
  background-image: linear-gradient(30deg, #d92626, #cf1818);

}
.button.full-width {
  width: 100%;
}
.button.half-width {
  width: 48%;
}
.button.half-width:first-child {
  float: left;
}
.button.half-width:last-child {
  float: right;
}
.button.button-secondary {
  background: #E9EAEE;
  color: #666666;
  transition: color 0.3s, transform 0.15s;
}
.button.button-secondary:hover {
  color: #333333;
}
  .button > .text {
    display: inline-block;
    vertical-align: middle;

    font-size: 16px;
    font-weight: 400;
  }
  .button > .icon {
    display: inline-block;
    vertical-align: middle;

    width: 12px;
    height: 12px;
    background: url(../img/chevron-right.svg) no-repeat center center;
    background-size: cover;

    transition: transform 0.3s;
  }
  .button:hover > .icon {
    transform: translateX(2px);
  }

  h1 {
    margin: 0 auto 1em auto;
    color: white;
    font-size: 36px;
    font-weight: 600;
    line-height: 44px;
    text-align: center;
  }

  p {
    margin: 0 auto 2em auto;
    width: 480px;
    color: white;
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
    text-align: center;
  }

  progress {
    display: block;
    margin: 0 auto 15px auto;
    width: 500px;
    height: 6px;
    border-radius: 4px;
    overflow: hidden;
    background: white;
  }
  progress::-webkit-progress-bar {
    background: #242424;
  }
  progress::-webkit-progress-value {
    background: white;
    border-radius: 4px;
    transition: width 0.3s;
  }

  progress + .progress-hint {
    color: #7A7B7D;
    font-size: 14px;
    line-height: 18px;
  }

.copy-box {
  position: relative;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  -webkit-font-smoothing: antialiased;
}

.copy-text {
  width: 100%;
  height: 40px;
  background-color: #E6F3FF;
  color: #0082FA;
  text-align: center;
  padding-left: 30px;
  padding-right: 30px;
  font-size: 16px;
  font-weight: 400;;
  border-width: 1px;
  border-radius: 5px;
  border-style: solid;
  box-sizing: border-box;
}

.copy-button {
  position: absolute;
  right: 10px;
  top: 8px;
  background: none;
}

.copy-button:hover {
  transform: scale(1.1);
}

.copy-button img {
  width: 24px;
}
