/* ham menu */
#menuToggle {
  display: block;
  position: relative;
  top: 50px;
  left: 50px;

  -webkit-user-select: none;
  user-select: none;

  /* background-color: red;
  padding: 15px;
  border-radius: 50%; */
}

#menuToggle input {
  display: block;
  width: 60px;
  height: 52px;
  position: absolute;
  top: -7px;
  left: -5px;

  cursor: pointer;

  opacity: 0; /* hide this */
  z-index: 2; /* and place it over the hamburger */

  -webkit-touch-callout: none;
}

/*
  * Just a quick hamburger
  */
/* 漢堡選單 */
#menuToggle span {
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;

  background: #1a4e76;
  border-radius: 3px;

  z-index: 50;

  transform-origin: 4px 0px;

  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
    background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease;
}

#menuToggle span:first-child {
  transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2) {
  transform-origin: 0% 100%;
}

/*
          * Transform all the slices of hamburger
          * into a crossmark.
          */
#menuToggle input:checked ~ span {
  opacity: 1;
  transform: rotate(45deg) translate(-2px, -1px);
  background: white;
}

/*
          * But let's hide the middle one.
          */
#menuToggle input:checked ~ span:nth-last-child(3) {
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

/*
          * Ohyeah and the last one should go the other direction
          */
#menuToggle input:checked ~ span:nth-last-child(2) {
  transform: rotate(-45deg) translate(0, -1px);
}

/*
          * Make this absolute positioned
          * at the top left of the screen
          */
#menuToggle input ~ ul {
  position: absolute;
  width: 320px;
  margin: -100px 0 0 -50px;
  padding: 50px;
  padding-top: 125px;

  /* menu close bg color */
  background: #1a4e76;
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  /* to stop flickering of text in safari */

  transform-origin: 0% 0%;
  transform: translate(40%, 0);

  transition: transform 1s cubic-bezier(0.77, 0.2, 0.05, 1);
}

#ham_menu li {
  padding: 20px 0;
  font-size: 22px;
  color: white;
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 500;
  text-align: center;
  padding-left: 10px;
  width:280px;
}

#ham_menu a {
  text-decoration: none;
}

/*  And let's slide it in from the left */
#menuToggle input:checked ~ ul {
  transform: translate(-60%, 0);
  background-color: #1a4e76;
}

#nav {
  position: fixed;
  right: 100px;
  z-index: 30;
}
.linkto:hover {
  background-color: #f61d2e;
}
/* ham menu end */

/* hover color */
.linkto0:hover {
  background-color: #bcb4a9;
}
.linkto1:hover {
  background-color: #968715;
}
.linkto2:hover {
  background-color: #0d395b;
}
.linkto3:hover {
  background-color: #7c151c;
}
