* {
  box-sizing: border-box;
}

html {
  background-color: #063b7d;
  font-family: trebuchet, geneva, sans-serif;
}

img,
video,
embed {
  max-width: 98%;
}

main,
section,
article,
aside,
footer,
header {
  padding: 0.5rem; /* Adjusted to a positive padding value */
}

header,
footer {
  background-color: #031a37;
  color: white;
  text-align: center;
}

article {
  border-bottom: 1px black solid;
}

aside {
  background-color: white;
}

h1,
h2,
aside {
  text-align: center;
}

nav {
  background-color: #063b7d;
  text-align: center;
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  display: inline-block;
  margin-right: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #aec1d8;
}

body,
p,
a,
h4 {
  font-size: 14px;
}

@media screen and (min-width: 768px) {
  body {
    display: flex;
    flex-direction: column;
    max-width: 98%;
    margin: auto;
  }

  main {
    display: flex;
    border-right: solid black 1px;
    border-left: solid black 1px;
    flex-wrap: wrap;
  }

  article {
    flex: 50%;
    border-right: solid black 1px;
    border-bottom: solid black 1px;
  }

  article:nth-child(2) {
    border-right: none;
  }

  article:nth-child(3) {
    border: none;
  }

  body,
  p,
  a,
  h4 {
    font-size: 15px;
  }
}

@media screen and (min-width: 1024px) {
  article {
    flex: 33%;
    border-bottom: none;
  }

  article:nth-child(2) {
    border-right: solid black 1px;
  }

  article:nth-child(3) {
    border-right: none;
  }

  body,
  p,
  a,
  h4 {
    font-size: 16px;
  }
}

* {
  box-sizing: border-box;
  border: 1px solid black;
}

body {
  width: 98%;
  margin: auto;
}

section, article, aside, footer, header {
  padding: 0.5rem;
}

img, video, embed {
  max-width: 98%;
}

@media screen and (min-width: 768px) {
  body {
    display: flex;
    flex-direction: column;
    max-width: 75rem;
  }
  main {
    display: flex;
    flex-wrap: wrap;
  }
  nav, header {
    order: -1;
  }
  nav {
    flex-direction: row;
  }
  nav a {
    flex: auto;
  }
  article {
    flex: 50%;
  }
  aside, section {
    flex: 100%;
  }
  section p {
    column-count: 2;
    column-gap: 20px;
    column-rule: 1px solid rgb(255, 105, 0);
  }
}

@media screen and (min-width: 1200px) {
  article {
    flex: 35%;
  }
  aside {
    flex: 30%;
  }
}

#footer-logo {
  width: 120px;
  height: auto;
  display: block;
  margin: 10px auto 0;
}

h1 {
  font-family: 'Graduate', sans-serif;
  font-size: 3rem;
  text-align: center;
  margin-top: 20px;
}

h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 500;
  margin-top: 20px;
  color: white;
}

p {
  color: white;
}

ol {
  color: white;
}

ol li {
  color: white;
}

figcaption {
  color: white;
}

figure {
  position: relative;
  display: inline-block;
}

a {
  color: #c088f9;
}

.about-img {
  width: auto;
  height: 400px;
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

.about-figure {
  text-align: center;
  margin: 20px 0;
  width: 100%;
}

.about-figure figcaption {
  margin-top: 8px;
  text-align: center;
  font-style: initial;
  font-size: 1rem;
  color: #cde4f7;
}
