:root {
  --UIA-red: rgba(250,20,40,1);
  --UIA-blue: rgba(20,80,250,1);
  --UIA-yellow: rgba(255,192,0,1);
  --UIA-light-red: rgba(250, 80, 100, 1);
  --UIA-light-blue: rgba(80, 120, 250, 1);
  --UIA-light-yellow: rgba(225, 162, 0, 1);
}

body {
  background: rgb(0,0,0);
  width: 100%;
  height: 100%;
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, system-ui, sans-serif;
}

/* *******************
Navigation bar CSS
******************* */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right:0;
  height: 50px;
  /* background: linear-gradient(
    135deg,
    rgba(15, 15, 15, 0.4) 0%,
    rgba(0, 0, 0, 0.9) 80%
  ); */
  background:
        linear-gradient(
          135deg,
          rgba(255,255,255,0.07),
          rgba(255,255,255,0.015)
        );

  backdrop-filter: blur(20px) saturate(115%);
  -webkit-backdrop-filter: blur(20px) saturate(115%);
  justify-content: center;
  display:flex;
  /* flex-direction: row; */
  /* align-items: center; */
  z-index: 10;
  transition: all 0.9s ease;
}

.logo.nav-logo {
  /* display: inline-flex; */
  position: fixed;
  width: 60px;
  height: 45px;
  top: 7px;
  left: 0px;
}

#navbar a {
  display: flex;
  height: 50px;
  margin: auto;
  /* padding-left: 10px;
  padding-right: 10px; */
}

.navbutton {
  width: 500px;
  padding-left: 50px;
  display: flex;
  height: 50px;
  /* background: black; */
  margin: auto;
  padding: auto;
  text-align: center;
  /* padding-left: 20px;
  padding-right: 20px; */
}

.navbutton-text {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  /* Assure text cannot be selected and copied */
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.navbutton-text.active {
  font-weight: bold;
}

.navbutton-text:hover {
  background-color: rgba(50, 50, 50);
  background:
        linear-gradient(
          135deg,
          rgba(255,255,255,0.07),
          rgba(255,255,255,0.015)
        );

  backdrop-filter: blur(20px) saturate(50%);
  -webkit-backdrop-filter: blur(45px) saturate(115%);
  color: white;
  cursor: default;
}

.burger {
  display: none;
}

@media (max-width: 500px) {
  a {
    -webkit-tap-highlight-color: transparent;
  }

  .burger {
    display:block;
    width: 25px;
    height:  50px;
    padding: 0;
    border: 0;
    background: transparent;

    position: fixed;

    cursor: pointer;
    left: 20px;
    top: 0px;
    z-index: 10;

    -webkit-tap-highlight-color: transparent;
  }

  .line {
    width: 25px;
    height: 2px;
    background: white;
    border-radius: 2px;
    position: fixed;
  }

  .line.l1 {
    top: 15px;
    transition: all 0.5s ease;
  }

  .line.l2 {
    top: 24px;
    transition: all 0.5s ease;
  }

  .line.l3 {
    top: 33px;
    transition: all 0.5s ease;
  }

  .line.l1.l-open {
    top: 24px;
    transform: rotate(45deg);
    
  }

  .line.l2.l-open {
    width: 0px;
    margin-left: 12.5px;
  }

  .line.l3.l-open {
    top: 24px;
    transform: rotate(-45deg);
    
  }

  .navbutton {
    display: block;
  }

  .logo.nav-logo {
    position: fixed;
    margin-left: auto;
    margin-right: auto;
    left:  calc((100% / 2) - (60px / 2));
  }

  /* .logo.nav-logo.logo-open {
    position: fixed;
    margin-left: auto;
    margin-right: auto;
    left: 0px;
  } */

  #navbar.nav-open {
    height: 100vh;
  }

  #navbar a {
    /* display: flex; */
    justify-content: flex-start;
    padding-left: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;;
  }

  #navbar.nav-open a {
    /* display: flex; */
    justify-content: flex-start;
    padding-left: 20px;
    opacity: 1;
    visibility: visible;
  }

  .navbutton {
    width: 100%;
    padding-left: 0;
    margin-top: 50px;
    /* z-index: 0; */
    visibility: hidden;
  }

  .navbutton.navbut-open {
    /* display: block; */
    width: 100%;
    padding-left: 0;
    margin-top: 50px;
  }

  .navbutton-text {
    width: 100%;
    text-align: left;
    justify-content: flex-start;
    /* visibility: hidden; */
  }

  .navbutton-text.navtext-open {
    width: 100%;
    text-align: left;
    justify-content: flex-start;
    opacity: 1;
    /* visibility: visible; */
  }

  body.no-scroll {
    overflow: hidden;
    height: 100%;
  }
}




