/**************************/
/* GENERAL */
/**************************/
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 400;
  color: #535353;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

img {
  border: 0;
  vertical-align: middle;
  display: inline-block;
}
button {
  border: 0;
  cursor: pointer;
}

/**************************/
/* HEADER */
/**************************/

.header-nav {
  background-color: #fff;
  height: 6rem;
  position: relative;
  box-shadow: 0 0 3.2rem rgba(189, 189, 189, 0.3);
}
.header-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100rem;
  height: 6rem;
  padding: 1.2rem 0;
  margin: 0 auto;
}
.header-logo {
  height: 2rem;
}

/**************************/
/* NAVIGATION */
/**************************/

.main-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.main-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.6rem;
  text-decoration: none;
  color: #535353;
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 2rem;
}

.main-nav-link.nav-cta:link,
.main-nav-link.nav-cta:visited {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10.3rem;
  height: 3.6rem;
  border-radius: 6px;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 2rem;
  background-color: #535353;
  transition: all 0.3s;
}

.main-nav-link.nav-cta:hover,
.main-nav-link.nav-cta:active {
  background-color: #ff057d;
}

.text-username {
  color: #ff057d;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  /* Limit the Text line */
  -webkit-line-clamp: 1;
}
.log-out {
  font-weight: 400;
}

/* MOBILE */
.btn-mobile-nav {
  border: none;
  background: none;
  cursor: pointer;
  padding: 1.2rem;
  display: none;
}

.icon-mobile-nav {
  width: 2.4rem;
}

.icon-mobile-nav[name="close-outline"] {
  display: none;
}

.header-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(52, 52, 52, 0.6);
  backdrop-filter: blur(2px);
  z-index: 999;

  transition: all 0.5s ease-in;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/**************************/
/* FOOTER */
/**************************/
.footer {
  background-color: #fff;
  height: 16rem;
  box-shadow: 0 0 3.2rem rgba(189, 189, 189, 0.3);
}
.footer-container {
  width: 100rem;
  height: 16rem;
  padding: 3.2rem 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.footer-logo-community {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.footer-logo {
  height: 2rem;
}
.footer-community {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.footer-community-icon {
  width: 2.4rem;
}
.footer-links {
  display: flex;
  gap: 1.6rem;
}
.footer-text {
  font-size: 1.2rem;
  line-height: 2rem;
  color: #343434;
}
.footer-address {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
}

/**************************/
/* BELOW 1024px  */
/**************************/
/* below 1024px */
@media (max-width: 64em) {
  .header-nav-container,
  .footer-container {
    width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/**************************/
/* BELOW 944px (Tablets) */
/**************************/
/* below 944px */
@media (max-width: 59em) {
  .btn-mobile-nav {
    display: block;
  }
  .header-main-nav {
    background-color: #fff;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    right: 0;
    width: 20rem;
    height: 100vh;
    transform: translateX(100%);

    display: flex;
    justify-content: center;
    transition: all 0.5s ease-in-out;

    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    z-index: 1000;
  }

  .header-nav-open .header-main-nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);
  }

  .header-nav-open .header-overlay {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .main-nav-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .main-nav-link {
    justify-content: flex-start;
    width: 20rem;
    height: 6rem;
    padding: 1.6rem;
  }
  .nav-cta {
    margin-left: 1.6rem;
    margin-top: 1.6rem;
    margin-bottom: 1.6rem;
  }
  .text-username {
    width: 20rem;
    padding: 1.6rem;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }
}

/**************************/
/* BELOW 704px (Smaller tablets) */
/**************************/

@media (max-width: 44em) {
  .footer {
    height: auto;
  }
  .footer-container {
    /* width: 37.5rem; */
    height: auto;
    padding-left: 1.6rem;
  }
  .footer-address {
    gap: 0.8rem;
  }
}
