
* {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    font-family: "Open Sans", sans-serif;
    box-sizing: border-box;
}

/* progress */

.scrollTop {
  position: fixed;
  bottom: 800px;
  Left: 40px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-size: 40px;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  transition: .5s;
  background: #070F2B;
}

.scrollTop.active {
  bottom: 40px;
  visibility: visible;
  opacity: 1;
}

.scrollTop i {
  color: #0c57ce;
  font-size: 50px;
  margin-top: 2px;
  margin-left: 14px;
}

/* end progress */

/* header */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 8px 200px 3px 200px;
  background: #003285;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
.nav,
.nav .nav-links {
  display: flex;
  align-items: left;
}
.nav {
  justify-content: space-between;
}
.nav .nav-links {
  overflow: scroll;
  position: fixed;
  top: 0;
  left: -100%;
  max-width: 280px;
  width: 100%;
  height: 100%;
  padding-top: 63px;
  flex-direction: column;
  background-color: #1d1e22;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: 0.4s;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
}
.nav-links .link-text {
  margin-left: 60px;
}
.nav li {
  border-top: .1px solid #3e3e3e;
  padding-top: 13px;
  min-height: 55px;
  list-style: none;
  background-color: #1d1e22;
  transition: .3s;
  cursor: pointer;
}
.last-item {
  border-bottom: .1px solid #3e3e3e;
}
.nav li:hover {
  background-color: #18191d;
}

/* color of calculators link */
.nav li:hover :nth-child(1) {
  color: #003285;
}
#selected-link {
  color: #003285;
}
.nav .logo {
  width: 180px;
}
.nav .nav-links a {
  transition: all 0.2s linear;
}

.nav .navOpenBtn,
.nav .navCloseBtn {
    display: block;
  }

  .nav.openNav .nav-links {
    left: 0;
  }
  .nav .navOpenBtn {
    margin-top: 7px;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
  }
  .nav .navCloseBtn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
  }

/* responsive */
@media screen and (max-width: 1160px) {
  .nav {
    padding: 8px 100px 3px 100px;
  }
}
@media screen and (max-width: 950px) {
  .nav {
    padding: 8px 50px 3px 50px;
  }
}
@media screen and (max-width: 768px) {
  .nav {
    padding: 8px 20px 3px 20px;
  }
}

/* end header */

.pattern {
    display: flex;
    flex-direction: column;
    padding-top: 120px;
    padding-left: 150px;
    padding-right: 150px;
    height: 450px;
    background-image: url(./pattern2.jpg);
    background-attachment: fixed;
    margin-bottom: 100px;
}

.pattern h1 {
    color: #3a3939;
    margin-bottom: 50px;
    font-size: 2rem;
}

.pattern p {
    font-size: 1.2rem;
    line-height: 30px;
    color: #3a3939;
}

@media (max-width:1100px) {
    .pattern {
        padding-left: 100px;
        padding-right: 100px;
    }

    .pattern h1 {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .pattern p {
        font-size: 1.15rem;
    }
}

@media (max-width:750px) {
    .pattern {
        padding-top: 105px;
        padding-left: 80px;
        padding-right: 80px;
    }

    .pattern h1 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .pattern p {
        font-size: 1.05rem;
    }
}

@media (max-width:600px) {
  p {
    font-size: 1rem;
  }
  h3 {
    font-size: 1.3rem;
  }
  h4 {
    font-size: 1.2rem;
  }
}

.cards-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 120px;
    margin-left: 20px;
}

.six-cards {
    display: flex;
    flex-direction: row;
    margin-bottom: 30px;
}

.five-cards {
    display: flex;
    flex-direction: row;
}

.three-cards {
    display: flex;
    flex-direction: row;
}

.two-cards {
  display: flex;
  flex-direction: row;
}

.double-cards {
    display: flex;
}

