@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,500;1,400&display=swap');

li {
    list-style: none;
}

a {
    text-decoration: none;
}

.header {
    border-bottom: 1px solid #E2E8F0;
    background-color: #222;
    position: fixed;
    z-index: 1;
    width: 100%;
}

nav {
    padding: 1.5rem 2rem;
    background-color: #222831;
    color: #fff;
}

.checkbtn {
    color: white;
    cursor: pointer;
    position: absolute;
    top: -3px;
    left: 18px;
    font-size: 3.5rem;
}

.nav-mobile {
    display: none;
}

#check:checked ~ .nav-mobile {
    display: block;
}

.nav-mobile {
    position: absolute;
    top: 4.2rem;
    left: 0;
    background: #222831;
    z-index: 1;
    width: 150px;
}
.nav-mobile a {
    color: #fff;
    padding: 0.5rem 1.5rem;
    display: block;
}

.nav-mobile a:hover {
    color: #857e87;
    cursor: pointer;
}

#showHome{
    font-size: 3em;
    position: absolute;
    top: 0px;
    left: 32%;
}

@media only screen and (max-width: 992px) {
    .checkbtn {
        display: block;
        font-size: 3.5rem;
        position: absolute;
        top: -3px;
        left: 16px;
    }
   .nav-mobile {
        top: 67px;
        width: 150%;
    }
    #showHome{
        position: absolute;
        top: 10px;
        font-size: 2rem;
    }
}

@media only screen and (max-width: 520px) {
    #showHome{
        position: absolute;
        top: 15px;
        font-size: 1.5rem;
    }
}

@media only screen and (max-width: 400px) {
    #showHome{
        position: absolute;
        top: 20px;
        font-size: 1.2rem;
    }
}

@media only screen and (max-width: 310px) {
    #showHome{
        position: absolute;
        top: 25px;
        font-size: 1rem;
    }
}