/* font definition */
@font-face {
  font-family: "Keroine";
  src: url("/fonts/Keroine-DouxExtreme-1.otf") format("woff");
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Keroine";
  src: url("/fonts/Keroine-IntenseLegere.otf") format("woff");
  font-style: italic;
  font-display: swap;
}

body {
  font-family: "Keroine";
  background-color: rgb(174, 239, 207);
  margin: 0;
  padding: 0;
}

/* reset paragraph margins to zero, we'll sporadically override */
p {
  margin: 0;
}

a {
  color: #0000FF;
  text-decoration: none;
}

/* the main content container and it's outside margins */
.container {
  margin-top: 1.75em;
  margin-bottom: 1.75em;
  margin-left: 5%;
  margin-right: 5%;
  display: flex;
  flex-direction: column;
}
/* mobile overrides on container */
@media (width <= 600px) {
  .container {
    /* tighter margins on mobile */
    margin-top: 1em;
    margin-left: 1em;
    margin-right: 1em;
    margin-bottom: 1em;
  }
}
/* on large screens, increase the margins left/right */
@media (width > 1600px) {
  .container {
    margin-left: 7%;
    margin-right: 7%;
  }
}

/* the title get a fat bottom margin */
.title {
  font-size: 45px;
  line-height: 45px;
  margin-bottom: 1.5em;
  display: flex;
  flex-direction: row;
}

/* make sure "Design and" and "Research" are on one line */
.title .area span {
  display: inline;
}
@media (width <= 600px) {
  .title {
    font-size: 26px;
    line-height: 26px;
    margin-bottom: 1em;
    flex-direction: row;  /* change to "column" here to put area underneath name */
    justify-content: space-between;
  }
  /* make sure "Design and" and "Research" are on different lines */
  .title .area span {
    display: block;
  }
}
/* on non-mobile, follow the content blocks below */
@media (width > 600px) {
  .title .name {
    flex: 2;
  }
  .title .area {
    flex: 1;
  }
}

/* the main content; left the timeline, right the description */
.content {
  display: flex;
  flex-direction: row;
}
.content .timeline {
  font-size: 22px;
  line-height: 25px;
  flex: 2;  /* 2/3rds of width */
}
.content .description {
  font-size: 18px;
  line-height: 21px;
  flex: 1;  /* 1/3rd of width */
}
/* on mobile, show these in a reverse column; description first */
@media (width <= 600px) {
  .content {
    flex-direction: column-reverse;
  }
  .content .timeline {
    flex: 1;
  }
  .content .description {
    flex: 1;
    margin-bottom: 1.75em;
  }
}

/* timeline-specific positioning stuff */
/* some space between timeline sections, and keep them away from the description on the right */
.timeline .section {
  margin-bottom: 1.75em;
  padding-right: 5%;
}
/* and on large screens, add some more padding between timeline and description */
@media (width > 1600px) {
  .timeline .section {
    padding-right: 10%;
  }
}
/* some space beneath timeline headers */
.timeline .header {
  margin-bottom: 1em;
  padding-left: 1.75em;
}
/* some space between timeline entries, and indent them slightly */
.timeline .entry {
  margin-bottom: 0.75em;
}

/* description-specific positioning stuff */
/* to make sure the mail link is somewhat seperate */
.description p {
  margin-bottom: 1em;
}

/* the background canvas for blob drawing */
html, body {
  height: 100%;
}
#background_canvas[resize] {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  user-select: none;
  z-index: -1;
  position: absolute;
}