.card {
    box-sizing: border-box;
    width: 190px;
    height: 130px;
    background: rgba(217, 217, 217, 0.58);
    border: 1px solid white;
    box-shadow: 12px 17px 51px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(6px);
    border-radius: 17px;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    color: #3a3939;
    padding: 10px;
    margin-right: 20px;
  }

  .cards-container a {
    text-decoration: none;
    color: black;
    transition: all 0.5s;
  }
  
  .card:hover {
    border: 1px solid #003285;
    color: #003285;
    transform: scale(1.05);
  }

  .card:active {
    transform: scale(0.95) rotateZ(1.7deg);
  }

  @media (max-width:1300px) {
    .double-cards {
        flex-direction: column;
    }
    .five-cards {
        flex-direction: column;
    }
    .two-cards {
        display: flex;
        justify-content: center;
    }
    .card {
        margin-bottom: 30px;
        width: 270px;
        height: 100px;
    }
    .six-cards {
        margin-bottom: 0px;
    }
  }

  @media (max-width:900px) {
    .six-cards {
        flex-direction: column;
    }
    .three-cards {
        flex-direction: column;
    }
    .two-cards {
      flex-direction: column;
  }
    .card {
        margin-bottom: 15px;
        width: 380px;
        height: 60px;
    }
  }

  @media (max-width:420px) {
    .card {
        width: 320px;
    }
  }

/* footer */

footer {
  padding: 70px 0;
  position: relative;
  width: 100%;
  height: auto;
  background: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer .logo {
  width: 230px;
  margin-bottom: 60px;
}

.copyrightText {
    width: 100%;
    background: #181818;
    color: #999;
    text-align: center;
    padding: 10px 0;
}


.footer-link {
    display: flex;
    align-items: center;
}

.footer-link a {
    font-size: 27px;
    background-image: linear-gradient(to right, #4689f5, #4689f5 50%, #0c57ce 50%);
    background-size: 200% 100%;
    background-position: -100%;
    display: inline-block;
    padding: 5px 0;
    position: relative;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease-in-out;
}

.footer-link a:before {
    content: "";
    background: #4689f5;
    display: block;
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    transition: all 0.3s ease-in-out;
}

.footer-link a:hover {
    background-position: 0;
}

.footer-link a:hover::before {
    width: 100%;
}

.footer-aboutus {
    width: 400px;
    margin: 0 90px;
}

footer h2 {
    margin-bottom: 30px;
}

footer h1, h2{
    color: white;
}

footer p {
    color: #999;
}

.fa-envelope {
    color: white;
    margin-right: 5px;
    margin-top: 5px;
}

.gmail {
    display: flex;
    align-items: center;
    flex-direction: row;
}

.gmail a {
    text-decoration: none;
    color: #999;
    transition: .3s;
}

.gmail a:hover {
    color: white;
}

.footer-container {
    display: flex;
    justify-content: center;
}

@media (max-width: 1130px) {
    footer .footer-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .footer-aboutus {
        margin: 50px 0;
        width: 80%;
        text-align: center;
    }
    .footer-contactus {
        text-align: center;
    }
}@media (max-width: 600px) {
  .pattern {
    padding-left: 50px;
    padding-right: 50px;
}

.pattern h1 {
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.pattern p {
    font-size: 1rem;
    line-height: 27px;
}
}

@media (max-width: 450px) {
  .pattern {
    padding-left: 20px;
    padding-right: 20px;
    height: 450px;
}

.pattern h1 {
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.pattern p {
    font-size: 0.95rem;
    line-height: 26px;
}
}

@media (max-width: 430px) {
  .nav .logo {
    width: 160px;
  }
  .nav .navOpenBtn {
    margin-top: 5px;
  }
}

@media (max-width:360px) {
  .card {
      width: 290px;
  }
}

@media (max-width:352px) {
  .pattern {
      padding-top: 90px;
  }
}

@media (max-width: 400px) {
  footer .logo {
    width: 210px;
    margin-bottom: 50px;
  }
}

@media (max-width:330px) {
  .card {
      width: 280px;
  }
}

/* end footer */