/* Content area (ported from BodyContainer.js) */
main {
  margin-left: 160px;
  background-color: var(--background-color);
  /* https://www.heropatterns.com/ */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%23d8d8d8' fill-opacity='0.4' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
}

/* Intro image (ported from IntroImageStyles.js) */
#intro {
  margin: 0;
  line-height: 0;
}

.intro-image {
  max-width: 100%;
  height: auto;
}

/* Section titles (ported from PageTitleStyles.js) */
.page-title {
  background-color: var(--dark-blue);
  color: #ffffff;
  font-weight: 200;
  font-size: 1.75rem;
  margin-bottom: 3rem;
  margin-top: 0;
  padding: 1.2rem 4rem;
  text-transform: uppercase;
}

/* About (ported from AboutStyles.js) */
.about {
  color: black;
  padding-left: 3rem;
  width: 95%;
  margin-bottom: 2rem;
}

.about h2 {
  font-size: 1.4rem;
  border-bottom: 1px solid lightgray;
}

.about ul {
  margin-bottom: 2rem;
}

.about blockquote {
  border-left: 5px solid black;
  padding-left: 1.5rem;
  font-size: 1.7rem;
  margin-left: 0;
  margin-bottom: 2rem;
  font-weight: 400;
}

.about blockquote p {
  font-size: inherit;
  line-height: normal;
}

.about p,
.about li {
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.6rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.about p a,
.about li a {
  padding-left: 0.2rem;
}

/* Short intro text under a section title */
.section-intro {
  color: black;
  font-size: 1.2rem;
  line-height: 1.6rem;
  margin: 0 0 1rem;
  padding-left: 3rem;
  width: 95%;
}

/* Projects grid (ported from GridContainer.js) */
.grid-container {
  display: grid;
  grid-column-gap: 1.8rem;
  grid-template-columns: repeat(auto-fill, 24rem);
  justify-content: center;
  margin: 2rem;
}

/* Project card (ported from ProjectCardStyles.js) */
.project-card {
  background-color: #f9f9f9;
  position: relative;
  border-radius: 0.25rem;
  width: 24rem;
  display: flex;
  flex: 1 0 0%;
  flex-direction: column;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}

.project-card:hover {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

@media (prefers-reduced-motion: no-preference) {
  .project-card {
    animation-name: pickup_effect_off;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
  }

  .project-card:hover {
    animation-name: pickup_effect_on;
  }
}

.project-card hr {
  padding: 0;
  margin: 0;
  height: 2px;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.project-card .project-img {
  max-width: 100%;
  height: auto;
}

.project-card .card-title {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 1.68rem;
}

.project-card .card-body {
  padding: 0.1rem 0.9rem;
}

.project-card .card-text {
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 1rem;
}

.project-card .card-text span {
  font-weight: bolder;
}

.project-card .btn {
  padding: 0.375rem 0.75rem;
  margin-bottom: 1rem;
  font-weight: 400;
  display: block;
  width: 100%;
  color: #fff;
  background-color: #6c757d;
  text-align: center;
  line-height: 1.5;
  border: 1px solid transparent;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  border-radius: 0.25rem;
  text-decoration: none;
}

@keyframes pickup_effect_on {
  0% {
    transform: scale(1) rotateY(0deg) rotateX(0deg) rotateZ(0deg);
  }
  25% {
    transform: scale(1) rotateY(20deg) rotateX(5deg) rotateZ(1deg);
  }
  50% {
    transform: scale(1) rotateY(20deg) rotateX(5deg) rotateZ(2deg);
  }
  75% {
    transform: scale(1.03) rotateY(0deg) rotateX(2.5deg) rotateZ(1deg);
  }
  100% {
    transform: scale(1.03) rotateY(0deg) rotateX(0deg) rotateZ(0deg);
  }
}

@keyframes pickup_effect_off {
  0% {
    transform: scale(1.03) rotateY(0deg) rotateX(0deg) rotateZ(0deg);
  }
  25% {
    transform: scale(1.03) rotateY(0deg) rotateX(-2.5deg) rotateZ(-1deg);
  }
  50% {
    transform: scale(1) rotateY(20deg) rotateX(-5deg) rotateZ(2deg);
  }
  75% {
    transform: scale(1) rotateY(-20deg) rotateX(-5deg) rotateZ(1deg);
  }
  100% {
    transform: scale(1) rotateY(0deg) rotateX(0deg) rotateZ(0deg);
  }
}

/* Blog post list */
#blog {
  min-height: calc(100vh - 2rem);
}

.post-list {
  list-style: none;
  padding: 0 3rem;
  margin: 0 0 3rem;
  max-width: 50rem;
}

.post-list li {
  padding: 1.2rem 0;
  border-bottom: 1px solid lightgray;
}

.post-list a {
  display: block;
  color: var(--dark-blue);
  font-size: 1.5rem;
  font-weight: 500;
  text-decoration: none;
}

.post-list a:hover {
  color: var(--vivid-green);
}

.post-list time,
.post-header time {
  display: block;
  margin-top: 0.3rem;
  color: #6c757d;
  font-size: 0.95rem;
}

.post-list p {
  margin: 0.6rem 0 0;
  font-size: 1.1rem;
  line-height: 1.6rem;
}

.under-construction {
  max-width: 40rem;
  margin: 0 auto 4rem;
  padding: 0 2rem;
  text-align: center;
}

.under-construction img {
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
}

.under-construction h2 {
  color: var(--dark-blue);
  font-size: 1.75rem;
  margin: 0 0 0.75rem;
}

.under-construction p {
  font-size: 1.2rem;
  line-height: 1.6rem;
  margin: 0;
}

/* Single post */
.post {
  max-width: 50rem;
  min-height: calc(100vh - 2rem);
  padding: 3rem;
}

.post-back {
  color: #6c757d;
  text-decoration: none;
}

.post-back:hover {
  color: var(--vivid-green);
}

.post-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid lightgray;
  padding-bottom: 1rem;
}

.post-header h1 {
  font-size: 2.5rem;
  margin: 1rem 0 0;
}

.post-content p,
.post-content li {
  font-size: 1.2rem;
  line-height: 1.8rem;
}

.post-content h2 {
  font-size: 1.6rem;
  border-bottom: 1px solid lightgray;
}

.post-content img {
  max-width: 100%;
  height: auto;
}

.post-content pre {
  overflow-x: auto;
  padding: 1rem;
  background-color: #f4f4f4;
  border-radius: 0.25rem;
}

.post-content blockquote {
  border-left: 5px solid black;
  padding-left: 1.5rem;
  margin-left: 0;
}

/* Contact section: leave room so the section can scroll to the top */
#contact {
  padding-bottom: 20rem;
}

