html,
body {
  background: #fafafa;
  font-family: "Roboto", sans-serif;
  scroll-behavior: smooth;
  height: calc(100vh - 170px);
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: transparent;
}

#content {
  min-height: calc(100vh - 170px);
  margin: 10px auto;
}

#content_404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -100px;
}

.bd-placeholder-img {
  font-size: 1.125rem;
  text-anchor: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.hero_img {
  min-width: 190px;
  border-top-left-radius: 50% 50%;
  border-top-right-radius: 50% 50%;
  border-bottom-right-radius: 50% 50%;
  border-bottom-left-radius: 50% 50%;
}

.hero_vector {
  width: 80%;
  border-top-left-radius: 50% 50%;
  border-top-right-radius: 50% 50%;
  border-bottom-right-radius: 50% 50%;
  border-bottom-left-radius: 50% 50%;
}

/* Home Page Heading */
.welcome_heading {
  color: #223847;
  font-size: clamp(2rem, 4vw, 6rem) !important;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
}

.socialButtons {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

.socialButtons a {
  margin-left: 5px;
}

.socialButtons img {
  -webkit-filter: grayscale(100%);
  /* Safari 6.0 - 9.0 */
  filter: grayscale(100%);
}

#selectedCategory,
#sortBy {
  cursor: pointer;
}

/* --- Boostrap Card START --- */

.card-project {
  transition: all 0.2s ease;
  cursor: pointer;
}

.card-project .card-text {
  max-height: 4rem;
  overflow: hidden;
}

.card-project .card-img-top {
  /* height: 12rem; */
  height: 220px;
  object-fit: contain;
}

.card-project:hover {
  box-shadow: 5px 6px 6px 2px #e9ecef;
  transform: scale(1.04);
}

.card-project:hover a {
  background-color: #e9ecef !important;
}

/* --- Boostrap Card END --- */

.text-justify {
  text-align: justify;
}

.border-3 {
  border-style: solid;
  border-width: 2px;
}

.active_button {
  background: #f8f9fa;
  color: #17a2b8;
}

.text-muted-2 {
  opacity: 0.6;
}

/* Button to Scroll TOP */
#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 8px;
  right: 7px;
  z-index: 999;
  border: none;
  outline: none;
  background-color: #252525;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 5px;
  font-size: 0.2em;
  opacity: 0.5;
}

/* Stronger selectors to override cookieconsent styles */
.cm__btn.cm__btn[data-role="all"] {
  background-color: #007bff !important;
  color: #fff !important;
  font-weight: bold !important;
  padding: 12px 24px !important;
  border-radius: 6px !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3) !important;
  transition: background-color 0.3s ease !important;
}

.cm__btn.cm__btn[data-role="all"]:hover {
  background-color: #0056b3 !important;
}

/* Style for the "Only necessary" button */
.cm__btn.cm__btn[data-role="necessary"] {
  background-color: transparent !important;
  border: 1px solid #ccc !important;
  color: #333 !important;
  font-weight: normal !important;
  border-radius: 6px !important;
  padding: 10px 20px !important;
}

.cm__btn.cm__btn[data-role="necessary"]:hover {
  background-color: #c1c1c1 !important;
  color: #fff !important;
}

/* Bootstrap Carousel for the Projects START */
#projectsCarousel {
  position: relative;
}

#projectsCarousel .carousel-item img {
  width: 100%;
  max-height: 689.25px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  position: relative;
  z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
  z-index: 2;
  /* width: 6%; */
}

.carousel-custom-icon-wrapper {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
}

/* Bootstrap Carousel for the Projects END */

/* ---------------------------------------------------
  MEDIA QUERIES
----------------------------------------------------- */
/* Extra small devices (phones, 575px and down) */
@media (max-width: 575.98px) {

  /* Home Page Heading */
  .welcome_heading {
    font-size: 6.2vw !important;
  }

  .welcome_p {
    font-size: 0.9rem !important;
  }

  .socialButtons {
    display: flex;
    justify-content: center;
    margin-top: 10px;
  }

  .g-recaptcha {
    transform: scale(0.85);
    transform-origin: 0;
    -webkit-transform: scale(0.85);
    -webkit-transform-origin: 0 0;
    margin-bottom: -0.5em;
  }

  #projectsCarousel .carousel-item img {
    max-height: 436.17px;
  }

  footer {
    margin-top: 20px;
  }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media (min-width: 600px) {
  footer {
    margin-top: 2em;
  }
}

/* Medium devices (landscape tablets, 768px and up) */
@media (max-width: 767.98px) {
  .bd-placeholder-img-lg {
    font-size: 3.5rem;
  }
}

/* Medium devices (landscape tablets, 991px and down) */
@media (max-width: 990.98px) {
  .dropdown-menu.show {
    margin-bottom: 14px;
    margin-left: 10px;
  }
}

/* Medium devices (landscape tablets, 894px and down) */
@media (max-width: 894px) {
  .socialButtons {
    display: flex;
    justify-content: center;
    margin-top: 10px;
  }
}