.pagetitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 4em;
  font-weight: 700;
  font-style: normal;
  word-spacing: 0.2em;
  letter-spacing: 0.1em;
  padding-bottom: 0.5em;
  color: transparent;
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0),
    rgba(255, 255, 255, 0.8)
  );
  background-clip: text;
  -webkit-background-clip: text;
  animation: fadeIn 2s forwards;
}

@keyframes fadeIn {
  to {
    color: rgb(255, 255, 255);
    background-size: 200% 100%;
  }
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  color: #ffffff;
  text-align: center;
  overflow-x: hidden;
  background-color: black;
  animation: rotateBoxShadow 4s infinite linear;
}

@keyframes rotateBoxShadow {
  0% {
    box-shadow: inset 0px 0em 15em #102d42;
  }
  33% {
    box-shadow: inset 0px 1em 20em #213f67;
  }
  66% {
    box-shadow: inset 0px 0.5em 20em #132b49;
  }
  100% {
    box-shadow: inset 0em 0em 15em #143852;
  }
}

header {
  background-color: #000000;
  color: #ffffff;
  text-align: center;
  padding-left: 1em;
  padding-bottom: 0.2em;
  padding-right: 1em;
  padding-top: 1em;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-content img {
  max-height: 3em;
  margin-right: 3em;
}

.header-buttons {
  display: flex;
  justify-content: space-between;
  background-color: #000000;
  padding: 0.5em;
  padding-left: 6em;
  padding-right: 6em;
  align-items: center;
  flex-grow: 1;
}

.header-buttons a {
  text-decoration: none;
  font-size: 14pt;
  color: #ffffff;
  padding: 0.5em 1em;
  transition: background-color 0.3s;
  background-color: #174867;
  text-decoration: none;
  margin-right: 0.9em;
  padding: 0.4em 0.8em;
  border-radius: 0.8em;
  white-space: nowrap;
}

.header-buttons a:hover {
  background-color: #286aa7;
}

.team-section {
  margin: 2em 3em;
  padding: 2em;
  background: linear-gradient(
    to bottom,
    rgba(17, 25, 35, 0.8),
    rgba(17, 38, 59, 0.6)
  );
  border-radius: 1em;
}

.team-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2em;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1.5em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid #174867;
}

.flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
}

.flex-item {
  flex: 0 1 280px;
  color: white;
  text-align: center;
  font-size: 0.9em;
  padding: 1.5em;
  background: rgba(17, 26, 35, 0.9);
  border-radius: 0.8em;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.flex-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(23, 72, 103, 0.4);
}

.img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-width: 0.4em;
  border-style: solid;
  border-color: #111a23;
  border-radius: 50%;
  animation: rotateBoxShadow1 4s infinite linear;
}

@keyframes rotateBoxShadow1 {
  0% {
    box-shadow: 0.05em 0.05em 0.9em rgba(30, 81, 103, 0.974);
  }
  33% {
    box-shadow: 0.05em 0.1em 1.3em #4f7ab2;
  }
  66% {
    box-shadow: 0.05em 0.15em 1.5em #38557d;
  }
  100% {
    box-shadow: 0.05em 0.1em 0.95em rgba(29, 85, 126, 0.71);
  }
}

@media (max-width: 62.5em) {
  .flex-item {
    flex: 0 1 250px;
  }
}

@media (max-width: 40em) {
  .flex-item {
    flex: 0 1 100%;
  }

  .team-section {
    margin: 1em;
    padding: 1em;
  }

  .pagetitle {
    font-size: 2.5em;
  }
}

h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.3em;
  margin-top: 1em;
  margin-bottom: 0.3em;
}

h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: 1em;
  color: #8bcfff;
  margin-bottom: 0.8em;
}

.member-description {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

a {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
}

footer {
  background-color: #0a0a0a;
  color: #fff;
  text-align: center;
  padding: 1em 0;
  font-size: 0.9em;
}

.page-footer {
  background-color: #0a0a0a;
  color: #fff;
  text-align: center;
  padding: 1em 0;
  font-size: 0.9em;
  font-family: 'Space Grotesk', sans-serif;
  margin-top: 2em;
}
