/**
 * STYLING FOR VARIOUS MENUS AND NAVIGATION BARS.
 * Author: Rafael D.
 * Last Modified: 1/11/2024
 *
*/

/* HEADER NAVIGATIONAL MENU */
#navMenu
{
  box-sizing: border-box;
  border-top: 0.4vw solid black;
  border-bottom: 0.4vw solid black;
  background-color: rgba(220, 220, 219, 0.6);
  width: 100%;
  height: 75px;
  display: flex;
  /*justify-content: space-between;*/
  position:sticky;
  top: 0;
  flex-direction: row;
  max-height: 90px;
  z-index: 99;
}
#navMenu *
{
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}
#menuContent
{
  /*border: 0.2vw solid red;*/
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  width: 100%;
}
/*
For larger screen sizes, resize the logo;
In the future, may be changed to adjust whole navigation menu.
*/
@media screen and (min-width: 1440px)
{
  #logoLink > img
  {
    width: auto;
  }
}
#navMenu > #menuContent > nav
{
  /*border: 0.2vw solid red;*/
  display: flex;
  align-items: center;
  width: 80%;
}

#navMenu > #menuContent > #loginButton
{
  /*border: 0.2vw solid blue;*/
  padding-left: 0.4vw;
  height: 4.5vw;
  min-height: 50px;
  max-height: 70px;
  width: 80%;
  align-self: center;
  order: 0;
}
#loginButton > button
{
  margin-top: 1%;
  height: 70%;
  width: 4vw;
  border-radius: 15%;
  margin-left: 5%;
}
#navMenu > #menuContent > #loginButton > #logoutDisplay
{
  /*border: 0.2vw solid green;*/
  height: 100%;
  width: 100%;
  flex-direction: row;
  align-items: center;
}
#logoutDisplay > button
{
  background-color: lightcoral;
  height: inherit;
  width: 20%;
  max-width: 100px;
  min-width: 70px;
  border-radius: 20%;
  font-weight: bold;
}
#logoutDisplay > button:hover
{
  background-color: darkred;
  color: lightcoral;
}
#welcomeBox
{
  /*border: 0.2vw solid red;*/
  width: 65%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
#welcomeText {
  font-family: inherit;
}
#navMenu > #menuContent > #loginButton > #formbox
{
  /*border: 0.2vw solid red;*/
  border: 0.3vw solid black;
  flex-direction: row;
  position: absolute;
  left: auto;
  top: 76px;
  background-color: grey;
  color: aliceblue;
  padding: 0.5vw 1vw;
  align-items: center;
}
#navMenu > #menuContent > #loginButton > #formbox > form
{
  /*border: 0.2vw solid green;*/
  padding-right: 2vw;
}
#navMenu > #menuContent > #loginButton > #formbox > a
{
  /* border: 0.2vw solid purple; */
  display: flex;
  justify-content: center;
  align-items: center;
  border-right: 0.2vw solid darkgray;
  border-bottom: 0.2vw solid darkgray;
  text-decoration: none;
  color: black;
  background-color: lightgrey;
  /* width: 4vw; */
  height: 5vw;
  max-height: 40px;
  padding: 5px 5px;
}
#navMenu > #menuContent > #loginButton > #formbox > a:hover
{
  color: brown;
}
#navMenu > #menuContent > #loginButton > #formbox 
{
  background-color: darkgray;
  border-left: 0.2vw solid rgb(20, 20, 20);
  border-top: 0.2vw solid rgb(20, 20, 20);
  color: white;
}
#navMenu > #menuContent > #loginButton > #formbox 
{
  background-color: darkgray;
  border-left: 0.2vw solid rgb(20, 20, 20);
  border-top: 0.2vw solid rgb(20, 20, 20);
  color: white;
}
/* .active:first-child
{
  border-left: 0.4vw solid black;
} */
.active
{
  /*border: 0.2vw solid green;*/
  display: flex;
  color: rgb(19, 17, 17);
  width: 60.3%;
  font-size: large;
  height: 100%;
}
.active:hover
{
  background-color: rgb(104, 98, 83);
  color: rgb(240, 143, 143);
}
.active:active
{
    color: whitesmoke;
}
.active > a
{
  /*border: 0.2vw solid purple;*/
  width: 100%;
  margin: auto;
  text-align: center;
  display: inline-flex;
  color: inherit;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
}
.active > a > h3
{
  /*border: 0.2vw solid red;*/
  margin: auto;
  padding: 0.3vw;
  box-sizing: border-box;
}
#toggle {
  display: none;
}

/**
  Hamburger
**/
.hamburger {
  /*border: 0.2vw solid blue;*/
  /*position: fixed;*/
  /* top: 3em;
  right: 5%;
  margin-left: -2em;
  margin-top: -45px;
  width: 2em;
  height: 45px;*/
  order: 0;
  z-index: 5;
  margin-left: 10%;
  margin-right: 2%;
  padding: 0.2vw 0;
  display: none;
}