/* *******************
UIA landing animation
******************* */

/* #UIA-landing p {
  font-size: clamp(1rem, 2vw, 4rem);
} */

.landing {
  display: flex;
  position: relative;
  overflow:hidden;
  width: 100%;
  height: 100vh;
  max-width: 100%;
  max-height: 100vh;
  min-height: 400px;
  /* Assure text cannot be selected and copied */
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
  transition: height 2s ease, min-height 1s linear, padding-top 1s linear;
}

.landing p {
  font-size: clamp(1rem, 2vw, 4rem);
  transition: font-size 2s ease;
}

.landing.home {
  height: 100vh;
  max-height: 100vh;
  min-height: 300px;
  /* padding-top: 50px; */
  
}

.landing.other {
  height: 30vh;
  max-height: 100vh;
  min-height: calc(300px - 35px);
  padding-top: 35px;
}

.landing.home p {
  font-size: clamp(1rem, 2vw, 4rem)
}

.landing.other p {
  font-size: clamp(1rem, 1.5vw, 4rem)
}

.UIA {
  display: flex;
  position: relative;
  /* width: 100vw; */
  height: auto;
  margin: auto;
  align-items: center;
  text-align: center;
  color: white;
}

.UIA h1 {
  /* display: flex; */
  /* align-items: center; */
  margin: 0;
  margin-bottom: -1.5vw;
  font-size: clamp(4.7rem, 8vw, 8rem);
  font-weight: 500;
  letter-spacing: -0.06em;
}

.logo.landing-logo {
  display: inline-flex;
  object-fit: contain;
  border-color: black;
  /* width: 125px; */
  width: clamp(4.7rem, 10vw, 10rem);
  margin-bottom: clamp(-3rem, -3vw, -1.2rem);
  margin-left: -2vw;
  height: auto;
}

/* *******************
Content styling for all pages
******************* */

.content {
  color: white;
  padding: 50px;
  background:linear-gradient(
          135deg,
          rgba(20,20,20,1) 0%,
          rgba(10,10,10,1) 70%
        );
}

.content h1, .content p, .content h2, .content li, .content .mb-3, .content hr {
  margin-left: auto;
  margin-right: auto;
  max-width: 1100px;
}

.grid {
  display: grid;
  position: relative;
  overflow: hidden;
  max-width: 1100px;
  left: max(0px, calc((100vw - 1100px) / 2));
  
  /* grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); */
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  grid-column-gap: 0px;
  grid-row-gap: 50px;
  padding-top: 50px;
  padding-bottom: 50px;
  /* padding-left: max(0px, calc((100vw - 1100px) / 2));
  padding-right: max(0px, calc((100vw - 1100px) / 2)); */
  /* margin-left: -50px;
  margin-right: -150px; */
  justify-items: center;
  position: relative;
  z-index: 0;
  /* top: 80px; */
  /* background: linear-gradient(63deg, rgba(53,166,255,1) 0%, rgba(158,70,252,1) 100%); */
  /* box-shadow: -2px -2px 5px 2px rgba(0,0,0,0.3); */
  width: 100vw;
  height: auto;
  z-index: 1;
}

.grid-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 1;
    margin-left: -50px;
    margin-right: -150px;
    padding-right: 100px;
}

.tile {
  display: grid;
  position: relative;
  overflow: hidden;
  grid-auto-rows: min-content;
  /* background: rgba(80,80,80,1); */
  border-radius: 2%;
  justify-content: center;
  z-index:2;
}

a, a:visited {
  color: white;
  text-decoration: none;
}

/* a:hover {
  color: rgba(200, 200, 200, 1);
} */

/* *******************
Home page CSS
******************* */

#home-page {
  display: block;
  height: 100%;
  overflow-y: auto;
  /* overscroll-behavior: none; */
  /* -webkit-overflow-scrolling: touch; */
}


#landing-home {
  display: flex;
  position: relative;
  overflow:hidden;
  width: 100%;
  height: 100vh;
  max-width: 100%;
  max-height: 100vh;
  min-height: 400px;
  /* Assure text cannot be selected and copied */
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

#landing-home p {
  font-size: clamp(1rem, 2vw, 4rem);
}

.halo {
  position: absolute;
  opacity: 0.75;
  mix-blend-mode: screen;
  border-radius: 50%;
}

