header {
    width: 100%;
    height: 12vh;
    background-color: var(--background-color);
    box-shadow: 0px 2px 4px rgba(0,0,0,0.144);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header img {
    max-height: 10vh;
    margin-left: 40px;
}

.darkmode {
    display: none;
}

header ul{
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    list-style-type: none;
}

header li {
    display: flex;
    height: 100%;
    font-size: 22px;
    margin-right: 40px;
}

header a {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

header a:hover {
    color: var(--primary-text-color);
}

header input[type="checkbox"] {
    display: none;
}

.toogle-button {
    height: 23px;
    width: 30px;
    position: absolute;
    top: 25px;
    right: 25px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.bar {
    height: 4px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 100px;
}

@media(max-width: 875px) {
    .toogle-button {
        display: flex;
    }

    header ul {
        height: min-content;
        max-width: 100%;
        width: 100%;
        background-color: var(--background-color);
        display: none;
        position: absolute;
        top: 12vh;
        padding: 0px;
        margin: 0px;
        box-shadow: 0px 2px 4px rgba(0,0,0,0.144);
    }

    header li {
        height: min-content;
        width: 100%;
        justify-content: center;
    }

    header ul a {
       padding: 30px 0;
    }

   #checkbox:checked ~ ul {
    display: block;
   }

}

@media(max-width: 350px) {
    header img {
        margin: 0;
        max-width: 80%;
    }
}

@media (prefers-color-scheme: dark) {
    .darkmode {
        display: block;
    }
}