.hamburger div {
  position: relative;
  width: 3em;
  height: 7px;
  border-radius: 3px;
  background-color: #c0a485;
  margin-top: 8px;
  transition: all 0s ease-in-out;
}

/**
Styling navbar
**/
.nav1 {
  /*border: 0.2vw solid blue;*/
  box-sizing: border-box;
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: #F0ECFC;
  top: -100%; left: 0%; right: 0%;
  overflow-y: auto;
  transition: all 0.3s ease-in-out;
  transform: scale(0);
}
.nav1-wrapper {
  position: relative;
  overflow: hidden;
  overflow-y: auto;
  height: 100%;
}
nav1 {
  text-align: left;
  margin-left: 0%;
}
nav1 a {
  position: relative;
  text-decoration: none;
  color: black;
  font-size: 2em;
  display: inline-block;
  margin-top: 1.25em;
  transition: color 0.2s ease-in-out;
  letter-spacing: 1px;
}

nav1 a:hover {
  color:#e8dfec;
  font-weight:bolder; 
}

.nav1 {
 /* display: flex-start;*/
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-left: 10%;
  background-image: linear-gradient(to right, #c6b5a1 , #c6b5a1);
}
/**
Adding Functionality : controlling state of the hamburger
**/
#toggle:checked + .hamburger .bar1 {
  /*transform: rotate(-45deg);
  margin-top: 25px;
  width: 0%;
  background-color: red;*/
  width: 0%;
}
#toggle:checked + .hamburger .bar3 {
  /*opacity: 0;
  transform: rotate(45deg);*/
  width: 0%;

}
#toggle:checked + .hamburger .bar2 {
 /* transform: rotate(45deg);
  margin-top: -7px;
  background-color: red;*/
  width: 0%;

}
#toggle:checked + .hamburger + .nav1 {
  top: 0;
  transform: scale(1);
}

/*Second Window X */
.hamburger .bar4 {
  transform: rotate(-45deg);
  margin-top: 25px;
  background-color: red;
}
.hamburger .bar5 {
  opacity: 0;
  transform: rotate(45deg);
}
.hamburger .bar6 {
  transform: rotate(45deg);
  margin-top: -20.5px;
  background-color: red;
}

/* Query: 980 and less screens */
@media screen and (max-width: 1200px) {
  .active
  {
    display: none;
  }
  .hamburger
  {
    display: inline-block;
  }
  #navMenu
  {
    border: 0.4vw solid black;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding-top: 0.4vw;
    height: 85px;
  }
  #logoLink
  {
    /*border: 0.2vw solid red;*/
    width: fit-content;
  }
  #menuContent
  {
    /*border: 0.2vw solid red;*/
    display: flex;
    width: 80%;
    padding: 0 1vw;
  }
  /*
  #menuContent > *
  {
    margin: 0vw 1vw;
  } */
  #menuContent > nav *
  {
    font-size: 0.85rem;
  }
  #navMenu > #menuContent > #loginButton
  {
    /*border: 0.2vw solid green;*/
    width: fit-content;
    padding: 0;
    width: 80%;
  }
  #loginButton > button
  {
    /*border: 0.2vw solid red;*/
    height: 85%;
    width: fit-content;
    min-height: 0px;
    max-height: 1000px;
    padding: 0.2vw 2vw;
    border-radius: 1rem;
    align-self: center;
  }
  .hamburger
  {
    /*border: 0.2vw solid green;*/
    padding: 0;
    width: fit-content;
  }
  /* Where the hamburger menu starts */
  .nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-image: linear-gradient(to right, #2e8531 , #adafbb);

    /*height: 20px;
    padding: 1em;
    font-weight:bolder;
    font-size:5px;*/
  }

  .menu li:hover{
    color:white;
    cursor:pointer;
  }
  
  .menu {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    margin: 0;
    padding: 0;
  }

  .menu > li {
    margin: 0 1rem;
    overflow: hidden;
  }
  /*Container for menu button  */
  .menu-button-container {
    display: none;
    height: 100%;
    width: 100px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  #menu-toggle {
    display: none;
  }

  /*  Creating the menu button */
  .menu-button,
  .menu-button::before,
  .menu-button::after {
    display: block;
    background-color: #fff;
    position: absolute;
    height: 6px;
    width: 32px;
    border-radius: 3px;
  }
  
  .menu-button::before {
    content: '';
    margin-top: -8px;
  }
  
  .menu-button::after {
    content: '';
    margin-top: 8px;
  }

  #navMenu > #menuContent > #loginButton > #formbox {
    top: 91px;
  }
}



