/* de font family */
@font-face {
  font-family: "SFBold";
  src: url(../fonts/SFUIDisplay-Heavy.otf) format("truetype");
}

@font-face {
  font-family: "SFRegular";
  src: url(../fonts/SF-UI-Display-Regular.otf) format("truetype");
}

/* Standard styling */
* {
  margin: 0;
  padding: 0px;
  box-sizing: border-box;
  font-family: "SFBold", Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

body {
  background-image: radial-gradient(rgba(0, 0, 0, 0.53), rgb(0, 0, 0)), url("../Images/background.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
}

section h1 {
  font-size: 5vw;
  color: white;
}

p {
  font-family: "SFRegular", Arial, Helvetica, sans-serif;
}

section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Hamburger menu */
#hamburger-container {
  overflow: hidden;
  backdrop-filter: blur(1rem);
  background-color: blue;
  background-color: rgba(0, 0, 0, 0.326);
  display: none;
  position: fixed;
  width: 100%;
  height: 93px;
  transition: height 0.75s ease-in-out;
}

.hamburger-container-expanded {
  height: 100vh !important;
}

.hamburger-menu {
  padding: 30px;
  flex-direction: column;
  display: flex;
  width: 100%;
}

.hamburger-menu span {
  display: inline-block;
  width: 40px;
  height: 5px;
  margin: 3px;
  background-color: white;
}

#hamburger-links {
  overflow: hidden;
  width: 100%;
  position: relative;
  text-align: center;
  color: white;
  transition: all 0.75s ease-in-out;
}

#hamburger-links ul li {
  padding: 20px;
}

header a {
  text-decoration: none;
  color: white;
}

.hamburger-bar {
  height: 93px;
  overflow: hidden;
}

/* Hamburger animation */
.hamburger-menu span {
  transform-origin: center;
  transition: all 0.75s ease-in-out;
}

.hamburger-animation-upper {
  position: relative;
  transform: translateY(10.5px) rotate(45deg);
}

.hamburger-animation-middle {
  opacity: 0;
}

.hamburger-animation-bottom {
  position: relative;
  transform: translateY(-10.5px) rotate(-45deg);
}

/* Navbar */
nav {
  position: fixed;
}

nav a {
  position: relative;
  padding: 15px;
}

.navbar {
  width: 100%;
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  background-color: rgba(0, 0, 0, 0.326);
  backdrop-filter: blur(1rem);
  min-height: 5vh;
  letter-spacing: 2px;
  top: 0;
  left: 0;
  right: 0;
  justify-content: space-around;
}

nav a::after {
  background: none repeat scroll 0 0 transparent;
  bottom: 0;
  content: "";
  display: block;
  height: 2px;
  left: 50%;
  position: absolute;
  background: #fff;
  transition: width 0.3s ease 0s, left 0.3s ease 0s;
  width: 0;
}

nav a:hover:after {
  width: 100%;
  left: 0;
}

.navbar a img {
  height: 70px;
  margin-top: 5px;
}

/* Articles */
article {
  display: flex;
  flex-direction: grid;
  justify-content: space-around;
  flex-wrap: wrap;
  width: 100%;
  padding-top: 100px;
}

.graph {
  width: 350px;
}

article div {
  width: 450px;
  color: white;
  background-color: rgba(128, 128, 128, 0.264);
  margin: 15px;
  padding: 2vh;
  border-radius: 50px;
  padding: 30px;
  font-size: 20px;
}

article div h2 {
  font-size: 30px;
  margin-bottom: 5px;
}

/* Footer */
footer {
  display: flex;
  justify-content: space-around;
  background-color: rgba(0, 0, 0, 0.708);
  color: white;
}

footer article {
  justify-content: center;
  padding: 3vh;
  height: 30vh;
}

footer h1 {
  text-align: center;
  width: 100%;
}

footer a {
  color: white;
  text-decoration: none;
}

footer ul {
  width: fit-content;
}

footer li {
  display: flex;
  align-items: center;
  height: 40px;
}

footer a:hover:after {
  width: 100%;
  left: 0;
}

footer img {
  padding: 5px;
  padding-right: 10px;
  width: 40px;
}

.headshot {
  width: 100px;
}

/* Responsive styling */
@media only screen and (max-width: 800px) {
  section h1 {
    font-size: 2.4rem;
    color: white;
  }

  /* Navbar */
  .navbar {
    display: none;
  }

  /* Footer */
  footer {
    flex-direction: column;
    align-items: center;
  }

  /* Hamburger menu */
  #hamburger-container {
    display: block;
  }

  .hamburger-bar img {
    width: 50px;
    height: 50px;
    position: relative;
    top: calc(50% - 93px);
    left: 50%;
    transform: translate(-50%, -50%);
  }
}
