@import url('normalize.css');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;700&display=swap');

:root {
  --very-dark-blue: hsl(233, 47%, 7%); /* (main background) */
  --dark-desaturated-blue: hsl(244, 38%, 16%); /* (card background) */
  --soft-violet: hsl(300, 51%, 39%); /* (accent) */

  --white: hsl(0, 0%, 100%); /* (main heading, stats) */
  --white-6: hsla(0, 0%, 100%, 0.75); /* (main paragraph) */
  --white-60: hsla(0, 0%, 100%, 0.6); /* (stat headings) */
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.7;
  background-image: url(./images/background6.png);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}

header {
  margin-bottom: 0;
  padding-bottom: 0;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 30px;
  padding: 2% 6%;
}

/* .main-logo {
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 40px;
  padding: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15)
} */

nav img {
  width: 300px;
}

h1 {
  /* font-family: 'Nunito', sans-serif; */
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
  text-align: center;
}

.card-title {
  margin-top: 0;
}

h2 {
  text-align: center;
  font-size: 18px;
  /* margin: 20px 0; */
}

.card-description {
  line-height: 1.3;
  margin: 0 auto;
  text-align: left;
}

h3 {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 0px;
  color: #fff;
}

p {
  text-align: center;
  font-weight: 400;
  margin: 0.5rem auto;
  font-size: 12px;
}

.urgent-bar {
  background-color: rgb(255, 103, 35);
  border-radius: 0.3rem;
  padding: 0.3rem 0.3rem;
  margin: 0.5rem auto;
  color: var(--white);
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
}

.urgent-bar span {
  color: red;
  font-weight: 700;
  background: #fff;
  border-radius: 0.2rem;
  padding: 0.1rem;
}

.input-text {
  border: 0;
  width: 270px;
  margin: 1rem auto;
  margin-top: 0.5rem;
  padding: 1rem;
  outline: none;
  background: #f5f5f5;
  font-size: 16px;
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
}

.submit-btn {
  text-align: center;
  margin: 1rem auto;
  padding: 1rem 2.5rem;
  border-radius: 2rem;
  font-size: 20px;
  border: 1px solid #01baff;
  background: #01baff;
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
}

.card {
  max-width: 350px;
  margin: 3rem auto;
  margin-top: 0;
  background-color: #208CFF;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
}

.card::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 350px;
  height: 300px;
  background: linear-gradient(
    45deg,
    rgba(6,214,241,1) 0%, rgba(255,255,255,1) 100%);
}

.card-image {
  width: 350px;
  height: 300px;
  position: relative;
  opacity: 0.75;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.imgTwo {
  position: absolute;
  top: -0.4%;
  left: 50%;
  transform: translateX(-85.5%);
  width: 196px;
  display: flex;
  flex-direction: column;
}

.imgLogo{
  width: 700px;
  position: absolute;
  top: -22.2%;
  left: -49%;
}

.imgTwo img {
  border-radius: 5px;
}

.card-image img {
  width: 35%;
}

.card-body {
  padding: 1.5rem 1.5rem;
  text-align: center;
}

.signature img{
  width: 250px;
}

/* button css */
.center {
  position: relative;
  margin: 1rem auto 0 auto;
  width: 300px;
  text-align: center;
  box-sizing: border-box;
  transition: all 0.3s ease 0.3s;
}

.center button {
  position: relative;
  width: 100%;
  border: none;
  padding: 5px 0;
  cursor: pointer;
  outline: none;
  border-radius: 50px;
  background: #f9be0d;
  transition: 0.5s;
}
button:hover {
  background: #f9be0d;
  -webkit-transform: translateY(-3px);
  transform: translateY(-3px);
  -webkit-box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}
button:active {
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
  -webkit-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
button p {
  color: white;
  font-size: 22px;
  font-weight: 700;
  /* text-transform: uppercase; */
  margin: 15px;
}
.center .checking-p {
  display: none;
}
button .loading,
button .fas {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
button .loading {
  width: 0%;
  padding: 12px 0;
  border-radius: 50px;
  background: rgb(253, 39, 137);
  background: linear-gradient(
    90deg,
    rgba(253, 39, 137, 1) 0%,
    rgba(251, 106, 28, 1) 100%
  );
}
button .fas {
  color: white;
  font-size: 35px;
  line-height: 65px;
  transform: scale(0);
}
.center.active {
  padding: 0;
}
.center.active button {
  background: #d9d9d9;
  margin-top: 0;
  padding: 12px 0;
}
.center.active button p {
  display: none;
}
.center.active button .loading {
  width: 100%;
  padding: 8px 0;
  border: 2px solid #d9d9d9;
  transition: all 2.7s ease 0.6s;
}
.center.active button.success {
  padding: 35px 0;
  width: 250px;
}
.center.active button.success .fas {
  transform: scale(1);
  transition: transform 0.2s linear 0.3s;
}
.center.active .checking-p {
  display: block;
  font-size: 12px;
}

@media (max-width: 500px) {
  nav {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@media (min-width: 1200px) {
  nav {
    height: 50px;
    padding: 0px;
  }

  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 20px;
    text-align: center;
  }

  .urgent-bar {
    padding: 0.5rem 3rem;
  }
  
  .card {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 600px 600px;
    min-height: 445px;
  }

  .card::before {
    height: 100%;
    left: auto;
    right: 0;
    width: 600px;
  }

  .card-image {
    order: 1;
    padding-top: 0;
    width: 100%;
    height: 100%;
  }

  .card-image img {
    width: 43%;
  }

  .card-body {
    max-width: 600px;
    padding: 2.7rem 3rem;
    text-align: left;
    display: flex;
    flex-direction: column;
  }

  .imgOne {
    width: 900px;
    position: absolute;
    top: 0;
    left: 38%;
  }
  .imgTwo {
    position: absolute;
    top: -3.5%;
    left: 77%;
    width: 510px;
  }

  .imgLogo {
    width: 750px;
    position: absolute;
    top: -88%;
    left: 43%;
  }

  .submit-btn {
    text-align: center;
    margin: 1rem 7rem;
    padding: 1rem 2.5rem;
    border-radius: 2rem;
    font-size: 20px;
    border: 1px solid #01baff;
    background: #01baff;
    color: #fff;
  }

  .input-text {
    margin: 1rem auto;
    margin-top: 0;
    width: 330px;
  }

  .center {
    width: 380px;
  }

}

