* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    align-items: center;
    background-color: rgb(242, 242, 242);
    font-family: serif, georgia, verdana, arial, 'times new roman';
    height: 2500px;
    justify-content: center;
    margin: 0;
    padding: 0;
    width: 100%;
}

.logo {
    cursor: pointer;
    margin-right: auto;
}

.logo img {
  height:110px;
}

.logo {
    filter: brightness(0) invert(1);
    transition: all 0.3s ease 0s;
}

.logo:hover {
    filter: none;
}

.swordLogo {
  filter: brightness(0) invert(1);
}

li, a, button {
    font-family: serif, georgia, verdana, arial, 'times new roman';
    font-weight: 500;
    font-size: 16px;
    color: #edf0f1;
    text-decoration: none;
    display: block;
    padding: 10px;
}

header {
    list-style: none;
}

header li {
    display: inline-block;
    padding: 0px 20px;
}

header li a {
    transition: all 0.3s ease 0s;
}

header li a:hover {
    color: rgb(2, 23, 36);
    cursor: pointer;
}

button {
    padding: 9px 25px;
    background-color: rgb(0, 59, 92);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease 0s;
    margin-left: 10px;
}

button:hover {
    opacity: 0.65;
}

.menu {
    cursor: pointer;
    transition: all 0.3s ease 0s;
    filter: brightness(0) invert(1);
}

.menu:hover {
    filter: none;
}

.exit {
    cursor: pointer;
    transition: all 0.3s ease 0s;
    filter: brightness(0) invert(1);
    margin-top: 25px;
    margin-left: 30px;
    transform: rotate(180deg);
}

.exit:hover {
    filter: none;
}

.navigation {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    height: 500px;
    margin: 0;
    padding: 30px 5%;
    height: 130px;
    background-color: rgba(0, 59, 92, 0.7);
    transition: all 0.3s ease-in-out;
    width: 100%;
    position: fixed;
    top: 0;
    left:0;
    z-index: 10;
}

.hero {
    width: 100%;
    height: 86vh;
    background-image: url("images/bannerFull.jpeg");
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;  
    background-color: rgb(66, 66, 66);
}

.sideBar {
    position: fixed;
    top: 0;
    right: -1000px;
    height: 100vh;
    width: 200px;
    background-color: rgba(0, 59, 92, 0.5);
    backdrop-filter: blur(5px);
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    transition: 0.3s ease-in;
}

.sideBar.active {
    right: 0px;
}

.sideBar li {
    width: 100%;
}

.sideBar a {
    width: 100%;
    padding: 10px 20px;
    display: flex;
    align-items: center;
}

.sideBar a:first-child {
    padding-top: 30px;
}

.menu {
    align-items: center;
}

.dedicationImg {
  width: 40rem;
}

/* ===== Screen Size Display ===== */

@media(max-width: 1100px) {
    .hideOnMobile{
        display: none;
    }
}

@media(min-width: 1100px) {
    .menu{
        display: none;
    }
}

@media(min-width: 1100px) {
    .sideBar{
        display: none;
    }
}

@media(min-width: 600px) and (max-width: 1100px) {
  .hero {
    background-image: url("images/bannerMed.jpeg");
  }
}

@media(max-width: 600px) {
  .hero {
    height: 55vh;
    background-image: url("images/bannerSm.jpeg");
  }

  .navigation {
    height: 100px;
  }

  .logo img {
    object-fit: cover;
    object-position: 10% -30%;
    height: 90px;
    width: 250px;
    margin-left: -100px;
  }

  .research img {
    width: 380px;
  }
}

@media(max-width: 600px) {
  .modal {
    height: 100%;
    width: 100%;
  }
}

@media(max-width: 1000px) {
  .tripleSection {
    flex-direction: column;
  }
  .tripleSection div {
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
    width: 100%;
    padding-left: 10%;
    padding-right: 10%;
  }
}

@media(max-width: 700px) {
  .about img {
    float: none;
    background-position: none;
    padding: 0;
    margin: 0;
    margin-bottom: 30px;
    width: 400px;
    margin-left: 5%;
  }

  .about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .about h3 {
    text-align: center;
  }

  .research img {
    float: none;
    background-position: none;
    padding: 0;
    margin: 0;
    margin-bottom: 30px;
    max-width: 600px;
  }

  .research {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .research h3 {
    text-align: center;
  }

  .textBox {
    text-align: center;
    margin-left: 5%;
    margin-right: 3%;
  }

  #foundation {
    margin-bottom: -45px;
  }

  .welcome img {
    float: none;
    background-position: none;
    padding: 0;
    margin: 0;
    margin-bottom: 30px;
    max-width: 600px;
    margin-top: -40px;
  }

  .welcome {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .welcome h3 {
    text-align: center;
  }

  #welcome {
    margin-bottom: -10px;
  }
}