.halo.red {
  width: 65vw;
  height: 65vw;
  min-width: 500px;
  min-height: 500px;
  /* left: -20vw; */
  left: calc( (100vw - 65vw) / 2);
  top: 0vh;
  background: radial-gradient(
    circle,
    rgba(250,20,40,0.9) 0%,
    rgba(250,20,40,0.4) 35%,
    rgba(250,20,40,0) 70%
  );
  
  offset-path: ellipse(
    calc(80vw / 2)
    calc(80vh / 2)
    at 50% 50%
  );

  offset-distance: 55%;

  animation: move-red 20s infinite linear;
}

@keyframes move-red {
  100% {
    offset-distance: 155%;
  }
}

.halo.red.no-mix {
  left: 0;
  top: 0;
  offset-path: ellipse(
    calc(100% / 2)
    calc(100% / 2)
    at 50% 50%
  );
  animation: move-red 30s infinite linear;
}

.halo.blue {
  width: 80vw;
  height: 80vw;
  min-width: 600px;
  min-height: 600px;
  left: 40vw;
  top: -20vh;
  background: radial-gradient(
    circle,
    rgba(20,80,250,0.9) 0%,
    rgba(20,80,250,0.4) 35%,
    rgba(20,80,250,0) 70%
  );

  offset-path: ellipse(
    calc(80vw / 2)
    calc(40vh / 2)
    at 50% 50%
  );

  offset-distance: 90%;

  /* Version allowing halos to mix */
  animation: move-blue 30s infinite linear;
}

.halo.blue.no-mix {
  left: 0;
  top: 0;
  offset-path: ellipse(
    calc(100% / 2)
    calc(100% / 2)
    at 50% 50%
  );
  animation: move-blue 30s infinite linear;
}

@keyframes move-blue {
  100% {
    offset-distance: 190%;
  }
}

.halo.yellow {
  width: 70vw;
  height: 70vw;
  min-width: 400px;
  min-height: 400px;
  left: 20vw;
  /* top: 60vh; */
  top: 20vh;
  background: radial-gradient(
    circle,
    rgba(255,192,0,0.9) 0%,
    rgba(255,192,0,0.4) 35%,
    rgba(255,192,0,0) 70%
  );

  
  offset-path: ellipse(
    calc(100vw / 2)
    calc(20vh / 2)
    at 50% 92%
  );

  offset-distance: 25%;
  
  animation: move-yellow 30s infinite linear;
}

.halo.yellow.no-mix {
  left: 0;
  top: 0;
  offset-path: ellipse(
    calc(100% / 2)
    calc(100% / 2)
    at 50% 50%
  );

  offset-distance: 25%;
  
  animation: move-yellow 30s infinite linear;
}

@keyframes move-yellow {
  100% {
    offset-distance: 125%;
  }
}

.glass {
      position: absolute;
      width: 100%;
      /* Inset is a shorthand for top bottom left right
      Assures the layer covers all the screen */
      inset: 0;
      background:
        linear-gradient(
          135deg,
          rgba(255,255,255,0.07),
          rgba(255,255,255,0.015)
        );

      backdrop-filter: blur(45px) saturate(115%);
      -webkit-backdrop-filter: blur(45px) saturate(115%);
}

.atmosphere {
      position: absolute;
      /* Inset is a shorthand for top bottom left right
      Assures the layer covers all the screen */
      inset: 0;
      background:linear-gradient(
          90deg,
          rgba(0,0,0,0.3) 0%,
          rgba(0,0,0,0.05) 100%
        );

      backdrop-filter: blur(45px);
      -webkit-backdrop-filter: blur(45px);
}

#intro-section p {
  /* display: flex; */
  /* align-items: center; */
  /* margin-left: auto;
  margin-right: auto;
  max-width: 1100px; */
  text-align: left;
  /* margin-bottom: 0; */
}

#contact-section a:hover .webpage {
  color: rgba(150, 150, 150);
}

.tile.contact {
  width: 300px;
  height: 325px;
  padding-top: 20px;
}

.tile.contact h2, h3, p, a {
  text-align: center;
  z-index: 1;
}

.tile.contact h2, h3 {
  margin: 0;
}

.tile.contact p {
  margin: 10px;
}

.tile.contact a:hover {
  color: rgba(190, 190, 190, 1);
}

.tile.contact::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    135deg,
    rgba(255,255,255, 0.5),
    rgba(255,255,255, 0.02) 35%
  );

  opacity: 0;
  transition: opacity 0.25s ease-in-out;
  pointer-events: none;
}

