@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&display=swap');

* {
  font-family: 'Raleway', sans-serif;
}

/* Logo styles */
.logo { 
  height: 152px;
  float: left; 
  position: absolute; 
  top: 0; 
  z-index: 10;
}
.logo1 {
  height: 65px;
}

/* Buttons */
.btn-donate,
.btn-adopt {
  color: #fff;
  border-radius: 0;
  padding: 18.5px;
  text-align: center;
  font-weight: bold;
  flex: 1;
  white-space: nowrap;
}
.btn-donate { background-color: #f7581e; }
.btn-adopt { background-color: #f78f1e; }

/* Buttons container */
.mainbuttons {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  z-index: 2000;
  width: 400px;
  gap: 0;
}

/* Social icons */
.social-icons i {
  font-size: 25px;
  color: #f89b1e;
  margin-left: 10px;
  padding: 5px;
}
.wholenavbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 5000;
}



/* Top bar */
.top-bar {
  background: #000;
  color: #fff;
  font-size: 15px;
  padding: 20px;
  display: flex;
  align-items: center;
}
.contactlink { font-weight: bold; }

/* Navbar */
.navbar {
  background-color: rgb(241, 241, 241);
  padding: 0;
  height: 90px;
  display: flex;
  align-items: stretch;
}

/* Navigation items */
.navbar-nav {
  display: flex;
  flex: 1;
  align-items: stretch;
  justify-content: space-between;
  margin-left: 195px;
  margin-right: 0;
  padding: 0;
}
.nav-item {
  font-weight: bold;
  padding: 10px;
  position: relative;
  flex: 1;
  margin: 0;
}
.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: all 0.3s ease-in-out;
  height: 100%;
  width: 100%;
  padding: 23px;
  text-align: center;
}

/* Orange line effect */
.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background-color: #f89b1e;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease-in-out;
}
.nav-link:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Active page */
.nav-item.active .nav-link {
  font-weight: bold;
  color: #f89b1e !important;
}

/* Dropdown center */
.dropdown-menu {
  left: 50% !important;
  transform: translateX(-50%) !important;
  text-align: center; 
}


/* Responsive 400x608 */
@media (max-width: 414px), (max-height: 896px) {
  .logo { display: none !important; }
  .logo1 {
    height: 90px;
    margin-left: 0 !important;
    padding-left: 0 !important;
    display: block;
  }
  .navbar,
  .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .top-bar { display:none; }

  .mainbuttons {
    position: static;
    display: flex !important;
    flex-direction: row;
    width: 100%;
    text-align: center;
  }
  .btn-donate, .btn-adopt {
    flex: 1;
    margin: 0;
    border-radius: 0;
  }
  .navbar-toggler { margin-right: 60px; }

  .navbar-collapse {
    position: relative;
    min-height: auto;
    background-color: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    z-index: 3000;
  }

  .navbar { background-color: #fff !important; }

  .navbar-nav {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    text-align: center;
  }

  .nav-item {
    flex: unset;
    width: 100%;
  }

  .nav-link {
    height: auto;
    padding: 12px 16px;
    justify-content: center;
    width: 100% !important;
    text-align: center;
  }

  .dropdown-menu {
    left: 50% !important;
    transform: translateX(-50%) !important;
    text-align: center;
    width: auto;
  }

  /* Hide carousel if nav expanded */
  .navbar-collapse.show ~ .carousel-container {
    display: none !important;
  }
}
