body {
  overflow: visible;
  background-color: #ffffff;
}
.page-header {
  background-image: url("/routes/static/images/services-header.jpg.webp");
}

/* SECTIONS */
.section {
  padding: 0;
}
.section h1.title,
.section h2.title,
.section h3.title,
.section h4.subtitle,
.section h5.subtitle,
.section h6.subtitle {
  text-align: start;
  margin: 3rem auto 2rem;
  color: #162454;
}
.cards-row {
  position: relative;
  justify-content: center;
  background-color: #ffffff;
}
.card-container {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  overflow: hidden;
  padding: 0;
}
.card-container .overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 5rem;
  /* z-index: 1; */
  background: linear-gradient(to top, #0f1735 15%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0));
  transition: all 0.2s;
}
.card-container img {
  width: 100%;
}
.card-container h6.subtitle {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 7rem;
  margin-left: -3.5rem;
  text-align: center;
  color: #ffffff;
  transition: all 0.2s;
}
.card-container .intro {
  position: absolute;
  bottom: 0;
  padding: 0 2rem;
  color: white;
  opacity: 0;
  text-align: justify;
  transition: all 0.2s;
}
.card-container i {
  color: white;
  position: absolute;
  opacity: 0;
  bottom: 0;
  left: 50%;
  margin-left: -4.49rem;
  padding: 1rem;
  font-family: "mariad";
  transition: all 0.2s;
}
.card-container span {
  position: relative;
  top: 4px;
  margin: 1rem;
}
.card-container:hover .overlay {
  background: linear-gradient(to top, #0f1735 70%, rgba(255, 255, 255, 0) 100%, rgba(0, 0, 0, 0));
  transition: all 0.2s;
}
.card-container:hover h6.subtitle {
  bottom: 7rem;
  transition: all 0.2s;
}
.card-container:hover .intro {
  bottom: 4rem;
  opacity: 1;
  transition: all 0.2s;
}
.card-container:hover i {
  opacity: 1;
  bottom: 1rem;
  transition: all 0.2s;
}

/* FLOATING WINDOW */
#services .content-window.is-opened {
  position: absolute;
  z-index: 200;
  background-color: #ffffff;
  animation-name: services-window-opened;
  animation-duration: 4s;
  animation-fill-mode: forwards;
}
#services .content-window.is-closed {
  position: absolute;
  z-index: 200;
  background-color: #ffffff;
  animation-name: services-window-closed;
  animation-duration: 4s;
  animation-fill-mode: forwards;
}
#services .content-window .content {
  position: relative;
}
#services .content-window .content .close-btn {
  position: absolute;
  right: 0;
  padding: 1rem;
  cursor: pointer;
  z-index: 210;
}
#services .content-window .content .image-wrapper {
  display: inline-flex;
  padding: 0;
}
#services .content-window .content .image-wrapper img {
  width: 100%;
  max-width: 100%;
  margin: auto 0;
}
#services .content-window .content h3.title {
  margin: 3rem auto;
  text-align: center;
}
#services .content-window .content .text-wrapper {
  display: inline-flex;
  align-items: center;
  padding: 2rem;
  text-align: justify;
}

/* TRAKING */
#tracking {
  background-color: white;
}
#tracking .title-wrapper {
  text-align: justify;
}
#tracking .title-wrapper h3.title {
  text-align: center;
}
#tracking .title-wrapper p {
  padding: 0 2rem 2rem;
}
#tracking>.row {
  justify-content: center;
  background-color: #ffffff;
}
#tracking .image-wrapper {
  position: relative;
  padding: 0;
  background-color: #ffffff;
  text-align: center;
}
#tracking .image-wrapper .overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 5rem;
  /* z-index: 1; */
  background: linear-gradient(to top, #162454, rgba(255, 255, 255, 0) 30%, rgba(0, 0, 0, 0));
}
#tracking .image-wrapper img {
  max-width: 100%;
  width: 100%;
}
#tracking .inputs-wrapper {
  background-color: #ffffff;
  display: block;
  align-items: center;
  align-content: center;
  padding: 0 2rem;
}
#tracking .inputs-wrapper .form-control-wrapper {
  padding: 0 0.1rem 2rem;
}
#tracking #t_number,
#tracking #zip_code {
  padding: 1.5rem;
  border-radius: 6rem;
  color: #162454;
  background-color: rgba(128, 128, 128, 0.274);
  font-size: 14px;
}
#tracking #t_number::placeholder,
#tracking #zip_code::placeholder {
  color: #162454;
}
#tracking #submit {
  padding: 1rem 0 2rem;
  border-radius: 6rem;
  color: white;
  background-color: #162454;
}

