header {
  position: relative;
}

@media (max-width: 1024px) {
  header .nav-links {
    display: none;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
  }

  header .nav-links.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
    font-size: 2.2rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 6vw;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1100;
    max-width: 40px;
    max-height: 40px;
    box-sizing: border-box;
  }

  header .logo2 {
    display: none;
  }

  header .logo1 {
    position: relative;
    margin: 0 auto 0 8px;
    display: block;
    height: auto;
    max-height: 50px;
  }

  .nav-links a {
    padding: 0.9rem;
    display: block;
    color: white;
    font-family: 'Cerco', sans-serif;
    font-size: 1.2rem;
    text-decoration: none;
  }

  .menu-toggle.active {
    color: white;
  }

  header {
    padding-right: 20px;
  }
}

body {
  overflow-x: hidden;
}

@media (max-width: 768px) {
  header .nav-links {
    display: none;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
  }

  header .nav-links.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
    font-size: 2.2rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 6vw;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1100;
    max-width: 40px;
    max-height: 40px;
    box-sizing: border-box;
  }

  header .logo2 {
    display: none;
  }

  header .logo1 {
    position: relative;
    margin: 0 auto 0 8px;
    display: block;
    height: auto;
    max-height: 50px;
  }

  .nav-links a {
    padding: 0.9rem;
    display: block;
    color: white;
    font-family: 'Cerco', sans-serif;
    font-size: 1.2rem;
    text-decoration: none;
  }
  .menu-toggle.active {
    color: white;
  }
  header {
    padding-right: 20px;
  }
}