.tile.contact:hover::before {
  opacity: 1;
}


/* *******************
People page
******************* */

#people-page {
  display: none;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  /* background-color: lightpink; */
}

#landing-other {
  display: flex;
  position: relative;
  overflow:hidden;
  width: 100%;
  height: 30vh;
  max-width: 100%;
  max-height: 100vh;
  min-height: 300px;
  /* Assure text cannot be selected and copied */
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

#members-section h1 {
  color: var(--UIA-light-red);
}

#members-section a:hover .webpage {
  color: var(--UIA-light-red);
}

/* #members-section a:hover {
  color: var(--UIA-light-red);
} */



.grid.members {
  grid-template-columns: repeat(auto-fit, minmax(325px, 1fr));
}

.tile.members {
  width: 300px;
  height: 325px;
  padding-top: 20px;
}

.tile.members h2, h3, p, a {
  text-align: center;
  z-index: 1;
}

.tile.members h2, h3 {
  margin: 0;
}

.tile.members p {
  margin: 10px;
}

.tile.members::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    135deg,
    rgba(250,20,40, 0.5),
    rgba(250,20,40, 0.02) 70%
  );

  opacity: 0;
  transition: opacity 0.25s ease-in-out;
  pointer-events: none;
}

.tile.members:hover::before {
  opacity: 1;
}

.person-image {
  display: inline;
  margin-top: 20px;
  width: 150px;
  height: 150px;
  border-radius:50%;
  background-color: rgba(200,200,200,1);
  justify-self: center;
  z-index: 1;
}

.halo.red-people {
  position: absolute;
  top: -300px;
  left: -300px;
  width: 600px;
  height: 600px;
  /* min-width: 500px;
  min-height: 500px; */
  background: radial-gradient(
    circle,
    rgba(100,20,40,0.9) 0%,
    rgba(100,20,40,0.4) 35%,
    rgba(100,20,40,0) 70%
  );
  z-index: 1;
}

.glass.tile-glass {
      background:
        linear-gradient(
          135deg,
          rgba(255,255,255,0.16),
          rgba(255,255,255,0.015)
        );

      backdrop-filter: blur(10px) saturate(110%);
      -webkit-backdrop-filter: blur(10px) saturate(110%);
}

/* *******************
Projects page
******************* */

#projects-page {
  display: none;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  /* background-color: lightpink; */
}

#projects-section p {
  text-align: left;
}

#projects-section h1 {
  color: var(--UIA-light-blue);
}

#projects-section a:hover h2 {
  color: var(--UIA-light-blue);
}

.tile.projects {
  width: 300px;
  height: 175px;
  padding-top: 20px;
  padding-left: 20px;
  padding-right: 20px;
  /* Assure padding does not change the size of the box */
  -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
  -moz-box-sizing: border-box;    /* Firefox, other Gecko */
  box-sizing: border-box;         /* Opera/IE 8+ */
  
}

.tile.projects::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    135deg,
    rgba(20, 80, 250, 0.5),
    rgba(20, 80, 250, 0.02) 70%
  );

  opacity: 0;
  transition: opacity 0.25s ease-in-out;
  pointer-events: none;
  /* -webkit-user-drag: none; */
}

.tile.projects:hover::before {
  opacity: 1;
  -webkit-user-drag: none;

}

.tile.projects h2, h3, a {
  text-align: center;
  z-index: 1;
}

.tile.projects p {
  text-align: left;
}

.tile.projects h2, h3 {
  margin: 0;
}

.grid.projects {
  grid-template-columns: repeat(auto-fit, minmax(325px, 1fr));
}

/* *******************
Publications page
******************* */

#publications-page {
  display: none;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  /* background-color: lightpink; */
}

#publications-section h1 {
  color: var(--UIA-light-yellow);
}

.mb-3 {
  position: relative;
  isolation: isolate;
  padding: 5px;
  border-radius: 5px;
}

.mb-3::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(250, 169, 20, 0.137),
    rgba(250, 204, 20, 0.048) 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

.mb-3:hover::before {
  opacity: 1;
}

.link-icon {
  width: 13px;
  filter: brightness(0) saturate(100%) invert(60%) sepia(94%) saturate(1400%) hue-rotate(9deg) brightness(95%) contrast(101%);
}

.doi {
  display: flex;
  margin: auto;
  margin-top: 10px;
}

.doi a {
  margin-left: 5px;
  font-size: 13px;
  color: var(--UIA-light-yellow)
}

