/*Fonte do google - montserrat*/


@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&family=Montserrat:ital@0;1&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Google Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-variation-settings:
        "GRAD" 0;
}

body {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #4b4b4b;
}

.container input[type="radio"] {
    display: none;
}

nav {
    width: 600px;
    height: 60px;
    border-radius: 5px;
    background: #7b3191;
    display: flex;
    text-align: center;
    position: relative;
    align-items: center;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.336);
}

nav label {

    width: 100%;
    height: 100%;
    line-height: 60px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 5px;
    margin: 0 5px;
    color: #fff;
    cursor: pointer;
    z-index: 1;
    transition: all 0.3s ease;
}

nav label:hover {
    background: rgb(114, 112, 112);
}

nav label i {

    margin-right: 4px;


}

.slider {
    position: absolute;
    height: 100%;
    width: 20%;
    background: #353036;
    left: 0;
    top: 0;
    border-radius: 5px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

}

#home:checked~nav label.home,
#blog:checked~nav label.blog,
#code:checked~nav label.code,
#help:checked~nav label.help,
#about:checked~nav label.about {
    color: #ce7cf4;
}

#blog:checked~nav .slider {

    left: 20%;
}

#code:checked~nav .slider {

    left: 40%;
}

#help:checked~nav .slider {

    left: 60%;
}

#about:checked~nav .slider {

    left: 80%;
}