@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1 {
  font-family: "VT323", monospace;
  font-weight: 400;
  font-style: normal;
  color: rgb(255, 11, 231);
  font-size: 2.5em;
  
}

h2 {
  font-family: "VT323", monospace;
  font-weight: 400;
  font-style: normal;
  color: fuchsia;
  font-size: 1.5em;
  margin-bottom: 15px;
  padding:0 15px;
}

body {
  background-color: #020e20;
  color: #ecf9ff;
  font-family: "VT323", monospace;
  font-weight: 400;
  font-style: normal;
}

header {
    display: flex;
    flex-flow: row nowrap;
    width: 100vw;
    justify-content: flex-end;
    padding: 25px 20px;
    box-sizing: border-box;
}

nav {
    display: flex;
    flex-flow: row nowrap;
    flex-grow: .8;
    justify-content: space-evenly;
    align-items: center;
    font-size: 1em;
}


  #nav-links .navlink {
    color: #0fffc3;
    text-decoration: none;
    padding: 8px 10px;
    box-sizing: border-box;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
    white-space: nowrap;
  }

  #nav-links .navlink:hover {
    color: greenyellow;
    cursor: pointer;
    transform: scale(1.2);
  }


nav a {
   font-size: 1.2em;
   display: block;

}


nav .icon {
  display: none;
}

.responsive {
    display: none;
}

.search-bar {
    display: flex;
    align-items: center;
    max-width: 200px;
    color: #fff;
}

.search-bar input[type=text] {
    outline: none;
    font-size: 1.1em;
    padding: 5px 10px;
    width: 100%;
    background-color: rgb(77, 85, 136);
    border: none;
    color: #fff;
    border-radius: 20px;
}
.search-bar input[type=text]::placeholder {
  color: #a0a0a0;
}

.search-bar  button {
  float: right;
  padding: 5.9px 5px;
  background: #4f58ff;
  font-size: 1em;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  position: absolute;
  margin-left: 180px;
  border-radius: 0px 20px 20px 0;
}


  /* Hamburger icon — hidden on desktop */
  #nav-links .icon {
    display: none;
    margin-left: auto;
    padding: 10px;
    text-decoration: none;
  }


  /*-------Categories-----------------------*/

section#c_adv {
    background-color: pink;
    width: 100%;
    height: fit-content;
 
}



  /* ── Responsive ── */
  @media (max-width: 1220px) {

    header h1 {
        font-size: 2em;
        margin-right: auto;
    }

    #nav-links, .search-bar {
      flex-direction: column;
      align-items: flex-start;
      padding: 0;
      position: absolute;
      z-index: 10000;
      width: 200px;

    }

    /* Show hamburger button */
    #nav-links .icon {
      display: block;
      position: absolute;
      top: 0;
      right: 0;
      padding: 0 16px;
    }


    /* Hide all nav links by default on mobile */
    #nav-links .navlink, .search-bar {
      display: none;
      width: 100%;
      padding: 12px 20px;
      font-size: 15px;
    }

    /* When .open is toggled, show them */
    #nav-links.open .navlink {
      display: block;
      text-align: right;
      background-color: #020e20;

    }

    #nav-links.open .search-bar {
        display: flex;
        background-color: #020e20;
        flex-flow: row;
        justify-content: flex-end;
        margin-left: auto;
        position: absolute;
        top: 484px;
        z-index: 10000;
    }

    /* Reserve space for the hamburger button */
    #nav-links::before {
      content: '';
      display: block;
      height: 52px;
      width: 100%;
      background-color: #020e20;
    }
  }