* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

body{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    background: linear-gradient(rgb(59, 88, 93),
    rgb(29, 40, 42));;
}

.container{
    display: inherit;
    align-items: inherit;
    gap: 3rem; 
}

.img img{
    width: 35rem;
}

.calculator{
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 3rem;
    color: rgb(242, 242, 242);
    background-color: rgba(29, 40, 42, 0.555);
    border-radius: 0.5rem;
    backdrop-filter: blur(50px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.calculator h1 {
    font-size: 1.7rem;
}

.form{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.title{
    font-size: 2.25rem;
}

.input-box label{
    font-size: 1.1rem;
    font-weight: 600; 
}

.input-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0.3rem;
    border-radius: 0.3rem;
    /* margin-top: 3px; */
}

.input-field span, 
.input-field i {
    color: rgb(108, 99, 255);
    font-size: 1.3rem;
    padding: 0.6rem 1rem;
}

.input-field input {
    background-color: transparent;
    border: none;
    width: 100%;
    font-size: 1.3rem;
    color:rgb(242, 242, 242);
    padding: 0 0.5rem;
}

.input-field input::-webkit-outer-spin-button,
.input-field input::-webkit-inner-spin-button{
    appearance: none;
}

.input-field input:focus {
    outline: none;
}

.calculate {
    border: none;
    font-size: 1.25rem;
    color: rgb(242, 242, 242);
    background-color:  rgb(108, 99, 255);
    padding: 0.5rem 0;
    border-radius: 0.3rem;
    cursor: pointer;
}

.result {
    display: flex;
    align-items: center;
    gap: 2rem;
    border-top: 1px solid rgb(108, 99, 255);
    padding: 0.75rem 0;
}

.bmi {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.875rem;
}

.bmi span:last-child {
    font-size: 2.25rem;
}

.description {
    width: 15.5rem;
}

.more-info {
    border-top: 1px solid rgb(242, 242, 242);
    padding-top: 1.5rem;
}

.more-info a{
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(242, 242, 242);
    gap: 0.6rem;
    font-size: 0.92rem;
    text-decoration: none;
}

.more-info a:hover{
    color: rgb(108, 99, 255);
    text-decoration: underline;
    transition: .5s ease;
}

.hidden {
    display: none;
}


@media screen and (max-width: 500px) {
    .container{
        width: 100%;
        height: 100%;
    }


    .calculator {
        width: 100%;
        height: 100%;
        border-radius: 0;
        justify-content: center;
    }


    .calculator h1 {
        font-size: 1.6rem;
        text-wrap: nowrap;
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (min-width: 567px) and (max-width: 767px){

    .calculator{
        width: 70%;
        height: 50%;
        margin-right: auto;
        margin-left: auto;
        justify-content: center;
    }


    .calculator h1{ 
     font-size: 1.5rem;
    }
}

@media screen and (max-width: 1024px) {
    .img{
        display: none;
    }
}