/*
Purpose: Provides styling for the header section of webpages
Author(s) / Work Done: 
Devon Leigh - HTML element styling
*/

@import url("https://fonts.googleapis.com/css?family=Spartan");

/*html elements section*/
html {
  font-family: "Spartan", sans-serif;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  font-family: "Spartan";
  color: rgb(52, 178, 195);
  height: 6%;
  z-index: 10;
}

/*developer defined classes*/
.header-container {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-around;
  height: 5rem;
  margin: 0 auto;
  padding-right: 15px;
  padding-left: 15px;
  background-color: white;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.org-stuff {
  color: black;
  font-size: 18px;
  display: flex;
  justify-content: left;
}

.org-stuff:hover{
  color: rgb(39, 162, 186);
}

.org-stuff p {
  margin-top: 2rem;
  margin-left: 0rem;
}

.org-name span {
  color: rgb(39, 162, 186);
}

.nav-brand{
  background-size:cover;
  background-image: url("../Resource/pics/nameup.jpg");
  height: 4.5rem;
  width: 8rem;
  /*transition for animation smoothing*/
  transition: all linear 0.3s;
}

.nav-brand:hover{
  background-image: url("../Resource/pics/mainlogo.jpg");
  background-size: cover;
  height: 5rem;
  width: 8rem;
  /*transition for animation smoothing*/
  transition: all linear 0.3s;
}

.nav-header:hover a.org-name {
  font: italic;
  color: rgb(18, 114, 169); /* Change the color to your desired value */
}

.main-logo img {
  width: 100%;
  height: 100%;
}

.nav-bar {
  display: flex;
  align-items: center;
}

.nav-bar ul {
  display: flex;
  align-items: center;
  list-style: none;
}

.nav-bar li {
  flex: 0 0 auto;
  margin-left: 1rem;
  list-style: none;
}

.nav-bar a {
  color: black;
  opacity: 100%;
  /*text color transition*/
  transition: color 400ms ease-out;
  line-height: 1;
  font-size: 1rem;  
}

.nav-bar a:link {
  text-decoration: none;
}

.nav-bar a:focus {
  color: rgb(39, 162, 186);
}

.nav-bar a:hover {
  color: rgb(0, 77, 128);
}

.nav-bar a {
  color: black;
  /*link transition for all browsers*/
  -o-transition: 0.5s;
  -ms-transition: 0.5s;
  -moz-transition: 0.5s;
  -webkit-transition: 0.5s;
  transition: 0.5s;
}

a:link {
  text-decoration: none;
}




@media screen and (max-width: 768px) {
  .menu-btn {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem;
    margin-right: -1rem;
    background: none;
    border: 0;
  }

  .menu-btn_burger {
    width: 40px;
    height: 5px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 2px black;
    /*transition for animation smoothing*/
    transition: all 0.3s linear;
  }
  .menu-btn_burger::before,
  .menu-btn_burger::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 5px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 2px black;
    /*transition for animation smoothing*/
    transition: all 0.3s linear;
  }
  .menu-btn_burger:hover,
  .menu-btn_burger:hover::before,
  .menu-btn_burger:hover::after {
    background: rgb(0, 113, 128);
  }
  /*y position in before state*/
  .menu-btn_burger::before {
    transform: translateY(-12px);
  }
  /*y position in after state*/
  .menu-btn_burger::after {
    transform: translateY(12px);
  }
  /*animation that changes the degrees of the lines and position when menu bar is opened*/
  .menu-btn.open .menu-btn_burger {
    transform: translateX(-50px);
    background: transparent;
    box-shadow: none;
  }

  /*animation that changes the degrees of the lines and position when menu bar is opened*/
  .menu-btn.open .menu-btn_burger::before {
    transform: rotate(45deg) translate(35px, -35px);
  }
  /*animation that changes the degrees of the lines and position when menu bar is opened*/
  .menu-btn.open .menu-btn_burger::after {
    transform: rotate(-45deg) translate(35px, 35px);
  }
}


/*when max-width is less than 768px, adjust content to be responsive*/
@media screen and (max-width: 768px) {
  .nav-bar {
    display: flex;
    justify-content: flex-end;
    position: absolute;
    top: 0;
    right: 0;
    width: 0%;
    height: 1000px;
    overflow-x: hidden;
    text-align: right;
    /*applys a transition to nav-bar for smoothing*/
    transition: 0.3s;
    z-index: 9999;
  }
  ul {
    display: block;
  }
  li {
    margin: 0 0 1rem;
    list-style: none;
  }
  .nav-bar a {
    color: black;
    padding: 8px 8px 8px 32px;
    font-size: 26px;
    /*transition for all link elements, specified specifically for each browser type4*/
    -o-transition: 0.5s;
    -ms-transition: 0.5s;
    -moz-transition: 0.5s;
    -webkit-transition: 0.5s;
    transition: 0.5s;
  }

  /*when max-width is less than 568px, adjust content to be responsive*/
  @media screen and (max-width: 568px) {
    .nav-bar a {
      font-size: 1rem;
    }
  }
}