html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

a {
  color: #27c7cb;
  text-decoration: none;
}

a:hover {
  color: #27c7cb;
  text-decoration: none;
}

header {
  border-bottom: 2px solid #27c7cb;
  background-color: #fff;
}

main {
  padding-top: 3px;
}

main span {
  font-weight: bold;
}

footer {
  background-color: #27c7cb;
  vertical-align: bottom;
  margin-bottom: 0;
  color: #fff;
}

#banner {
  max-width: 800px;
}

.header-banner-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 0 80px;
}

div.button-custom {
  border: 2px solid #27c7cb;
  min-width: 280px;
  padding: 8px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease, color 0.3s ease;
}

.button-custom {
  background-color: #fff;
  color: #27c7cb;
  cursor: pointer;
}

.button-custom span {
  font-weight: bold;
  padding: 2px;
}

.button-custom small {
  color: #0a0a0a;
}

.button-custom:hover {
  transform: scale(1.05);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  background-color: #27c7cb;
  color: #fff;
}

.btn-outline-custom {
  color: #27c7cb;
  border: 2px solid #27c7cb;
  background-color: #fff;
  font-weight: bold;
  transition: all 0.2s ease;
  padding: 0.5rem 1.2rem;
  margin: auto;
}

.btn-outline-custom:hover {
  background-color: #27c7cb;
  color: #fff;
}

.profile-dropdown {
  position: absolute;
  right: 0;
  top: 50px;
  background-color: #fff;
  border: 2px solid #27c7cb;
  border-radius: 8px;
  padding: 10px;
  display: none;
  min-width: 200px;
  z-index: 1000;
}

.profile-dropdown span {
  display: block;
  font-weight: bold;
  margin-bottom: 10px;
}

.profile-dropdown button {
  width: 100%;
  color: #fff;
  background-color: #27c7cb;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

.profile-dropdown button:hover {
  background-color: #1fa1a3;
}

#auth-container {
  z-index: 10;
}

.profile-img {
  width: 32px;
  height: 32px;
}

.profile-username {
  font-size: 1rem;
  max-width: 140px;
  display: inline-block;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.profile-arrow {
  font-size: 2rem;
  color: #27c7cb;
}

.custom-spinner {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(39, 199, 203, 0.3);
  border-top-color: #27c7cb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: auto;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in[style*="animation-delay"] {
  animation-fill-mode: both;
}

.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-carousel {
  background-color: #27c7cb;
  padding: 2.5rem 0 0 1.5rem; /* 2.5rem top, 1.5rem bottom */
  position: relative;
  overflow-x: clip;
}

.partners-title {
  text-align: center;
  color: white;
  font-weight: 400;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 2rem;
}

.logo-card {
  background-color: white;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  height: 75px;
  display: flex;
  align-items: center;
  margin: 0 0.5rem;
  transition: all 0.3s ease-in-out;
  flex-shrink: 0;
}

.logo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.logo-card img {
  width: auto;
  max-height: 100%;
  max-width: 150px;
  object-fit: contain;
}

.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none !important;
  border: none !important;
  width: 40px;
  height: 70px;
  font-size: 2.5rem;
  color: white;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  opacity: 0.7;
  transition: all 0.2s ease;
  z-index: 10;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
  left: -40px;
}
.carousel-control-next {
  right: -40px;
}

@media (max-width: 1440px) {
  .profile-img {
    width: 24px;
    height: 24px;
  }
  .profile-username {
    font-size: 0.85rem;
    max-width: 80px;
  }
  .profile-arrow {
    font-size: 1.2rem;
  }
}

@media (max-width: 1060px) {
  #banner {
    max-width: 550px;
  }
}

@media (max-width: 992px) {
  #banner {
    max-width: 600px;
  }
  .carousel-control-prev {
    left: 0;
  }
  .carousel-control-next {
    right: 0;
  }
}

@media (max-width: 876px) {
  #banner {
    max-width: 500px;
  }
}

@media (max-width: 820px) {
  #banner {
    max-width: 450px;
  }
  .header-banner-container {
    padding: 0 60px;
  }
  .profile-username-text {
    display: none;
  }
}

@media (max-width: 767px) {
  header.d-flex {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .header-banner-container {
    padding: 0 1rem;
  }
  #banner {
    max-width: 300px;
  }
  .logo-card {
    height: 70px;
    margin: 0 0.4rem;
  }
  .btn-outline-custom {
    font-size: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .btn-outline-custom i {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  #banner {
    max-width: 320px;
  }
  div.button-custom {
    min-width: auto;
  }
}

@media (max-width: 575px) {
  .partners-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }
  .logo-card {
    height: 65px;
  }
  #login-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-width: 2px;
  }
  #login-btn i {
    font-size: 1.2rem;
  }
}
.powered-by-tag {
  margin-top: 0.75rem;
  display: inline-block;
  background-color: #f0f3f5;
  color: #6c757d;
  padding: 0.25rem 0.6rem;
  border-radius: 50rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
}
a.disabled .button-custom {
  pointer-events: auto;
  opacity: 0.5;
  cursor: not-allowed !important;
  filter: grayscale(100%);
}

.login-tooltip {
  position: absolute;
  background: #27c7cb;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  text-align: center;
  display: none;
  z-index: 2000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -120%);
}

.login-tooltip button {
  font-size: 0.85rem;
  border-radius: 6px;
  padding: 4px 10px;
}

.login-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #27c7cb transparent transparent transparent;
}
