/* Main Navigation
====================================*/

.selectnav {
  display: none;
  cursor: pointer;
  width: 100%;
  padding: 8px;
  height: 37px;
  float: left;
  font-size: 14px;
  margin: 15px 0;
}

#navigation ul, #navigation li {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline;
}

#navigation ul li {
  float: left;
  position: relative;
}

#navigation ul li a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: bolder;
  padding: 10px 18px;
}

#navigation ul li a:hover {
  background-color: #075420;
  color: #fff;
  -webkit-transition: all 0.1s ease-in-out;
  -moz-transition: all 0.1s ease-in-out;
  -o-transition: all 0.1s ease-in-out;
  -ms-transition: all 0.1s ease-in-out;
  transition: all 0.1s ease-in-out;
}

#navigation ul ul {
  position: absolute;
  display: none;
  top: 51px;
  left: 0;
  background: #fff;
  z-index: 999;
}

#navigation ul ul li a {
  color: #555;
}

#navigation ul ul li a:hover {
  color: #626262;
}

#navigation ul ul li a {
  display: block;
  width: 150px;
  margin: 0;
  padding: 9px 18px;
  font-family: Arial, "Microsoft JhengHei";
  font-weight: normal;
  font-size: 16px;
  border-bottom: 1px solid #c3c3c3;
  background: none;
}

#navigation ul ul ul {
  position: absolute;
  top: 0px;
  left: 100%;
  z-index: 999;
}

#navigation ul ul ul li a {
  border-bottom: 1px solid #404040 !important;
  border-top: 1px solid transparent;
  background: none;
}

#navigation ul ul li:last-child a, #navigation ul ul li:last-child a:hover {
  border-bottom: 1px solid transparent
}

#navigation ul ul ul li:last-child a {
  border-bottom: 1px solid transparent !important
}

#navigation ul li:hover>ul {
  opacity: 1;
  position: absolute;
  top: 99%;
  left: 0;
}

#navigation ul ul li:hover>ul {
  position: absolute;
  top: 0;
  left: 100%;
  opacity: 1;
  z-index: 497;
}

#navigation ul ul li:hover>a {
  color: #fff;
}

.sel {
  background: #eb6100;
}

@media only screen and (max-width: 1024px) {
  .selectnav {
    display: none;
    cursor: pointer;
    width: 100%;
    padding: 8px;
    height: 37px;
    float: left;
    font-size: 14px;
    margin: 15px 0;
  }
  #navigation {
    display: block;
    width: 100%;
    float: left;
  }
  #navigation ul, #navigation li {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline;
  }
  #navigation ul li {
    float: left;
    position: relative;
  }
  #navigation ul li a {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    padding: 13px 10px;
  }
  #navigation ul li a:hover {
    color: #626262;
    -webkit-transition: all 0.1s ease-in-out;
    -moz-transition: all 0.1s ease-in-out;
    -o-transition: all 0.1s ease-in-out;
    -ms-transition: all 0.1s ease-in-out;
    transition: all 0.1s ease-in-out;
  }
  #navigation ul ul {
    position: absolute;
    display: none;
    top: 51px;
    left: 0;
    background: #fff;
    z-index: 999;
  }
  #navigation ul ul li a {
    color: #555;
  }
  #navigation ul ul li a:hover {
    color: #626262;
  }
  #navigation ul ul li a {
    display: block;
    width: 150px;
    margin: 0;
    padding: 9px 18px;
    font-family: Arial, "Microsoft JhengHei";
    font-weight: normal;
    font-size: 15px;
    border-bottom: 1px solid #c3c3c3;
    background: none;
  }
  #navigation ul ul ul {
    position: absolute;
    top: 0px;
    left: 100%;
    z-index: 999;
  }
  #navigation ul ul ul li a {
    border-bottom: 1px solid #404040 !important;
    border-top: 1px solid transparent;
    background: none;
  }
  #navigation ul ul li:last-child a, #navigation ul ul li:last-child a:hover {
    border-bottom: 1px solid transparent
  }
  #navigation ul ul ul li:last-child a {
    border-bottom: 1px solid transparent !important
  }
  #navigation ul li:hover>ul {
    opacity: 1;
    position: absolute;
    top: 99%;
    left: 0;
  }
  #navigation ul ul li:hover>ul {
    position: absolute;
    top: 0;
    left: 100%;
    opacity: 1;
    z-index: 497;
  }
  #navigation ul li:hover>a {
    color: #fff;
  }
  #navigation ul ul li:hover>a {
    color: #fff;
  }
}

@media only screen and (max-width: 767px) {
  #navigation {
    float: none;
  }
  .js .selectnav {
    display: block;
  }
  .js #nav, .slide-caption, .search-form, #tagline, .social-icons, .widget, .widget-alt, #navigation ul li a {
    display: none;
  }
  .social-icons.about {
    display: block;
    margin-bottom: 30px;
  }
  #contact-details {
    text-align: center;
    float: left;
  }
  #scroll-top-top {
    display: none;
  }
  .icon-box i {
    margin-left: -10px !important;
  }
  .post-meta {
    display: none;
  }
  .post-title h2 {
    line-height: 26px;
    margin-bottom: 15px;
  }
  .post-icon {
    margin-top: 28px;
  }
  #filters, #portfolio-navi {
    position: relative;
    text-align: left;
    display: block;
    margin: 0 0 23px 0;
  }
  #portfolio-navi {
    margin: -5px 0 25px 0;
  }
  .portfolio-item {
    margin: 5px 0 25px 0 !important;
  }
  .item-description.related {
    margin-bottom: 30px;
  }
}
