@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background-color: rgb(41, 43, 198);
}
a{
    text-decoration: none;
    color: white;
}
a:hover{
    transition: .3s ease;
    color: violet;
}
/* ------------- navbar ----------------- */
nav{
    display: flex;
    flex-direction: row-reverse;
    height: 13vh;
    font-size: 1.3rem;
    align-items: center;  
}
nav ul{
    display: flex;
    list-style-type: none;
    gap: 1.5rem;
    margin-right: 2rem;
}

/* ---------- section ----------- */
.section{
    display: flex;
    justify-content: center;
    align-items: center;
    /* text-align: center; */
    flex-direction: column;
    height: 74vh;
    text-align: center;
    background-color: rgb(0, 0, 0, 0.15);
    padding: 5rem;
}
.section h1{
    color: white;
}
.section ul{
    display: flex;
    list-style-type: none;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
}
.section ul li{    
    text-align: center;
}
.section ul li a{
    background-color: teal;
    color: black;
    border-radius: 5px;
    display: inline-block;
    width: 120px;
    padding: 5px;
    font-size: 1.3rem;
}
@media (max-width: 768px) {
    .section ul li a {
        width: auto;
    }
}

.section ul li a:hover,
#selected{
    background-color: rgb(34, 146, 190);
}

#textbox{
    width: 50rem;
    max-width: 80vw;
    padding: 8px;
    text-align: center;
    margin: 5px;
    background-color: gainsboro;
    border: .5px solid;
    font-size: 16px;
    letter-spacing: .5px;
}
#submit{
    margin: 1rem 0;
    padding: 5px 8px;
    background-color: rgb(34, 146, 190);
    /* color: white; */
    border-radius: 5px;
    border: none;
    font-size: 1.2rem;

}
#submit:hover{
    cursor: pointer;
    background-color: teal;
    transition: .3s ease;
}
#result{
    font-weight: bold;
    border-radius: 5px;
    min-height: 3.5rem;
    padding: 1rem;
    width: 50rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: transparent 2px solid;
}

/* ---------- footer ------------  */
.footer{
    position: absolute;
    bottom: 0;
    height: 13vh;
    width: 100vw;
    color: black;
    text-align: center;
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
