* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  background: #f3f2ef;
  font-family: 'Prompt', sans-serif;
  height: 100%;
}

a,
button {
  font-family: 'Rajdhani', sans-serif;
  border: none;
  outline: none;
  text-decoration: none;
  color: #15805e;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  padding: 1rem 2rem;
  width: 100%;
  height: 120px;
}

header .logo {
  display: flex;
  align-items: center;
}

header .logo img {
  height: 60px;
  width: 60px;
}

header .logo h1 {
  margin-left: 2rem;
  font-weight: 200;
  font-size: 4rem;
}

header p {
  font-size: 1rem;
  font-weight: 200;
}

header p strong {
  font-size: 2rem;
  font-weight: 400;
  margin-left: 2rem;
}

section {
  padding: 2rem;
  height: calc(100% - 152px);
}

section .container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 1rem 2rem;
  height: fit-content;

  width: 100%;
  /* max-width: 1250px; */
  background: #fff;
  border-radius: 8px;
  box-shadow: 0px 0px 60px rgba(0, 0, 0, 0.15);
}

section .container .form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  /* max-height: 500px; */
  max-width: 500px;
  border-right: 1px solid #6f7d7722;
  padding: 0 1rem;
}

section .container .form h1 {
  font-weight: 400;
  line-height: 1.2;
  color: #6bcdae;
  margin-bottom: 2rem;
  font-size: 2rem;
}

section .container .form h1 strong {
  color: #15805e;
  position: relative;
}

section .container .form h1 strong::before {
  content: '';
  position: absolute;
  bottom: 5px;
  width: 140px;
  height: 3px;
  border-radius: 50px;
  background: linear-gradient(to right, rgba(256, 256, 256, 0.2), #15805e);
}

section .container .form p {
  text-align: justify;
  margin: 2rem 1rem 0;
  color: #15805e;
}

section .container .form .colors {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem 0 2rem;

  background-color: #f1faf7;
  border-radius: 8px;
  border: 2px solid #15805e25;
}
section .container .form .colors > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin: 1rem;
}

section .container .form .colors label {
  margin-bottom: 0.5rem;
  color: #15805e;
}

section .container .form .colors input {
  background: transparent;
  border: none;
  width: 50px;
}

section .container .form .link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

section .container .form .link small {
  color: #15805e5f;
}

section .container .form .link div {
  flex: 1;
  margin-bottom: 1rem;
}

section .container .form .link label {
  color: #15805e;
  font-weight: 200;
  width: 24px;
}

section .container .form .link input {
  width: 100%;
  height: 40px;
  border: 2px solid #1dad7e;
  border-radius: 8px;
  padding: 10px;
}

section .container .form .link input::placeholder {
  color: #0a5a4127;
}

section .container .form .link button {
  height: 40px;
  width: 100%;
  padding: 4px;
  border-radius: 8px;
  background: #15805e;
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1rem;
}

section .container .form .link,
section .container .form .link .inputDiv {
  width: 100%;
}

section .container .result {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

section .container .result a {
  border-radius: 8px;
  padding: 2px 8px;
  margin-top: 2rem;
  font-size: 1.5rem;
  border-bottom: 2px solid #15805e;
}

section .container .result a i {
  margin-right: 2rem;
}

section .container .result #qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

section .container .result #qrcode .cardLogo {
  width: 100px;
  height: 100px;
  margin: 3rem;
  opacity: 0.7;
}
section .container .result #qrcode p {
  color: #15805e2e;
  font-size: 2rem;
}

section .container .result a {
  visibility: visible;
}
section .container .result a.disable {
  visibility: hidden;
}

footer {
  height: 2rem;
  width: 100%;
  clear: both;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  background: #6f7d77;
}

footer img {
  width: 5rem;
}

@media only screen and (max-width: 1150px) {
  * {
    text-align: center;
  }

  header {
    justify-content: space-between;
  }

  header h1 {
    font-size: 100%;
    white-space: nowrap;
  }

  section .container {
    width: 100%;
  }

  section .container .form {
    width: 100%;
    height: 100%;

    border-right: 0;
    border-bottom: 1px solid #6f7d7722;
  }

  section .container .form h1 {
    margin-bottom: 0.5rem;
  }
  section .container .form h1 strong::before {
    display: none;
  }

  section .container .form p {
    text-align: center;
    margin: 2rem auto 1rem;
  }

  section .container .form .link,
  section .container .form .link .inputDiv {
    width: 100%;
  }

  section .container .result {
    width: 100%;
    height: 100%;
  }

  section .container .result #qrcode img {
    width: 200px;
    height: 200px;
  }
}

@media only screen and (max-width: 720px) {
  header {
    justify-content: center;
    height: 80px;
  }

  header p {
    visibility: hidden;
    display: none;
  }

  header .logo h1 {
    font-size: 2rem;
  }
  section {
    /* height: calc(100% - 112px); */
    height: 100%;

    padding: 1rem;
  }
  section .container {
    flex-direction: column;
  }

  section .container .result #qrcode img {
    max-width: 200px;
  }
}

@media only screen and (max-width: 450px) {
  header .logo h1 {
    font-size: 2rem;
  }

  section {
    height: 100%;
  }
  section .container {
    padding: 10px 16px;
  }

  section .container .form h1 {
    font-size: 1.5rem;
  }
  section .container .form p {
    margin: 10px;
    font-size: 0.8rem;
  }

  section .container .form .colors {
    margin: 10px;
    flex-direction: column;
    padding: 5px;
    width: 100%;
    gap: 6px;
  }
  section .container .form .colors div {
    margin: 0;
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    justify-content: space-between;
  }
  section .container .form .colors label {
    margin-bottom: 0;
    font-size: 1rem;
    color: #15805e;
  }

  section .container .form .link .inputDiv label {
    display: none;
  }
}
