* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
  letter-spacing: 0.5px;
  /* Ensure footer stays at bottom */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top Bar section*/
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 5%;
  background-color: #ffffff;
  border-bottom: 1px solid #eeeeee;
  text-transform: none;
}

/* ----------------- Brand Name ------------ */
.brand-name {
  font-family: "Comic Neue", cursive;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.brand-name a {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
}
/* Style for the "Symbio" part */
.brand-name span:first-child {
  color: #4caf50; /* A vibrant, natural green */
  text-shadow: 2px 2px 0px #a5d6a7; /* A softer green for the shadow */
}
/* Style for the "Ed" part */
.brand-name span:last-child {
  color: #2196f3; /* A bright, intelligent blue */
  text-shadow: 2px 2px 0px #90caf9; /* A softer blue for the shadow */
}

/*-------------Login icon-------------*/
.header-icons {
  display: flex;
  align-items: center;
}

.login-button {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* Increased gap for better spacing */
  padding: 8px 16px; /* Increased padding for better click area */
  font-size: 1rem;
  font-weight: 600;
  background-color: #ffffff;
  border: 1.5px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-button {
  color: #4caf50; /* Green text color */
}

.login-button .material-icons {
  font-size: 1.25rem; /* Slightly larger icon */
  line-height: 1;
  color: #2196f3; /* Blue icon color */
}

.login-button:hover,
.login-button:focus {
  background-color: #f5f5f5; /* Light gray background on hover/focus */
  border-color: #4caf50; /* Green border on hover/focus */
  color: #4caf50; /* Keep green text color on hover/focus */
}

.login-button:hover .material-icons,
.login-button:focus .material-icons {
  color: #1e88e5; /* Darker blue icon color on hover/focus */
}

/* Add focus styles for accessibility */
.login-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px #4caf50; /* Green focus ring */
}

/* Optional: Add active styles */
.login-button:active {
  transform: scale(0.98); /* Slightly scale down on click */
  background-color: #e0e0e0; /* Darker gray background on active */
}

/* ----------Main page----------*/
main {
  /* 縮小容器寬度讓卡片更靠攏 */
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
  flex: 1; /* Push footer down */
}

/* ------------Footer-----------*/
footer {
  border-top: 1px solid #e5e5e5;
  padding: 40px 5%;
  background-color: #ffffff;
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: 2px;
  color: #767676;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copyright {
  font-weight: 300;
}

/*---Choose language section---*/
.language-box {
  position: relative;
  display: inline-block;
}
.lang-box-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: 1.5px;
  color: #1a1a1a;
  background-color: #ffffff;
  border: 1px solid #d0d0d0;
  border-radius: 50px;
  padding: 8px 16px;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}
.lang-box-btn:hover {
  color: #4caf50;
  background-color: #e8f5e9; /* a light green background */
}
.lang-box-btn .material-icons {
  font-size: 18px;
  transition: transform 0.3s ease;
}
.lang-options {
  position: absolute;
  bottom: 100%; /* Position above the button */
  left: 0;
  right: 0;
  background-color: #ffffff;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  list-style: none;
  margin-bottom: 6px; /* Space between dropdown and button */
  padding: 6px 0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08); /* Shadow above */
  opacity: 0;
  transform: translateY(10px); /* Start position below */
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  pointer-events: none; /* Disable interaction when hidden */
}
.language-box.active .lang-options {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.language-box.active .lang-box-btn .material-icons:last-child {
  transform: rotate(180deg);
}
.lang-options a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: #1a1a1a;
  transition: background-color 0.2s;
}
.lang-options a.active {
  background-color: #f0f0f0;
  font-weight: 600;
}
.lang-options a:not(:last-child) {
  border-bottom: 1px solid #f0f0f0;
}
@media (max-width: 768px) {
  footer {
    padding: 30px 20px;
  }

  .footer-container {
    flex-direction: column-reverse;
    gap: 20px;
    align-items: center;
  }

  .lang-box-btn {
    padding: 8px 14px;
  }
}
