body {
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
  -moz-text-size-adjust: 100% !important;
}
@keyframes bgAnimation {
  0% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 0 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes bgAnimation-2 {
  0% {
    background-position: 200% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

.navigation-container {
  position: fixed;

  /* display: block; */
  /* position: relative; */
  z-index: 6;
  top: 0;
  height: 8vh;
  width: 100vw;
  background-color: #fff;

  /* display: none; */
}

.navigation-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background-color: transparent;
  border-radius: 1vw;
  overflow: hidden;
}

.navigation-bg > .baffle {
  position: absolute;
  left: 0;
  height: 100%;

  width: 130vw;

  /* z-index: -1; */
  filter: blur(8px);
  left: -13vw;
  background-image: linear-gradient(
    150deg,
    rgb(255, 255, 255),
    rgb(189, 182, 247),
    rgb(223, 190, 244),
    rgb(176, 212, 249)
  );
}

.navigation-content {
  display: flex;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-color: transparent;
  border-radius: 1vw;
  font-size: 3.4vh;
}

.navigation-content > .nav-sub-container:nth-child(1) {
  flex-shrink: 0;
  flex-grow: 0;
  position: relative;
  justify-content: space-between;
  display: flex;
  align-items: start;
  height: 100%;
  width: 40vh;
  /* background-color: red; */
}
.navigation-content .nav-sub-container:nth-child(1) > .team-logo {
  flex-shrink: 0;
  flex-grow: 0;
  width: 35%;
  height: 100%;
  background-image: url("https://static.igem.wiki/teams/5038/team-logo.jpg");
  background-size: 60% 100%;
  background-repeat: no-repeat;
  background-position: 45% 65%;
  overflow: visible;
  margin-right: 1.5vw;
  background-color: #fcfbfb;
  border-radius: 0 5vh 5vh 0;
}
.navigation-content > .nav-sub-container:nth-child(1) > .team-name {
  flex-shrink: 0;
  flex-grow: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.7vw;
  height: 100%;
  width: 60%;

  font-size: 1.2vw;
  font-family: "CG";

  text-align: left;

  color: transparent;
  background-clip: text;
  background-image: linear-gradient(
    135deg,
    rgb(210, 64, 147),
    rgba(173, 57, 202, 0.95),
    rgb(50, 120, 241)
  );
  color: rgb(148, 28, 233);

  background-size: 300%;
}

.navigation-content .team-name-2 {
  width: 40%;
  margin-left: -1.5%;
  padding-top: 0vw;
  line-height: 1.1vw;
  font-size: 1.5vw;
  font-family: "Aqum-2-Classic";

  text-align: left;

  color: transparent;
  background-clip: text;
  background-image: linear-gradient(
    135deg,
    rgba(179, 37, 117, 0.71),
    rgba(143, 49, 167, 0.685),
    rgb(22, 91, 209)
  );
  background-size: 300%;

  animation: bgAnimation 4s linear infinite;
}

.navigation-content .nav-sub-container:nth-child(2) {
  flex-grow: 1;
  flex-shrink: 1;
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;

  height: 8vh;
  width: 150vh;
  border-radius: 1.5vw;

  padding-right: 2vh;
  color: transparent;
  background-clip: text;
  background-image: linear-gradient(
    135deg,
    rgba(181, 240, 244, 0.721),
    rgb(126, 116, 203),
    rgb(196, 118, 215),
    rgb(38, 106, 223),
    rgba(181, 240, 244, 0.721),
    rgb(126, 116, 203),
    rgb(196, 118, 215),
    rgb(38, 106, 223)
  );

  background-repeat: repeat;
  background-size: 200%;

  animation: bgAnimation-2 8s linear infinite both;
}
.navigation-content .team-name-1 {
  width: max-content;
  margin-left: -1.5%;
  padding-top: 0vw;
  line-height: 1.1vw;
  font-size: 1.0vw;

  text-align: left;

  color: transparent;
  background-clip: text;
  background-image: linear-gradient(
    135deg,
    rgba(179, 37, 117, 0.71),
    rgba(143, 49, 167, 0.685),
    rgb(22, 91, 209)
  );
  background-size: 300%;

  animation: bgAnimation 4s linear infinite;
  font-family: "Career";
}
@supports not (background-clip: text) {
  .navigation-content .nav-sub-container:nth-child(2) {
    color: rgb(148, 28, 233);
    background-clip: content-box;
    background-image: none;
  }
  .navigation-content .team-name-2 {
    color: rgb(148, 28, 233);
    background-clip: content-box;
    background-image: none;
  }
  .navigation-content .team-name-1 {
    color: rgb(148, 28, 233);
    background-clip: content-box;
    background-image: none;
  }
}
.nav-part {
  height: 100%;
  width: max-content;
}
.nav-part-name {
  font-family: "Aqum-2-Classic";
  font-size: 1.65vw;
  text-align: center;
  height: 100%;
  line-height: 8vh;
  word-spacing: -0.5vh;
}
.nav-part:hover > .nav-part-page {
  display: flex;
  background-color: #fff9f9cf;
  background-color: rgb(254 239 234);
}
.nav-part:hover > .nav-part-name {
  font-size: 4vh;
  color: rgb(73, 5, 220);
  background-color: rgba(255, 255, 255, 0.578);
  border-radius: 1vh 1vh 0 0;
}
.nav-part:hover > .nav-part-name {
  margin-top: -1%;
}

.nav-part-page {
  font-family: "Career";
  font-family: "Aqum-2-Classic";
  font-size: 2vw;
  border-radius: 0 0 1vh 1vh;
  z-index: -1;
  font-weight: bolder;
  position: relative;
  width: 120%;
  left: -10%;
  flex-direction: column;
  display: none;
  align-items: center;
  align-content: space-around;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 1vh;
  padding-bottom: 1vh;
}
.nav-part-page > a {
  color: rgba(55, 0, 255, 0.514);
  font-size: 0;
  border-radius: 1vh;
  width: 100%;
  font-family: "Career";
  transition: all 1s;
  animation: nav-part-page-a-appear 0.2s linear both;
}

@keyframes nav-part-page-a-appear {
  0% {
    font-size: 0;
  }
  100% {
    font-size: 1.5vw;
  }
}
.navigation-container a:hover {
  background-color: rgba(75, 8, 220, 0.16);
}

@media (max-width: 500px) {
  .navigation-content .team-name {
    position: absolute;
    top: 0;
    left: 100%;
    justify-content: space-around !important;
    flex-direction: row !important;
    width: 300% !important;
  }
  .navigation-content .team-name-1 {
    width: max-content;
    font-size: 1.4vh;

    line-height: 2vh;
  }
  .navigation-content .team-name-2 {
    width: max-content;

    font-size: 1.4vh;
    line-height: 2vh;
  }
  .navigation-content .team-logo {
    width: 100% !important;
  }
  .navigation-content > .nav-sub-container:nth-child(1) {
    width: 25%;
  }
  .navigation-content > .nav-sub-container:nth-child(2) {
    flex-wrap: wrap;
    padding-right: 0;
    align-items: start;
    justify-content: space-around;
    padding: 3vh 0;
  }
  .nav-part {
    height: 2.5vh;
    margin: 0 3%;
  }
  .nav-part-name {
    width: max-content;
    line-height: 3vh;

    flex-grow: 1;
    font-size: 1.2vh;
    word-spacing: 0;
  }

  .nav-part:hover > .nav-part-name {
    font-size: 1.3vh;
    color: rgb(73, 5, 220);
    background-color: rgba(255, 255, 255, 0.578);
    border-radius: 1vh 1vh 0 0;
  }
  .nav-part:hover > .nav-part-page {
    display: flex;
    background-color: #fff9f9cf;
    background-color: white;
    z-index: 10;
  }
}
