*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

body{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: skyblue;
}

.box{
    width: 500px;
    background-color: white;
    border-radius: 12px;
    text-align: center;
    box-shadow: 2px 2px 20px 5px rgba(0, 0, 0, 0.5);
}

h1{
    color: rgba(0, 0, 0, 0.7);
    font-weight: bold;
    font-size: 36px;
    padding: 30px 0;
}

.content{
    padding: 0 30px;
}

.input{
    background: #fff;
    box-shadow: 0px 0px 95px -30px rgba(0, 0, 0, 0.15);
    border-radius: 17px;
    padding: 20px 0;
    margin-bottom: 20px;
}

.input label,
.inputW label,
.inputH label{
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
}

.input input,
.inputW input,
.inputH input{
    outline: none;
    border: none;
    border-bottom: 1px solid #4f7df9;
    width: 50%;
    text-align: center;
    font-size: 28px;
}

.inputW{
    background: #fff;
    box-shadow: 0px 0px 95px -30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 10px 0;
    margin-bottom: 20px;
}

.inputH{
    background: #fff;
    box-shadow: 0px 0px 95px -30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 10px 0;
    margin-bottom: 20px;
    margin-right: 20px;
}

button.calculate{
    cursor: pointer;
    color: #fff;
    background: rgb(97, 138, 254);
    font-size: 16px;
    border-radius: 7px;
    padding: 12px 0;
    width: 100%;
    outline: none;
    border: none;
    transition: all 0.5s;
}
button.calculate:hover{
    background: #0044ff;
}

.result{
    padding: 10px 20px;
}

.result p{
    font-size: 22px;
    font-weight: 600;
    color: #000;
    margin-bottom: 15px;
}

.result #result{
    font-size: 36px;
    font-weight: 900;
    color: #4f7df9;
    background-color: #fff;
    display: inline-block;
    padding: 7px 20px;
    border-radius: 55px;
    margin-bottom: 25px;
}

#comment{
    color: #4f7df9;
    font-weight: 800;
}
/* the comment display is block but can fixed in JS if the user input their details */
.comment{
    display: none;
    border: dashed 1px;
    border-radius: 7px;
    padding: 5px;
}

.gender{
    display: flex;
    justify-content: space-around;
    align-items: center;
    align-content: center;
    background: #fff;
    box-shadow: 0px 0px 95px -30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 20px 0;
    margin-bottom: 20px;
}

/* style for radio */
.gender .container{
    display: block;
    position: relative;
    padding-left: 35px;
    margin-top: 7px;
    cursor: pointer;
    font-size: 22px;
    user-select: none;
}

/* hide browser default radio btn */
.gender .container input{
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* create custom btn */
.checkmark{
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
    border-radius: 50%;
}

/* on mouse-over*/
.gender .container:hover input ~ .checkmark{
    background-color: #ccc;
}

/* when radio btn is checked */
.gender .container input:checked ~ .checkmark{
    background-color: #2196f3;
}

/* create indicator (the dot/circle - hidden when not checked) */
.checkmark::after{
    content: "";
    position: absolute;
    display: none;
}

/* when indicator is checked */
.gender .container .checkmark::after{
    top: 9px;
    left: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}
/* end of radio style */

.containerHW{
    display: flex;
    justify-content: space-around;
    align-items: center;
}


.model{
    display: none;
    position: fixed;
    /* z-index: 1; */
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 8;
    padding-top: 300px;
}

.model-content{
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 600px;
    border-radius: 10px;
    box-shadow: #393c76 1px 2px 2px 1px;
}

#modelText{
    padding-top: 8px;
    padding-right: 5px;
    font-size: 18px;
    font-family: sans-serif;
    color: #0f0f0f;
}

/* .model-wrong{
    border: 2px solid red;
}

.model-correct{
    border: 2px solid green;
} */

/* the close btn */
.close{
    color: rgb(3, 3, 3);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}
.close:hover{
    color: #d41111;
}

@media (max-width: 700px){

    .box{
        width: 380px;
    }

    .input label{
        font-size: 18px;
    }
    .inputH label, .inputW label{
        font-size: 14px;
    }
    .input input, .inputH input, .inputW input{
        font-size: 24px;
    }
    
    .model-content{
        width: 360px;
    }
}