/* Layout */
header {
  position: fixed;
  top: 0px;
  max-height: 100%;
  width: 100%;
  background: white;
  z-index: 2;
  overflow: auto;
}

main {
  padding-top: 78px;
  display: flex;
  justify-content: center;
}

button {
  cursor: pointer;
  border: 0;
  background-color: rgb(255 255 255);
}

.d-none {
  display: none !important;
}

@media screen and (max-width: 960px) {
  html {
    width: 100%;
  }

  body {
    width: 100%;
    min-width: 320px;
  }
}

@media (max-width: 768px) {
  body {
    position: relative;
    min-height: 100vh;
    overflow: auto !important;
    background: #f8f6f1;
  }

  header {
    position: fixed;
    top: 0px;
    max-height: 100%;
    width: 100%;
    background: white;
    z-index: 1;
    overflow: auto;
    user-select: none;
  }
}

@media (max-width: 450px) {
  #Logo img {
    height: 32px;
    width: 145px;
  }
}

/* Navbar */
.navbar {
  padding: 14px 22px 14px 22px;
  border-bottom: 3px solid #56d1e0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

/*Logo*/
.navbar #Logo {
  margin-right: auto;
}

.navLogo {
  width: auto;
  height: 36px;
  max-height: 100%;
  -o-object-fit: contain;
  object-fit: contain;
}

/*登入按鈕*/
.navbar #Login {
  font-weight: bold;
  border-width: 0;
  background-color: rgb(255 255 255);
  font-size: inherit;
  width: 80px;
  height: 27px;
}

.navbar #Login:hover {
  background-color: #CCCCCC;
}

/*人頭按鈕*/
.navbar #user {
  all: unset;
  cursor: pointer;
  width: 36px;
}

/*人頭選單*/
.tooltipContent {
  position: fixed;
  top: 60px;
  right: 20px;
  z-index: 10;
  padding: 0px 0px 8px 0px;
  background: white;
  border: 3px solid #878787;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.tooltipContent.hide {
  display: none;
}

.tooltipContent #LogoutMobile {
  color: red;
}

.tooltipContent .nav-link {
  padding: 0px 16px;
  color: black;
  font-size: 16px;
}

.tooltipContent button:hover {
  background-color: #CCCCCC;
}

/*使用者名稱*/
#UserName {
  background-color: #eeeeee;
  font-weight: bold;
  border-bottom: 3px solid transparent;
  border-radius: 8px 8px 0px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*人頭hover*/
.navbar .navbar_user_hover {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  margin-right: 20px;
}

.navbar .navbar_user_hover:hover {
  border-radius: 100%;
  background-color: #CCCCCC;
}

.navbar .navbar_hover_show {
  border-radius: 100%;
  background-color: #CCCCCC;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
}

/*RWD*/
@media (max-width: 768px) {
  .navbar #Logo {
    margin-right: auto;
  }

  .navbar #user {
    display: block;
    position: relative;
  }

  .tooltipContent {
    position: fixed;
    top: 60px;
    right: 20px;
    z-index: 10;
    padding: 8px 0px;
    background: white;
    border: 2px solid #878787;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .tooltipContent .nav-link {
    padding: 0px 16px;
    color: black;
    font-size: 16px;
  }

  .tooltipContent #LogoutMobile {
    color: red;
  }
}

@media (max-width: 450px) {
  .navbar .navbar_user_hover {
    margin-right: 0px;
  }
}
