@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");
/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}
body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root,
#__next {
  isolation: isolate;
}

:root {
  --viewport-height: 100vh;
  --background-height: 100%;
  --fs-900: 3em;
  --fs-200: 1.2rem;
  --fs-100: 1rem;
}

h1 {
  font-size: var(--fs-900);
}

body,
html {
  height: 100%;
  width: 100%;
}

body {
  line-height: 1;
  min-height: var(--viewport-height);
  min-width: 320px;
  overflow-x: hidden;
  color: white;
  font-family: "Roboto", sans-serif;
  font-size: var(--fs-200);
  line-height: 1.5;
}

body::before {
  content: "";
  display: block;
  background-attachment: scroll;
  height: calc(var(--background-height) + 3rem);
  left: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  transform: scale(1);
  width: 100vw;
  z-index: 0;
  background-image: linear-gradient(to left, rgba(0, 0, 0, 0.1) 33%, rgba(0, 0, 0, 0.55)), url("../images/greening.jpg");
  background-position: 0% 0%, center;
  background-repeat: repeat, no-repeat;
  background-size: auto, cover;
  background-color: #ffffff;
  z-index: -1;
}

.wrapper {
  margin-left: 10%;
  margin-top: 4rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
  position: relative;
}

.logo {
  width: 20rem;
}

.button-group {
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.button-group button,
.back-button,
.team-back-button {
  background: none;
  color: white;
  padding: 0.2rem 0.5rem;
  border: 1px solid white;
  border-radius: 0.5rem;
  margin-right: 1rem;
  transition: background 0.3s ease-in-out;
  max-width: 150px;
}
.button-group button:hover,
.back-button:hover,
.team-back-button:hover {
  transition: background 0.3s ease-in-out;
  cursor: pointer;
  background-color: white;
  color: black;
}

section {
  opacity: 0;
  position: absolute;
  transform: scale(0.95);
  transition: all 0.3s ease-in-out;
  z-index: -1;
  padding-bottom: 5rem;
  width: 90%;
}
section p {
  width: 100%;
  max-width: 42rem;
  margin-top: 1rem;
}

article h3 {
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

.team-wrapper {
  display: grid;
  --repeat: auto-fit;
  grid-template-columns: repeat(var(--repeat), 200px);
  gap: 2em;
}

.team-member {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: var(--fs-100);
  align-items: center;
  gap: 0.2rem;
}
.team-member .member-name {
  font-weight: bold;
}
.team-member .member-name,
.team-member .member-title {
  text-align: center;
}
.team-member a {
  width: 70%;
}
.team-member a img {
  width: 100%;
}
.team-member img {
  border-radius: 50%;
  transition: filter 0.3s ease-in-out;
  width: 70%;
  filter: grayscale(100%);
}
.team-member img:hover {
  cursor: pointer;
  filter: grayscale(0%);
}

.team-member-info {
  opacity: 0;
  position: absolute;
  transform: scale(0.95);
  transition: all 0.3s ease-in-out;
  z-index: -1;
  width: 100%;
}
.team-member-info img {
  float: left;
  width: 120px;
  margin-right: 1.5rem;
  margin-bottom: 1.5rem;
}

.member-wrapper p {
  margin-bottom: 0.5rem;
}

@media (min-width: 750px) {
  .wrapper {
    width: 90%;
    margin-left: 5%;
  }
  .button-group {
    flex-direction: row;
  }
  .button-group button,
  .back-button,
  .team-back-button {
    padding: 0.25rem 1rem;
  }
  .team-wrapper {
    --repeat: 3;
  }
}
.mb-1 {
  margin-bottom: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.active {
  opacity: 1;
  transform: scale(1);
  transition: all 0.3s ease-in-out;
  z-index: 10;
}

a {
  color: yellow;
  text-decoration: none;
}

.logos {
  display: flex;
  width: 100%;
  justify-content: space-between;
  margin-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.logos img {
  max-width: 300px;
  height: auto;
  object-fit: contain;
}