html {
  box-sizing: border-box;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: grid;
  grid-template-areas:
    "header"
    "main"
    "footer";
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  color: rgb(8, 8, 8);
  gap: 1rem;
  background-color: rgb(202, 202, 202);
  /* background: url("/photos/pexels-aeppli-1929561.jpg") repeat-y center/100%; */
}

/* Typography */
h1,
h2,
h3,
nav {
  font-family: "Exo", sans-serif;
}

h1 {
  color: black;
  text-decoration: underline;
  margin: 1rem;
}

/* Header */
header {
  height: 100%;
  grid-area: header;
  background-color: #0b5091;
  padding: 0.5rem 1rem;
}

header nav ul {
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

header nav li {
  font-size: 1.25rem;
  border: 0.5px solid black;
  border-radius: 0.5rem;
  padding: 1rem;
}

header nav a {
  color: white;
  text-decoration: none;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
}

header nav a:hover,
header nav .active {
  text-size-adjust: 100%;
  font-weight: bold;
}

/* Main */
main {
  grid-area: main;
  text-align: center;
  padding: 1rem;
}

main img {
  max-height: 400px;
}

section {
  grid-area: section;
}

#myLinks {
  display: none;
}

.nav-icon {
  display: block;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

@media screen and (min-width: 760px) {
  .nav-icon {
    display: none;
  }
  #myLinks {
    display: block;
  }
  header nav li {
    display: inline-block;
  }
}

@media screen and (min-width: 1300px) {
  .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-items: center;
  }

  .container figure:nth-child(3) {
    grid-column: auto;
  }

  main h1 {
    grid-column: 1 / -1;
    justify-self: center;
  }

  body {
    display: grid;
    grid-template-areas:
      "header header header"
      "main main main"
      "footer footer footer";
  }
}

/* Footer */
footer {
  grid-area: footer;
  text-align: center;
  padding: 1rem;
  color: rgb(2, 2, 2);
  font-size: 1.25rem;
  font-weight: bold;
  background-color: black;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-text {
  color: white;
}

.email-link {
  font-size: 1.5rem;
  color: orange;
  text-decoration: none;
  transition: color 0.3s ease;
}
.email-link:hover {
  color: #009cab;
}

.bio {
  margin-left: auto;
  margin-right: auto;
  background-color: white;
  border: 1px solid black;
  min-width: 400px;
  max-width: 1200px;
  margin-top: 10px;
  padding: 0px 30px;
}

.button {
  font-size: 1.5rem;
  color: orange;
  transition: color 0.3s ease;
  border: 2px solid white;
  padding: 5px;
  display: inline-block;
  text-decoration: none;
}

.button:hover {
  color: #009cab;
  transition: color 0.3s ease;
}
