#header
{
    background-color: white;

    display: flex;
    flex-wrap: wrap;
}

#header > div:nth-child(1)
{
    height: 50px;
    width: 100%;
}

#header > div:nth-child(2)
{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    background-color: #ffffff;
}

@media (min-width: 850px) {
    #header > div:nth-child(2)
    {
        position: fixed;
        z-index: 1;
    }
}

#header > div:nth-child(2) > div:nth-child(1)
{
    display: flex;
    justify-content: center;
    align-items: center;

    height: 50px;

    flex: 1 1 300px;
}

#header > div:nth-child(2) > div:nth-child(1) > * > *
{
    height: 50px;
}

@media (max-width: 849px) {
    #header > div:nth-child(2) > div:nth-child(1)
    {
        position: fixed;
        z-index: 1;

        top: 0;
        width: 100%;
        background-color: #ffffff;
    }
}

#header > div:nth-child(2) > div:nth-child(2)
{
    display: grid;
    grid-template-columns: repeat(1, 128px);
    justify-content: center;
    align-items: center;
    gap: 10px;
    
    min-height: 50px;

    flex: 1 1 550px;
    flex-wrap: wrap;
    
    font-weight: lighter;
}

#header > div:nth-child(2) > div:nth-child(2) > a
{
    text-decoration: none;
}

#header > div:nth-child(2) > div:nth-child(2) > * > *
{
    width: 128px;
    height: 36px;
    background-color: #AD222D;
    cursor: pointer;
}

#header > div:nth-child(2) > div:nth-child(2) > * > *:hover
{
    background-color: #922029;
}

#header > div:nth-child(2) > div:nth-child(2) > * > * > *
{
    display : flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color : #ffffff;
}

@media (min-width: 280px) {
  #header > div:nth-child(2) > div:nth-child(2) {
      grid-template-columns: repeat(2, 128px);
  }
}

@media (min-width: 550px) {
    #header > div:nth-child(2) > div:nth-child(2) {
        grid-template-columns: repeat(4, 128px);
    }
}