@font-face {
    font-family: "Netflix";
    src: url('Netflix_Fonts/NetflixSans-Regular.otf');
}

* {
    margin: 0;
    box-sizing: border-box;
    font-family: "Netflix";
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* For Firefox */
input[type=number] {
    appearance: textfield;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    background: 
    linear-gradient(to right, rgba(0,0,0,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    transition: background-color 0.3s, color 0.3s;
}

.main-content {
    width: 90%;
    background: #fff;
    max-width: 550px;
    min-width: 250px;
    min-height: 450px;
    padding: 20px;
    border: 1px solid black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.main-content h1{
    width: 80%;
    font-size: 2.2rem;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid black;
    padding-bottom: 30px;
}

input::placeholder {
    color: rgba(0, 0, 0, 0.35);
}

#calc-btn {
    width: 100px;
    height: 40px;
    padding: 9px 0px 9px;
    color: #fff;
    border: none;
    background: black;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin: 20px auto 0px auto;
}

#calc-btn:hover{
    transform: scale(1.075);
}

input {
    outline: none;
}

.input-div {
    width: 100%;
    height: 60px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

#height {
    width: 60%;
    height: 40px;
    border: 1px solid black;
    padding-left: 10px;
    box-shadow: 2px 2px black;
}

#weight {
    width: 60%;
    height: 40px;
    border: 1px solid black;
    padding-left: 10px;
    box-shadow: 2px 2px black;
}

#ht-span {
    font-size: 1.3rem;
    margin-right: 15px;
}

#wt-span {
    font-size: 1.3rem;
    margin-right: 15px;
}

#cm-span {
    margin-left: 15px;
}

#kg-span {
    margin-left: 15px;
}

#er-span {
    font-size: 1.3rem;
    color: #ff2727;
    font-weight: 500;
    display: none;
}

#r-span {
    font-size: 1.3rem;
}

#result-div {
    width: 100%;
    height: 60px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

#result-span {
    width: 35%;
    height: 40px;
    min-width: 120px;
    border: 1px solid black;
    box-shadow: 2px 2px black;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 15px;
}

#result-span:hover {
    cursor: no-drop;
}

#wt-result {
    width: 35%;
    height: 40px;
    min-width: 120px;
    text-align: center;
    border: 1px solid black;
    box-shadow: 2px 2px black;
    margin-left: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#wt-result:hover {
    cursor: no-drop;
}

.green {
    color: white;
    background: green;
}

.red {
    color: white;
    background: #ff2727;
}

.yellow {
    background: yellow;
    color: black;
}

.calculator {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 35px;
    width: 100%;
}

@media screen and (max-width: 460px ) {
    #result-div {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 15px;
        height: 140px;
    }
    #r-span {
        margin-right: 0;
    }
    #wt-result {
        min-width: 145px;
        min-height: 40px;
        margin-left: 0;
    }
    #result-span {
        min-width: 145px;
        min-height: 40px;
        margin-left: 0;
    }
}

.mode {
    background-color: black;
    color: #fff;
}

/* .right-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 90%;
    background: #fff;
    max-width: 350px;
    max-height: 450px;
    text-align: center;
    border: 1px solid black;
}

#heading {
    margin-bottom: 20px;
    margin-top: 20px;
}

h2 {
    font-size: 1.4rem;
}

.bmi-chart {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 1fr);

} */