/* OVERRIDE DEFAULT FOOTER */
footer {
  background-color: #162454;
  color: #ffffff;
}
footer ul:first-child {
  border-right: 1px solid #ffffff;
}
footer .fa-circle {
  color: #ffffff;
}
footer .fa-inverse {
  color: #162454;
}


/* MEDIA QUERIES */
@media (min-width: 768px) {
  #services .trans-pre-content {
    background-image: url("/routes/static/images/services-back.jpg.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }
  .section .trans-pre-content {
    text-align: center;
    justify-content: center;
    background-color: #162454;
  }
  .section .trans-pre-content .text-wrapper {
    display: inline-block;
    margin: 0 auto;
    padding: 2rem 2rem 5rem;
    text-align: justify;
  }
  .section .trans-pre-content .text-wrapper p {
    margin: 2rem auto;
    font-size: 16px;
  }
  .section .cards-row {
    padding: 3rem 2rem 2rem;
  }
  .card-container {
    margin: 1rem;
  }
  .card-container:hover h6.subtitle {
    opacity: 0;
    transition: all 0.2s;
  }
  #tracking .t-form-wrapper {
    padding: 0 2rem;
    text-align: center;
  }
  #tracking .inputs-wrapper {
    display: inline-flex;
    padding: 0;
  }
  #tracking .inputs-wrapper .form-control-wrapper {
    padding: 1rem 0.1rem;
  }
  #tracking .title-wrapper p {
    padding: 0;
  }
  #tracking .image-wrapper {
    align-self: flex-end;
  }
  #tracking .image-wrapper .overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 5rem;
    /* z-index: 1; */
    background: linear-gradient(to top, #ffffff, rgba(255, 255, 255, 0) 30%, rgba(0, 0, 0, 0));
  }
  
  /* DEFAULT FOOTER */
  footer {
    background-color: #ffffff;
    color: #162454;
  }
  footer ul:first-child {
    border-right: none;
  }
  footer .fa-circle {
    color: #162454;
  }
  footer .fa-inverse {
    color: #ffffff;
  }
}

@media (min-width: 992px) {
  .section .trans-pre-content .text-wrapper p {
    font-size: 18px;
  }
  .section .cards-row {
    padding: 4rem 2rem 2rem;
  }
  .section.card-container {
    max-width: 30%;
  }
  .card-container:hover h6.subtitle {
    opacity: 1;
    transition: all 0.2s;
  }
  
  #tracking {
    padding: 5rem 0;
  }
  #tracking .title-wrapper p {
    padding: 0 2rem;
  }
}

@media (min-width: 1200px) {
  #services .trans-pre-content {
    text-align: end;
  }
  .section .trans-pre-content .text-wrapper p {
    font-size: 16px;
  }
  .section .trans-pre-content .text-wrapper {
    padding: 1rem 1rem 5rem;
  }
}

@media (min-width: 1900px) {
  .section .trans-pre-content .text-wrapper {
    padding: 3rem 3rem 8rem;
  }
  #tracking .t-form-wrapper {
    max-width: 42%;
    padding: 4rem;
  }
  #tracking .t-form-wrapper p {
    padding: 0 4rem;
    font-size: 18px;
  }
  #tracking .image-wrapper {
    max-width: 58;
  }
  #tracking #t_number {
    font-size: 16px;
  }
  #services .content-window .content .text-wrapper {
    padding: 5rem;
  }
}

@keyframes services-window-opened {
  0% {
    top: 50%;
    right: 50%;
    bottom: 50%;
    left: 50%;
  }
  10% {
    top: 1.5%;
    right: 49.9%;
    bottom: 1.5%;
    left: 49.9%;
  }
  20% {
    top: 1.5%;
    right: 49.9%;
    bottom: 1.5%;
    left: 49.9%;
    border-radius: 6px;
  }
  30% {
    top: 1.5%;
    right: 5%;
    bottom: 1.5%;
    left: 5%;
    border-radius: 6px;
  }
  100% {
    top: 1.5%;
    right: 5%;
    bottom: 1.5%;
    left: 5%;
    border-radius: 6px;
  }
}
@keyframes services-window-closed {
  0% {
    top: 1.5%;
    right: 5%;
    bottom: 1.5%;
    left: 5%;
  }
  10% {
    top: 1.5%;
    right: 49.9%;
    bottom: 1.5%;
    left: 49.9%;
    border-radius: 6px;
  }
  20% {
    top: 1.5%;
    right: 49.9%;
    bottom: 1.5%;
    left: 49.9%;
    border-radius: 6px;
  }
  30% {
    top: 50%;
    right: 50%;
    bottom: 50%;
    left: 50%;
  }
  100% {
    top: 50%;
    right: 50%;
    bottom: 50%;
    left: 50%;
  }
}