/* Import google fonts: 'Raleway', 'Montserrat', 'Poppins' */
@import url('https://fonts.googleapis.com/css2?family=Montserrat&family=Poppins:wght@200;400&family=Raleway&display=swap');

/* Global Variables */
:root {
  --background-nav: rgba(243, 240, 240, 0.85);
  --background-nav-hov: rgba(138, 138, 138, 0.75);
  --text-nav: rgba(47, 47, 47, 1);
  /* Main color scheme */
  --background-body: rgba(54, 57, 70, 0.05);
  --text-general: rgb(54, 57, 70);
  --text-headings: #020c3b;
  --accent-color-red: #e30202;
  --accent-color-yellow: #fcff6c;
}

* {
  box-sizing: border-box;
}

/* Overall properties */
html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: var(--background-body);

}

p, ul, li {
  font-size: 1.15rem;
  line-height: 1.8em;
  color: var(--text-general);
}

/* Header */
header {
  height: 100vh;
  background-position: top;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #868686;
  background-blend-mode: multiply;
}

#title {
  font-size: 6rem;
  font-family: "Raleway", sans-serif;
  text-align: center;
  margin: 0;
  color: #f3f0f0;
}

#subtitle {
  font-size: 1.7rem;
  font-family: "Montserrat", sans-serif;
  text-align: center;
  color: var(--text-general);
}

/* Navbar */
nav {
  background-color: var(--background-nav);
  position: fixed;
  top: 0;
  width: 100%;
  box-shadow: 0 0 8px 0px rgb(0 0 0 / 49%);
  z-index: 1;
}

nav ul {
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

nav ul li {
  padding: 0.5em;
  font-size: 1.5rem;
  font-family: "Montserrat", sans-serif;
  text-transform: lowercase;
  color: var(--text-nav);
}

nav ul li a {
  color: var(--text-nav);
}

.navlink {
  position: relative;
  text-decoration: none;
}

/*Nav bar underline animation*/
/*to use the same animation for hover and focus -- apply all hover styles to focus as well*/
.navlink:focus-within, .sublink:focus-within {
  outline: none;
}

.navlink::before {
  content: "";
  position: absolute;
  height: 0.05rem;
  width: 80%;
  bottom: -0.1rem;
  left: 10%;
  background-color: var(--text-nav);
  transform: scaleX(0);
  transition: transform 250ms ease-in;
}

nav ul li:hover .navlink::before,
nav ul li:focus-within .navlink::before {
  transform: scaleX(1);
  background-color: whitesmoke;
}

nav ul li:hover,
nav ul li:focus-within {
  background-color: var(--background-nav-hov);
  box-shadow: 2px 2px 20px 2px rgb(116 120 128 / 51%);
}

nav ul li:hover .navlink,
nav ul li:focus-within .navlink {
  color: whitesmoke;
}

.navlink:visited {
  color: var(--text-nav);
}

/*END OF NAVBAR*/
.darker-background {

}

.lighter-background {

}

/* Layout */
section {
  padding: 3%;
  display: flex;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
}

article {
  flex-basis:100%;
  max-width: 60%;
}

aside {
  margin: 0 5vw 0 5vw;
}

section h3, h4 {
  font-family: "Montserrat", sans-serif;
}

section h3 {
  font-size: 2rem;
  margin-top: 5em;
}

section h4 {
  font-size: 1.5rem;
  margin-top: 5rem;
}

section p, section ul, section li {
  font-family: "Poppins", sans-serif;
}

footer {
  width: 100%;
  margin: auto;
}

footer #links {
  font-size: 0.8rem;
  width: 55%;
  margin: auto;
}

footer ul {
  list-style-type: none;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

footer ul li {
  display: inline;
  float: left;
  margin: 1%;
}

section li {
  margin-bottom: 1.5em;
}

footer h3 {
  width: 100%;
  text-align: center;
  font-size: 1.25rem;
}

footer article {
  width: 25%;
  float: left;
  flex-basis: initial;
}

#copyright {
  flex-direction: column;
  margin-bottom: 1em;
}

#copyright p {
  text-align: center;
  font-size: 1rem;
}

h2, h3, h4, h5 {
  text-transform: lowercase;
  color: var(--text-headings);
}

main section h3 {
  position: relative;
}

main section h3::after {
  content: "";
  position: absolute;
  top: 35%;
  margin: 0 1rem;
  height: 35%;
  width: 50%;
  background-color: var(--accent-color-red);
}

a:visited {
  color: #274c71;
}

.inline-img-fig {
  max-width: 50vw;
  text-align: center;
  margin:0 auto;
}
.inline-img {
  max-width:45vw;
  padding: 1em;
  height:auto;
  border-radius: 10%;
}

.project-list li p {
  margin: 0 0 2em 0;
  padding-left: 2em;
  font-size: 0.9em;
}

@media (min-width: 1025px) {
  .inline-img-fig{
    max-width: 20vw;
  }

  .inline-img {
    max-width: 18vw;
  }
}

.img-caption {
  margin:0;
  padding:0;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 200;
}

/*Simplify structure for mobiles*/
@media (min-width: 1921px) {
  header {
    background-image: url("header_background/large_background_Projects-1.jpg");
    background-position: center;
  }
}

@media (min-width: 1025px) and (max-width: 1920px) {
  header {
    background-image: url("header_background/reg_background_Projects.jpg");
  }
}

@media (max-width: 1024px) {
  header {
    background-image: url("header_background/small_background_Projects.jpg");
    background-size: cover;
  }

  article {
    max-width: 100%;
  }

  nav ul {
    justify-content: space-between;
  }

  section {}

  .subsection {
    flex-direction: column;
  }

  .side-img {
    max-width: 15vh;
  }

  footer #links {
    width: 100%;
  }

  footer article {
    width: 20%;
  }

  footer h3 {
    font-size: 0.9rem;
  }
}
