/*
Design by TEMPLATED
http://templated.co
Released for free under the Creative Commons Attribution License

Customized for Oluwafemi Adewumi Adesina's EME 6208 portfolio.
*/

/* GENERAL PAGE SETTINGS */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #edf4ee;
  color: #29382e;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

h1,
h2,
h3 {
  margin: 0;
  color: #234d35;
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: #285b3c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: #583875;
}

a:focus-visible {
  outline: 3px solid #744b91;
  outline-offset: 4px;
}

/* MAIN PAGE CONTAINER */

#wrapper {
  padding-bottom: 32px;
  background: #f5f8f3;
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

/* NAVIGATION MENU */

#menu-wrapper {
  margin-bottom: 0;
  background: #234d35;
}

#menu ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

#menu li {
  margin: 0;
}

#menu a {
  display: block;
  padding: 16px 20px;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}

#menu a:hover,
#menu .current_page_item a {
  background: #426b4b;
  color: #ffffff;
}

#menu a:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: -5px;
}

/* NAME AND PORTFOLIO SUBTITLE */

#logo {
  padding: 48px 16px 24px;
  text-align: center;
}

#logo h1 {
  margin-bottom: 14px;
  color: #234d35;
  font-size: 42px;
  letter-spacing: normal;
  overflow-wrap: break-word;
}

#logo p {
  max-width: 760px;
  margin: 0 auto;
  color: #4f5c52;
  font-size: 18px;
}

#logo a {
  color: inherit;
  text-decoration: none;
}

/* INTRODUCTORY PARAGRAPH */

#page {
  padding: 12px 0 32px;
}

.entry {
  max-width: 950px;
  margin: 0 auto;
  padding: 28px 32px;
  border-left: 5px solid #426b4b;
  border-radius: 8px;
  background: #ffffff;
}

.entry p:last-child {
  margin-bottom: 0;
}

#content {
  width: 100%;
}

/* PROJECT ROWS */

.project-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 0 0 24px;
}

.project-row .tbox1,
.project-row .tbox2,
.project-row .tbox3 {
  display: flex;
  min-width: 0;
}

/* PROJECT CARDS */

.box-style {
  display: flex;
  width: 100%;
  border: 1px solid #d4dfd2;
  border-top: 5px solid #426b4b;
  border-radius: 10px;
  background: #ffffff;
  text-align: left;
  box-shadow: 0 3px 10px rgba(35, 77, 53, 0.08);
}

.box-style .content {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 28px;
}

.box-style h2 {
  margin-bottom: 16px;
  color: #234d35;
  font-size: 23px;
}

.box-style p {
  margin-bottom: 24px;
  color: #37463c;
}

/* PROJECT BUTTONS */

.button {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  padding: 11px 20px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #234d35;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}

.button:hover {
  background: #583875;
  color: #ffffff;
}

/* FOOTER */

#footer {
  padding: 30px 20px;
  border-top: 1px solid #ccd9cb;
  background: #e4ede2;
}

#footer p {
  max-width: 1000px;
  margin: 0 auto;
  color: #394b3e;
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

#footer a {
  color: #234d35;
  text-decoration: underline;
}

#footer a:hover {
  color: #583875;
}

/* MEDIUM-SIZED SCREENS */

@media screen and (max-width: 1000px) {
  .project-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #logo h1 {
    font-size: 36px;
  }
}

/* SMALL SCREENS */

@media screen and (max-width: 650px) {
  .container {
    width: 94%;
  }

  #menu a {
    padding: 12px 14px;
    font-size: 14px;
  }

  #logo {
    padding: 32px 10px 20px;
  }

  #logo h1 {
    font-size: 30px;
  }

  #logo p {
    font-size: 16px;
  }

  .entry {
    padding: 22px;
  }

  .project-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

    .box-style .content {
    padding: 24px;
  }
}

/* Responsive video players */
.portfolio-video {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  margin: 24px 0;
  background: #111;
}

.portfolio-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}/* Image-editing project artwork */
.portfolio-artwork-section {
  margin-bottom: 40px;
}

.portfolio-artwork {
  margin: 24px 0;
}

.portfolio-design-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 650px;
  box-sizing: border-box;
  border: 1px solid #ddd;
}

.portfolio-logo-image {
  max-width: min(100%, 350px);
  max-height: 350px;
}

.portfolio-artwork {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 24px 0;
  box-sizing: border-box;
}