/*
Theme Name: 
Text Domain: 
Version: 1.0.0
Author: SciStories
Author URI: http://scistories.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

@font-face {
  font-family: "Proxima Nova Bold";
  src: url("./assets/fonts/ProximaNova-Bold.ttf") format("truetype");
  font-weight: 700;
}

@font-face {
  font-family: "Proxima Nova Regular";
  src: url("./assets/fonts/ProximaNova-Regular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Proxima Nova Light";
  src: url("./assets/fonts/ProximaNovaT-Thin.ttf") format("truetype");
  font-weight: 300;
}

:root {
  /* Fonts */
  --mainFont: "Proxima Nova Regular", sans-serif;
  --boldFont: "Proxima Nova Bold", sans-serif;
  --lightFont: "Proxima Nova Light", sans-serif;

  /*Colors*/
  --primaryColor: #2b2452;
  --links: #4AC1FB;
  --links-alternative: #212529;
  --cards: #f4f4f4;
  --tertiary: #f2da84;
  --black: #232323;
  --white: #ffffff;

  /*publications*/
  --pub-min-h: auto;

  /*structure*/
  --ss-col-gap: 2.4rem; /*defaults*/
  --ss-row-gap: 2.4rem;
}

html,
body {
  overflow-x: hidden;
  position: relative;
} 

html {
  font-size: 62.5%; /*10 px = 1rem */
}

body {
  font-size: 16px;
  font-size: 1.6rem;
  font-family: var(--mainFont);
}

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

h1, h2, h3 {
  font-family: var(--boldFont);
  font-weight: 700;
}

h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 3.2rem;
  color: var(--primaryColor);
}

h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1.6rem;
  color: var(--primaryColor);
}

h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

p {
  font-size: 1.8rem;
  font-family: var(--mainFont);
  font-weight: 400;
  text-align: justify;
}

a {
  font-size: 1.6rem;
  display: block;
  color: var(--links);
  text-decoration: none;
  transition: all 0.3s ease-in;
}

.a--alternative {
  color: var(--links-alternative);
}

a:hover {
  text-decoration: underline;
  color: var(--links);
}

