@import url("https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500&display=swap");

html {
  min-height: 100%;
}
body {
  margin: 0;
  padding: 0;
  justify-content: center;
  align-items: center;
  /* min-height: 100vh; */
  font-family: "montserrat", sans-serif;
  background: url(../img/headerimage-min.jpg) no-repeat;
  background-size: cover;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  min-width: 100%;
}

body.show-nav {
  /* width of the nav (200px) */
  transform: translateX(200px);
}

/* services-section */
.services-section {
  min-height: 100%;
  padding: 60px 0;
}

.border {
  width: 160px;
  height: 2px;
  background: #ff0026;
  margin: 40px auto;
}

.container {
  display: flex;
  flex-wrap: wrap;
  /* justify-content: space-between; */
  /* Extra styling */
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0 70px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
  opacity: 90%;
}

/* title */
.section-title {
  text-align: center;
  color: #fff;
  text-transform: uppercase;
  font-size: 30px;
  margin-top: 180px;
  transition: 0.5s;
}

.services-section h1:hover {
  color: #3ce434;
}

.container .box {
  position: relative;
  width: 550px;
  padding: 50px;
  background: #fff;
  box-shadow: 0 15px 15px rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  margin: 10px;
  box-sizing: border-box;
  overflow: hidden;
  text-align: center;
}

.container .box .icon {
  position: relative;
  height: 80px;
  width: 80px;
  color: #fff;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  border-radius: 50%;
  font-size: 40px;
  font-weight: 700px;
  transition: 1s;
}

/* Box Icons Green background with hover */
.container .box:nth-child(1) .icon {
  box-shadow: 0 0 0 #3ce434;
  background: #3ce434;
}
.container .box:nth-child(1):hover .icon {
  box-shadow: 0 0 0 550px #3ce434;
}

.container .box:nth-child(2) .icon {
  box-shadow: 0 0 0 #ff0026;
  background: #ff0026;
}
.container .box:nth-child(2):hover .icon {
  box-shadow: 0 0 0 550px #ff0026;
}

.container .box:nth-child(3) .icon {
  box-shadow: 0 0 0 #2a3a63;
  background: #2a3a63;
}
.container .box:nth-child(3):hover .icon {
  box-shadow: 0 0 0 550px #2a3a63;
}

.container .box:nth-child(4) .icon {
  box-shadow: 0 0 0 #3ce434;
  background: #3ce434;
}
.container .box:nth-child(4):hover .icon {
  box-shadow: 0 0 0 550px #3ce434;
}

.container .box:nth-child(5) .icon {
  box-shadow: 0 0 0 #ff0026;
  background: #ff0026;
}
.container .box:nth-child(5):hover .icon {
  box-shadow: 0 0 0 550px #ff0026;
}

.container .box:nth-child(6) .icon {
  box-shadow: 0 0 0 #2a3a63;
  background: #2a3a63;
}
.container .box:nth-child(6):hover .icon {
  box-shadow: 0 0 0 550px #2a3a63;
}
.container .box:nth-child(7) .icon {
  box-shadow: 0 0 0 #3ce434;
  background: #3ce434;
}
.container .box:nth-child(7):hover .icon {
  box-shadow: 0 0 0 550px #3ce434;
}
.container .box:nth-child(8) .icon {
  box-shadow: 0 0 0 #ff0026;
  background: #ff0026;
}
.container .box:nth-child(8):hover .icon {
  box-shadow: 0 0 0 550px #ff0026;
}

/* Content Transition & Hover */
.container .box .content {
  position: relative;
  z-index: 1;
  transition: 0.5s;
}

.container .box:hover .content {
  color: #fff;
}

.container .box:hover .content h3 {
  font-size: 20px;
  margin: 10px 0;
  padding: 0;
}

.container .box:hover .content p {
  margin: 0;
  padding: 0;
}

.container .box .content ul li {
  list-style: none;
}

