@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500&family=Roboto:wght@500&display=swap");
* {
  border: 0;
  outline: 0;
  padding: 0;
  margin: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  vertical-align: baseline;
  font-weight: inherit;
  font-family: inherit;
  font-style: inherit;
  font-size: 100%;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

input[type="button"] {
  cursor: pointer;
}

html {
  font-size: 62.5%;
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
}

body::-webkit-scrollbar {
  width: 0px;
  /* width of the entire scrollbar */
}

img {
  display: block;
  max-width: 100%;
}

.container {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 2fr;
  grid-template-columns: 1fr 2fr;
}

.options {
  -ms-grid-column: 1;
  -ms-grid-column-span: 1;
  grid-column: 1/2;
  padding: 2.4rem 4rem;
  position: relative;
  height: 940px;
}

.options::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 100%;
  top: 0;
  right: -120px;
  background: url(../img/wave.svg) no-repeat;
  background-size: cover;
}

.options-container {
  max-width: 432px;
  margin: 0 auto;
}

.title {
  font-weight: 500;
  font-size: 3.2rem;
  color: #820ad1;
  max-width: 344px;
  margin: 4.2rem 0 8.8rem;
}

.title::after {
  content: "";
  display: block;
  width: 80px;
  height: 8px;
  background: #e7e8ea;
  margin-top: 1.2rem;
}

label {
  font-weight: 500;
  font-size: 1.8rem;
  color: #656b77;
  display: block;
  margin-bottom: 1.6rem;
}

[class^="input"] + [class^="input"] {
  margin-top: 2.4rem;
}

input + input {
  margin-left: 1.2rem;
}

.input-name input {
  width: 100%;
  height: 48px;
  border-radius: 4px;
  background: #e7e8ea;
  padding: 1.6rem;
  font-family: "Montserrat";
  color: #656b77;
  font-size: 1.6rem;
  text-transform: uppercase;
}

.input-name input:focus {
  border: 1px solid #820ad1;
}

.input-colors input {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  -webkit-animation: animaBg 0.6s ease-in-out forwards;
  animation: animaBg 0.6s ease-in-out forwards;
}