ol,
ul {
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

button {
  background-color: var(--links);
  padding: 0.8rem;
  border-radius: 5px;
  text-align: center;
  border: none;
  box-shadow: none;
  color: var(--white);
  font-weight: 300;
}


/* UTILITIES */
@media screen and (max-width: 767px) {
  .container {
    width: 90%;
    margin: 0 auto;
  }
}

.the-content {
  font-size: 1.8rem;
  text-align: justify;
}

.the-content p {
  font-size: 1.8rem;
}

.the-content p:last-child {
  margin-bottom: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-16 {
  margin-bottom: 1.6rem;
}

.mb-24 {
  margin-bottom: 2.4rem;
}

.mb-32 {
  margin-bottom: 3.2rem;
}

.mt-40 {
  margin-top: 4rem;
}

.mb-40 {
  margin-bottom: 4rem;
}

@media screen and (max-width: 1023px) {
  .md-mb-40 {
    margin-bottom: 4rem;
  }
}

.mt-45 {
  margin-top: 4.5rem;
}

.mt-64 {
  margin-top: 6.4rem;
}

.mt-96 {
  margin-top: 9.6rem;
}

.mb-96 {
  margin-bottom: 9.6rem;
}

.ratio-16-9 {
  aspect-ratio: 16/9;
  width: 100%;
  object-fit: cover;
}

.ratio-1-1 {
  aspect-ratio: 1/1;
  width: 100%;
  object-fit: cover;
}

.ratio-4-5 {
  aspect-ratio: 4/5;
  width: 100%;
  object-fit: cover;
}

figure.ss-ratio-4-5 img {
  aspect-ratio: 4/5;
  width: 100%;
  object-fit: cover;
}

figure.ss-ratio-16-9 img {
  aspect-ratio: 16/9;
  width: 100%;
  object-fit: cover;
}

.gap-8,
.gap-16,
.gap-24,
.gap-40 {
  column-gap: var(--ss-col-gap);
  row-gap: var(--ss-row-gap);
}

.gap-8 {
  --ss-row-gap: 0.8rem;
  --ss-col-gap: 0.8rem;
}

.gap-16 {
  --ss-row-gap: 1.6rem;
  --ss-col-gap: 1.6rem;
}

.gap-24 {
  --ss-row-gap: 2.4rem;
  --ss-col-gap: 2.4rem;
}

.gap-40 {
  --ss-row-gap: 4rem;
  --ss-col-gap: 4rem;
}

.gap-48-col {
  --ss-col-gap: 4.8rem;
}

.ss-col {
  flex-basis: 100%;
}

.ss-col-3, .ss-col-2 {
  width: 100%;
  flex-basis: 100%;
}

@media screen and (min-width: 768px) {

  .the-content {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .the-content--news {
    padding-left: unset;
    padding-right: unset;
  }

  .ss-col-md-3 {
    flex-basis: calc(33.33% - var(--ss-col-gap));
  }

  .ss-md-col-2 {
    flex-basis: 47.5%;
  }
}

@media screen and (min-width: 1024px) {

  .ss-col-3 {
    flex-basis: calc(33.33% - var(--ss-col-gap));
  }


  .ss-col-2 {
    flex-basis: calc(50% - var(--ss-col-gap));
  }

  .ss-col-lg-4 {
    flex-basis: calc(25% - var(--ss-col-gap));
  }

}

.mail-button {
  height: 35px;
  width: 125px;
}

.date {
  font-style: italic;
}

@media screen and (min-width: 768px) {
  .h-60 {
  height: 60px;
}
}

.to-bold {
  font-weight: 700;
}

.font-bold {
  font-family: var(--boldFont);
}

.subtitle {
  font-size: 1.8rem;
}

.item-bg {
  background-color: gray;
  border-radius: 25px;
  padding: 2.4rem;
  min-height: 400px;
  align-items: center;
}

@media screen and (min-width: 768px) {
  .item-bg {
    width: 75%;
  }
}

@media screen and (min-width: 1200px) {
  .item-bg {
    width: 50%;
  }
}

.br-top-left-100 {
  border-top-left-radius: 100px;
}

.br-50 {
  border-radius: 50%;
}

.research-section__wp .content__data p:empty {
  line-height: 1;
}

.research-section__wp .content__data p:empty:before {
  content: '.'; display: block;
  color: transparent;
}

.content__data--bg {
  background-color: var(--cards);
  padding: 2.4rem;
  flex-grow: 1;
}

.br-25-top-item {
  border-top-left-radius: 25px;
  border-top-right-radius: 25px;
}

.br-25-bottom-item {
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
}

.white-text {
  color: var(--white);
}

.object-fit-contain {
  object-fit: contain;
}

@media screen and (min-width: 768px) and (max-width: 1023px) {

  .content__data--bg {
    width: 100%;
  }

  .container {
    width: 85%;
  }

  .image-wrapper--tech {
    width: 60%;
    margin: 0 auto;
  }
}

@media screen and (max-width: 1023px) {
  .mob-mb {
    margin-bottom: 3.2rem;
  }

  .mob-mb:last-child {
    margin-bottom: unset;
  }

}

/* MENU */
.social-text {
  margin-right: 0.8rem;
}

.ss-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 95px;
  padding-left: 0;
  padding-right: 0;
}

.menu {
  list-style: none;
  display: flex;
}

.navbar__logo {
  line-height: 0;
}

.navbar__logo__img {
  width: 100px;
}

.navbar__social {
  display: flex;
  flex-shrink: 0;
  gap: 1.6rem;
}

.twitter,
.instagram {
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: end;
  width: 30px;
  height: 30px;
}

.twitter a,
.instagram a {
  line-height: 0;
}

.instagram i,
.twitter i {
  font-size: 1.8rem;
  color: var(--links);
  cursor: pointer;
}

.navbar__burger {
  cursor: pointer;
}

.navbar__burger div {
  width: 25px;
  height: 3px;
  background-color: var(--primaryColor);
  margin: 5px;
  transition: all 0.3s ease;
}

.menu.nav-active {
  transform: translateX(0%);
}

.navbar__desktop {
  display: none;
}

.navbar__mobile {
  display: flex;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  text-decoration: none;
  font-size: 2.4rem;
  font-family: var(--mainFont);
}

.nav-link:hover {
  text-decoration: none;
  color: var(--links);
} 

.current_page_item .nav-link {
  color: var(--white);
  font-weight: var(--boldFont);
  text-decoration: underline;
}

.navbar__menu ul li:last-child {
  padding-bottom: unset;
}

.navbar__burger {
  margin-left: 2.4rem;
}

.icon__transform {
  transform: rotate(-180deg) translateX(-2rem);
  /* transition: all 0.3s ease; */
}

.toggle .first {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .second {
  opacity: 0;
}

.toggle .third {
  transform: rotate(45deg) translate(-5px, -6px);
}

@media screen and (max-width: 1439px) {
  .menu {
    position: absolute;
    right: 0;
    height: calc(100% - 95px);
    top: 95px;
    background-color: var(--primaryColor);
    flex-direction: column;
    width: 70%;
    transition: transform 0.5s ease-in;
    transform: translateX(100%);
    z-index: 3;
    align-items: center;
    justify-content: start;
    padding-top: 6.4rem;
  }

  .nav-item {
    padding-bottom: 2.4rem;
    opacity: 0;
  }

  .nav-link {
    color: var(--white);
  }
}

@media screen and (min-width: 1440px) {

  .navbar__mobile {
    display: none;
  }

  .navbar__desktop {
    display: flex;
  }

  .ss-navbar {
    height: 105px;
    gap: 10rem;
  }

  .current_page_item .nav-link {
    color: var(--links);
    font-weight: 600;
    text-decoration: none;
  }

  .navbar__menu {
    display: flex;
    gap: 5.6rem;
    width: 100%;
  }

  .navbar__burger {
    display: none;
  }

  .menu-menu-1-container {
    width: 100%;
  }

  .menu {
    width: 100%;
    gap: 3rem;
    justify-content: space-between;
  }

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

@keyframes fadeLinks {
  from {
    opacity: 0;
    transform: translate(50px);
  }

  to {
    opacity: 1;
    transform: translate(0);
  }
}


/* hero */ 

.hero {
  width: 100%;
  height: 300px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

@media screen and (min-width: 768px) {
  .hero {
    height: 500px;
  }
}

@media screen and (min-width: 1024px) {
  .hero {
    height: 550px;
  }
}

@media screen and (min-width: 1200px) {
  .hero {
    height: 500px;
  }
}

@media screen and (min-height: 700px) and (max-height: 720px) {
  .hero {
    height: 350px;
  }
}

@media screen and (min-width: 2560px) {

  .hero {
    height: 800px;
  }

}

/* home */ 
@media screen and (min-width: 1024px) {
  .carousel-wrapper {
    width: calc(50% - 2.4rem);
  }
}


/* lab */

.gallery-grid { 
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  gap: 4rem;
}

.gallery-grid img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.ss-col-2--funding ul {
  padding-left: 14px;
}

.ss-col-2--funding ul li {
  list-style-type: disc;
}

@media screen and (min-width: 768px) {
  .gallery-grid { 
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid img {
    height: 300px;
  }
}

@media screen and (min-width: 1024px) {
  .gallery-grid { 
    grid-template-columns: repeat(3, 1fr);
  }
}

/* single team */ 

.team-photo {
  width: 400px;
}

.job-title {
  font-size: 2rem;
  margin-bottom: 2.4rem;
  font-family: var(--lightFont);
  font-weight: 300;
}

/* publications */ 

.authors {
  font-family: var(--lightFont);
  font-weight: 300;
  overflow: hidden;
  min-height: 53px;
  margin-bottom: 0;
}

.show-author-list {
  display: none;
  cursor: pointer;
}

.icon-link {
  display: flex;
  margin-top: 1.6rem;
}

.wrapper-hr {
  position: relative;
  border-bottom: 2px solid #c1c1c1;
  width: 50%;
  transform: translateY(-10px);
}

.hr-thicker {
  position: absolute;
  left: 0;
  bottom: -2px;
  border-bottom: 2px solid #797979;
  width: 20px;
}

.icon-link a {
  width: fit-content;
  padding-right: 2.4rem;
}

.select__dropdown {
  font-family: var(--mainFont);
  font-weight: 400;
  background-color: var(--cards);
  border-radius: 5px;
  height: 40px;
  width: 100%;
  padding-left: 1.6rem;
  appearance: none;
  cursor: pointer;
  box-shadow: none;
  border: none;
}

.select__icon {
  width: 100%;
}

.page-pagination {
  width: 100%;
}

.drop__icon {
  position: relative;
}

.drop__icon::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free", serif;
  font-weight: 700;
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: black;
  font-size: 1.6rem;
  pointer-events: none;
}

.pagination {
  gap: 1.8rem;
}

.pagination-button {
  border: 2px solid var(--links);
  width: 30px;
  height: 30px;
  padding: unset;
}

.pagination-button.active {
  background-color: transparent;
  color: var(--links);
}

[data-pub-group] h3 {
  min-height: var(--pub-min-h, auto);
}

@media screen and (min-width: 1280px) {
  .wrapper-hr {
    width: 60%;
  }
}

/* contact */

.w100-50 p {
  width: 100%;
}

@media screen and (min-width: 1024px) {
  .w100-50 p {
    width: calc(50% - 2.4rem);
  }
}

.iframe-container iframe {
  width: 100%;
  max-width: 100%;
}

.with_frm_style input[type=text], .with_frm_style input[type=email], .with_frm_style textarea {
  background-color: var(--cards);
}

.frm_style_formidable-style.with_frm_style .frm_submit button {
  background-color: var(--links);
  color: var(--white);
  width: 130px;
  height: 30px;
  padding: unset;

}

.frm_style_formidable-style.with_frm_style .frm_submit button:hover {
  background-color: var(--white);
  color: var(--links);
  border-color: var(--links);
}

/* footer */
footer {
  background-color: var(--links);
}

.footer {
  height: 60px;
  color: var(--white);
}

.footer a {
  color: var(--white);
  text-decoration: none;
  display: inline;
  font-size: inherit;
}

.footer a:hover {
  text-decoration: underline;
  color: var(--white);
}