body {
  font-family: 'Ubuntu', sans-serif;
  color: #191406; 
  background-repeat: no-repeat;
  background-color: transparent !important;
}

html {
  box-sizing: border-box;
  background-image: url("/static/images/br_bg_no_text.png");
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.listings-roommates {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 3vw;
  font-size: 1.2rem;
  text-align: center;
}

.listings-roommates a {
  text-decoration: none;
  color: #FBE0BD;
}

.listings-roommates a:hover {
  text-decoration: underline;
  color: #FBE0BD;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;   
}

.listings-roommates a.active {
  text-decoration: underline;
  color: #FBE0BD;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;   
}


.sticky-navbar {
    background-color: #0e0e0e;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 4px 0;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
    min-width: 300px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23FBE0BD' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-toggler {
  border-color: #FBE0BD;
}

.navbar-login {
  padding-right: 1vw;
}

.navbar-login a {
  text-decoration: none;
  color: #FBE0BD;
}
.navbar-login a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;   
}

nav .menu-border {
    display: inline-block;
    padding: 4px 8px;
    border: 2px solid #0e0e0e;
    border-radius: 6px;
    background-color: transparent;
    font-weight: bold;
    font-family: 'Ubuntu', sans-serif;
}

.nav-link.dropdown-toggle { /* Menu Button */
  color: #FBE0BD;
}


.nav-link.dropdown-toggle:focus:active { /* Menu Clicked */
  transform: scale(1.03);
}

/* After dropdown opens */
.nav-link.dropdown-toggle:focus {
  color: #FBE0BD;
  outline: none;
  box-shadow: none;
}

.dropdown-menu {
  background-color: #0e0e0e;
  color: #FBE0BD;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.dropdown-item:hover {
  background-color: #FBE0BD;
  color: #24150C;
}

.dropdown-item {
  color: #FBE0BD;
}

.container {
  background-color: #0e0e0e;
  border-radius: 15px;
  padding: 2rem;
  margin: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  font-family: 'Ubuntu', sans-serif;
  min-width: 300px !important;
}

.container h1 {
  font-size: 1.5rem;
  font-weight: bold;
  /* text-align: center; */
  margin-bottom: 0.5rem;
}

/* Subtitle */
.container p {
  font-size: 0.85rem;
  /* text-align: center; */
  color: #aaa;
  margin-bottom: 1.5rem;
}

/* Input fields */
.container input {
  background-color: #1b1b1b;
  border: none;
  border-radius: 10px;
  padding: 0.8rem;
  color: #fff;
  width: 100%;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.container input::placeholder {
  color: #666;
}

/* Login button */
.container button.login-btn {
  background-color: #007bff;
  border: none;
  padding: 0.8rem;
  border-radius: 10px;
  color: white;
  font-weight: bold;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.container button.login-btn:hover {
  background-color: #0056b3;
}

/* Divider */
.container .divider {
  /* text-align: center; */
  margin: 1.5rem 0;
  font-size: 0.8rem;
  color: #777;
}

/* Social buttons */
.container .social-buttons {
  display: flex;
  gap: 0.8rem;
}

.container .social-buttons button {
  flex: 1;
  background-color: #1b1b1b;
  border: none;
  padding: 0.8rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.container .social-buttons button:hover {
  background-color: #333;
}

.carousel-inner {
  height: 400px;
  overflow: hidden;
}

.carousel-item {
  height: 100%;
}

.listing-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.btn {
  color: #FBE0BD;
  border-color: #FBE0BD;
}

.btn:hover {
  background-color: #FBE0BD;
}

.logo-tribal {
    text-decoration: none;
}

.logo-tribal:active {
  transform: scale(1.01);
}

.logo-text {
    font-family: 'Ubuntu', sans-serif;
    font-weight: bolder;
    font-size: 1.7rem;
    color: #FBE0BD;
    letter-spacing: 2px;
    text-transform: uppercase;
}

button.btn:hover {
  background-color: #fbe0bdd8;
}


.d-flex .btn:active {
  transform: scale(1.01);
  background-color: #fbe0bdd8;
  border-color: #fbe0bdd8;
  border-radius: 8px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Flip Card */
.flip-card {
  position: relative;
  width: 260px;
  height: 360px;
  perspective: 1200px;
  font-family: "Helvetica Neue", sans-serif;
  font-weight: bold;
  z-index: 2;
}


.flip-card-front,
.flip-card-back {
  background-color: #000;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform 0.6s ease-in-out;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}


.flip-card-front {
  position: relative;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  z-index: 2;
  align-items: center;
  justify-content: flex-end;
}

.flip-card-front img {
  position: absolute;
  object-fit: cover;
  z-index: -1;
  border-radius: 6px;
  width: 100%;
  height: 100%;
}

.flip-card-back {
  transform: rotateY(180deg);
  z-index: 1;
}

/* Flip both sides on hover */
.flip-card:hover .flip-card-front {
  transform: rotateY(-180deg);
}


.flip-card:hover .flip-card-back {
  transform: rotateY(0deg);
  z-index: 2;
}

/* text 3D */
.flip-card-front .text,
.flip-card-back .text {
  position: relative; /* key to layer above */
  z-index: 2;
  transform: translateZ(120px);
  text-align: center;
  text-decoration: none;
  font-family: 'Helvetica Neue', sans-serif;
  color: #FBE0BD;
  text-shadow: 0 0 3px rgba(0,0,0,.85);
}

.flip-card-front .text {
  padding: 0 1rem;
  text-align: center;
  text-wrap: wrap;
  /* wrap text nicely */
  overflow-wrap: break-word; /* or word-wrap: break-word; */
  max-width: 100%; /* ensure no overflow horizontally */
  box-sizing: border-box; /* includes padding in width */
  white-space: normal; /* allow multiline */
}

.flip-card-back .text {
  border: 1px solid #FBE0BD;
  padding-left: 6px;
  padding-right: 6px;
  border-radius: 6px;
}

.flip-card-back .text:hover {
background-color: #191406;
}

button.yellow-btn {
  background-color: #E1AE5D;
  color: #191406;
  border: none;
  font-family: 'Ubuntu', sans-serif;
  transition: background-color 0.3s ease;
  border-radius: 6px; /* optional, for rounded corners */
  height: 38px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

button.yellow-btn:hover {
  background-color: #d19c4b; /* slightly darker */
}

button.yellow-btn:active {
  background-color: #b5853f; /* even darker on press */
  transform: scale(1.02); /* subtle press effect */
}

.listing-btn {
  display: flex;            /* enable flexbox */
  justify-content: center;
  flex: 1;
  background-color: #1b1b1b;
  border: none;
  padding: 0.8rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  
}

.listing-btn a{
  text-decoration: none;
}

.listing-btn:hover {
  background-color: #333;
}

@media (max-width: 990px) { 
  .listings-roommates {
    position: static;   /* remove absolute */
    transform: none;    /* reset translation */
    margin-left: 12px;
    margin-right: 12px;
  }
  
  .navbar-login {
    display: flex;
    font-size: 1.2rem;
    margin-right: 12px;
  }
}


/*
.african-search::placeholder {
    color: #FBE0BD;
}

.african-search {
  font-family: 'Ubuntu', sans-serif;
  background-color: #000000;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
  border-color: #383333;
}

.african-search + button {
  background-color:#FBE0BD;
  border-radius: 8px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-color: #FBE0BD;
  color: #000000;
}

.african-search:focus,
.african-search:active {
  background-color: #000000;
  color: #FBE0BD;
  border-color: #000000;
  outline: none;
  box-shadow: none;
} 
*/