* {
  padding: 0;
  margin: 0;
  border: 0;
  outline: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
h1,
h2 {
  font-weight: normal;
}
:root {
  --color-white: #fff;
  --color-bittersweet: #ff6865;
  --color-burning-orange: #ff6f40;
}
.flex-center {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.🎄 {
  content: "Holy Motors";
}
@font-face {
  font-family: "FiraGO";
  src: url("/fonts/FiraGO-Light.eot");
  src: url("/fonts/FiraGO-Light.eot?#iefix") format("embedded-opentype"),
    url("/fonts/FiraGO-Light.woff2") format("woff2"),
    url("/fonts/FiraGO-Light.woff") format("woff"),
    url("/fonts/FiraGO-Light.ttf") format("truetype"),
    url("/fonts/FiraGO-Light.svg#FiraGO-Light") format("svg");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Monarch";
  src: url("/fonts/Monarch.eot");
  src: url("/fonts/Monarch.eot?#iefix") format("embedded-opentype"),
    url("/fonts/Monarch.woff2") format("woff2"),
    url("/fonts/Monarch.woff") format("woff"),
    url("/fonts/Monarch.ttf") format("truetype"),
    url("/fonts/Monarch.svg#Monarch") format("svg");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
html {
  background: -webkit-gradient(
    linear,
    left top,
    right top,
    from(var(--color-bittersweet)),
    to(var(--color-burning-orange))
  );
  background: -o-linear-gradient(
    left,
    var(--color-bittersweet),
    var(--color-burning-orange)
  );
  background: linear-gradient(
    0.25turn,
    var(--color-bittersweet),
    var(--color-burning-orange)
  );
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
#wrapper {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
body {
  margin: 0;
  padding: 0;
  background: #ff783e; /* Old browsers */
  background: -moz-linear-gradient(
    top,
    #ff5e59 0%,
    #ff783e 100%
  ); /* FF3.6-15 */
  background: -webkit-linear-gradient(
    top,
    #ff5e59 0%,
    #ff783e 100%
  ); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(
    to bottom,
    #ff5e59 0%,
    #ff783e 100%
  ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#FF5E59', endColorstr='#FF783E',GradientType=0 ); /* IE6-9 */
}

body {
  position: fixed;
  top: 0;
  left: 0;
  color: var(--color-white);
}
#app {
  width: inherit;
  height: inherit;
}
.loading {
  cursor: wait;
}
.loading .typography {
  display: none;
}

.typography .section:not(.visibility) {
  display: none;
}
.section.visibility {
  display: flex;
}
.typography .welcome {
  display: flex;
  width: max-content;
  flex-direction: column;
}

.typography {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  align-items: center;
  width: 100vw;
  height: 100vh;
  padding: 6.5vh 2.6vw 8.5vh;
  text-align: center;
}
@media (max-width: 768px) {
  .typography {
    padding: 6.5vh 2.6vw 7.5vh;
  }
}

.typography .welcome .hint-icon .hint-img {
  width: 166px;
  pointer-events: none;
  /* user-select: none; */
}
.typography .welcome .title {
  --height: 10.6vh;
  --offsets: 3.2vw;
  --font-size: 3.9vw;

  margin-top: 34px;
  border: 1px solid var(--color-white);
  border-radius: var(--height);
  padding: 1.8vh var(--offsets);
  background-color: var(--title-background, transparent);
  font-family: "Monarch";
  font-size: max(var(--font-size), 35px);
}
@media (max-width: 768px) {
  .typography .welcome .title {
    --font-size: 4.9vw;
    --offsets: 6.4vw;
  }
}
.typography .footer .wish {
  font-size: 23px;
  font-family: "FiraGO";
}
.typography .holy-motors .img {
  margin-top: 6px;
  width: 100px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.gift {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  font-family: "Monarch";
}
.gift .bang-bang {
  font-size: max(6.4vw, 38px);
}
.gift .message {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  flex-direction: column;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  font-size: max(3.9vw, 18px);
}
.gift .message .name {
  display: none;
}
.gift .message .name.visibility {
  display: block;
}
.gift .sharing {
  --input-height: 122px;
  --name-input-size: max(3.9vw, 20px);

  /* margin-top: 9vh;  */
  font-size: 0;
  opacity: 0;
  transition: 0.25s opacity ease-in-out;
}
.gift .sharing.visibility {
  opacity: 1;
}
@media (max-width: 768px) {
  .gift .sharing {
    --input-height: 70px;
  }
}
.gift .message .info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}
.gift .sharing .title {
  font-size: max(2.6vw, 20px);
}
.gift .sharing .input-block {
  position: relative;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  justify-content: space-between;
  margin-top: 20px;
  border: 1px solid var(--color-white);
}
.gift .sharing .label-block {
  margin-top: 15px;
  font-family: "FiraGO";
  font-size: 23px; /*23*/
}
.gift .sharing .label {
  display: none;
}
.gift .sharing .label.visibility {
  display: block;
}

.gift .sharing .name-input {
  background-color: transparent;
  caret-color: var(--color-white);
  width: 470px;
  height: var(--input-height);
  padding: 0 42px;
  color: var(--color-white);
  font-size: var(--name-input-size);
  font-family: "Monarch";
}
@media (max-width: 768px) {
  .gift .sharing .name-input {
    padding: 0 20px;
    width: 70%;
  }
}
.gift .sharing.copied .name-input {
  --name-input-size: 20px;

  font-family: "FiraGO";
}

.gift .sharing .name-input::-webkit-input-placeholder {
  color: var(--color-white);
}

.gift .sharing .name-input::-moz-placeholder {
  color: var(--color-white);
}

.gift .sharing .name-input:-ms-input-placeholder {
  color: var(--color-white);
}

.gift .sharing .name-input::-ms-input-placeholder {
  color: var(--color-white);
}

.gift .sharing .name-input::placeholder {
  color: var(--color-white);
}
.gift .sharing .name-input::-moz-selection {
  background-color: transparent;
}
.gift .sharing .name-input::selection {
  background-color: transparent;
}

.gift .sharing .btn {
  display: none;
  background-color: rgba(255, 255, 255, 0.2);
  border-left: 1px solid var(--color-white);
  height: var(--input-height);
  cursor: pointer;
  transition: 0.25s background-color ease;
}
.gift .sharing .btn:hover {
  background-color: rgba(255, 255, 255, 0.35);
}
.gift .sharing .btn.visibility {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.gift .sharing .submit-button {
  width: 110px;
}
@media (max-width: 768px) {
  .gift .sharing .submit-button {
    width: 80px;
  }
}
.gift .sharing .submit-button .enter-arrow {
  width: 42px;
}
@media (max-width: 768px) {
  .gift .sharing .submit-button .enter-arrow {
    width: 30px;
  }
}
.gift .sharing .submit-button .enter-arrow .st0 {
  fill: none;
  stroke: var(--color-white);
}

.gift .sharing .copy-button {
  width: 180px;
  font-size: 44px;
  font-family: "Monarch";
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
@media (max-width: 768px) {
  .gift .sharing .copy-button {
    width: 100px;
    font-size: 25px;
  }
}

.gift .input-block .copied-text {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  display: inline-block;
  opacity: 0;
  -webkit-transform: translateY(-1em);
  -ms-transform: translateY(-1em);
  transform: translateY(-1em);
  color: var(--color-white);
  -webkit-transition: all 0.5s;
  -o-transition: all 0.5s;
  transition: all 0.5s;
  font-size: 16px;
  text-align: right;
}
.gift .input-block.copied .copied-text {
  opacity: 1;
  -webkit-transform: translateY(-2em);
  -ms-transform: translateY(-2em);
  transform: translateY(-2em);
}
.canvas-tree {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 80%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.canvas-tree .holy-tree {
  width: 80%;
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
}
@media (max-width: 768px) {
  canvas {
    pointer-events: none;
  }
}

.loading canvas,
canvas.hidden {
  pointer-events: none;
}

.virtual-key {
  position: fixed;
  top: 0;
  right: 0;
  display: none;
  z-index: 5;
  width: 50vw;
  height: 50vh;
  background-color: transparent;
}
@media (max-width: 768px) {
  .virtual-key.visibility {
    display: block;
  }
}
.loading .loader {
  display: block;
}
.loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0) scale(0.65);
  display: none;
  width: 250px;
  height: 250px;
  background-image: url("../images/full-photo.png");
  animation-name: sprite-loader;
  animation-duration: 1s;
  animation-timing-function: steps(32);
  animation-iteration-count: infinite;
}

@keyframes sprite-loader {
  0% {
    background-position: 0%;
  }
  100% {
    background-position: 100%;
  }
}
