@import url('https://fonts.googleapis.com/css2?family=Baloo+Bhaijaan+2&family=Marck+Script&family=Playfair+Display&family=Young+Serif&display=swap');
*{
    margin: 0;
    padding: 0;
}
html{
    scroll-behavior: smooth;
}
body {
    background-color: #0e121d;
    color: white;
    font-family: 'Baloo Bhaijaan 2', sans-serif;
  }
#navbar{
    display: flex;
    align-items: center;
    top: 0px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-around;
    background-color: #262626;
}
#navbar h1{
    font-family: 'Playfair Display', serif;
    color: #F08080;
    font-size: 40px;
}
#logo img{
    height: 7vh;
    width: 5vw;
}
#logo p{
    text-align: center;
    color: #F08080;
    font-weight: bold;
}
.right{
    display: flex;
}
form.search input[type=text] {
    padding: 10px;
    font-size: 17px;
    border: 1px solid grey;
    float: left;
    width: 70%;
    background: #f1f1f1;
    font-family: 'Times New Roman', Times, serif;
  }
  
form.search button {
    float: left;
    width: 18%;
    padding: 10px;
    background: #F08080;
    color: white;
    font-size: 17px;
    border: 1px solid grey;
    border-left: none;
    cursor: pointer;
  }
  
form.search button:hover {
    background: #000000;
  }
  
form.search::after {
    content: "";
    clear: both;
    display: table;
  }
.btn{
    padding: 5px 7px;
    font-size: 17px;
    font-weight: bold;
    background-color: #F08080;
    font-family: 'Baloo Bhaijaan 2', sans-serif;
    transition: background-color 0.5s;
}
.btn:hover{
    background-color: #c6c6c6;
}
.btn a{
    text-decoration: none;
    color: black;
}



/* -----------------main--------------------  */
#main{
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}
.text{
    margin: 100px 25px;
    flex-basis: 40%;
    font-family: 'Playfair Display', serif;
}
.text h1{
    font-size: 50px;
}
.text p{
    font-weight: bold;
    font-size: 20px;
    font-family: 'Baloo Bhaijaan 2', sans-serif;
    color: #F08080;
    margin: 10px 0;
}
.text h3{
    margin: 50px 0 20px 0;
    letter-spacing: 3px;
}
.text input{
    width: 250px;
    padding: 7px;
    font-family: 'Baloo Bhaijaan 2', sans-serif;
    font-weight: bold;
    font-size: 15px;
}
.text button{
    font-family: 'Baloo Bhaijaan 2', sans-serif;
}
.image{
    /* width: 50%; */
    flex-basis: 40%;
    margin: 0 25px;
    text-align: center;
}


/* -------choose-------  */
#choose{
    align-items: center;
    padding: 10px 10%;
}

.left2 h2{
    font-family: 'Playfair Display', serif;
    letter-spacing: 3px;
}
.left2 p{
    font-size: 20px;
    color: #F08080;
}
.list{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 40px;
}
.list div{
    background: #262626;
    padding: 20px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 10px;
    text-align: center;
    transition: background 0.5s, transform 0.5s;
    font-family: 'Baloo Bhaijaan 2', sans-serif;
}
.list div i{
    padding-right: 10px;
}
.list div:hover{
    background: #F08080;
    color: black;
    transform: translateY(-10px);
}

/* ---------------tut-------------- */
#tut{
    padding-top: 50px;
}
#tut h1{
    text-align: center;
    font-family: 'Playfair Display', serif;
    letter-spacing: 3px;
    font-size: 40px;
    color: #F08080;
}
.box1{
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 300px;
}
.left-box{
    display: flex;
    flex-direction: column;
    color: black;
    flex-basis: 40%;
    align-items: center;
}
.left-box p{
    font-size: 20px;
    margin-top: 2px;
    text-align: center;
}
.left-box a{
    text-decoration: none;
    border: 2px solid rgb(0, 0, 0);
    border-radius: 20px;
    text-align: center;
    margin: 10px 0;
    color: #F08080;
    background-color: #0e121d;
    width: 50%;
    transition: background-color 0.5s , transform 0.5s;;
}
.left-box a:hover{
    background-color: #F08080;
    color: black;
    transform: translateY(-10px);
}
.image2{
    flex-basis: 40%;
    height: 250px;
    width: 500px;
}
.i1{
    background: url(../img/html.png);
    background-size: cover;
    background-position: center;
}
.i2{
    background: url(../img/CSS.jpg);
    background-size: cover;
    background-position: center;
}
.i3{
    background: url(../img/JS.jpg);
    background-size: cover;
    background-position: center;
}

.box2{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px, 1fr));
    grid-gap: 40px;
    padding: 50px 0;
}
.box2 div{
    padding: 40px;
}


footer{
    margin-top: 30px; 
    background: #262626;
    color: white;
    padding: 7px 20px;
    text-align: center;
    font-family: 'Young Serif', serif;
    font-family: 'Baloo Bhaijaan 2', sans-serif;
}

footer a{
    color: white;
    padding: 10px;
    transition: color 0.5s;
}
footer a:hover{
    color: #F08080;
}





@media screen and (max-width: 1100px) {
    .text{
        flex-basis: 100%;
    }
    .image{
        flex-basis: 100%;
    }
}
@media screen and (max-width: 610px) {
    .right form{
        display: none;
    }
    #logo img{
        width: 60px;
    }
    .image img{
        height: 300px;
        width: 300px;
    }
    .text{
        margin: 50px 25px; 
    }
    .text h1{
        font-size: 40px; 
    }
}
@media screen and (max-width: 750px) {
    .image2{
        display: none;
    }
    .left-box{
        flex-basis: 100%;
    }
}