/*Header CSS script for all pages*/

.navicon{
  font-family: "ionicon";
  font-optical-sizing: auto;
  font-size: 75%;
  padding-right: 4px;
}

.main_menu {
  width: 100%;
  margin: 0 auto;
  border-top: 15px solid #912b29;
}

.inner_header {
  max-width: 1300px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 10px;
  display: flex;
  flex-direction: row;
}

.logo {
  width: calc(310px + 3vw);
  height: auto;
}

.img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: auto;
  object-fit: cover;
  padding-top: 30px;
}

.navbar_fullscreen {
  display: none;
  position: fixed;
}

.navbar_head {
  width: calc(100% - 350px - 3vw);
  box-sizing: border-box;
  padding-top: 20px;
  padding-left: 50px;
  padding-right: 30px;
  font-weight: 300;
  font-style: light;
  float:right;
}

.navbar_head nav {
  display: flex;
  flex-direction: row;
  float: right;
}

.navbar_head ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

.navbar_head li, .navbar_head a {
  display:inline-block;
  text-align:center;
  hyphens: none;
}

.navbar_head a {
  color: #869879;
  font-size: calc(15px + 0.4vw);
  padding: 14px 42px;
  padding-right: 0;
}

.navbar_head a:hover {
  font-weight: 500;
  letter-spacing: 0.0215em; 
  color: #912b29;
}

.navbar_head a::before {
  display: block;
  content: attr(title);
  font-weight: 300;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  letter-spacing: 0.0215em;
}

a.navbarlink_active {
  color: #912b29;
}

.navbar_head .icon{
  color: #869879;
  display: none;
}

/*To prevent navbar sliding over logo*/
@media screen and (max-width: 1230px) {
  .inner_header {
    flex-direction: column;
  }

.logo {
  width: calc(300px + 3vw);
  height: auto;
}
  
  .navbar_head {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .navbar_head nav {
    float: none;
    justify-content: right;
  }

  .navbar_head ul {
    padding-left: 0;
  }
}

/*Make Content accessible for smaller devices i.e. smartphones/tablets*/
@media screen and (max-width: 768px) {
  .inner_header {
    flex-direction: row;
  }
  
  .logo {
    width: calc(400px + 1.5vw);
    float: left;
  }
  
  .img {
    padding-top: 15px;
  }
  
  .navbar_head {
    width: calc(100% - 150px - 3vw);
    box-sizing: border-box;
    padding-top: 21px;
    padding-left: 5px;
    padding-right: 10px;
    float: right;
  }
  
  .navbar_head nav {
    float: right;
    justify-content: flex-end;
  }
  
  .navbar_head a {
    display:none;
  }
  
   .navbar_head a.icon {
    display: block;
    float: right;
    padding: 0;
  }
  
  .navbar_head .icon.responsive {
    display: none;
  }
  
/*
   .screennav {
    transition: 0.5s; 
  } 
*/
  
  .navbar_fullscreen.responsive {
    display: block;
    z-index: 1;
    width: 100%;
    height: 0%;
    background-color: #869879;
    color: #fefcf9;
    font-size: calc(20px + 0.4vw);
    overflow-y: hidden;
    font-weight: 300;
    font-style: normal;
  }
  
  .navbar_fullscreen.responsive a.icon {
    position: fixed;
    top: 45px;
    right: 30px;
    font-size: calc(25px + 0.4vw);
    text-decoration: none;
    color: #fefcf9;
  }
  
  .navbar_fullscreen.responsive ul {
    box-sizing: border-box;
    padding: 0;
    position: relative;
    top: 25%;
    margin-top: 30px;
    width: 100%;
    list-style: none;
  }
  
  .navbar_fullscreen.responsive li {
    text-align: center;
    padding-top: 30px;
    padding-bottom: 6px;
  }
  
  .navbar_fullscreen.responsive a.navbarlink {
    color: #fefcf9;
  }
  
  .navbar_fullscreen.responsive a:hover {
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #912b29;
  }
  
  .navbar_fullscreen.responsive a.navbarlink_active {
    color: #912b29;
  }
}