/* Making the navbar responsive by CSS Media Queries */
@media (max-width: 700px) {
    .menu-button-container {
      display: flex;
    }
    .menu {
      position: absolute;
      top: 0;
      margin-top: 50px;
      left: 0;
      flex-direction: column;
      width: auto;
      padding-left: 50%;
      justify-content: center;
      align-items: center;
    
    }
    #menu-toggle ~ .menu li {
      height: 0;
      margin: 0;
      padding: 0;
      border: 0;
    }
    #menu-toggle:checked ~ .menu li {
      border: 1px solid #9f9a9a;
      height: 2.5em;
      padding: 0.5em;
    }
    .menu > li {
      display: flex;
      justify-content: center;
      margin: 0;
      padding: 0.5em 0;
      width: 100%;
      color: black;
      background-color: #4b9e3d;
      
    }
    .menu > li:not(:last-child) {
      border-bottom: 1px solid #444;
   
    }
}

/* FOOTER MENU */
#pagefoot
{
    /*border: 0.2vw solid red;*/
    display: flex;
    flex-direction: column;
    background-color: #212120;
    margin-top: 1vw;
    padding: 1vw 1.5vw 1vw 1.5vw;
}
#pagefoot > #footercontent
{
    /*border: 0.2vw solid blue;*/
    display: flex;
    flex-direction: row;
}
#pagefoot > #footercontent > .footsection
{
    /*border: 0.2vw solid purple;*/
    width: 15%;
    border-radius: 5%;
    background-color: #c6b5a1;
    margin-left: 2%;
    margin-right: 2%;
    padding-left: 1vw;
    padding-right: 1vw;
}

#pagefoot > #footercontent > .footsection1
{
    /*border: 0.2vw solid purple;*/
    width: 40%;
    border-radius: 5%;
    background-color: #c6b5a1;
    margin-left: 2%;
    margin-right: 2%;
    padding-left: 1vw;
    padding-right: 1vw;
}
#pagefoot ul
{
    list-style-type: none;
    font-size: large;
}
#pagefoot ul > li
{
    margin: 0.5rem 1.5rem;
}
#pagefoot > #footercontent > .footsection a
{
    /*border: 0.2vw solid red;*/
    text-decoration: none;
    color: white;
    margin: 0rem 0.5rem;
}
#pagefoot > #footercontent > .footsection1 a
{
    /*border: 0.2vw solid red;*/
    text-decoration: none;
    color: white;
    margin: 0rem 0.5rem;
}
#pagefoot > #footercontent > .footsection a:hover
{
    color: brown;
}
#pagefoot > #footercontent > .footsection1 a:hover
{
    color: brown;
}
#socialBars {
  /* border: 1px solid red; */
  width: 60%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-content: space-evenly;
}

.socialBar {
  /* border: 1px solid green; */
  border-radius: 5px;
  display: flex;
  position: relative;
  justify-content: flex-start;
  background-color: rgb(21, 21, 21);
  margin-top: 0.5vw;
  text-decoration: none;
  transition: filter 0.5s;
  height: 90px;
}
.socialBar:hover {
  cursor: pointer;
}

.socialBar h2 {
  /* border: 1px solid red; */
  padding-left: 1vw;
  color: white;
}

.socialBar div {
  flex-grow: 8;
  display: flex;
  flex-direction: row;
  position: relative;
}

.socialLogo {
  /* border: 1px solid blue; */
  box-sizing: border-box;
  padding-top: 0.3vw;
  padding-bottom: 0.3vw;
  border-radius: 25%;
  height: 87px;
  object-position: initial;
  width: 8vw;
  max-width: 80px;
  margin-right: 1vw;
}

.contact-info {
  font-size: medium;
}
.contact-info-sm {
  font-size: small;
}
.contact-info > h2 {
  margin: 0px;
}
.contacts {
  display: flex;
}
.contacts > div:first-child {
  display: inline-block;
  width: 100%;
}
.contacts > p {
  margin: 0px;
}

/* Change layout of footer for smaller media screens. */
@media (max-width: 950px) {
  #socialBars {
    display: none;
  }

  #pagefoot > #footercontent > .footsection {
    /* border: 0.2vw solid red; */
    width: 50%;
  }

  .contact-info {
    display: none;
  }
}

@media (min-width: 950px) { 
  .footsection {
    display: none;
  }
}

@media (max-width: 500px) {

  #pagefoot {
    padding: 5vw;
  }

  #pagefoot ul > li {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .footsection ul > li {
    margin: 0px;
  }

  #footercontent > * {
    height: 170px;
  }

  .footsection1 * {
    font-size: 90%;
  }

  .footsection * {
    font-size: 70%;
  }

  #footercontent ul {
    padding-left: 1vw;
  }

  .contact-info-sm > .contacts {
    flex-direction: column;
  }
  .contact-info-sm .tinyimg {
    width: 10%;
  }

  .contact-info-sm > .contacts > div:first-child {
    display: flex;
    align-items: center;
    margin-bottom: 1.2vw;
  }
}