/* 清除浏览器默认格式 */
* {
    margin: 0;
    padding: 0;
    /* 内减模式 */
    box-sizing: border-box;
    font-family: MyFont,Lora,Verdana, Geneva, Tahoma, sans-serif;
    scroll-behavior: smooth;
  }

  li {
    list-style: none;
  }

  a {
    text-decoration: none;
  }

  /* 清除浮动 */
  .clearfix::before,
  .clearfix::after {
    content: '';
    display: table;
  }

  .clearfix::after {
    clear: both;
  }

  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #4a3c61;
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.25);
    height: 13vh;
    position: fixed; 
    top: 0; /* Ensure it sticks to the top */
    left: 0;
    width: 100%; /* Ensure it spans the full width of the viewport */
    z-index: 1000; /* Optional: ensures the navbar stays on top of other content */
  }

.navbar .logo img {
    height: 11vh;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    margin-right: 10%;
}

.nav-links li {
    margin-left: 20px;
}


.nav-links a {
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-links a:hover {
    background-color: #555;
}

.nav-links img {
    width: 100%;
    height: 7vh;
    margin-bottom: 5px;
}

.nav-links span {
    font-size: 1.5vh;
    color: #fad395;
    font-weight: bold;
}

/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #6a5e93;
  width: 230%;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1000;
  padding: 5px 0;
  border-radius: 10px;
  
}

.dropdown-menu li {
  list-style: none;
  padding: 8px 12px;
  text-align: center;
  margin-left: 0;
}

.dropdown-menu li a {
  color: white;
  text-decoration: none;
  display: block;
}

.dropdown-menu li a:hover {
  color: #fad395;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-menu {
  display: block;
}