/* Footer (ported from FooterStyles.js) */
.footer {
  position: relative;
  width: 100%;
  background-color: var(--dark-blue);
  color: var(--vivid-green);
}

.footer div {
  width: max-content;
  margin: 0 auto;
  padding: 0.2rem;
}

@media screen and (max-width: 900px) {
  main {
    margin-left: 0;
    margin-top: 60px;
  }
}

/* Contact card (ported from ContactCardStyles.js) */
.contact-card {
  position: relative;
  margin: auto;
  width: 540px;
  height: 300px;
  background: #fefefe;
  background-image: linear-gradient(to right, #f7f7f7, #e8edf2);
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1), 3px 5px 20px rgba(0, 0, 0, 0.2);
}

.contact-card .contact {
  position: absolute;
  top: 1.8rem;
  left: 1.8rem;
  z-index: 6;
  color: rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.313rem 0.938rem;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.1);
  line-height: 1;
  text-shadow: 0 1px 0px rgba(255, 255, 255, 0.1);
}

.contact-card .content {
  margin: 2rem;
  padding-top: 1rem;
}

.contact-card .content h1 {
  font-size: 3rem;
  margin-top: 2.8rem;
  margin-bottom: 0.5rem;
}

.contact-card .p-contact {
  color: rgb(70, 70, 70);
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.contact-card .p-contact a {
  text-decoration: none;
  display: inline-block;
  text-align: center;
  position: relative;
  color: rgb(70, 70, 70);
}

.contact-card .p-contact a span {
  border-bottom: 1px solid transparent;
}

.contact-card .p-contact a:hover {
  color: #4c8bad;
  transition: color 100ms ease-in-out;
}

.contact-card .p-contact a:hover span {
  border-bottom: 1px solid #4c8bad;
  transition: 100ms ease-in-out;
}

.contact-card .p-contact .icon {
  font-size: 1.8rem;
  margin-right: 1rem;
  vertical-align: middle;
}

.contact-card .contact-card-logo {
  position: absolute;
  top: 52px;
  right: 40px;
}

.contact-card .contact-card-logo svg {
  width: 12rem;
  height: auto;
}

@media screen and (max-width: 600px) {
  .contact-card {
    width: auto;
    height: auto;
    font-size: 1rem;
    padding: 1px 0;
    margin: 0 1.5rem;
  }

  .contact-card .contact {
    display: none;
  }

  .contact-card .content {
    margin: 1.5rem;
    padding-top: 0;
  }

  .contact-card .content h1 {
    display: none;
  }

  .contact-card .contact-card-logo {
    position: static;
    text-align: right;
  }

  .contact-card .contact-card-logo svg {
    width: 4rem;
  }
}
