/* Base styles */
body {
  font-family: Arial;
  margin: 0;
  padding: 15px;
  line-height: 1.6;
}

/* Main page layout */
.page-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.profile-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.25em;
  text-align: center;
}

.profile-photo {
  display: block;
  width: 180px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 0 1.5em;
}

.profile-name {
  margin: 0;
  line-height: 1.25;
}

.profile-name-chinese {
  margin: 0.2em 0 0.5em;
  font-size: 1.15em;
}

.profile-email {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}

.profile-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8em;
  margin-top: 1em;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  text-decoration: none;
}

.profile-links a:hover {
  text-decoration: none;
}

.main-column {
  min-width: 0;
}

@media screen and (max-width: 600px) {
  body {
    font-size: 14px;
  }

  .page-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .profile-photo {
    width: 160px;
  }
}

/* Link styles */
a:link {
  color: green;
  background-color: transparent;
  text-decoration: none;
}
a:visited {
  color: purple;
  background-color: transparent;
  text-decoration: none;
}
a:hover {
  color: red;
  background-color: transparent;
  text-decoration: underline;
}
a:active {
  color: yellow;
  background-color: transparent;
  text-decoration: underline;
}

/* Style the tab */
.tab {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
}

/* Style the buttons inside the tab */
.tab button {
  background-color: inherit;
  white-space: nowrap;
  flex-shrink: 0;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 9px 12px;
  transition: 0.3s;
  font-size: 15px;
}

/* Add mobile-specific adjustments */
@media screen and (max-width: 600px) {
.tab button {
padding: 5px 7px;
font-size: 14px;
}
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
}

/* Map styles */
.legend {
  padding: 6px 8px;
  font: 12px Arial, Helvetica, sans-serif;
  background: white;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  line-height: 24px;
}
.legend i {
  width: 18px;
  height: 18px;
  float: left;
  margin-right: 8px;
  opacity: 0.7;
}

@media screen and (max-width: 600px) {
  .legend {
    padding: 4px 6px;
    font: 11px Arial, Helvetica, sans-serif;
    line-height: 20px;
  }
  .legend i {
    width: 16px;
    height: 16px;
    margin-right: 6px;
  }
}
