*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    background:#f5f5f5;
    color:#222;
}

/* NAVBAR */

#nav{
    width:100%;
    height:90px;

    background:black;
    color:white;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:0 50px;
}

#logo-section{
    display:flex;
    align-items:center;
    gap:15px;
}

#txt{
    font-family:"Roboto Slab", serif;
    cursor:pointer;
    color:white;
}

#list{
    display:flex;
    gap:40px;
}

#list li{
    list-style:none;
}

#list li a{
    text-decoration:none;
    color:white;
    transition:0.3s;
    font-weight:bold;
}

#list li a:hover{
    color:rgb(250,40,40);
}

/* HERO SECTION */

#hero{
    text-align:center;
    padding:50px 20px;
}

#text{
    color:rgb(250,40,40);
    font-size:50px;
    margin-top:10px;
}

#hero p{
    max-width:700px;
    margin:20px auto;
    line-height:1.7;
    font-size:18px;
}

/* FORM SECTION */

#form-container{
    display:flex;
    justify-content:center;
    padding:30px;
}

#form{
    background:white;
    width:700px;

    padding:40px;

    border-radius:20px;

    box-shadow:0 5px 15px rgba(0,0,0,0.2);
}

#form h1{
    text-align:center;
    color:rgb(250,40,40);
    margin-bottom:30px;
}

#form form{
    display:flex;
    flex-direction:column;
}

#form label{
    margin-top:15px;
    margin-bottom:10px;
    font-weight:bold;
}

#val{
    width:100%;
    min-height:150px;

    padding:15px;

    border-radius:10px;
    border:1px solid #ccc;

    resize:vertical;

    font-size:15px;
}

#language{
    height:45px;

    border-radius:10px;
    border:1px solid #ccc;

    padding-left:10px;

    font-size:15px;
}

button{
    margin-top:30px;

    height:50px;

    border:none;
    border-radius:10px;

    background:black;
    color:white;

    font-size:16px;
    font-weight:bold;

    cursor:pointer;

    transition:0.3s;
}

button:hover{
    background:rgb(250,40,40);
}

/* RESULT BOX */

#ans{
    margin-top:30px;

    background:#f4f4f4;

    padding:20px;

    border-radius:10px;

    min-height:50px;

    line-height:1.7;
}

#ans h2{
    color:rgb(250,40,40);
    margin-bottom:15px;
}

#ans h3{
    margin-top:20px;
}

#ans pre{
    background:black;
    color:white;

    padding:15px;

    border-radius:10px;

    overflow-x:auto;

    margin-top:10px;
}

/* FOOTER */

#foot{
    margin-top:80px;

    background:black;
    color:white;

    text-align:center;

    padding:40px 20px;
}

#foot p{
    margin-top:10px;
}

/* RESPONSIVE */

@media(max-width:768px){

    #nav{
        flex-direction:column;
        height:auto;
        padding:20px;
    }

    #list{
        margin-top:15px;
        gap:20px;
    }

    #form{
        width:100%;
    }

    #text{
        font-size:40px;
    }

}