@font-face {
  font-family: 'My Font';
  src: url('../lib/font/1FTV-HF-Gesco.ttf') format('truetype');
}


header {
  background: rgba(0, 0, 0, 0);
  color: white;
  padding: 10px 20px;
  position: fixed;
  z-index: 1000;
  width: 100%;
  transition: background-color 0.3s ease-in-out;
  font-family: My Font, sans-serif;
}

header.active {
  background: #0A4D3C;
}

/*header.active .logo h1 {*/
/*  color: white;*/
/*}*/

header .container-header-session {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  color: black;
  text-decoration: none;
}

.logo h1 {
  color: #FCB92C;
  font-size: 50px;
}

.logo img {
  width: 60px;
  height: 60px;
  margin-right: 10px;
  border-radius: 50%;
}

.for-media {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  width: 100%;
}

.navbar {
  list-style: none;
  display: flex;
  gap: 15px;
}

.navbar li {
  display: inline;
}

.navbar a {
  text-decoration: none;
  background: #FFEFD6;
  color: black;
  padding: 5px 10px;
  font-size: 1rem;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.navbar a:hover {
  background-color: #FCB92C;
  color: black;
  border-radius: 5px;
}

.navbar a.active {
  background-color: #FCB92C;
  color: black;
  border-radius: 5px;
}

.navbar i {
  color: #0A4D3C;
  margin-right: 10px;
  transition: all 0.2s ease-in-out;
}

.navbar a:hover i{
  transform: scale(1.3);
}

.icon-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.login-btn i{
  color: #FCB92C;
  margin: 0 20px;
  transition: all 0.3s ease;
}

.login-btn i:hover {
  color: #FCB92C;
  transform: scale(1.3);
}

.menu-toggle {
  display: none;
  color: #FCB92C;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 80px;
  right: 0;
  width: 100%;
  background: #FCB92C;
  list-style: none;
  flex-direction: column;
  padding: 15px 20px;
  gap: 10px;
  animation: slideIn 0.3s ease;
  z-index: 999;
}

.mobile-menu li a {
  color: #0A4D3C;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu.show {
  display: flex;
  animation: slideIn 0.3s ease;
}

.dropdown-menu {
  position: absolute;
  top: 80px;
  right: 60px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 5px;
  display: flex;
  flex-direction: column;
  z-index: 10000;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  gap: 5px;
}

.dropdown-menu a {
  text-decoration: none;
  color: black;
  transition: all 0.3s ease;
  border-radius: 5px;
  padding: 0 20px;
}

.dropdown-menu a:hover {
  background-color: #fcb92c;
  color: #000000;
}

#langToggle:checked ~ .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.flag-circle {
  font-family: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif;
  font-size: 1.3rem;
}

.account-menu {
  display: none;
  position: absolute;
  top: 80px;
  right: 60px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.account-menu h2 {
  font-family: "My Font", sans-serif;
  font-size: 1.5rem;
  color: #000000;
  margin: 10px 20px;
}

.account-menu i {
  margin: 0 5px;
}

.account-menu ul {
  display: flex;
  flex-direction: column;
  padding: 10px 5px;
  width: 100%;
  height: 100%;
}

.account-menu li {
  display: inline-flex;
  width: 100%;
}

.account-menu li a {
  text-decoration: none;
  padding: 5px 10px;
  width: 100%;
  color: black;
  font-family: "My Font", sans-serif;
  border-radius: 5px;
  margin: 5px 0;
}

.account-menu li a:hover {
  background-color: #d3d3d3;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@media (max-width: 1370px) {
  .nav-text {
    display: none;
  }
}

@media (max-width: 670px) {
  .navbar {
    display: none;
  }

  .nav-text {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .container-header-session {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .account-menu h2 {
    font-size: 1.3rem;
  }
}

@media (min-width: 671px) {
  .for-media {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-direction: row;
    width: auto;
  }

  .mobile-menu {
    display: none !important; /* ẩn đi menu mobile */
  }
}
