.header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 2rem;
    margin-bottom: 1rem;
    gap: 10px;
    position: relative;
}
.header .logo {
    aspect-ratio: 349 / 55;
    height: 50px;
    margin-right: auto;
}
.header .links {
    display: flex;
    gap: 10px;
}
.header a {
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    color: white;
    background: black;
    text-decoration: none;
    padding: 5px 20px;
    border-radius: 8px;
    white-space: nowrap;
}
.header a.no-flex {
    padding: 5px 10px;
}
.header a img {
    height: 15px;
}
.header .selected {
    background: #f5bd2d;
    color: black;
    font-weight: bold;
}

@media (max-width: 1000px) {
    .header .logo {
        margin-left: auto;
        margin-right: auto;
    }
    .header {
        margin-top: 1rem;
        flex-wrap: wrap;
    }
    .header .links {
        width: 100%;
    }
    .header .links a:not(.no-flex) {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .header .links {
        margin-left: 5px;
        margin-right: 5px;
    }
    .header .links a {
        font-size: 12px;
    }
    .header .links a:not(.no-flex) {
        font-size: 12px;
        padding: 5px 5px;
    }
    .header .links a.no-flex img {
        height: 10px;
    }
}

@media (max-width: 400px) {
    .header .logo {
        width: 280px;
    }
    .header .links {
        gap: 5px;
    }
    .header .links a {
        font-size: 10px !important;
    }
    .header {
        margin-bottom: 0.5rem;
    }
    .no-flex {
    }
}

@media (max-height: 600px) {
    .header {
        margin-top: 1rem;
    }
    .header .logo {
        height: 34px;
    }
}