/* The home page: the logo and the list of projects. */
body {
  background-color: #fdfcfa;
}

section#top {
  background-color: #fff;
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  justify-content: center;
  height: 400px;
  border-bottom: 1px solid #ece4df;
}

.logo {
  position: relative;
  max-width: 100%;
  width: 300px;
  padding: 0 1em;
  margin-bottom: 2em;
  display: flex;
  flex-flow: column nowrap;
}

.logo_image {
  position: relative;
  width: 100%;
}

.logo_text {
  position: relative;
  margin-top: 1.5em;
  height: 26px;
}

@media (min-width: 800px) {
  section#top {
    height: 540px;
  }

  .logo {
    width: 400px;
    margin-bottom: 2em;
  }

  .logo_text {
    margin-top: 2em;
    height: 40px;
  }
}

section#projects {
  padding: 2em 1em;
  max-width: 100%;
  width: min-content;
  margin: 0 auto;
  position: relative;
}

section#projects::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0;
  border-right: 1px solid #ece4df;
  z-index: 0;
}

section#projects > * {
  position: relative;
  z-index: 1;
}

section#projects > header {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.projectYear {
  font-size: 24px;
  font-weight: bold;
  background-color: #222;
  color: #fff;
  border-radius: 8px;
  width: min-content;
  padding: 4px 8px;
}

.projectList {
  max-width: 100%;
  margin: 0 auto;
  list-style: none;
  width: max-content;
  padding: 1em 0;
}

.project {
  display: flex;
  align-items: flex-start;
  flex-flow: column nowrap;
  text-decoration: none;
  color: unset;
  border: 1px solid #ece4df;
  border-radius: 18px;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  width: 400px;
  max-width: 100%;
}

.project > header {
  margin-bottom: 8px;
  padding: 16px 16px 4px 16px;
}

.project > header a {
  color: unset;
  text-decoration: none;
  color: #5a98d1;
  display: inline-block;
  display: flex;
  align-items: center;
  border-bottom: none;
}

.project > header h3 {
  font-size: 18px;
  border-bottom: 1px dotted #5a98d1;
}

.project_icon {
  width: 48px;
  height: 48px;
  margin-right: 16px;
  border-radius: 10px;
}

.project_cover {
  border: none;
}

.project_cover > img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid #ece4df;
  border-left: none;
  border-right: none;
}

.project_description {
  padding: 8px 16px 16px 16px;
  margin-bottom: 0;
}

.text-ios {
  color: #5a98d1;
  font-style: italic;
}

.text-android {
  color: #60be78;
  font-style: italic;
}

/* The description is Markdown, so it's a paragraph inside the card's. */
.project_description > p {
  margin: 0;
}
