/* Site-specific refinements layered over the HTML5 UP Astral template. */

body {
  background-color: #07172d;
  background-image:
    url("images/overlay.png"),
    radial-gradient(circle at 28% 18%, rgba(77, 130, 188, 0.42), transparent 34%),
    linear-gradient(135deg, #07172d 0%, #102b51 48%, #2f5f91 100%);
  background-repeat: repeat, no-repeat, no-repeat;
  background-size: auto, cover, cover;
  background-attachment: fixed, fixed, fixed;
}

#main > .panel.intro {
  flex-direction: row-reverse;
}

#main > .panel.intro header p {
  max-width: 28em;
  font-size: 0.95em;
  color: #4f4f4f;
}

#education h3,
#experience h3 {
  margin: 0 0 0.35em 0;
  color: #363636;
}

#education section + section,
#experience section + section {
  margin-top: 2em;
}

.education-item {
  display: flex;
  align-items: center;
  gap: 1.25em;
  margin: 0 0 1.5em 0;
}

.education-item p {
  margin-bottom: 0;
}

.education-logo {
  width: 5.25em;
  height: 5.25em;
  object-fit: contain;
  flex: 0 0 5.25em;
}

.thesis-arrow {
  display: inline-block;
  margin-left: 0.45em;
  text-decoration: none;
  color: #363636;
}

.thesis-arrow span {
  display: none;
}

.thesis-arrow:hover {
  color: #2f5f91;
}

.thesis-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5em;
}

.thesis-subtitle {
  margin-top: 0.35em;
  color: #4f4f4f;
}

.thesis-logos {
  display: flex;
  align-items: center;
  gap: 0.9em;
  flex: 0 0 auto;
}

.thesis-logos img {
  width: 3.75em !important;
  height: 3.75em !important;
  max-width: 3.75em !important;
  max-height: 3.75em !important;
  object-fit: contain;
}

.thesis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1em;
  margin: 1em 0 1.5em;
}

.thesis-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.thesis-box {
  border: solid 1px #dddddd;
  padding: 1em;
  background: #fafafa;
}

.thesis-box h3,
.thesis-box h4 {
  margin: 0 0 0.45em 0;
}

.thesis-box p {
  margin-bottom: 0;
}

.thesis-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
}

.thesis-section {
  margin-top: 2em;
}

.thesis-section h3 {
  margin-bottom: 0.45em;
}

.thesis-list {
  list-style: disc;
  padding-left: 1.25em;
  margin: 0.75em 0 1.5em;
}

.thesis-list li {
  margin: 0.45em 0;
}

.publication-section {
  margin: 2em 0;
}

.publication-item {
  padding: 1em 0;
  border-top: solid 1px #dddddd;
}

.publication-item:last-child {
  border-bottom: solid 1px #dddddd;
}

.publication-item h3 {
  margin: 0 0 0.35em 0;
}

.publication-item h3 span {
  color: #888888;
  font-weight: 300;
}

.publication-item p {
  margin-bottom: 0;
}

.publication-arrow {
  display: inline-block;
  margin-left: 0.35em;
  text-decoration: none;
  color: #363636;
}

.publication-arrow span {
  display: none;
}

.publication-arrow:hover {
  color: #2f5f91;
}

.video {
  position: relative;
  width: 100%;
  max-width: 46em;
  margin: 1.25em auto 2em;
  padding-bottom: min(56.25%, 25.875em);
  height: 0;
  overflow: hidden;
  background: #000000;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

#contact ul {
  list-style: none;
  padding-left: 0;
}

#contact li {
  margin: 0.45em 0;
}

@media screen and (max-width: 980px) {
  #main > .panel.intro {
    flex-direction: column;
  }

  #main > .panel.intro .pic {
    height: 22em;
  }

  #main > .panel.intro header p {
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width: 736px) {
  #main > .panel.intro .pic {
    height: 17em;
  }

  .education-item {
    align-items: flex-start;
    gap: 1em;
  }

  .education-logo {
    width: 4.25em;
    height: 4.25em;
    flex-basis: 4.25em;
  }

  .thesis-header {
    display: block;
  }

  .thesis-logos {
    margin-top: 1em;
  }

  .thesis-grid,
  .thesis-grid.two {
    grid-template-columns: 1fr;
  }
}
