nav {
  background-color: #ffffff;
  color: #ff0303;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for better visibility */
}

.logo img {
  height: 50px;
  width: auto; /* Prevent logo distortion */
}

/* Navbar Menu */
.main-navbar ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 15px; /* Add spacing between menu items */
}

.main-navbar ul li {
  position: relative;
}

.main-navbar ul li a {
  text-decoration: none;
  color: #ff0000;
  font-weight: bold;
  font-size: 1rem;
  padding: 5px 10px; /* Add padding for better click area */
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s; /* Smooth hover effect */
}

.main-navbar ul li a:hover {
  background-color: #ff0000;
  color: #ffffff; /* Invert colors on hover */
}

/* Dropdown Menu */
.main-navbar .dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  color: #ffffff;
  min-width: 80px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  overflow: hidden;
  z-index: 1000;
  margin-top: 2px;
}

.black {
  color: rgb(255, 0, 0);
}

.main-navbar .dropdown-content a {
  display: block;
  padding: 10px;
  font-size: 0.9rem;
  font-weight: normal;
  text-decoration: none;
  color: #000000;
  transition: background-color 0.3s;
  border-top: 1px solid #000000;
  border-bottom: 1px solid #000000;
  text-align: center;
}

.main-navbar .dropdown-content a:hover {
  background-color: #ffffff;
  color: #ff0000;
}

/* Show Dropdown on Hover */
.main-navbar .dropdown:hover .dropdown-content {
  display: block;
}

/* Responsive Navbar */
.menu-toggle {
  display: none;
  background-color: transparent;
  border: none;
  font-size: 2rem;
  color: #ff0303;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-navbar ul {
    display: none;
    flex-direction: column;
    background-color: #ffffff;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .main-navbar ul.show {
    display: flex;
  }

  .main-navbar ul li {
    margin: 10px 0;
  }

  .main-navbar ul li a {
    font-size: 1.2rem;
  }
}

/* Wallet and Donation Button Styles */
#connectWalletButton,
#donateButton {
  background-color: #ffffff;
  color: #ff0000;
  border: 2px solid #ff0000;
  padding: 10px 15px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

#connectWalletButton:hover,
#donateButton:hover {
  background-color: #000000;
  color: #ff0000;
}

/* Smooth Scroll Effect */
html {
  scroll-behavior: smooth;
}

nav video {
  height: 50px; /* Adjust the height to fit your navbar */
  width: auto; /* Maintain aspect ratio */
  border-radius: 5px; /* Optional: add rounded corners */
  transition: transform 0.3s ease; /* Smooth scaling effect */
}

nav video:hover {
  transform: scale(1.1); /* Slight zoom effect on hover */
}
