@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    font-family: 'Kanit', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {    
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    background-color: #18181b;
}

#conteiner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 0rem;
}

#img img{
    width: 35rem;
}

#calculator {    
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    color: #f8f8f8;
    background-color: #27272a;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#title {
    font-size: 2rem;
    position: relative;
}

#title::after {
    position: absolute;
    content: '';
    background-color: #f15a23;
    width: 8rem;
    height: 3px;
    bottom: 0;
    left: 0;
    border-radius: 3px;
}

.input-box label {
    font-size: 1.5rem;
    color: #f8f8f8;
    font-weight: 500;
}

.input-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #434345;
    padding: 0.3rem;
    border-radius: 8px;
    margin-top: 3px;
    width: 100%;
}

.input-field span, .input-field i {
    color: #f8f8f8;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
}

.input-field input {
    background-color: transparent;
    border: none;
    width: 100%;
    font-size: 1.2rem;
    color: #f8f8f8;
    padding: 0 0.5rem;
}

.input-field input::-webkit-outer-spin-button,
.input-field input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-field input:focus {
    outline: none;
}

#calculate {
    background-color: #f15a23;
    border: none;
    border-radius: 8px;
    color: #f8f8f8;
    font-size: 1.5rem;
    padding: 0.5rem 0rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

#calculate:hover {
    background-color: #f8f8f8;
    color: #f15a23;
    transform: scale(1.01);
    box-shadow: 0 0 5px #f15a23;
}

#result {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #434345;
    padding: 0.5rem 0rem;
    border-radius: 8px;
    border-top: 1px solid #f8f8f8;
    font-size: 1rem;
    color: #f8f8f8;
    transition: all 0.3s ease-in-out;
    gap: 1rem;
}

#imc {
    display: flex;
    align-items: center;
    flex-direction: column;
    font-size: 1.5rem;
    transition: all 0.3s ease-in-out;
}

#imc span:last-child {
    font-size: 1rem;
    color: #f8f8f8;
}

#description {
    width: 15.5rem;
}

#more-info {
    text-align: center;
    padding: 1.5rem 0rem;
}

#more-info a {
    text-decoration: none;
    color: #f15a23;
    font-size: 1.25rem;
    transition: all 0.3s ease-in-out;
}

#more-info a:hover {
    color: #f8f8f8;
    text-decoration: underline;
}

.hidden {
    display: none;
}


.normal {
    color: #02a301;
}

.attention {
    color: #dc2626;
}

@media screen and (max-width: 1020px) {
    #img img {
        display: none;
    }
}


@media screen and (max-width: 500px) {
    #container {
        width: 100%;
        height: 100%;
    }

    #calculator {   
        width: 100%;
        height: 100%;
        border-radius: 0px;
        justify-content: center;
    }
}