/* Media Queries */

/* max-width: 1072px */
@media screen and (max-width: 67em) {
  .landing-view {
    background-image: linear-gradient(
        rgba(243, 236, 236, 0.835),
        rgba(10, 10, 10, 0.1)
      ),
      url(img/together.svg);
  }

  header {
    height: inherit;
  }

  .navbar {
    flex-direction: column;
    justify-content: flex-start;
    height: inherit;
    gap: 1.2rem;
    padding: 1.2rem 0;
  }

  .logo-section {
    flex: 0 0 auto;
    max-height: 10rem;
  }

  .header-links {
    flex: 0 0 auto;
    padding: 0;
    transform: none;
  }

  .login-register-btn {
    flex: 0 0 auto;
    width: 100%;
    max-width: 45rem;
    box-shadow: 1px 1px 5px white;
    margin-top: auto;
    transform: none;
  }

  .purpose-cards {
    flex-direction: column;
    gap: 2.4rem;
    max-width: 30rem;
  }

  .purpose-section {
    border: 0.2rem solid var(--primary-color);
    border-radius: 1.6rem;
    padding: 0.8rem 1.6rem;
  }

  .purpose-description {
    text-align: center;
  }

  .team-grid,
  .staff-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .workgroups-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.4rem;
  }
}

/* max-width: 768px */
@media screen and (max-width: 48em) {
  .container {
    padding: 3.2rem;
  }

  .team-grid,
  .staff-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .stat-item {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-container {
    text-align: center;
    flex-direction: column;
    align-items: center;
    gap: 2.4rem;
  }

  .copyright-container {
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
    padding: 1.6rem;
  }

  .workgroups-grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
    padding: 1.6rem;
  }

  .workgroup-card {
    padding: 1.6rem;
  }

  .workgroup-card__members {
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1.2rem;
  }
}

/* max-width: 496px */
@media screen and (max-width: 31em) {
  h2 {
    font-size: 2.4rem;
  }

  h3 {
    font-size: 2rem;
  }

  h4 {
    font-size: 1.8rem;
  }

  header {
    position: relative;
  }

  .navbar .hamburger-menu {
    display: block;
    align-self: flex-start;
    z-index: 2;
  }

  .nav-icon {
    height: 3.6rem;
    width: 3.6rem;
    z-index: inherit;
  }

  .menu {
    color: var(--primary-color);
  }

  .close {
    color: white;
  }

  .navbar.hide-menu .menu {
    display: block;
  }

  .navbar .menu {
    display: none;
  }

  .navbar.hide-menu .close {
    display: none;
  }

  .navbar .close {
    display: block;
  }

  .navbar.hide-menu .header-links {
    right: -100%;
  }

  .header-links {
    position: absolute;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    background-color: var(--primary-color);
    border-radius: 0.4rem;
    z-index: 1;
    transition: all 0.5s;
  }

  .header-link:link,
  .header-link:visited {
    font-size: 1.6rem;
    padding: 0.5rem;
    color: #e6f4f0;
  }

  .header-link-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: static;
    width: 100%;
  }

  .submenu {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: static;
    width: 80%;
    background-color: #53b395;
    border: none;
    border-radius: 0.4rem;
    box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.1);
  }

  .submenu-link {
    color: #e6f4f0;
  }

  .team-grid,
  .staff-grid {
    grid-template-columns: 1fr;
  }

  .stat-item {
    flex-direction: column;
    justify-content: flex-start;
  }

  .social-icons {
    justify-content: center;
  }

  .copyright-txt {
    text-align: center;
  }

  .elon {
    margin: 0;
  }

  .workgroup-card__members {
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
  }

  .workgroup-member {
    flex: 0 1 auto;
    justify-content: flex-start;
  }
}

/* max-width: 480px */
@media screen and (max-width: 25em) {
  html {
    font-size: 8px;
  }
  header {
    height: 100%;
  }
  .navbar {
    justify-content: flex-start;
    height: 95vh;
  }

  .logo-section {
    flex-direction: column;
    gap: 0;
  }

  .logo-section {
    max-height: none;
  }
  .logo-section .logo-title-fa {
    padding: 0 0.8rem 0.8rem 0.8rem;
  }
  .login-register-btn {
    justify-self: flex-end;
  }
}
