@import url('https://fonts.googleapis.com/css2?family=Raleway&display=swap');

body {
  margin: 0;
  background: #333;
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-size: 1em;
  word-wrap: break-word;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

a {
  color: #4db1ac;
}

li {
  margin-bottom: 10px;
}

main {
  margin: 60px 30px 10px;
}

.logo-large {
  width: 100%;
  height: 100%;
  max-height: 600px;
  display: flex;
  align-content: center;
  justify-content: center;
}

.logo-large img {
  max-height: 600px;
  max-width: 90%;
}

.home-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.home-text > p {
  max-width: 600px;
}



.team-members,
.first-mates {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 40px 40px 0;
}

.team-members > div {
  display: flex;
  width: 550px;
  margin-bottom: 40px;
}

.team-member-icon {
  width: 150px;
  height: 150px;
  border: solid 0px;
  border-radius: 50%;
}

.team-member-details {
  margin: 0 40px 0 20px;
}

.team-member-name {
  font-weight: bold;
  font-size: 2.5em;
}

.team-member-socials > ul {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  margin: 10px 0;
  padding: 0;
}

.team-member-socials > ul > li {
  margin: 0 15px;
}

.team-member-socials > ul > li:first-of-type,
.team-member-socials > ul > li:last-of-type {
  margin: 0;
}

.team-member-socials > ul > li img {
  max-height: 24px;
}

.first-mates > div {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 250px;
  margin-bottom: 30px;
}

.first-mate-icon {
  margin-right: 20px;
}

.first-mate-icon img {
  width: 80px;
  height: 80px;
  border: solid 0px;
  border-radius: 50%;
}

.first-mate-name {
  font-size: 1.0em;
  font-weight: bold;
}



.top-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background-color: #222;
  color: #fff;
  height: 50px;
  padding: 1em;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.top-nav .nav-logo {
  max-width: 200px;
}

.menu {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.menu > li {
  margin: 0 1rem;
}

.menu > li > a {
  text-decoration: none;
  font-weight: bold;
  color: #4db1ac;
}

.menu-button-container {
  display: none;
  height: 100%;
  width: 30px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#menu-toggle {
  display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
  display: block;
  background-color: #fff;
  position: absolute;
  height: 4px;
  width: 30px;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 2px;
}

.menu-button::before {
  content: "";
  margin-top: -8px;
}

.menu-button::after {
  content: "";
  margin-top: 8px;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
  margin-top: 0px;
  transform: rotate(45deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
  background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
  margin-top: 0px;
  transform: rotate(-45deg);
}

@media (max-width: 700px) {
  .menu-button-container {
    display: flex;
  }

  .menu {
    position: absolute;
    top: 0;
    margin-top: 50px;
    left: 0;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-content: center;
    align-items: center;
  }

  .menu li a {
    font-size: 1.2em;
  }

  #menu-toggle ~ .menu li {
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    align-items: center;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }

  #menu-toggle ~ .menu li a {
    display: none;
  }

  #menu-toggle:checked ~ .menu li {
    height: 4em;
    padding: 0.5em;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }

  #menu-toggle:checked ~ .menu li a {
    display: initial;
  }

  .menu > li {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0.5em 0;
    width: 100%;
    color: white;
    background-color: #222;
  }


  .team-members,
  .first-mates {
    margin: 40px 20px 0;
  }

  .team-members > div {
    width: 400px;
  }

  .team-member-icon {
    width: 80px;
    height: 80px;
  }

  .team-member-name {
    font-weight: bold;
    font-size: 1.8em;
  }

  .team-member-description {
    margin-left: -95px;
    margin-right: -40px;
  }

  .first-mates > div {
    width: 200px;
    margin-bottom: 20px;
  }
  
  .first-mate-icon img {
    width: 60px;
    height: 60px;
  }
  
  .first-mate-name {
    font-size: 0.9em;
    font-weight: bold;
  }
}

@media (max-width: 450px) {
  .team-members,
  .first-mates {
    margin: 40px 0 0;
  }

  .team-members > div {
    display: flex;
    width: 300px;
  }

  .first-mates > div {
    width: 160px;
    margin-bottom: 15px;
  }
  
  .first-mate-icon img {
    width: 40px;
    height: 40px;
  }
  
  .first-mate-name {
    font-size: 0.8em;
    font-weight: bold;
  }
}