@import url('https://fonts.googleapis.com/css2?family=Handlee&family=Montserrat:wght@500;700;900&family=Poppins&family=Roboto:wght@300;400&display=swap');

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}
html,body{
    scroll-behavior: smooth;
    line-height: 1.4;
}
header{
    border: 1px solid  rgb(201, 198, 198);
    height: 150vh;
   
}
body{
    display: flex;
}
nav{
    position: sticky;
    left: 0;
    top: 0;
    z-index: 100;
}
nav h1{
    border-bottom: 1px solid  rgb(201, 198, 198);
    padding: 5px 15px;
    border-right: none;
    font-size: 1.5rem;
    font-weight: 550;
}
nav ul li{
    list-style: none;
    border-bottom: 1px solid  rgb(201, 198, 198);
    padding: 8px 15px;
    font-weight: 350;
    transition: 0.3s ease-in;
}
nav ul li:hover{
  background-color: rgb(191, 190, 190);
  cursor: pointer;

}
nav li a{
    text-decoration: none;
    color: black;
    border-bottom:1px solid transparent ;
    transition: 0.3s ease-in;

}
nav li a:hover{
    border-bottom:1px solid whitesmoke ;
}
main{
    width: 100%;
    margin-left: 60px;
    margin-top: 30px;
}
#What {
    margin-bottom: 40px;
}
#What h1{
    border-bottom: 1px solid  rgb(201, 198, 198);
    font-size: 1.1em;
    font-weight: 700;
}
#What h4{
    margin:  10px 10px 10px;
    font-size: .90em;
    font-weight: 300;
}
#What ul li{
    margin-left: 30px;
    font-size: .90em;
    font-weight: 300;
    margin-bottom: 15px;

}
#JavaScript {
    margin-bottom: 40px;
}
#JavaScript h1{
    border-bottom: 1px solid  rgb(201, 198, 198);
    font-size: 1.1em;
    font-weight: 700;
}
#JavaScript p{
    margin-left: 10px;
    font-size: .90em;
    font-weight: 300;
    margin: 15px 0px 10px 0px;
    padding-left: 10px;
}

#Hello_world{
    margin-bottom: 40px;
}
#Hello_world h1{
    border-bottom: 1px solid  rgb(201, 198, 198);
    font-size: 1.1em;
    font-weight: 700;
}
#Hello_world p{
    padding-left: 10px;
    font-size: .90em;
    font-weight: 300;
    margin: 15px 0px 10px 0px;
}

#Hello_world h4{
    font-family: Arial, Helvetica, sans-serif;
    margin-left: 10px;
    font-size: .90em;
    font-weight: 700;
    margin: 15px 0px 10px 0px;
    background-color: whitesmoke;
    border-radius:10px;
    padding: 10px 10px 10px 70px;
}
#Variables{
    
    margin-bottom: 40px;
}
#Variables h1{
    border-bottom: 1px solid  rgb(201, 198, 198);
    font-size: 1.1em;
    font-weight: 700;
}
#Variables p{
    margin-left: 10px;
    font-size: .90em;
    font-weight: 300;
    margin: 15px 0px 10px 0px;
    padding-left: 10px;
}

/* mobile fixes (PR: polish pass) */
@media (max-width: 700px){
    body{
        flex-direction: column;
    }
    header{
        height: auto;
    }
    nav{
        position: static;
    }
    main{
        margin-left: 0;
        padding: 0 16px;
    }
    main pre,
    main code{
        white-space: pre-wrap;
        word-break: break-word;
    }
}
