:root {
    --color-bg: rgb(255, 255, 255);
    --color-primary: rgb(35, 25, 66);
    --color-secondary: rgb(105, 97, 143);
    --color-tertiary: rgb(139, 135, 158);
    --color-link: rgb(183, 133, 190);
    --color-link-text: rgb(255, 255, 255);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  background-color: var(--color-bg) !important;
  color: var(--color-primary);
}

footer {
  background-color: var(--color-secondary);
  margin-top: 20px;
  padding: 10px;
}

footer > div {
  text-align: center;
  color: #fff;
}

#footer-divider {
  width: 400px;
  margin: 10px auto;
}

h1, h2, h3 {
  font-weight: 700;
}

.link {
  color: var(--color-secondary);
  text-decoration: none;
}

.link:hover {
  color: var(--color-link);
}

.reference {
  color: var(--color-primary);
  text-decoration: none;
}

.reference:hover {
  text-decoration: underline;
}

section {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.section-header {
  display: flex;
  flex-direction: row;
  font-size: 3em;
  text-align: center;
  margin: 50px 0 25px;
}

.section-header:before,
.section-header:after {
  content: "";
  flex: 1 1;
  border-bottom: 0.125em solid var(--color-primary);
  margin: 0.5em 0;
}

.section-header:before {
  margin-right: 10px;
}

.section-header:after {
  margin-left: 10px;
}


/** NAVBAR **/

.navbar {
    background-color: var(--color-secondary);
}

.navbar-nav {
    width: 100%;
}

.navbar-toggler {
    border-color: transparent !important;
}

.navbar-toggler:focus,
.navbar-toggler:hover {
    border-color: transparent !important;
    shadow: none;
}

.navbar-toggle-icon {
    color: var(--color-bg);
}

.nav-link {
    font-weight: 600 !important;
    color: var(--color-bg) !important;
}


/** ABOUT **/

.about-section {
    background-color: var(--color-secondary);
    color: var(--color-bg);
}

.about-collection {
  display: block;
  margin: 50px auto;
}

.about-img {
  margin-bottom: 25px;
  text-align: center;
}

.img-me {
  width: 300px;
  object-fit: cover;  
  border-radius: 50%;
  outline: 5px solid var(--color-bg);
}

.about-text {
  text-align: center;
    margin-bottom: 25px;
}

.about-text > h4:last-child {
    margin-top: -10px;
}

.footnote {
  font-weight: 200;
}

.about-socials {
  text-align: center;
}

@media (min-width: 768px) {
  .about-collection {
    display: table;
    margin: 50px auto;
  }

  .about-img, .about-params {
    display: table-cell;
  }

  .about-img {
    text-align: left; 
  }

  .about-text {
    text-align: left;
    margin-top: 5px;
  }

  .about-img {
    padding-right: 25px;
  }

  .img-me {
    width: 200px;
  }

  .about-params {
    vertical-align: middle;
  }

  .about-socials {
    text-align: left;
  }
}

/** RESEARCH **/

.research-fields {
  display: block;
}

.research-fields > div:last-child {
  margin-top: 25px;
}

.research-field {
  margin-left: 25px;
  margin-right: 25px;
}

.research-subtitle {
  font-weight: 300;
}

.research-desc {
  text-align: justify;
}

@media (min-width: 768px) {
  .research-fields {
    display: flex;
    gap: 10px;
  }
  
  .research-fields > div:last-child {
    margin-top: 0;
  }

  .research-field {
      width: 48%;
  }
}

/** PUBLICATIONS **/

.pub-year {
    margin-top: 20px;
    font-weight: 600;
    font-size: 1.75em;
}

.publication {
    margin-top: 5px;
}

.pub-thumbnail-box {
  vertical-align: top;
  text-align: center;
  width: 50%;
  margin: 0 auto;
  padding: 1em 0em 0px 4em;
}

.pub-details {
  padding: 0 20px;
  vertical-align: top;
}

.pub-thumbnail {
  border: 1px solid var(--color-primary);
  width: 100%;
  display: box;
}

.pub-title {
  font-size: 1.5em;
  font-weight: 600;
}

.ieee-conference:before {
  font-family: "Academicons";
  font-weight: 400;
  content: "\e929";
}

.springer-conference:before {
  font-family: "Academicons";
  font-weight: 400;
  content: "\e928";
}

.acm-conference:before {
  font-family: "Academicons";
  font-weight: 400;
  content: "\e93c";
}

.pub-location {
  color: var(--color-primary);
  font-style: italic;
}

.pub-misc {
  display: none;
}

.pub-badge {
  min-width: 100px;
  max-width: 10%;
}

.pub-chips {
  margin-top: 1em;
  margin-bottom: 2em;
}

@media (min-width: 768px) {
  .pub-thumbnail-box {
    display: table-cell;
    width: 25%;
    padding: 1em 2em 0px 4em;
    margin: 0;
  }

  .pub-thumbnail {
    min-width: 160px;
  }

  .pub-details {
    display: table-cell;
    padding: 1em 0.5em 0 0;
  }

  .pub-misc {
    display: block;
    padding-top: 15px;
  }

  .pub-chips {
    margin-bottom: 0;
  }
}

/** ACTIVITIES **/

.activity-table {
  margin-left: 25px;
}

.activity-table > tbody > tr > td {
  padding-right: 10px;
  padding-bottom: 5px;
  vertical-align: top;
}

.act-role-section-header > td{
  padding-top: 15px !important;
}

.activity-list {
    list-style-type: none;
}

.act-role {
  font-weight: 600;
}

.narrow-only {
    display: block;
}

.wide-only {
    display: block;
}

@media (min-width: 768px) {
    .narrow-only {
        display: none;
    }
}

@media (max-width: 767px) {
    .wide-only {
        display: none;
    }
}

/** PROJECTS + CV **/

.project-table, .cv-table {
  margin-left: 25px;
  margin-right: 25px;
}

.project-table > tbody > tr > td,
.cv-table > tbody > tr > td {
  padding-bottom: 15px;
}

.project-table > tbody > tr:last-child > td:last-child,
.cv-table > tbody > tr:last-child > td:last-child {
  padding-bottom: 0;
}

.project-name, .cv-title {
  font-weight: 600;
}

.project-details, .cv-details {
  padding-left: 15px;
}

.project-time, .cv-interval {
  min-width: 80px;
  vertical-align: top;
  font-weight: 600;
}

.tbl-tutor {
  margin-left: 2em;
}

.tbl-tutor > tbody > tr > td:last-child {
  padding-left: 20px;
  display: flex;
}

.tbl-tutor > tbody > tr > td:last-child > a {
  margin-right: 5px;
}

.tbl-tutor > tbody > tr > td > li {
  list-style-type: circle;
}

.technology {
  font-weight: 200;
  font-size: 0.85em;
}

.downloads {
  margin-top: 50px;
}

.cv-downloads {
  font-weight: 600;
  padding-right: 5px;
}

.last-change {
    font-weight: 100;
}
