@font-face {
  font-family: "NotoSans";
  src: url(/font/NotoSansTC-VariableFont_wght.ttf);
}

@font-face {
  font-family: "SweiSpring";
  src: url(/font/SweiSpringCJKtc-Medium.ttf);
}

* {
  font-family: "NotoSans";
  line-height: 1.4;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: rgb(238, 235, 233);
}
body > header {
  padding: 15px 0px;
  position: sticky;
  top: 0px;
  z-index: 11;
  background-color: rgb(238, 235, 233);
  height: 70px;
  transition: all 0.3s ease-in-out;
}
body > header > div {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0px auto;
}
body > header > div > div.left {
  a {
    text-decoration: none;
    color: black;
    font-weight: 700;
    margin-left: 10px;
    font-size: 18px;
  }
}
body > header > div > div.right {
  z-index: 35;
  display: flex;
  flex-direction: row;
  align-items: center;
  i.fa-bell {
    cursor: pointer;
  }
  div#notification-count {
    position: relative;
    top: -15px;
    left: -7px;

    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    background-color: #950000;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    p#notification-count-number {
      color: #eaeaea;
      font-size: 10px;
      /* margin: 5px; */
      /* border: 2px solid darkgray; */
    }
  }
  div#menu-position-div {
    position: relative;
    top: 20px;
    left: -50px;
    padding: 3px 3px;
    z-index: 30;
    div#visitor-menu,
    div#helper-menu,
    div#host-menu {
      position: absolute;
      top: 10px;
      left: -50px;
      padding: 15px 15px;
      border-radius: 10px;
      width: 150px;
      background-color: #ffffff;
      box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);

      hr {
        border: none;
        height: 1px;
        background-color: rgb(180, 180, 180);
        margin: 8px 5px;
      }
      div {
        padding: 10px 10px;
        text-align: left;
        cursor: pointer;
        border-radius: 10px;

        &:hover {
          background-color: #f3f3f3;
        }
      }
      a {
        text-decoration: none;
        color: #000000;
      }
      display: none;
    }

    div#notification-list {
      position: absolute;
      top: 10px;
      left: -150px;
      padding: 5px 15px;
      border-radius: 10px;
      width: 200px;
      background-color: #ffffff;
      box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
      display: none;
      z-index: 35;
      height: 500px;
      overflow-x: scroll;
      a.notification-item {
        display: block;
        text-decoration: none;
        color: inherit;

        border-radius: 20px;
        margin: 10px 0px;
        padding: 10px;
        background-color: #f2f2f2;
        cursor: pointer;
        &:hover {
          background-color: #e7e5e3;
        }
        div.notification-title {
          font-size: 14px;
          color: #b4aaa0;
        }
        div.notification-message {
          font-size: 14px;
        }
        div.notification-timestamp {
          font-size: 12px;
        }
      }
    }
  }
  button#show-menu-btn {
    border: none;
    background: none;
    padding: 10px 15px;
    border-radius: 30px;
    margin-right: 20px;
    cursor: pointer;
    i {
      margin: 0px 3px;
      cursor: pointer;
    }
    &:hover {
      box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.3);
    }
  }
}

body > dialog#sign-in-dialog {
  width: 300px;
  border-radius: 15px;
  border: none;
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  transition: top 0.5s ease-out;
  padding: 20px 20px;

  p {
    font-size: 14px;
    font-weight: 700;
    text-align: center;
  }
  hr {
    margin: 15px 0px;
  }
  form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    input {
      width: 250px;
      margin-top: 10px;
      margin-bottom: 5px;
      padding: 15px;
      border: 1px solid #cccccc;
      border-radius: 8px;
      outline: #000000;
      &:focus {
        border: 1.5px solid #000000;
      }
    }
    label {
      margin-top: 10px;
    }
    div#sign-in-role-div {
      display: flex;
      flex-direction: row;
      button.sign-in-role {
        margin: 5px 3px;
        padding: 8px 15px;
        border: 1px solid #cccccc;
        border-radius: 20px;
        background-color: white;
        cursor: pointer;
      }

      button.sign-in-role.selected {
        background-color: #eaeaea;
        border: 1px solid #000000;
      }
    }

    button.sign-in-submit-btn {
      width: 200px;
      border: none;
      background: none;
      padding: 15px 15px;
      background-color: rgb(235, 235, 235);
      border-radius: 15px;
      cursor: pointer;
      margin: 10px 0px;
    }
    div#to-sign-up-btn {
      a {
        text-decoration: none;
        color: rgb(162, 139, 121);
        font-weight: 500;
        &:hover {
          background-color: #ede8de;
        }
      }
    }
  }
}

dialog#sign-in-dialog.show {
  top: 80px;
}
