@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-image: linear-gradient(to right, #0f0c29, #302b63, #24243e);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100vw;
}

h1{
    color: black;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
    width: 100%;
    max-width: 500px;;
    padding: 2rem;
    background-color: #c98900;
    border-radius: 1rem;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
}

.inputContainer{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
    padding: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 1rem;
}

.inputContainer > .input-field input{
    width: 100%;
}

.num1n2{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.num3n4{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.input-field {
    position: relative;
}

input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-field input{
    width: 180px;
    height: 60px;
    border-radius: 6px;
    font-size: 18px;
    padding: 0 15px;
    border: 2px solid #000;
    background: transparent;
    color: #000;
    outline: none;
    transition: border .3s ease-in-out;
}


.input-field label {
    position: absolute;
    transform: translateY(-50%);
    color: #000;
    top: 0;
    left: 15px;
    font-size: 16px;
    padding: 0 2px;
    background-color: #c98900;

}

input:focus {
    border: 2px solid #fff;
}

.buttonAligner{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.buttonAligner button{
    background-color: #000458;
    padding: 1rem;
    border-radius: 1rem;
    font-weight: bold;
    font-size: 25px;
    font-family: "League Spartan", sans-serif;
    color: #fff;
    cursor: pointer;
    box-shadow: 15px 5px 10px #ea711c;
}

.buttonAligner button:hover {
    background: rgb(1, 47, 173);
    box-shadow: 0 5px 10px rgba(223, 123, 10, 0.4);
    transition: 0.5s;
}

a {
    text-decoration: none;
}

.resultContaier {
    display: flex;
    justify-content: center;
    align-items: center;
}

#result {
    margin-top: 2rem;
    font-size: 18px;
    color: #000;
    width: 100%;
    text-align: center;
}


@media (max-width: 600px) {
    .container{
        max-width: 80%;
        max-height: 90%;   
    }
    .input-field input{
        width: 65%;
    }
    .inputContainer > .input-field input{
        width: 84%;
    }
    .num1n2, .num3n4{
        gap: 1rem;
    }
    .buttonAligner{
        flex-flow: column;
        gap: 1rem;
    }
    .buttonAligner button, .backHome{
        padding: 10px 20px;
        width: 250px;
    }
    .resultContaier input{
        max-width: 50%;
    }
}
.navbar{
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    justify-content: space-between;
    height: 67px;
    width: 100%;
    background:linear-gradient(#1e2b59 , #0f1d34 );
    border-bottom:1px solid #ffb780;
}
.image img{
    height: 55px;
    width: 55px;
}
.left-nav ul{
    display: flex;
    justify-content: center;
    align-items: center;
}
.left-nav ul li{
    list-style: none;
}
.left-nav ul li a{
    text-decoration: none;
    color: #ffb780;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    font-size: 1.3rem;
}
.left-nav ul li a:hover{
    text-decoration: underline;
}
.footer-container{
    border-top: 1px solid #ffb780;
    width: 100%;
    background:linear-gradient(#1e2b59 , #0f1d34 );
    padding: 20px;
    /* background: url(Image.png); */
     background-position: center;
     line-height: 2.5rem;
     margin-top: 30px;
}
.foot-head h2{
    text-align: center;
    color: aqua;
    font-weight: 600;
}
.foot-head p{
    color: #ffb780;
    text-align: center;
    font-size: 1.20rem;
}
.foot-navlinks h3{
    text-align: center;
    color: aqua;
    font-weight: 600;
}
.foot-navlinks {
    text-align: center;
}
.foot-navlinks a{
    color: #ffb780;
    font-size: 18px;
    padding: 10px;
}
.foot-social {
    text-align: center;
}
.foot-social h3{
    color: aqua;
    font-weight: 600;
}
.foot-social a{
    font-size: 30px;
    color: #ffb780;
}
html{
    overflow-x: hidden;
}
.head{
    margin-top: 30px;
    margin-bottom: 20px;
}
.backHome{
    margin-bottom: 30px;
}
@media screen and (max-width:525px) {
    body{
        width: 100%;
    }
    html{
        overflow-x: hidden;
    }
  
    .navbar{
        width: 100%;
    }
    .left-nav ul li a{
        padding: 0px 9px;
    }
    
  }
  @media screen and (max-width:380px) {
    body{
        width: 100%;
    }
    html{
        overflow-x: hidden;
    }
  
    .navbar{
        width: 100%;
    }
    .left-nav ul li a{
        padding: 0px 9px;
    }
    
  }