/* =========================================================
   BASE RESET & GLOBAL ELEMENTS
   ========================================================= */

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  color: white;
}

a {
  text-decoration: none;
  color: white;
}

p {
  max-width: 700px;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h2 {
  font-size: 3rem;
}

img {
  width: 700px;
  height: 400px;
}

.section-titles {
  font-size: 1.5rem;
}

.subtitles {
  font-size: 1.8rem;
}

/* Divider */
.divider {
  height: 1px;
  border-color: #555;
}

figcaption{
  font-size: 0.8rem;
  color: #555555;
  margin-top: 0.2em;
}

.figures{
  text-align: end;
}

/* =========================================================
   HEADER (GLOBAL)
   ========================================================= */

header {
  width: 100%;
  background-color: #242422;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

#header {
  font-size: 1.5rem;
}

#border {
  padding: 0.75em 1em;
  display: flex;
  margin: 0;
}

.row {
  align-self: center;
  display: flex;
  justify-content: space-between;
  width: 100%;
}


/* =========================================================
   LOGO
   ========================================================= */

.nav-img img#logo {
  width: 160px;
}


/* =========================================================
   HAMBURGER BUTTON (MOBILE)
   ========================================================= */

.nav-logo {
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  font-size: 2rem;
  padding: 0.25em;
}

.nav-logo:hover {
  color: #757575;
}

.nav-logo:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}


/* =========================================================
   MOBILE NAV (DEFAULT CLOSED)
   ========================================================= */

#mobile-nav {
  position: absolute;
  top: 10.5%;
  left: 0;
  width: 100%;
  max-height: 0px;
  overflow: hidden;
  background-color: black;
  transition: max-height 0.5s ease, opacity 0.3s ease;
  margin-top: 80px;
}


/* =========================================================
   MOBILE NAV (OPEN)
   ========================================================= */

#mobile-nav.active {
  max-height: 500px;
  opacity: 1;
  background-color: #333;
}


/* =========================================================
   NAV LIST (MOBILE)
   ========================================================= */

#nav-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: center;
}

#nav-list > li {
  padding: 1em 0;
  border-bottom: 1px solid #757575;
  background-color: #333;
}


/* =========================================================
   SOCIAL ICONS
   ========================================================= */

.social {
  display: flex;
  justify-content: center;
  gap: 1em;
}

.sm {
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
}

.sm:hover {
  color: #757575;
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

main {
  color: black;
  width: 100%;
  align-items: center;
  display: flex;
  align-items: center;
  margin-top: 80px;
}

#main {
  margin: 0 auto;
  max-width: 1200px;
}

h1 {
  text-wrap: nowrap;
  font-size: 1.5rem;
}

.author-name {
  font-size: 1rem;
  color: #555555;
}

.underline {
  text-decoration: underline;
}


/* =========================================================
   CONTENT
   ========================================================= */

.section-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.model-breakdown {
  margin: 0 auto;
  max-width: 400px;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
  width: 100%;
  background-color: #c7c7c7c7;
  color: black;
  height: 6em;
  padding: 25px;
  text-align: center;
}

.js-year {
  padding-top: 2em;
  font-size: 1rem;
}


/* =========================================================
   DESKTOP STYLES
   ========================================================= */

@media (min-width: 820px) {

  #border {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    width: 100%;
    align-self: center;
    margin: 0 auto;
  }

  #main {
    margin-top: 10px;
  }

  .row {
    max-width: 500px;
  }

  /* Desktop nav behavior */
  #mobile-nav,
  #mobile-nav.active {
    position: static;
    font-size: 1rem;
    max-height: none;
    opacity: 1;
    overflow: visible;
    background-color: inherit;
    transition: none;
    max-width: 400px;
  }

  #mobile-nav {
    margin-top: 0;
  }

  /* Desktop nav list */
  #nav-list {
    flex-direction: row;
    font-size: 1.1rem;
    width: auto;
    align-items: center;
    gap: 1.5em;
    margin-right: 2em;
  }

  #nav-list > li {
    background-color: #242422;
    border: none;
    padding: 0;
    font-size: 1rem;
  }

  .sm {
    font-size: 2rem;
  }

  .nav-logo {
    display: none;
  }
}


@media (min-width: 1300px) {
  main {
    margin: 80px auto;
  }
  img {
    width: 550px;
    height: 350px;
  }

  .section-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .figures {
    display: flex;
    flex-direction: row;
  }

  .subtitles{
    text-align: center;
  }
}
