@font-face {
  font-family: "sofia-pro";
  src: url("../fonts/sp-light.woff2") format("woff2"),
    url("../fonts/sp-light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "sofia-pro";
  src: url("../fonts/sp-regular.woff2") format("woff2"),
    url("../fonts/sp-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "sofia-pro";
  src: url("../fonts/sp-medium.woff2") format("woff2"),
    url("../fonts/sp-medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "sofia-pro";
  src: url("../fonts/sp-semi-bold.woff2") format("woff2"),
    url("../fonts/sp-semi-bold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
}

body {
  background-color: #000;
  font-family: "sofia-pro", sans-serif;
}

#main {
  height: 100%;
  position: relative;
}

#popup_background {
  position: absolute;
  top: 0px;
  bottom: 0px;
  left: 0px;
  right: 0px;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

#popup_background.active {
  opacity: 1;
  z-index: 10;
}

#popup {
  width: 80%;
  max-width: 670px;
  background-color: #fff;
  border-radius: 20px;
  transition: width 0.2s ease-out;
}

.step > h1 {
  font-weight: 900;
  width: 110px;
  text-align: right;
  font-size: 53px;
  margin-right: 39px;
  position: relative;
  top: -10px;
}

.step h4 {
  margin-bottom: -8px;
  font-size: 18px;
  letter-spacing: 4px;
  font-weight: 600;
}

.step p {
  max-width: 300px;
  padding-right: 60px;
}

.step {
  display: flex;
  margin-bottom: 20px;
  justify-content: start;
  margin-top: -15px;
  align-items: center;
  font-weight: 400;
  font-size: 14px;
}

#popup img {
  margin-right: 39px;
  width: 87px;
}

#close_button_wrapper {
  display: flex;
  justify-content: flex-end;
  position: relative;
  right: 8px;
  top: 16px;
}

#buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  margin-top: -13px;
}

#buttons > a:hover {
  background-color: #007bff;
}

#buttons a:last-child {
  background-color: #007bff;
}

#buttons > a,
#overlay_buttons > a {
  border-radius: 50px;
  font-size: 13px;
  line-height: 12px;
  text-align: center;
  letter-spacing: 4.5px;
  text-transform: uppercase;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.7);
  height: 40px;
  width: 186px;
  margin: 25px;
  border: none;
  font-weight: 700;
  text-decoration: none;
  line-height: 38px;
  transition: all 0.3s ease-out;
}
#overlay_content {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0px;
  bottom: 0px;
  right: 0px;
  top: 0px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 10;
}

#vbulb_canvas {
  position: absolute;
  left: 0px;
  right: 0px;
  bottom: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#lifx_logo {
  display: flex;
  justify-content: center;
  padding-top: 32px;
  flex-direction: column;
  align-items: center;
}

#lifx_logo > img {
  height: 51px;
}

#lifx_logo > h4 {
  color: #fff;
  letter-spacing: 10px;
  font-size: 18px;
}

#badges {
  display: flex;
  justify-content: center;
  overflow: hidden;
  transition: all 0.3s ease-out;
  height: 0px;
  opacity: 0;
  padding-top: 0px;
}

#badges.active {
  height: 64px;
  opacity: 1;
  padding-top: 86px;
}

#badges img {
  margin-left: 9px;
  margin-right: 9px;
  height: 43px;
  margin-bottom: 5px;
}

#badges_wrapper {
  display: flex;
  flex-direction: column;
}

#overlay_buttons {
  display: flex;
  justify-content: center;
}

#overlay_buttons > a {
  display: none;
}

#overlay_buttons > a.active {
  display: block;
}

#overlay_buttons > #view_products_button {
  width: 226px;
}

#overlay_buttons > #connect_button {
  width: 148px;
}

@media (max-width: 480px) {
  .step > h1 {
    display: none;
  }
  .step {
    flex-direction: column;
    font-size: 0.8em;
    text-align: center;
  }
  #popup {
    width: 100%;
    margin: 10px;
  }
  #popup img {
    height: 43px;
    margin-right: 0px;
  }
  .step h4 {
    margin-top: 0px;
  }
  #buttons {
    flex-direction: column;
  }
  #buttons > a {
    width: auto;
    margin: 8px;
  }
  #badges {
    flex-direction: column;
    align-items: center;
  }
  #badges.active {
    height: 144px;
  }
}

#cw_box {
  display: none;
  position: absolute;
  bottom: 50%;
  width: 300px;
  overflow: hidden;
  color: #fff;
  left: calc(50% - 150px - 2em);
  background-color: #00000040;
  padding: 2em;
  border-radius: 45px;
  text-align: center;
}
#cw_box.active {
  display: block;
}
#cw_badges img {
  height: 30px;
}
#cw_badges {
  display: flex;
  justify-content: space-around;
}
#cw_box h3 {
  margin: 0px;
  text-align: center;
}
#colour_details {
  display: flex;
  justify-content: center;
  padding: 16px;
  font-size: 1.4em;
  margin-bottom: 0.8em;
  border-radius: 42px;
  font-weight: bold;
}
#copied > textarea {
  display: block;
  background-color: transparent;
  color: #fff;
  width: 100%;
  font-size: 0.8em;
  border: none;
  text-align: center;
}
.clicked + #copied {
  display: block;
}
#copied {
  display: none;
}
#cta.clicked {
  display: none;
}
#randomiser a,
#cta {
  color: #fff;
  text-decoration: underline;
}
#randomiser {
  margin-top: 4em;
}
#copied > p:nth-child(2) {
  font-size: 2em;
}