.input-colors .color1 {
  background: linear-gradient(71.32deg, #8e2de2 0%, #4a00e0 100%);
}

.input-colors .color2 {
  background: linear-gradient(71.32deg, #005bea 0%, #00c6fb 100%);
}

.input-colors .color3 {
  background: linear-gradient(71.32deg, #434343 0%, #000000 100%);
}

.input-colors .color4 {
  background: linear-gradient(
    71.32deg,
    #5e008d 0%,
    #720080 58.45%,
    #720080 100%
  );
}

.input-colors .color5 {
  background: linear-gradient(
    71.32deg,
    #0f0c29 0%,
    #302b63 51.06%,
    #24243e 100%
  );
}

.input-model input {
  width: 50%;
  height: 48px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #820ad1;
  font-weight: 500;
  font-size: 1.8rem;
  color: #656b77;
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.input-model input:hover {
  background: #820ad1;
  color: #fff;
}

.flex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.input-logo button {
  width: 50%;
  background: #fff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
}

.input-logo svg {
  width: 122px;
  height: 68px;
  cursor: pointer;
}

.input-logo button:last-child svg path {
  fill: #fff;
}

.social-media {
  margin: 9.6rem auto 2.4rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.social-media li + li {
  margin-left: 1.6rem;
}

.copy {
  font-size: 1.6rem;
  color: #656b77;
}

.copy a {
  color: #820ad1;
}

.preview {
  background: url(../img/bg_lines.svg) no-repeat;
  background-size: cover;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.card {
  width: 688px;
  height: 400px;
  background: linear-gradient(71.32deg, #8e2de2 0%, #4a00e0 100%);
  position: relative;
  -webkit-transform: rotateX(51deg) rotateZ(43deg);
  transform: rotateX(51deg) rotateZ(43deg);
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  border-radius: 40px;
  -webkit-box-shadow: 1px 1px 0 1px #f9f9fb,
    -1px 0 28px 0 rgba(34, 33, 81, 0.01),
    28px 28px 28px 0 rgba(34, 33, 81, 0.25), 0px 32px 64px rgba(0, 0, 0, 0.15);
  box-shadow: 1px 1px 0 1px #f9f9fb, -1px 0 28px 0 rgba(34, 33, 81, 0.01),
    28px 28px 28px 0 rgba(34, 33, 81, 0.25), 0px 32px 64px rgba(0, 0, 0, 0.15);
  -webkit-transition: 0.4s ease-in-out transform, 0.4s ease-in-out box-shadow;
  transition: 0.4s ease-in-out transform, 0.4s ease-in-out box-shadow;
  -webkit-animation: animaCard 1s ease-in-out infinite alternate;
  animation: animaCard 1s ease-in-out infinite alternate;
}

.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 688px;
  height: 400px;
  border-radius: 40px;
}

.card-bg__animation {
  -webkit-animation: animaBg 0.6s ease-in-out forwards;
  animation: animaBg 0.6s ease-in-out forwards;
}

.card-flag {
  position: absolute;
  -webkit-transform: translate3d(533px, 32px, 0);
  transform: translate3d(533px, 32px, 0);
  -webkit-transition: 0.6s;
  transition: 0.6s;
}

.card-flex {
  position: absolute;
  bottom: 40px;
  left: 48px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.card-logo svg {
  width: 122px;
  height: 68px;
}

.card-logo svg path {
  fill: #fff;
  stroke: #fff;
  -webkit-transition: 0.6s;
  transition: 0.6s;
}

.card-name {
  font-family: "Roboto";
  font-weight: 500;
  font-size: 2.4rem;
  letter-spacing: 0.06rem;
  white-space: nowrap;
  color: #fff;
  text-transform: uppercase;
  margin-left: 3.2rem;
}

.vertical {
  width: 400px;
  height: 688px;
}

.vertical .card-bg {
  width: 400px;
  height: 688px;
}

.vertical .card-flag {
  -webkit-transform: translate3d(40px, 32px, 0);
  transform: translate3d(40px, 32px, 0);
}

.vertical .card-name {
  -webkit-box-ordinal-group: 0;
  -ms-flex-order: -1;
  order: -1;
  margin-bottom: 12.8rem;
  margin-left: 0;
}

.vertical .card-flex {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
}

.logo2 .card-logo svg path {
  fill: transparent;
  -webkit-transition: 0.6s;
  transition: 0.6s;
}

@-webkit-keyframes animaBg {
  from {
    opacity: 0;
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes animaBg {
  from {
    opacity: 0;
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

@-webkit-keyframes animaCard {
  to {
    -webkit-transform: translate3d(0px, -16px, 0px) rotateX(51deg)
      rotateZ(43deg);
    transform: translate3d(0px, -16px, 0px) rotateX(51deg) rotateZ(43deg);
    -webkit-box-shadow: 1px 1px 0 1px #f9f9fb,
      -1px 0 28px 0 rgba(34, 33, 81, 0.01),
      54px 54px 28px -10px rgba(34, 33, 81, 0.15);
    box-shadow: 1px 1px 0 1px #f9f9fb, -1px 0 28px 0 rgba(34, 33, 81, 0.01),
      54px 54px 28px -10px rgba(34, 33, 81, 0.15);
  }
}

@keyframes animaCard {
  to {
    -webkit-transform: translate3d(0px, -16px, 0px) rotateX(51deg)
      rotateZ(43deg);
    transform: translate3d(0px, -16px, 0px) rotateX(51deg) rotateZ(43deg);
    -webkit-box-shadow: 1px 1px 0 1px #f9f9fb,
      -1px 0 28px 0 rgba(34, 33, 81, 0.01),
      54px 54px 28px -10px rgba(34, 33, 81, 0.15);
    box-shadow: 1px 1px 0 1px #f9f9fb, -1px 0 28px 0 rgba(34, 33, 81, 0.01),
      54px 54px 28px -10px rgba(34, 33, 81, 0.15);
  }
}

@media (max-width: 1200px) {
  .options {
    padding: 2.4rem;
  }
  .card,
  .card-bg {
    width: 588px;
    height: 350px;
  }
  .card-flag {
    -webkit-transform: translate3d(433px, 32px, 0);
    transform: translate3d(433px, 32px, 0);
  }
  .vertical {
    width: 350px;
    height: 588px;
  }
  .vertical .card-bg {
    width: 350px;
    height: 588px;
  }
}

@media (max-width: 1050px) {
  .card,
  .card-bg {
    width: 488px;
    height: 300px;
    border-radius: 32px;
  }
  .card-flag {
    width: 96px;
    -webkit-transform: translate3d(360px, 32px, 0);
    transform: translate3d(360px, 32px, 0);
  }
  .vertical {
    width: 300px;
    height: 488px;
  }
  .vertical .card-bg {
    width: 300px;
    height: 488px;
  }
  .card-logo svg {
    width: 96px;
  }
  .card-name {
    font-size: 1.8rem;
    margin-left: 1.6rem;
  }
  .card-flex {
    left: 40px;
    bottom: 32px;
  }
}

@media (max-width: 980px) {
  .container {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
  .options {
    -ms-grid-row: 2;
    -ms-grid-row-span: 1;
    grid-row: 2/3;
    padding-top: 4.4rem;
  }
  .options::after {
    content: "";
    position: absolute;
    width: 980px;
    height: 120px;
    top: 0;
    left: 0;
    background: url(../img/wave_mobile.svg) no-repeat;
    background-size: cover;
    z-index: -1;
  }
  .preview {
    height: 45vh;
    background: url(../img/bg_lines_mobile.svg) no-repeat;
    background-size: cover;
  }
}
