/* your styles go here */
/* Basic styles for the button and loading icon */
.loading {
  display: inline-block;
  margin-right: 5px;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-radius: 50%;
  border-top: 3px solid #3498db;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.hidden {
  display: none;
}

.button-disabled {
  pointer-events: none;
  opacity: 0.6;
}

.modal-backdrop.show {
  background-color: black;
}
.modal-backdrop {
  opacity: 0.8 !important;
}

.tool_bar {
  position: absolute;
  z-index: 999999999;
  margin-top: 40px;
  top: 0;
  left: 60;
}

.maxheight {
  height: 320px !important;
  transition: box-shadow 0.3s;
}

.caption_card {
  padding: 10px;
  background-color: rgba(176, 168, 247, 0.5);
  color: #161212;
}

.maxheight:hover {
  box-shadow: 0 0 11px rgba(33, 33, 33, 0.2);
}
.opacity_80 {
  background-color: rgba(255, 255, 255, 0.5);
}

/* Slide overview*/
.carousel-item {
  height: 80vh;
  background-color: #e5e3f7;
}
.overview_content {
  padding: 20px;
  font-size: 18px;
  margin: 10px 120px;
}

.carousel-caption h5 {
  font-size: 20px;
  color: #ee002d;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  padding: 20px;
}

@media screen and (max-width: 600px) {
  .carousel-item {
    height: 100%;
    background-color: #e5e3f7;
  }
  .overview_content {
    padding: 10px;
    font-size: 18px;
    margin: 10px 20px;
  }
  .overview_content > img {
    max-width: 100%;
  }
  .carousel-indicators {
    margin-bottom: 80px !important;
  }
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    padding: 0px;
  }

  .maxheight {
    height: 180px !important;
    transition: box-shadow 0.3s;
  }
}

.border_1 {
  border-bottom: 1px dashed #ededed;
}

#home_video:before {
  content: "";
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  background: linear-gradient(
    to right,
    rgba(137, 177, 237, 0.6),
    rgba(52, 95, 158, 0.5)
  );
}

.content_grid {
  margin-top: 20%;
}

.grid-container {
  display: grid;
  grid-gap: 15px;
  background-color: transparent;
  padding: 10px;
  width: 100%;
}

.grid-container > a {
  text-decoration: none;
  text-transform: uppercase;
}

.grid-container > a > div {
  border-left: 1px solid #3098f9;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  .item {
    height: 50px;
  }

  .grid-container > a {
    height: 80px;
  }

  .grid-container {
    grid-template-columns: 50% 50%;
  }

  .grid-container > a > div > img {
    display: block;
    width: 28px;
    height: 28px;
    padding-right: 5px;
  }

  .grid-container > a > div {
    display: flex;
    font-size: 14px !important;
    padding: 5px 10px !important;
  }
}

/* Menu*/
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
  .grid-container {
    grid-template-columns: 50% 50%;
  }

  .grid-container > a > div > img {
    width: 32px !important;
    height: 32px !important;
    display: block;
    padding-right: 5px;
  }
}

/* Medium devices (landscape tablets, 768px 1280px and up) */
@media screen and (max-width: 1280px) and (min-width: 720px) {
  .grid-container > a > div > span {
    margin-top: 20px;
    margin-left: 20px;
  }

  .grid-container {
    grid-template-columns: 30% 30% 30%;
  }

  .grid-container > a > div {
    display: flex;
    font-size: 16px;
    padding: 10px 5px;
    font-size: 14px;
  }

  .grid-container > a > div > img {
    width: 36px !important;
    height: 36px !important;
    display: block;
    padding-right: 5px;
  }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
  .grid-container {
    grid-template-columns: 24% 24% 24% 24%;
  }

  .grid-container > a > div {
    display: flex;
    font-size: 16px;
    padding: 20px 10px;
  }

  .grid-container > a > div > img {
    width: 48px !important;
    height: 48px !important;
    padding-right: 5px;
  }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
  .grid-container {
    grid-template-columns: 25% 25% 25% 25%;
  }

  .grid-container > a > div > img {
    width: 48px !important;
    height: 48px !important;
    padding-right: 5px;
  }

  .grid-container > a > div {
    min-height: 125px;
  }
}

.grid-container > a > div {
  display: flex;
  background-color: rgba(245, 245, 245, 0.9);
  text-align: left;
  padding: 15px 5px;
  font-size: 18px;
  color: #039ddb;
}