.container .box:hover .content a {
  display: inline-block;
  padding: 10px 20px;
  background: #fff;
  border-radius: 4px;
  text-decoration: none;
  color: #000;
  font-weight: 500;
  margin-top: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Read More Button */
.container .box .content #infoBtn2,
#infoBtn1,
#infoBtn3,
#infoBtn4,
#infoBtn5,
#infoBtn6,
#infoBtn7,
#infoBtn8 {
  border: none;
  text-decoration: none;
}
.container .box:hover .content #infoBtn1,
#infoBtn2,
#infoBtn3,
#infoBtn4,
#infoBtn5,
#infoBtn6,
#infoBtn7
#infoBtn8 {
  display: inline-block;
  padding: 10px 20px;
  background: #fff;
  border-radius: 4px;
  text-decoration: none;
  color: #000;
  font-weight: 500;
  margin-top: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

#more1,
#more2,
#more3,
#more4,
#more5,
#more6,
#more7,
#more8 {
  display: none;
}

.footer .footer-content .links ul {
  padding: 0;
}

@media (max-width: 845px) {
  .container {
    padding: 0 0 0 10px;
    background: none;
  }
  .section-title {
    font-size: 24px;
    margin-top: 50px;
  }
  .container .box {
    width: 350px;
    padding: 10px;
  }
  .container .box .content p {
    font-size: 12px;
  }
  .container .box .content #more1,
  #more2,
  #more3,
  #more4,
  #more5,
  #more6,
  #more7,
  #more8 {
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .container .box {
    width: 250px;
  }
}

/* ======Footer===== */
.footer {
  background: #2a3a63;
  color: #fff;
  height: 450px;
  position: relative;
  width: 100%;
}

.footer .footer-content {
  margin: 50px;
  height: 350px;
  display: flex;
}

.footer .footer-content h2 {
  color: #3ce434;
}

.footer .footer-content .footer-section {
  flex: 1;
  padding-top: 25px;
  align-items: center;
}

/* Footer About Us styles */
.footer .footer-content .about {
  margin-left: 10px;
}
.footer .footer-content .about p {
  font-size: 18px;
  margin-left: 5px;
}

.footer .footer-content .about img {
  width: 200px;
  height: 50px;
}

/* Footer Contact Styles */
.footer .footer-content .contact span {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

.footer .footer-content .contact .socials a {
  border: 1px solid grey;
  width: 45px;
  height: 41px;
  color: #fff;
  padding-top: 5px;
  margin-right: 5px;
  text-align: center;
  display: inline-block;
  font-size: 18px;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.5s;
}

.footer .footer-content .contact .socials a:hover {
  color: #ff0026;
}

.footer .footer-content .footer-section {
  padding: 0;
}

/* Footer Links Styles */
.footer .footer-content .links ul {
  list-style: none;
}

.footer .footer-content .links ul a {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
  transition: 0.5s;
  color: #fff;
  text-decoration: none;
}

.footer .footer-content .links ul a:hover {
  color: #ff0026;
  margin-left: 20px;
}

.footer .footer-bottom {
  height: 50px;
  width: 100%;
  text-align: center;
  position: absolute;
  bottom: 0px;
  left: 0px;
  padding-top: 10px;
  font-size: 14px;
  /* margin-top: 20px; */
}

/* ====Media Queries===== */
@media (max-width: 845px) {
  .footer {
    width: 100%;
    height: 750px;
    text-align: left;
    display: flex;
    margin-top: auto;
  }
  .footer .footer-content {
    margin-left: 20px;
    flex-direction: column;
    margin-top: 0;
  }

  .footer .footer-content {
    margin-bottom: 100px;
  }
  .footer .footer-content .about p {
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
  }

  .footer .footer-content .links {
    margin-left: 0;
  }

  .footer .footer-content .links ul a {
    font-size: 14px;
    margin-left: 5px;
  }

  .footer .footer-content .contact,
  .footer .footer-content .contact span {
    font-size: 14px;
  }

  .footer .footer-content .contact .socials a {
    border: 1px solid grey;
    width: 35px;
    height: 31px;
    font-size: 14px;
    margin-top: 5px;
  }

  .footer .footer-content .contact .socials {
    margin-bottom: 10px;
  }

  .footer .footer-content h2 {
    padding: 0;
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 0;
  }

  p:last-of-type {
    margin-bottom: 5px;
  }

  .footer .footer-content .links ul {
    color: #ff0026;
    padding: 0;
  }

  .footer .footer-bottom {
    margin: 20;
    font-size: 12px;
  }
}
