*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}
html,body{
    line-height: 1.3;
    text-transform: capitalize;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}


body,html{
    overflow-x: hidden;
}


/* flex */
body{
    display: flex;
    gap: 60px;
    margin-top: 20px;
}
/* nav */
a{
    text-decoration: none;
}
nav ul li:hover {
    background: #ccc;
    transition: 0.3s ease-in-out;
  }
header{
    overflow-y: hidden;
    width:1600px ;
    height: 250vh;
    border: 1px solid #ccc;
    position: sticky;
    top: 0;
}
ul{
    list-style-type: none;
}
nav h1,li{
    border-bottom: 1px solid #ccc;
    padding: 0px 5px;
    font-size: 20px;
}
nav li{
    color: rgb(100, 95, 95);
}
nav h1{
    font-size: 25px;
    font-weight: 400;
    line-height: 1.9;
}
/* introduction */
.two h1{
    font-size: 20px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
    width:900px;
    padding: 0px 5px;
}
.two{
    display: flex;
    flex-direction: row;
}
p,li{
    padding: 12px;
    color: #2e2c2c;
    font-size: 15px;
}
.intro li{
    list-style-type: disc;
    border: none;
}
.already li{
    list-style-type: disc;
    border: none;
}
.already h1{
    font-size: 20px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
    width:900px;
}
/* java script */
.java h1{
    font-size: 20px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
    width:900px;
}
/* hello world */
.hello h1{
    font-size: 20px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
    width:900px;
}
.pre{
    text-align: center;
    width: 600px;
    border: 1px solid #ccc;
    background-color: #aaaaaa;
    padding: 30px;
    border-radius: 60px;
}
.variable h1{
    font-size: 20px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
    width:900px;
}





/* responsive website */


@media (max-width:1248px){
    .all p,.all li{
        width: 700px;
    }
    nav li{
        width: 100%;
    }
    header{
        width: 480px;
    }
}






@media (max-width:1137px){
    nav>h1{
        font-size: 25px;
    }
}




@media (max-width:901px){
    .all p,.all li{
        width: 200px;
    }
}





@media (max-width:1118px){
    .all p,.all li{
        width: 600px;
    }
    nav li{
        width: 350px;
    }
}



@media (max-width:1017px){
    nav li{
        width: 100%;
    }
    .all p,.all li{
        width: 800px;
    }
    header{
        width: 799px;
        position: static;
        height: 44vh;
    }
    body{
        padding: 20px 50px;
        flex-direction: column;
    }
}


@media (max-width:908px){
    nav li{
        width: 100%;
    }
    .all p,.all li{
        width: 700px;
    }
    header{
        width: 799px;
        position: static;
        height: 44vh;
    }
    header{
        width: 750px;
    }
}




@media (max-width:854px){
    header{
        width: 700px;
    }
}







@media (max-width:791px){
    header{
        width: 650px;
    }
}




@media (max-width:743px){
    header{
        width: 600px;
    }
}


@media (max-width:705px){
    header{
        width: 550px;
    }
}

@media (max-width:646px){
    header{
        width: 500px;
    }
}




@media (max-width:605px){
    header{
        width: 450px;
    }
}



@media (max-width:534px){
    header{
        width: 420px;
    }
}





@media (max-width:507px){
    header{
        width: 400px;
    }
}



@media (max-width:497px){
    header{
        width: 350px;
    }
}

@media (max-width:461px){
    header{
        width: 320px;
    }
}



.all p,.all li{
    text-align: justify;
}
@media (max-width:805px){
    .all p,.all li{
        width: 600px;
    }
}




@media (max-width:716px){
    .all p,.all li{
        width: 570px;
    }
}


@media (max-width:680px){
    .all p,.all li{
        width: 500px;
    }
}


@media (max-width:618px){
    .all p,.all li{
        width: 450px;
    }
}



@media (max-width:557px){
    .all p,.all li{
        width: 400px;
    }
}




@media (max-width:506px){
    .all p,.all li{
        width: 340px;
    }
}













@media (max-width:717px){
    .pre{
        text-align: center;
        width: 550px;
    }
    .pre pre{
        font-size: 11px;
        
        padding-right: 200px;
        text-align: center;
        width: 500px;
    }
}





@media (max-width:670px){
    .pre{
        text-align: center;
        width: 500px;
    }
    .pre pre{
        font-size: 11px;
        text-align: center;
        width: 500px;
    }
}






@media (max-width:619px){
    .pre{
        text-align: center;
        width: 490px;
    }
    .pre pre{
        font-size: 11px;
        text-align: center;
        width: 450px;
    }
}









@media (max-width:608px){
    .pre{
        text-align: center;
        width: 450px;
    }
    .pre pre{
        font-size:10px;
        text-align: center;
        width: 450px;
    }
}







@media (max-width:566px){
    .pre{
        text-align: center;
        width: 400px;
    }
    .pre pre{
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-size:10px;
        text-align: center;
        width: 450px;
    }
}





@media (max-width:516px){
    .pre{
        text-align: center;
        width: 380px;
    }
    .pre pre{
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-size:10px;
        text-align: center;
        width: 450px;
    }
}








@media (max-width:498px){
    .pre{
        text-align: center;
        width: 350px;
    }
    .pre pre{
        text-align: center;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-size:9px;
        text-align: center;
        width: 450px;
    }
}





@media (max-width:465px){
    .pre{
        text-align: center;
        width: 330px;
    }
    .pre pre{
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-size:8px;
        text-align: center;
        width: 450px;
    }
}