@media(max-width: 600px) {
  .sideBar {
    width: 100%;
    margin: 0;
  }

  .sideBar li {
    border-bottom: 0.5px solid rgb(199, 199, 199);
    padding-bottom: 20px;
    padding-top: -10px;
    width: 80%;
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
  }

  .sideBar li:last-child {
    border-bottom: none;
  }

  .sideBar a {
    justify-content: center;
  }
}

/* ===== Scrolling Function ===== */

.scroll-down .navigation {
    top: -300px;
}

.scroll-up .navigation {
    filter: drop-shadow(0, -10px, 20px rgb(170, 170, 170))
}

.subHeader h1 {
    color: white;
    align-content: center;
    width: 100%;
    text-align: center;
    margin-right: 35px;
    font-size: 30px;
}

.subHeader {
    width: 100%;
    background-color: rgb(2, 36, 55);
    backdrop-filter: blur(5px);
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    display: inline-flex
}

.divider h2{
    color: rgb(2, 36, 55);
    padding: 20px;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    font-size: 35px;
    margin-top: 30px;
}

h2:before, h2:after{
    content: "";
    flex: 1 1;
    border-bottom: 2px solid;
    margin: auto;
  }

  h2:before {
    margin-right: 20px
  }

  h2:after {
    margin-left: 20px
  }

  .welcome {
    text-align: center;
    margin-left: 5%;
    margin-right: 5%;
    margin-top: 40px;
    margin-bottom: 40px;
    width: 100%;
  }

  .welcome img {
    max-width: 350px;
    float: right;
    border: 1px solid rgb(224, 224, 224);
    border-radius: 1px;
    margin-left: 20px;
    position: relative;
    background-position: top left;
    margin-top: 40px;
  }

  .facebook-embed {
    display: none;
  }

  .facebook-container {
    display: none;
  }

  .facebook-container h3 {
    display: none;
  }

  .container {
    width: 90%;
    justify-content: center;
    align-items: center;
    display: flex;
    margin-bottom: 40px;
  }

  @media(min-width: 1250px) {
    .facebook-embed {
      float: right;
      justify-content: center;
      align-items: center;
      margin-left: auto;
      margin-right: auto;
      display: flex;
    }
  
    .facebook-container {
      justify-content: center;
      align-items: center;
      display: flex;
      flex-direction: column;
      margin-top: 40px;
      margin-left: 35px;
      display: flex;
    }
  
    .facebook-container h3 {
      font-size: 25px;
      margin-bottom: 10px;
      display: flex;
    }
  }

  .newsLink {
    cursor: pointer;
    color: blue;
    text-decoration: underline;
  }

  .about {
    text-align: center;
    margin-left: 5%;
    margin-right: 5%;
    margin-top: 40px;
    margin-bottom: 70px;
    width: 85%;
  }

  .about img {
    max-width: 350px;
    float: left;
    border: 1px solid rgb(224, 224, 224);
    border-radius: 1px;
    margin-right: 20px;
    position: relative;
    background-position: top left;
  }

  .textBox h3 {
    font-size: 25px;
  }

  .textBox p {
    font-size: 18px;
    margin-top: 13px;
  }

  .textBox {
    text-align: justify;
  }

  .tripleSection img {
    width: 250px;
    height: 250px;
  }

  .tripleSection {
    background-color: rgb(10,10,10);
    width: 100%;
    padding-top: 50px;
    display: flex;
    justify-content: space-between;
    padding-bottom: 50px;
    color: white;
  }

  .firstSec {
    margin: 20px;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: whitesmoke;
    width: 25%;
    margin-left: auto;
  }

  .secondSec {
    margin: 20px;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: whitesmoke;
    width: 25%;
  }

  .thirdSec {
    margin: 20px;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: whitesmoke;
    width: 25%;
    margin-right: auto;
  }

  .firstSec p {
    font-size: 16px;
    margin-top: 12px;
  }

  .firstSec h4 {
    font-size: 20px;
    margin-top: 12px;
  }

  .secondSec p {
    font-size: 16px;
    margin-top: 12px;
  }

  .secondSec h4 {
    font-size: 20px;
    margin-top: 12px;
  }

  .thirdSec p {
    font-size: 16px;
    margin-top: 12px;
  }

  .thirdSec h4 {
    font-size: 20px;
    margin-top: 12px;
  }

  .JarisTeam {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .teamBoxes {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
    margin-top: 4rem;
    flex-flow: wrap;
  }

  .box {
    width: 250px;
    min-width: 250px;
    height: 350px;
    padding-top: 16px;
    border-radius: 15px;
    transition: all 0.3s ease;
    background-color: rgb(10,10,10);
    color: whitesmoke;
    margin: 30px 5px;
  }

  .box:hover {
    transform: translateY(-6px);
    cursor: pointer;
    background-color: rgba(10,10,10,0.9);
  }

  .box a {
    display: inline-block;
    margin: 0 8px;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
  }

  .box a:hover {
    filter: none;
  }

  .teamBoxes h3 {
    margin-bottom: 6px;
  }

  .teamBoxes h4 {
    margin-bottom: 8px;
  }

  .Stephane h4 {
    margin-bottom: 0px;
  }

  .Stephane h3 {
    margin-bottom: 4px;
    margin-top: -6px; 
  }

  .teamBoxes img {
    height: 200px;
    width: 200px;
    margin-bottom: 15px;
  }

  .Cristine img, .Michael img, .Susan img, .Stephane img, .Alex img {
    border-radius: 15px;
  }

  .research {
    text-align: center;
    margin-left: 5%;
    margin-right: 5%;
    margin-top: 40px;
    margin-bottom: 70px;
    width: 85%;
  }

.research img {
    max-width: 450px;
    float: right;
    border: 1px solid rgb(224, 224, 224);
    border-radius: 1px;
    margin-left: 20px;
    margin-top: 45px;
    position: relative;
    background-position: top right;
}

footer {
  background-color: #111;
  width: 100%;
  padding: 70px 30px 20px;
}

.socialIcons {
  display: flex;
  justify-content: center;
  margin-left: 20px;
  margin-right: 20px;
}

.socialIcons img {
  cursor: pointer;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease 0s;
}

.socialIcons img:hover {
  filter: none;
}

.footerNav {
  margin: 10px 0;
}

.footerNav ul {
  display: flex;
  justify-content: center;
  flex-flow: wrap;
}

.footerNav ul li a {
  color: white;
  margin: 20px;
  text-decoration: none;
  font-size: 1em;
  transition: 0.3s;
}

.footerNav ul li a:hover{
  color: rgb(206, 194, 80);
  cursor: pointer;
}

.footerBottom {
  background-color: black;
  padding: 20px;
  text-align: center;
  width: 100%;
}

.footerBottom p {
  color: white;
}

.designer {
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 300;
  margin: 0 5px;
}

.modal {
  position:fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 15px;
  z-index: 100;
  background: rgb(14, 14, 14);
  width: 500px;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 30px;
  border: 3px solid rgba(2, 36, 55, 0.5);
  transition: 0.3s ease-in;
}

.modal.active {
  display: flex;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 20px;
}

.contactTitle h2 {
  font-weight: 600;
  color: rgb(0, 59, 92);
  font-size: 40px;
  margin-bottom: 5px;
}

.contact hr {
  border: none;
  width: 120px;
  height: 5px;
  background-color: rgb(0, 59, 92);
  border-radius: 10px;
  margin-bottom: 20px;
  margin-left: 22px;
  margin-top: -22px;
}

.contactInput  {
  width: 400px;
  height: 50px;
  border: none;
  outline: none;
  padding-left: 25px;
  font-weight: 500;
  color: #cfcfcf;
  border-radius: 50px;
  background-color: #202020;
}

.contactInputMessage {
  height: 140px;
  padding-top: 15px;
  border-radius: 20px;
  width: 400px;
  border: none;
  outline: none;
  padding-left: 25px;
  font-weight: 500;
  color: #cfcfcf;
  background-color: #202020;
}

.contactInputMessage:focus {
  border: 2px solid #D6AD60;
}

.contactInputMessage::placeholder {
  color: #cfcfcf;
}

.contactInput:focus {
  border: 2px solid #D6AD60;
}

.contactInput::placeholder {
  color: #cfcfcf;
}

.contact button {
  display: flex;
  align-items: center;
  padding-top: 15px;
  padding-bottom: 15px;
  padding-left: 30px;
  padding-right: 20px;
  font-size: 16px;
  color: #fff;
  gap: 10px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
}

.submit img {
  transform: rotate(180deg);
  filter: brightness(0) invert(1);
  margin-left: 5px;
}

#overlay {
  position: fixed;
  top: 0;
  height: 100%;
  width: 100%;
  z-index: 99;
  background-color:rgba(0,0,0,0.5);
  pointer-events: all;
  display: none;
  backdrop-filter: blur(3px);
}

#overlay.active {
  display: flex;
  backdrop-filter: 0;
}

.modal .exitContact {
  cursor: pointer;
  background-color:rgb(0, 59, 92);
  padding: 15px 18px;
  margin-left: 100px;
  border-radius: 35px;
}

.modal .contactTitle {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.designer {
  cursor: pointer;

}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background-color: #222222;
}

::-webkit-scrollbar-thumb {
  background-color: rgb(73, 73, 73);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgb(84, 84, 84);
}