body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 95vh
}

#container {
    border: 1px solid rgb(210, 210, 210);
    background-color: rgb(240, 240, 240);
    padding: 10px;
    width: 60%;
    border-radius: 10px;
}

.sub-container {
    margin: 10px;
    padding: 10px 10px;
}

.inputs {
    margin: 20px 0px;
    display: block;
    width: 100%;
}

.inputs:focus {
    outline: none;
}

.spans {
    color: darkblue;
    font-size: 25px;
    display: inline-block;
    float: right;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.text {
    color: darkblue;
    display: inline-block;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 700;
    font-size: 25px;
}

#bmi {
    color: darkblue;
    font-size: 40px;
    padding-right: 10px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 700;
    text-align: right;
}

#scale {
    margin: 20px 0px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
}

.boxes {
    color: white;
    margin: 0px 5px;
    padding: 10px 0px;
    line-height: 30px;
    text-align: center;
    font-weight: 700;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    border-radius: 5px;
    opacity: 0.2;
    /* text-shadow: 1px 1px black; */
}

#underweight {
    background-color: #007bff;
}

#normal {
    background-color: #00c667;
    opacity: 1;
}

#overweight {
    background-color: #fecc18;
}

#obese1 {
    background-color: rgb(255, 149, 0);
}

#obese2 {
    background-color: red;
}

#obese3 {
    background-color: #cc1100;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: darkblue;
    cursor: pointer;
    width: 100%;
    border-radius: 10px;
    height: 5px;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 5px;
}

input[type="range"]::-moz-range-track {
    height: 5px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; /* Override default look */
    margin-top: -7px; /* Centers thumb on the track */
    background-color: rgb(240, 240, 240);
    border: 3px solid darkblue;
    height: 20px;
    width: 20px;    
    border-radius: 20px;
}

input[type="range"]:focus::-webkit-slider-thumb {
    -webkit-appearance: none; /* Override default look */
    margin-top: -7px; /* Centers thumb on the track */
    background-color: rgb(200, 200, 200);
    border: 3px solid darkblue;
    height: 20px;
    width: 20px;    
    border-radius: 20px;
}

input[type="range"]::-moz-range-thumb {
    background-color: rgb(240, 240, 240);
    border: 3px solid darkblue;
    height: 15px;
    width: 15px;    
    border-radius: 20px;
}

input[type="range"]:focus::-moz-range-thumb {
    background-color: rgb(200, 200, 200);
    border: 3px solid darkblue;
    height: 15px;
    width: 15px;    
    border-radius: 20px;
}

@media(max-width:1290px){
    #scale{
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        grid-gap: 20px 10px;
    }
    .sub-container{
        padding: 5px 10px;
    }
}

@media(max-width:800px){
    #scale{
        grid-gap: 20px 0px;
    }
    #outputBox{
        padding: 0px 10px;
    }
    #bmi{
        font-size: 35px;
    }
}

@media (max-width:750px) {
    .boxes{
        font-size: 16px;
    }
}

@media (max-width:700px){
    .text{
        font-size: 20px;
    }
    .spans{
        font-size: 20px;
    }
    #bmi{
        font-size: 30px;
    }
    #scale{
        grid-template-columns: 1fr 1fr;
        grid-gap: 10px 10px ;
    }
    .boxes{
        padding: 5px 0px;
    }
}

@media (max-width:550px){
    #bmi{
        font-size: 25px;
    }
    #scale{
        grid-gap: 10px 0px;
    }
}

@media (max-width:500px){
    .text{
        font-size: 16px;
    }
    .spans{
        font-size: 16px;
    }
    #bmi{
        font-size: 20px;
    }
    .inputs{
        margin: 10px 0px;
    }
    #container{
        width: 265px;
        padding: 0px;
    }
    #outputBox{
        padding: 0px;
    }
}

@media (max-width:300px) {
    .boxes{
        font-size: 14px;
    }
    #container{
        width: 230px;
        min-width: 230px;
    }
}