/*-- Body Reset --*/
body {
  overflow-x: hidden;
  /* overflow-y: hidden; */
  font-family: 'Montserrat', sans-serif;
  color: #616971;
}

/*============= TOP BAR HEADER =============*/

.top-bar{
  background: #51A8B1;
  height: 5rem;
  padding: 0.2rem 0;
}

.top-bar a{
  color: white;
  text-decoration: none;
  font-size: .8rem;
}

ul.top-bar a{
  list-style-type: none;
  display: flex;
}
ul.contact-top-bar{
  list-style-type: none;
}

/*============= NAVIGATION =============*/

.navbar-brand img{
  height: 3rem;
}

.navbar {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .05rem;
  box-shadow: 0 .5rem .5rem rgba(0, 0, 0, 0.100);
  z-index: 1;
}

.nav-item {
  padding: 0.5rem;
}
.nav-link {
  color: #8b2e62!important;
  transition: ease-in-out 0.5s;

  
}
.nav-link.active,
.nav-link:hover {
  color: #51A8B1!important;
  font-size: 1.15rem;
  border-bottom: 0.1rem solid #8b2e62;
}
/*============= CAROUSEL =============*/

#carousel {
  box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.1);
}
.carousel-inner {
  max-height: 38rem!important;
}
/*---Change Carousel Transition Speed --*/
.carousel-item-next,
.carousel-item-prev,
.carousel-item.active {
  transition: transform 1.2s ease;
}
/*-- Carousel Content --*/

.carousel-caption {
  position: absolute;
  top: 54%;
  transform: translateY(-70%);
}
.bg-custom {
  background-color: rgba(0, 0, 0, .3);
  color: white;
  border-radius: 1rem;
}
.carousel-caption h1 {
  font-size: 3.8rem;
  text-shadow: .1rem .1rem .3rem rgba(0, 0, 0, 1);
}
.border-primary {
  border-top: 0.2rem solid #51A8B1!important;
}
.carousel-caption h3 {
  font-size: 2.2rem;
  text-shadow: .1rem .1rem .2rem rgba(0, 0, 0, 1);
}

.btn-lg {
  border-radius: 0;
  text-transform: capitalize;
  font-size: 1rem;
  border-width: medium;
}

.btn-danger {
  background-color: #51A8B1;
  border: 0.05rem solid #51A8B1!important;
}
.btn-primary {
  background-color: #51A8B1;
  border: 0.05rem solid #51A8B1!important;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #8b2e62!important;
  border: 0.05rem solid #8b2e62!important;
}

/*===== FIXED BACKGROUND IMG =====*/

.fixed {
  /* background-image: url('/crestaffinity/'); */
  background-image: url('/CA/img/grimaldism.jpg');
  position: scroll;
}
.fixed-background {
  padding: 10rem 0;
}
.fixed-background h1 {
  text-shadow: .1rem .1rem .5rem rgba(0, 0, 0, 1);
}
.fixed-background h3 {
  text-shadow: .1rem .1rem .5rem rgba(0, 0, 0, 1);
}
.fixed-background {
  overflow: hidden; /*-- Correction for iOS --*/
}

/* -- Modal -- */

.modal-notify .modal-header {
  border-radius: 3px 3px 0 0;
}
.modal-notify .modal-content {
  border-radius: 3px;
}