.grid-container > a:hover > div {
  background-color: rgba(255, 255, 255, 0.9);
  color: fff;
  -webkit-box-shadow: 1px 0px 13px -1px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 1px 0px 13px -1px rgba(0, 0, 0, 0.75);
  box-shadow: 1px 0px 13px -1px rgba(0, 0, 0, 0.75);
}

.grid-container,
.icon {
  font-size: 25px !important;
}

.nav-item :hover {
  background-color: #fff;
  border-radius: 5px;
  color: #252514;
}

.hover_box:hover {
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.statistic > a:hover {
  text-decoration: none !important;
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
  .tool_xo {
    display: block !important;
  }

  .tool_ngang {
    display: none !important;
  }
}

@media screen and (min-width: 992px) {
  .tool_xo {
    display: block !important;
  }

  .tool_ngang {
    display: none !important;
  }
}

@media screen and (min-width: 992px) {
  .tool_xo {
    display: block !important;
  }

  .tool_ngang {
    display: none !important;
  }
}

@media (min-width: 1281px) {
  .tool_xo {
    display: none !important;
  }

  .tool_ngang {
    display: block !important;
  }
}

.header_thin {
  font-size: 20px;
  font-weight: 300;
  color: #444444;
}

/* Video background for index */
.video_header {
  position: relative;
  background-color: black;
  height: calc(100vh - 60px);
  width: 100%;
  overflow: hidden;
}

.video_header video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  -ms-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
  -webkit-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
}

.video_header .container {
  position: relative;
  z-index: 2;
}

.video_header .overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: black;
  opacity: 0.5;
  z-index: 1;
}

/* Media Query for devices withi coarse pointers and no hover functionality */

/* This will use a fallback image instead of a video for devices that commonly do not support the HTML5 video element

@media (pointer: coarse) and (hover: none) {
    .video_header {
        background: url('https://source.unsplash.com/XT5OInaElMw/1600x900') black no-repeat center center scroll;
    }

    .video_header video {
        display: none;
    }
}

 */

.carousel {
  transition: transform 0.6s ease !important;
  /* Enable transitions for the .carousel element */
}

.carousel-item {
  background-color: transparent !important;
  padding: 30px 0px !important;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: -webkit-transform 0.6s ease-in-out !important;
  transition: transform 0.6s ease-in-out !important;
  transition: transform 0.6s ease-in-out, -webkit-transform 0.6s ease-in-out !important;
  margin-top: 30% !important;
}

@media (max-width: 575px) {
  .carousel-item p {
    font-size: 18px !important;
  }

  .carousel-item h3 {
    font-size: 24px !important;
  }
}

.image-container {
  width: 100%; /* Or any desired width */
  height: 0;
  padding-bottom: 75%; /* 4:3 aspect ratio (3/4 * 100%) */
  position: relative;
  overflow: hidden;
  background-color: #fff; /* Optional: Background color */
}

.image-container img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translate(-50%, -50%);
}

.modal-body,
label {
  font-weight: bold;
}

/* footer */

.rounded-2 {
  border-radius: 10px !important;
}

.footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #f8f8f8;
  box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
  bottom: 0;
  position: fixed;
  width: 100%;
  z-index: 99;
}

.footer a {
  padding: 10px 0 5px 0;
  text-decoration: none;
  color: #000;
  text-align: center;
  flex-grow: 1;
}

@keyframes scaleUpDown {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
.footer .main i {
  border-radius: 50%;
  background-color: #5d74e4;
  padding: 14px;
  color: #fff;
  font-size: 24px !important;
  animation: scaleUpDown 2s infinite; /* 2 seconds duration, infinite repetition */
}

.footer a.active {
  border-bottom: 3px solid #5d74e4;
}

.footer a:hover {
  color: #5d74e4;
}

.footer a:hover .fa {
  color: #5d74e4;

  .fa {
    font-size: 30px;
    color: #5d74e4;
  }
}

.footer a .fa {
  font-size: 22px;
}

.footer a span {
  display: block;
  font-size: 12px;
}
/* Custom transition for Bootstrap modal */
.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out, opacity 0.3s ease-out; /* Adjust the duration as needed */
}

.modal.fade.show .modal-dialog {
  transform: translate(0, 0); /* No translation when shown */
  opacity: 1; /* Fully opaque when shown */
}

.modal.fade .modal-dialog {
  transform: translate(
    0,
    -25%
  ); /* Translate the modal slightly upwards when hiding */
  opacity: 0; /* Fully transparent when hiding */
}

.brand-text {
  font-size: 24px;
  border: 1px solid white;
  padding: 0px 10px 0px 10px;
  margin-right: 10px;
  border-radius: 5px;
}