@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

html {
    scroll-behavior: smooth;
}

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

body,
a,
input,
textarea,
button {
    font-family: 'Poppins', sans-serif;
}

header {
    display: flex;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
    background-color: rgb(18, 18, 20);
    margin-bottom: 3rem;
}

header div {
    width: 100%;
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


select {
  background: rgb(18, 18, 20);
  border: none;
  color: white;
  cursor: pointer;
  padding: 10px;
}

select:focus {
  outline: none;
}


.smartpay-logo {
  width: 12.5rem;
}

.first-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  width: 100%;
  padding: 0 .8rem;
}

.first-content div {
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.first-content div h1 {
  font-size: 2.5rem;
}

.second-content{
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1100px;
  gap: 2rem;
  padding: 0 .8rem;
}

.second-content .title{
  display: flex;
  align-items: center;
  gap: 1rem;
}
.title img{
  width: 3rem;
}
.second-content .content{
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: space-around;
  align-items: start;
  gap: 2rem;
}
.second-content a{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: .6rem .3rem;
  width: 10rem;
  background: rgb(229, 229, 229);
  cursor: pointer;
  transition: all 0.5s ease-in-out;
  position: relative;
  text-decoration: none;
  color: black;
  border-radius: .4rem;
}
.second-content a::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0px;
  height: 100%;
  background:rgba(0, 0, 0, 0.4);
  transition: all 1s ease;
  border-radius: .4rem;
}
.second-content a:hover::before{
  width: 100%;
}

main {
  width: 100%;
  max-width: 1200px;
  margin: auto ;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.terms-img {
  width: 18.75rem;
}

footer {
    width: 100%;
    padding: 20px 5px;
    background: rgb(18, 18, 20);
    color: white;
    position: absolute;
    bottom: 0;
}

footer div {
    max-width: 1100px;
    width: 100%;
    margin: auto;
    text-align: center;
    font-size: 14px;
}


@media screen and (max-width: 700px) {
  p {
    font-size: 14px;
  }
  .first-content {
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
  }
  .first-content div {
    width: auto;
    order: 2;
  }
  .first-content div h1 {
    margin-bottom: 20px;
    font-size: 2.5rem;
  }
  .first-content div {
    margin-bottom: 20px;
  }
  .terms-img {
    width: 8rem;
    order: 1;
  }
  .second-content{
    gap: 0;
  }
  .second-content .content{
    flex-direction: column;
    gap: 3rem;
    padding: 3rem 0;
  }
}
@media screen and (max-width: 500px){
  footer{
    position: relative;
  }
}