/* -- Emoji Navbar -- */
.emoji {
  background-image: linear-gradient(to right, #8b2e62, #51A8B1);
  min-height: 0!important;
  padding: 0.4rem 0!important;
}

.emoji .svg-inline--fa {
  margin: 0 auto;
  color: white;
  font-size: 2rem;
}

/*============= FOOTER =============*/

footer {
  background-color: #383838;
  padding: 1rem 2rem 2rem;
}
 
footer img {
  height: 3.5rem;
  margin: 1.5rem auto;
}

footer p, footer a,
.socket a {
  color: white;
  text-decoration: none;
}
ul.social {
  list-style-type: none;
  display: flex;
  max-width: 16rem;
  margin: 0rem auto;
  padding: 0;
}
ul.social li {
  margin: 0px auto;
  
}
footer .svg-inline--fa {
  font-size: 2.3rem;
}
footer .svg-inline--fa :hover {
  color: #51A8B1!important;
}

/*============= SOCKET =============*/

.socket {
  background-color: #222222;
  border-top: 0.5rem solid #51A8B1;
}

/*============= MEDIA QUERIES =============*/

/* Devices under 1199px (xl) */
@media (max-width: 1199.98px) {
  .carousel-caption h1 {
    font-size: 2.8rem;
  }
  .carousel-caption h3 {
    font-size: 1.8rem;
  }
}

/* Devices under 992px (lg) */
@media (max-width: 991.98px) {
  .carousel-caption h1 {
    font-size: 2.5rem;
  }
  .carousel-caption h3 {
    font-size: 1.5rem;
  }
  .btn-lg {
    font-size: 0.95rem;
  }
  }
  
/* Devices under 768px (md) */
@media (max-width: 767px) {
  footer img {
    height: 3rem;
    margin: 1rem auto;
  }
  .emoji img {
    min-width: 1.5rem;
    padding: 0.2rem 0;
  }

  }

  /* Devices under 576px (md) */
@media (max-width: 575px) {
  footer img {
    height: 2.5rem;
    margin: 0.75rem auto;
  }
  /* .emoji img {
    min-width: 1rem;
    padding: 0.1rem 0;
  } */

  }


/*============ BOOTSTRAP BREAK POINTS:

Extra small (xs) devices (portrait phones, less than 576px)
No media query since this is the default in Bootstrap

Small (sm) devices (landscape phones, 576px and up)
@media (min-width: 576px) { ... }

Medium (md) devices (tablets, 768px and up)
@media (min-width: 768px) { ... }

Large (lg) devices (desktops, 992px and up)
@media (min-width: 992px) { ... }

Extra (xl) large devices (large desktops, 1200px and up)
@media (min-width: 1200px) { ... }

=============*/

/*-- Bootstrap Mobile Gutter Fix --*/
.row, .container-fluid {
  margin-left: 0px !important;
  margin-right: 0px !important;
}

/*-- Fixed Background Image --*/
.fixed-background {
  position: fixed;
  width: 100%;
  z-index: 1000!important;
}
.fixed-wrap {
  clip: rect(0, auto, auto, 0);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -999 !important;
}
.fixed {
  z-index: -999!important;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}



/* --Contact Section Start--*/
.contact .svg-inline--fa {
  font-size: 3rem;
  color: #51A8B1;
  padding-bottom: 0.5rem;
 }
 ul.contact-social{
  list-style-type: none;
  display: flex;
  max-width: 16rem;
  margin: 0rem auto;
  padding: 0;
}
ul.contact-social li {
  margin: 0px auto;
  font-size: 2rem;
  color: #51A8B1;
}
/* --Contact Section End--*/

/* --Contact Form Begin--*/
section{
  max-height: 57rem;
  width: 100%;
  background-color: aliceblue;
  padding-top: 1rem;
  display: flex;
  align-items: Center;
  justify-items: center;
  flex-direction: column;
}

.container-form{
  width: 50%;
  margin: 0 auto;
  padding: 20px;
  box-shadow: 0px 0px 25px #000010;
  background-color: white;
  border-radius: 8px;
  padding-bottom: 20px;
}

.form-group{
  width: 100%;
  margin-top: 20px;
  font-size: 20px;
}

.form-group input,
.formgroup textarea{
  width: 100%;
  padding: 5px;
  font-size: 18px;
  border: 1px solid rgba(128, 128 128 0.199);
  margin-top: 5px;
}

textarea{
  width: 100%;
  resize: vertical;
}
/* --Contact Form End--*/