
* {
    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: #111;
}

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

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

/* end progress */

.pattern {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    height: 400px;
    background-image: url('./background.jpg');
  background-color: #5969F6;
  background-blend-mode: multiply;
  background-size: cover;
  background-position: top center;
  position: relative;
    margin-bottom: 100px;
    background-attachment: fixed;
}

.pattern .logo {
  width: 230px;
  position:absolute;
  left: 170px;
}

.pattern p {
    color: #fbfbfc;
    margin-top: 130px;
    margin-bottom: 70px;
    font-size: 2rem;
}

        @media (max-width:1200px) {
          .pattern .logo {
            left: 100px;
            width: 220px;
          }
        }

        @media (max-width:900px) {
          .pattern .logo {
            left: 80px;
            width: 200px;
          }
        }

        @media (max-width:700px) {
          .pattern .logo {
            left: 50px;
            width: 190px;
          }
        }

        @media (max-width:500px) {
          .pattern .logo {
            left: 30px;
            width: 180px;
          }
        }


  @media (max-width:1300px) {
    .pattern p {
      margin-bottom: 70px;
  }
}

@media (max-width:1000px) {
  .pattern p {
    font-size: 1.9rem;
}
}

@media (max-width:900px) {
  .pattern p {
    margin-top: 140px;
}
}

@media (max-width:800px) {
  .pattern p {
    font-size: 1.8rem;
}
}

@media (max-width:500px) {
  .pattern p {
    font-size: 1.6rem;
}
}

@media (max-width:400px) {
  .pattern p {
    font-size: 1.45rem;
}
}

/* end of search box */

.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;
}

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

.double-cards {
    display: flex;
}

  .unique-card {
    position: relative;
    width: 190px;
    height: 130px;
    display: flex;
    text-align: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 10px;
    font-size: 1.1rem;
    margin-right: 20px;
  }
  
  .unique-card:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  }
  
  .card-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #3a3939;
    z-index: 2;
    transition: color 0.3s;
  }

  .unique-card:hover .accounting {
    color: #57A6A1;
  }

  .unique-card:hover .area {
    color: #068DA9;
  }

  .unique-card:hover .arithmetics {
    color: #d56a35;
  }

  .unique-card:hover .chemistry {
    color: #554cba;
  }

  .unique-card:hover .construction {
    color: #074cbb;
  }

  .unique-card:hover .conversion {
    color: #a3097a;
  }

  .unique-card:hover .finance {
    color: #96397d;
  }

  .unique-card:hover .geometry {
    color: #92780d;
  }

  .unique-card:hover .health {
    color: #A0153E;
  }

  .unique-card:hover .math {
    color: #61795f;
  }

  .unique-card:hover .physics {
    color: #275e83;
  }

  .unique-card:hover .random {
    color: #2f71ab;
  }

  .unique-card:hover .SEO {
    color: #AE445A;
  }
  
  .background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #240750; /* background color of the card */
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  .unique-card:hover .background-overlay {
    opacity: 1;
  }

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

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

  @media (max-width:600px) {
    .unique-card {
        width: 400px;
    }
  }

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

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

/* footer */

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

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

footer .logo {
  width: 230px;
}

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

.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: 1150px) {
    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: 400px) {
  footer .logo {
    width: 210px;
  }
}

/* end footer */